text stringlengths 1 932k |
|---|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Fuel : MonoBehaviour
{
private Image fuelBarImage;
private Vector3 fuelVec;
public float maxFuel = 100.0f;
public float fuel = 100.0f;
public float healFuel = 50.0f;
private bo... |
using MediatR;
using System.ComponentModel.DataAnnotations;
namespace Application.CQRS.Identities.Commands.RegisterUser
{
public class RegisterUserCommand : IRequest<AuthenticationVM>
{
[EmailAddress]
public string Email { get; set; }
public string Password { get; set; }
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TSS.Visitors;
namespace TSS.Ast
{
public class Stylesheet
{
public Stylesheet(IEnumerable<StylesheetDeclaration> declarations)
{
Declarations = declarations.ToList();
}
publ... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace ChainedRam.Core.Projection
{
public sealed class MultiMotion : Motion
{
[Header("Motions apply from top to bottom")]
[Header("Order Matters")]
public Motion[] Motions;
public... |
using Newtonsoft.Json;
using System;
namespace Analogy.LogViewer.Github.Data_Types
{
[Serializable]
[JsonObject]
public class GithubReleaseEntry
{
[JsonProperty("url")]
public string URL { get; set; }
[JsonProperty("assets_url")]
public string AssetsUrl { get; set; }
... |
using Pyrox.BlazorComponents.DataGrid.Interfaces;
using Pyrox.BlazorComponents.DataGrid.Models;
using System;
using System.Linq;
using System.Threading.Tasks;
namespace Pyrox.BlazorComponents.DataGrid.E2ETests.Data
{
public class WeatherForecastService : IDataGridService<WeatherForecast>
{
private stat... |
using System;
using Bearded.Graphics.Shading;
using OpenTK.Graphics.OpenGL;
namespace Bearded.Graphics.ShaderManagement
{
public sealed class ReloadableShader : IShaderProvider, IDisposable
{
private readonly IShaderReloader reloader;
public ShaderType Type => reloader.Type;
public Sh... |
using System;
using System.Diagnostics;
using System.Text;
namespace HashLib
{
internal static class Converters
{
internal static byte[] ConvertToBytes(object a_in)
{
if (a_in is byte)
return new byte[] { (byte)a_in };
else if (a_in is short)
... |
using System;
using Conreign.Contracts.Gameplay;
namespace Conreign.Client.Contracts
{
public class LoginResult
{
public LoginResult(IUser user, Guid userId, string accessToken)
{
if (user == null)
{
throw new ArgumentNullException(nameof(user));
... |
/* Yet Another Forum.NET
* Copyright (C) 2003-2005 Bjørnar Henden
* Copyright (C) 2006-2013 Jaben Cargman
* Copyright (C) 2014-2021 Ingo Herbote
* https://www.yetanotherforum.net/
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* dis... |
using System;
namespace CheatSheetConsoleApp
{
class Ex14_3_Interface
{
internal static void Run()
{
var s1 = new Surface();
s1.Name = "a";
s1.Paint(); // Paint
((ISurface)s1).Paint(); // Paint
((IPaintable)s1).Paint(); // Paint
var s2 = new Surface2();
s2.Paint()... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;
/// <summary>
/// Summary description for AppConfig
/// </summary>
namespace nTierWeb01.AppConfig
{
public class AppConfig
{
public AppConfig()
{
//
// TO... |
using System;
using System.Collections.Generic;
using System.Text;
namespace GtmHelpers
{
internal static class GtmScriptBuilder
{
internal static string GenerateScript(string evnt, string category, string action, string label, IDictionary<string,string> customValues)
{
StringBui... |
[CompilerGeneratedAttribute] // RVA: 0xBC400 Offset: 0xBC501 VA: 0xBC400
private sealed class SimpleAsyncResult.<>c__DisplayClass11_0 // TypeDefIndex: 1993
{
// Fields
public Func<SimpleAsyncResult, bool> func; // 0x10
public object locker; // 0x18
public SimpleAsyncCallback callback; // 0x20
// Methods
// RVA:... |
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace AutoStoper.Authorization.Migrations
{
public partial class dateRegisteredPropertyUserAdded : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
... |
using Scada.Comm.Devices;
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("KpModbus")]
[as... |
using Godot;
using System;
public class Main : KinematicBody
{
Vector3 Motion;
bool dragging;
public override void _Ready()
{
MoveAndSlide(Motion);
}
} |
using System;
using System.Windows.Forms;
namespace Sdl.SDK.LanguagePlatform.Samples.TmLookup
{
static class Program
{
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Applicatio... |
@page
@model HorasModel
@using Data
@{
ViewData["Title"] = "Horas Trabajadas";
}
<div class="text-center">
<h1 class="display-4">Horas Trabajadas</h1>
</div>
<div>
<p>
<a asp-page="./Index">Volver</a>
</p>
<p>@Model.Empleado.Rut - @Model.Empleado.Nombre</p>
<table class="table">
... |
@using JoinRpg.Web.Models
@model CreatePaymentTypeViewModel
<div class="form-horizontal">
<div class="form-group">
@Html.LabelFor(model => model.Name, new {@class = "control-label col-md-4"})
<div class="col-md-8">
@Html.EditorFor(model => model.Name, new {htmlAttributes = new {@class ... |
namespace MinimalChess
{
public class History
{
private const int Squares = 64;
private const int Pieces = 12;
private readonly int[,] Positive = new int[Squares, Pieces];
private readonly int[,] Negative = new int[Squares, Pieces];
public void Scale()
{... |
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
using System.Collections.Generic;
using Abp.Dependency;
namespace CricketApplicationWebPortal.Authentication.External
{
public class ExternalAuthConfiguration : IExternalAuthConfiguration, ISingletonDependency
{
public List<ExternalLoginProviderInfo> Providers { get; }
public ExternalAuthConf... |
namespace ObscureWare.Console.Root.Shared.ColorBalancing
{
using System;
using System.Linq;
/// <summary>
/// By MS
/// </summary>
public class WeightedRgbSimilarityColorHeuristic : BaseMicrosoftColorHeuristic
{
/// <inheritdoc />
public override string Name => @"MS Weighte... |
// ------------------------------------------------------------------------------
// <auto-generated>
// Generated by Xsd2Code. Version 3.4.0.18239 Microsoft Reciprocal License (Ms-RL)
// <NameSpace>Mim.V6301</NameSpace><Collection>Array</Collection><codeType>CSharp</codeType><EnableDataBinding>False</EnableDat... |
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
#if WINRT
using XamlAnimatedGif.Extensions;
#endif
namespace XamlAnimatedGif.Decoding
{
internal class GifDataStream
{
public GifHeader Header { get; private set; }
public GifColor[] GlobalColorT... |
using System.Collections.Generic;
using UnityEngine;
using VRoidSDK.Examples.Core.View.Parts;
using VRoidSDK.Examples.CharacterModelExample;
using Component = VRoidSDK.Examples.Core.View.Component;
namespace VRoidSDK.Examples.CharacterModelExample.View
{
public class CharacterModelsView : Component
{
... |
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using Prism.Ioc;
using Prism.Logging;
using Prism.Modularity;
using Prism.Mvvm;
using Prism.Regions;
using Prism.Regions.Behaviors;
namespace Prism
{
/// <summary>
/// Base class that provides a basic b... |
namespace SeptaPay.Api.Client.Net45.Infrastructure {
public static class GlobalConstants {
public const string __CLIENT_API_URL = @"https://api.septapay.com";
}
} |
/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... |
// Copyright 2014, Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicab... |
// c:\program files (x86)\windows kits\10\include\10.0.22000.0\um\d3d12video.h(3230,9)
using System;
using System.Runtime.InteropServices;
namespace DirectN
{
[StructLayout(LayoutKind.Sequential)]
public partial struct D3D12_VIDEO_MOTION_ESTIMATOR_INPUT
{
public IntPtr pInputTexture2D;
pub... |
using System.Collections.Generic;
using System.Threading.Tasks;
using Volvox.Helios.Domain.Discord;
namespace Volvox.Helios.Service.Discord.User
{
public interface IDiscordUserGuildService
{
/// <summary>
/// Get all of the logged in users guilds.
/// </summary>
/// <returns>Li... |
using System.IO;
namespace TypeRightVsix.Shared
{
public static class FileUtils
{
public static void DirectoryCopy(string sourceDirName, string destDirName, bool copySubDirs)
{
// Get the subdirectories for the specified directory.
DirectoryInfo dir = new DirectoryInfo(sourceDirName);
if (!dir.Exists... |
using RPGCore.Behaviour;
using RPGCore.Behaviour.Connections;
namespace RPGCore
{
[NodeInformation("Character/Heal")]
public class HealNode : BehaviourNode
{
public CharacterInput Target;
public EventInput Event;
public IntInput Effect;
protected override void OnSetup(IBehaviourContext context)
{
var... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using ConcurrentCollections;
using WalletWasabi.Backend.Models;
using WalletWasabi.Exceptions;
using WalletWasabi.Helpers;
using WalletWasabi.KeyManagement;
using... |
//-----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
using System;
namespace Microsoft.Samples.WSFederationHttpBinding
{
public class Constants
... |
/*************************************************************************
* Copyright © 2016-2019 Mogoson. All rights reserved.
*------------------------------------------------------------------------
* File : PointerMeterEditor.cs
* Description : Editor for PointerMeter component.
*--------------... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.Diagnostics
{
[Bridge.NonScriptable]
[AttributeUsage(AttributeTargets.Class | AttributeTar... |
using ChocolArm64.Decoders;
using ChocolArm64.Instructions;
using ChocolArm64.Memory;
using ChocolArm64.State;
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Reflection.Emit;
namespace ChocolArm64.Translation
{
class ILEmitterCtx
{
public MemoryManager Memory { ge... |
using System;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using ProCoding.Demos.ASPNETCore.Walkthrough.Models;
namespace ProCoding.Demos.ASPNETCore.Walkthrough.Controllers
{
public class TarefasController : Controller
{
private r... |
namespace OVHCredentials;
using System;
using System.Net.Http;
using System.Net.Http.Json;
using System.Threading;
using System.Threading.Tasks;
internal class TimeDeltaHttpClientProvider
{
private readonly HttpClient httpClient;
public TimeDeltaHttpClientProvider(HttpClient client) => this.httpClient = clie... |
using FluiTec.AppFx.Data;
using FluiTec.AppFx.IdentityServer.Repositories;
namespace FluiTec.AppFx.IdentityServer
{
/// <summary> Interface for identity server unit of work. </summary>
public interface IIdentityServerUnitOfWork : IUnitOfWork
{
/// <summary> Gets the client repository. </summary>
... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Xamarin.Android.Prepare
{
class MonoRuntimesHelpers
{
public static string UtilitiesDestinationDir => Configurables.Paths.InstallMSBuildDir;
public static string BCLRedistListDestinationDir => Configurables.Paths.In... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Windows.Forms;
using Microsoft.Windows.ApplicationModel.Resources;
using Microsoft.Windows.ApplicationModel;
namespace winforms_unpackage... |
////////////////////////////////////////////////////////////////////////////////
//NUnit tests for "EF Core Provider for LCPI OLE DB"
// IBProvider and Contributors. 02.05.2021.
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.S... |
//internal static class DefineConstants
//{
// public const int TARGET_OS_MAC = 1;
// public const int TARGET_OS_WIN32 = 0;
// public const int TARGET_OS_UNIX = 0;
////C++ TO C# CONVERTER TODO TASK: The following #define constant was defined in different ways:
// public const int TARGET_CPU_PPC = 1;
// public const in... |
namespace SimpleSence.Northwind.Endpoints
{
using Serenity.Data;
using Serenity.Services;
using System.Data;
using System.Web.Mvc;
using MyRepository = Repositories.ProductLangRepository;
using MyRow = Entities.ProductLangRow;
[RoutePrefix("Services/Northwind/ProductLang"), Route("{action... |
using Atlas.Tabs;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Data;
using Avalonia.Layout;
using Avalonia.Media;
using Avalonia.Styling;
using System;
namespace Atlas.UI.Avalonia.Controls
{
public class TabControlCheckBox : CheckBox, IStyleable, ILayoutable
{
Type IStyleable.StyleKey => typeof(CheckBox... |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.EntityFrameworkCore.Internal;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Metadata.Conventions.Int... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SidescrollerAnimationController : MonoBehaviour {
public PlatformerCharacter myPlayer;
public Animator myAnimator;
public float runVelocityScale = .15f;
// Use this for initialization
void Start () {
}
... |
using System;
using System.Text.Json;
using System.Text.Json.Serialization;
using Json.Pointer;
namespace Json.Schema;
/// <summary>
/// Handles `$recursiveRef`.
/// </summary>
[SchemaKeyword(Name)]
[SchemaDraft(Draft.Draft201909)]
[Vocabulary(Vocabularies.Core201909Id)]
[JsonConverter(typeof(RecursiveRefKeywordJson... |
namespace SCViewAndWindow.Client
{
partial class ViewEditUserControl
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if ma... |
/*
Copyright (c) 2019-2021 Integrative Software LLC
Created: 11/2019
Author: Pablo Carbonell
*/
using Microsoft.AspNetCore.Http;
using Moq;
using System;
using System.Diagnostics.CodeAnalysis;
using System.Net;
namespace Integrative.Lara.Tests.Middleware
{
internal class DummyContext : BaseContext, IPageContext,... |
using JetBrains.Annotations;
namespace Sholo.HomeAssistant.Client.Context
{
[PublicAPI]
public interface IHomeAssistantEntitiesContext
{
IHomeAssistantContext Context { get; }
}
} |
// <copyright file="BaseBans.cs" company="Steve Guidetti">
// Copyright (c) Steve Guidetti. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
// </copyright>
namespace SevenMod.Plugin.BaseBans
{
using SevenMod.Admin;
using SevenMod.C... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Core.Pipe... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System.Text.RegularExpressions;
public class TextControl : MonoBehaviour
{
//i have an error about needing to submit twice no idea why it's happening
public Text JokeText;
public Text JokeAnswerText;... |
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using XFSurfaceDuoSample2020.Models;
namespace XFSurfaceDuoSample2020.Services
{
public interface ITimeTableDataStore
{
Task<bool> AddItemAsync(TimeTableItem item);
Task<bool> UpdateItemAsync(TimeTableItem item);
... |
// Generated class v2.19.0.0, don't modify
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
namespace NHtmlUnit.Javascript.Host.Dom
{
public partial class Comment : NHtmlUnit.Javascript.Host.Dom.CharacterData
{
static Comment()
... |
@model HtmlMenuItemPartEditViewModel
<h5>@T["Html Menu Item"]</h5>
<div class="form-group">
<label asp-for="Name">@T["Name"]</label>
<input asp-for="Name" class="form-control" autofocus />
</div>
<div class="form-group">
<label asp-for="Url">@T["Url"]</label>
<input asp-for="Url" class="form-control"... |
#if !NETSTANDARD2_1
using System.Runtime.Serialization;
#else
using System.Text.Json.Serialization;
#endif
namespace Docker.DotNet.Models
{
#if !NETSTANDARD2_1
[DataContract]
#endif
public class SecretCreateResponse // (main.SecretCreateResponse)
{
#if NETSTANDARD2_1
[JsonPropertyName("ID")]
#else
... |
namespace System.Linq
{
public static class QueryableExtensions
{
public static IQueryable<T> SelectPage<T>(this IQueryable<T> enumerable, int pageNumber, int pageSize)
{
return enumerable.Skip(pageSize * (pageNumber - 1)).Take(pageSize);
}
}
} |
using Azure;
using Azure.Messaging.EventGrid;
using AzureMessagingDemos.Interfaces;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace AzureMessagingDemos
{
public class EventGridConnector
{
private readonly EventGridPublisherClient _sender;
public EventGr... |
@model Dropdowns.Models.UserProfileModel
@{
ViewBag.Title = String.Format("Welcome, {0} {1}", Model.FirstName, Model.LastName);
}
<div class="row">
<div class="col-sm-4 col-sm-offset-4">
<h2>Welcome, @Model.FirstName @Model.LastName</h2>
<div class="panel panel-default">
... |
namespace EnvironmentAssessment.Common.VimApi
{
public class HostStorageOperationalInfo : DynamicData
{
protected string _property;
protected string _value;
public string Property
{
get
{
return this._property;
}
set
{
this._property = value;
}
}
public string Value
{
get
... |
using System;
using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
namespace Fumec.Mobile.Droid
{
[Activity(Label = "Fumec.Mobile", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChan... |
namespace Interapp.Web.Areas.Student.ViewModels.Universities
{
using System.Collections.Generic;
using Data.Models;
using Infrastructure.Mapping;
public class UniversityViewModel : IMapFrom<University>
{
public int Id { get; set; }
public string Name { get; set; }
public ... |
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// re... |
using System;
using System.Globalization;
using System.Threading;
using System.Linq;
using NUnit.Framework;
using System.Collections.Generic;
namespace DotLiquid.Tests
{
[TestFixture]
public class StandardFilterTests
{
private Context _contextV20;
private Context _contextV21;
privat... |
using System.Collections.Generic;
namespace DcSharp
{
public class DcDoubleRange
{
public class Range
{
public double Min { get; set; }
public double Max { get; set; }
}
public List<Range> Ranges = new List<Range>();
public void Add(dou... |
using NDesk.Options;
using System;
using System.Collections.Generic;
using System.IO;
using System.Resources;
using System.Text;
using ysoserial.Helpers;
using ysoserial.Helpers.ModifiedVulnerableBinaryFormatters;
namespace ysoserial.Generators
{
public class ResourceSetGenerator : GenericGenerator
{
... |
// ****************************************************************
// This is free software licensed under the NUnit license. You may
// obtain a copy of the license at http://nunit.org
// ****************************************************************
using System;
using System.Collections.Generic;
using System.Te... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... |
using J2N.IO;
using J2N.IO.MemoryMappedFiles;
using J2N.Numerics;
using Lucene.Net.Support;
using System;
using System.Diagnostics;
using System.IO;
using System.IO.MemoryMappedFiles;
namespace Lucene.Net.Store
{
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor licens... |
using System;
using Avalonia;
using Avalonia.Markup.Xaml;
namespace Tel.Egram.Application
{
public class MainApplication : Avalonia.Application
{
public event EventHandler Initializing;
public event EventHandler Disposing;
public override void Initialize()
{
... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Runtime.Serialization;
using AtspmApi.Repositories;
namespace AtspmApi.Models
{
//[DataContract]
... |
using System.Linq;
using System.Text.RegularExpressions;
namespace FuzzySharp.SimilarityRatio.Scorer.StrategySensitive
{
public abstract class TokenInitialismScorerBase : StrategySensitiveScorerBase
{
public override int Score(string input1, string input2)
{
string shorter;
... |
using System.Collections.Generic;
using MySql.Data.MySqlClient;
using System;
using Microsoft.AspNetCore.Mvc;
using HairSalon;
namespace HairSalon.Models
{
public class Stylist
{
private int _id;
private string _name;
public Stylist(string name, int id = 0)
{
_id = id;
_name = name;
}... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _04.Triple_Sum
{
class Program
{
static void Main(string[] args)
{
int[] array = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
bool... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Identity.Client.ApiConfig.Parameters;
using Microsoft.Identity.Client.Cache.Items;
using Microsoft.Identity.Client.Cor... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media.Media3D;
// Miscellaneous 3D extensions.
namespace StackedBarChart
{
public static class D3
{
// Make a transformation for rotation arou... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.Diagnostics.Monitoring.EventPipe;
using Microsoft.Diagnostics.Monitoring.EventPipe.Triggers;
using ... |
namespace RefReturns;
public class Box
{
private readonly Large _large = default;
public Large Large => _large;
} |
using MediatR;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Ordering.Application.Features.Orders.Commands.CheckoutOrder;
using Ordering.Application.Features.Orders.Commands.DeleteOrder;
using Ordering.Application.Features.Orders.Commands.UpdateOrder;
using Ordering.Application.Features.Orders... |
using System;
using System.Collections.Generic;
namespace MockGen.Setup
{
internal abstract class MethodSetup : MethodSetupBase, IMethodSetup
{
protected int numberOfCalls;
protected new ActionConfiguration currentConfiguration;
internal MethodSetup()
{
currentConf... |
// <auto-generated />
namespace Lpp.Dns.Data.Migrations
{
using System.CodeDom.Compiler;
using System.Data.Entity.Migrations;
using System.Data.Entity.Migrations.Infrastructure;
using System.Resources;
[GeneratedCode("EntityFramework.Migrations", "6.1.0-30225")]
public sealed partial class ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
namespace Azure.Batch.Models
{
/// <summary> The state of the StartTask on the Compute Node. </summary>
public enum StartTaskState
{
/// <summary> The StartTask i... |
@using Abp.Authorization.Users
@model YUNXI.EDUS.Web.Models.Account.RegisterViewModel
@section Styles
{
<link href="~/Views/Account/Login.css" rel="stylesheet" />
}
@section Scripts{
<script type="text/javascript" src="~/Views/Account/Register.js"></script>
}
<div class="card">
<div class="body">
<... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace FtpServer.Tests
{
public class Assert : global::Xunit.Assert
{
public static void PortIsOpen(int port) {
bool isPortOpen = ch... |
namespace ClassLib001
{
public class Class010
{
public static string Property => "ClassLib001";
}
} |
namespace Fabric.Metadata.FileService.Client.Utils
{
using System;
using System.IO;
using System.Security.Cryptography;
public class Md5AppendingHasher : IDisposable
{
// ReSharper disable once InconsistentNaming
private readonly MD5 md5Hasher = MD5.Create();
public Md5App... |
// ReSharper disable StringLiteralTypo
// ReSharper disable SuggestVarOrType_BuiltInTypes
namespace TeamCity.CSharpInteractive.Tests.UsageScenarios
{
using System;
using Cmd;
using Shouldly;
using Xunit;
public class CommandLineSimple: Scenario
{
[SkippableFact]
public void Run(... |
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using SintefSecureBoilerplate.DAL.Identity;
namespace SintefSecureBoilerplate.DAL.Migrations
{
[DbContext(typeof(Iden... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Leopard.Template.WebAPI.Utils
{
public class LocalSystemClock : Microsoft.Extensions.Internal.ISystemClock
{
public DateTimeOffset UtcNow => DateTime.Now;
}
} |
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using Ocuda.Ops.Data.Extensions;
using Ocuda.Ops.Service.Filters;
using Ocuda.Ops.Service.Interfaces.Promenade.Repositories;
using Ocuda.Promenade.Models.Entities;... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Quoridor.Models
{
public class AIPlayer:Player
{
public AIPlayer(Pawn pawn)
{
Pawn = pawn;
Name = "Player " + Id;
}
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.