doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
60cf7699-9f25-4ab0-8389-46d289759462
{ "language": "C#" }
```c# using System; using System.Linq; using System.Threading.Tasks; using Bug2211; using Marten; using Marten.Testing.Harness; using Shouldly; using Weasel.Core; using Xunit; namespace DocumentDbTests.Bugs { public class Bug_2211_select_transform_inner_object: BugIntegrationContext { [Fact] pu...
```c# using System; using System.Linq; using System.Threading.Tasks; using Bug2211; using Marten; using Marten.Testing.Harness; using Shouldly; using Weasel.Core; using Xunit; namespace DocumentDbTests.Bugs { public class Bug_2211_select_transform_inner_object: BugIntegrationContext { [Fact] pu...
6f212a2a-2748-48d0-b3fb-c2415230e2e1
{ "language": "C#" }
```c# using System.Collections; using System.Collections.Generic; using LiteNetLib.Utils; using UnityEngine; namespace LiteNetLibHighLevel { public class ServerSpawnSceneObjectMessage : LiteNetLibMessageBase { public uint objectId; public Vector3 position; public override void Deseria...
```c# using System.Collections; using System.Collections.Generic; using LiteNetLib.Utils; using UnityEngine; namespace LiteNetLibHighLevel { public class ServerSpawnSceneObjectMessage : ILiteNetLibMessage { public uint objectId; public Vector3 position; public void Deserialize(NetData...
80ec8afb-01e9-438f-a0b4-c4747db5e5df
{ "language": "C#" }
```c# //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18449 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated...
```c# //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18449 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated...
6da40569-863f-4b9a-984b-ddec441ae8a6
{ "language": "C#" }
```c# using UnityEngine; namespace Pear.InteractionEngine.Converters { /// <summary> /// Converts a Vector2 to Vector3 /// </summary> public class Vector2ToVector3 : MonoBehaviour, IPropertyConverter<Vector2, Vector3> { public Vector3 Convert(Vector2 convertFrom) { return convertFrom; } } } ``` Add mo...
```c# using System; using System.Collections.Generic; using UnityEngine; namespace Pear.InteractionEngine.Converters { /// <summary> /// Converts a Vector2 to Vector3 /// </summary> public class Vector2ToVector3 : MonoBehaviour, IPropertyConverter<Vector2, Vector3> { [Tooltip("Where should the X val...
170c8fa8-ef2d-483a-9f5d-45422bb6ea13
{ "language": "C#" }
```c# 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("KeyPay")] [assembly: AssemblyDescrip...
```c# 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("KeyPay")] [assembly: AssemblyDescrip...
a413aa7c-ee9a-4f79-86e8-6e2d779816a2
{ "language": "C#" }
```c# @{ ViewBag.Title = "Home Page"; } <div class="col-md-5"> <h1> Vendo 5.0 </h1> <p class="lead">The Future of Vending Machines</p> <p class="text-justify"> Vendo 5.0 is among the first digitally integrated vending machines of the 21st century. It's...
```c# @{ ViewBag.Title = "Home Page"; } <div class="col-md-5"> <h1> Vendo 5.0 </h1> <p class="lead">The Future of Vending Machines</p> <p class="text-justify"> Vendo 5.0 is among the first digitally integrated vending machines of the 21st century. It's...
79810ebf-2d8c-456a-853a-81e445ec13d9
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyCompany("Yevgeniy Shunevych")] [assembly: AssemblyProduct("Atata")] [assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2016")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: AssemblyVersion("0.6...
```c# using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyCompany("Yevgeniy Shunevych")] [assembly: AssemblyProduct("Atata")] [assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2016")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: AssemblyVers...
2f3162a2-8fe3-41ea-b783-e4f1a18fbb72
{ "language": "C#" }
```c# using System; using LinqToTTreeInterfacesLib; namespace LINQToTTreeLib.Variables { /// <summary> /// A simple variable (like int, etc.). /// </summary> public class VarSimple : IVariable { public string VariableName { get; private set; } public string RawValue { ge...
```c# using System; using LinqToTTreeInterfacesLib; namespace LINQToTTreeLib.Variables { /// <summary> /// A simple variable (like int, etc.). /// </summary> public class VarSimple : IVariable { public string VariableName { get; private set; } public string RawValue { ge...
f1de2da5-d9f1-495c-9af4-6e94b0f50085
{ "language": "C#" }
```c# // 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 System.IO; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using Mic...
```c# // 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 System.IO; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using Mic...
538163b9-7b0a-4ca4-bc4b-8913423dfb09
{ "language": "C#" }
```c# // ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // =====================...
```c# // ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // =====================...
9971b18e-6039-4018-ba30-29d15d0f2097
{ "language": "C#" }
```c# using System.Linq; using Diploms.Dto; using Microsoft.AspNetCore.Mvc; namespace Diploms.WebUI { public static class ControllerExtensions { public static OperationResult GetErrors(this Controller controller, object model) { var result = new OperationResult(); if (m...
```c# using System.Linq; using Diploms.Dto; using Microsoft.AspNetCore.Mvc; namespace Diploms.WebUI { public static class ControllerExtensions { public static OperationResult GetErrors(this Controller controller, object model) { var result = new OperationResult(); if (m...
ba333ca7-2335-4d97-aa16-df07eb85dde0
{ "language": "C#" }
```c# using System.Linq; using System.Text; using System.Threading.Tasks; using HipChatConnect.Controllers.Listeners.Github.Models; using HipChatConnect.Controllers.Listeners.TeamCity; namespace HipChatConnect.Controllers.Listeners.Github { public class GithubAggregator { private IHipChatRoom Room { g...
```c# using System.Linq; using System.Text; using System.Threading.Tasks; using HipChatConnect.Controllers.Listeners.Github.Models; using HipChatConnect.Controllers.Listeners.TeamCity; namespace HipChatConnect.Controllers.Listeners.Github { public class GithubAggregator { private IHipChatRoom Room { g...
dc99fbbd-e980-40cf-a31d-fa2c711bd001
{ "language": "C#" }
```c# using System.Reflection; using Microsoft.Xna.Framework; using CocosDenshion; using CocosSharp; namespace Chess_Demo { class AppDelegate : CCApplicationDelegate { static CCWindow sharedWindow; public static CCWindow SharedWindow { get { return sharedWindow; } ...
```c# using System.Reflection; using Microsoft.Xna.Framework; using CocosDenshion; using CocosSharp; namespace Chess_Demo { class AppDelegate : CCApplicationDelegate { static CCWindow sharedWindow; public static CCWindow SharedWindow { get { return sharedWindow; } ...
ad0b1650-5e03-4284-8c4a-9a423eec730c
{ "language": "C#" }
```c# using Medallion.OData.Sql; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Medallion.OData.Samples.Web.Models { public class Provider : DatabaseProvider { protected override string GetSqlTypeName(Trees.ODataExpressionType oDataType) { ...
```c# using Medallion.OData.Service.Sql; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Medallion.OData.Samples.Web.Models { public class Provider : DatabaseProvider { protected override string GetSqlTypeName(Trees.ODataExpressionType oDataType) ...
10c48f98-c2fc-4600-b57e-5901c971a39a
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; namespace MemoryGames { public class CardRandomPosition { private List<CardFace> gameCard = new List<CardFace>(); private string[] cardName = new string[8];//here will be the name of the card private Random randomGe...
```c# using System; using System.Collections.Generic; using System.Linq; namespace MemoryGames { public class CardRandomPosition { public static CardFace[,] GetRandomCardFace(int dimentionZero, int dimentionOne) { const int pair = 2; const int pairCount = 9; ...
2f1c7afc-a7de-4d65-972b-6fc273e87c00
{ "language": "C#" }
```c# /* **************************************************************************** * * Copyright (c) Microsoft Corporation. * * This source code is subject to terms and conditions of the Apache License, Version 2.0. A * copy of the license can be found in the License.html file at the root of this distributio...
```c# /* **************************************************************************** * * Copyright (c) Microsoft Corporation. * * This source code is subject to terms and conditions of the Apache License, Version 2.0. A * copy of the license can be found in the License.html file at the root of this distributio...
8b34e60a-103b-4e6d-80fe-97a1e67a03ec
{ "language": "C#" }
```c# using BatteryCommander.Web.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace BatteryCommander.Web.Controllers.API { public class WeaponsController : ApiController { public Weap...
```c# using BatteryCommander.Web.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using System.Linq; using System.Threading.Tasks; namespace BatteryCommander.Web.Controllers.API { public class WeaponsController : ApiController { public WeaponsController(Database db) : base(...
c7397809-e94e-4bbb-a180-e33cf5fddd9f
{ "language": "C#" }
```c# using System.Threading.Tasks; using Auth0.AuthenticationApi; using Auth0.AuthenticationApi.Models; using Microsoft.Extensions.Configuration; namespace Auth0.Tests.Shared { public class TestBase { private readonly IConfigurationRoot _config; public TestBase() { _confi...
```c# using System; using System.Threading.Tasks; using Auth0.AuthenticationApi; using Auth0.AuthenticationApi.Models; using Microsoft.Extensions.Configuration; namespace Auth0.Tests.Shared { public class TestBase { private readonly IConfigurationRoot _config; public TestBase() { ...
4cb75909-d278-4d8a-b12b-dcc62ec284f2
{ "language": "C#" }
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="Program.cs" company="Quartz Software SRL"> // Copyright (c) Quartz Software SRL. All rights reserved. // </copyright> // <summary> // Implements the program class. // </...
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="Program.cs" company="Quartz Software SRL"> // Copyright (c) Quartz Software SRL. All rights reserved. // </copyright> // <summary> // Implements the program class. // </...
14e6f43f-341c-4bd5-ba39-248363362a2f
{ "language": "C#" }
```c# using System; namespace Satrabel.OpenContent.Components.TemplateHelpers { public class Ratio { private readonly float _ratio; public int Width { get; private set; } public int Height { get; private set; } public float AsFloat { get { return (float)Wid...
```c# using System; namespace Satrabel.OpenContent.Components.TemplateHelpers { public class Ratio { private readonly float _ratio; public int Width { get; private set; } public int Height { get; private set; } public float AsFloat { get { return (float)Wid...
f78b5ea8-9966-4adf-8194-ebf00b5f6fe3
{ "language": "C#" }
```c# using System; using TeaCommerce.Api.Dependency; using TeaCommerce.Api.Infrastructure.Caching; using Umbraco.Core; using Umbraco.Core.Cache; namespace TeaCommerce.Umbraco.Application.Caching { [SuppressDependency("TeaCommerce.Api.Infrastructure.Caching.ICacheService", "TeaCommerce.Api")] public class Umb...
```c# using System; using TeaCommerce.Api.Dependency; using TeaCommerce.Api.Infrastructure.Caching; using Umbraco.Core; using Umbraco.Core.Cache; namespace TeaCommerce.Umbraco.Application.Caching { [SuppressDependency("TeaCommerce.Api.Infrastructure.Caching.ICacheService", "TeaCommerce.Api")] public class Umb...
44bc58ff-4089-407e-baa4-0ca5502232b9
{ "language": "C#" }
```c# public class StudentControllerTests { [SetUp] public void Setup() { _fixture = new DatabaseFixture(); _controller = new StudentController(new StudentRepository(_fixture.Context)); } [Test] public void IndexAction_ShowsAllStudentsOrderedByName() { var expectedStudents = new List<Student>...
```c# public class StudentControllerTests { [SetUp] public void Setup() { _fixture = new DatabaseFixture(); _controller = new StudentController(new StudentRepository(_fixture.Context)); } [Test] public void IndexAction_ShowsAllStudentsOrderedByName() { var expectedStudents = new List<Student>...
98a02eea-89b2-4615-b397-133c919b98dc
{ "language": "C#" }
```c# using UnityEditor; using UnityEngine; namespace GoogleMobileAds.Editor { [InitializeOnLoad] [CustomEditor(typeof(GoogleMobileAdsSettings))] public class GoogleMobileAdsSettingsEditor : UnityEditor.Editor { [MenuItem("Assets/Google Mobile Ads/Settings...")] public static void Open...
```c# using UnityEditor; using UnityEngine; namespace GoogleMobileAds.Editor { [InitializeOnLoad] [CustomEditor(typeof(GoogleMobileAdsSettings))] public class GoogleMobileAdsSettingsEditor : UnityEditor.Editor { [MenuItem("Assets/Google Mobile Ads/Settings...")] public static void Open...
3b68337d-a710-42f3-bc7c-8356ae80077f
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Text; namespace Novell.Directory.Ldap { internal static partial class ExtensionMethods { /// <summary> /// Is the given collection null, or Empty (0 elements)? /// </summary> internal static bool IsEmpty<T>(this IReadOnlyColl...
```c# using System; using System.Collections.Generic; using System.Text; namespace Novell.Directory.Ldap { internal static partial class ExtensionMethods { /// <summary> /// Shortcut for <see cref="string.IsNullOrEmpty"/> /// </summary> internal static bool IsEmpty(this string ...
99028c06-4f5c-4f0c-9046-2578d303da1e
{ "language": "C#" }
```c# // TodoItem.cs // using System; using System.Runtime.CompilerServices; namespace Todo { [Imported] [IgnoreNamespace] [ScriptName("Object")] internal sealed class TodoItem { public bool Completed; [ScriptName("id")] public string ID; public string Title; } ...
```c# // TodoItem.cs // using System; using System.Runtime.CompilerServices; namespace Todo { [ScriptImport] [ScriptIgnoreNamespace] [ScriptName("Object")] internal sealed class TodoItem { public bool Completed; [ScriptName("id")] public string ID; public string Tit...
f98daa4a-a474-439e-9447-9928bab39dff
{ "language": "C#" }
```c# using System.Collections.Generic; using BugsnagUnity.Payload; using UnityEngine; namespace BugsnagUnity { static class DictionaryExtensions { internal static void PopulateDictionaryFromAndroidData(this IDictionary<string, object> dictionary, AndroidJavaObject source) { using (var set = source.C...
```c# using System; using System.Collections.Generic; using BugsnagUnity.Payload; using UnityEngine; namespace BugsnagUnity { static class DictionaryExtensions { private static IntPtr Arrays { get; } = AndroidJNI.FindClass("java/util/Arrays"); private static IntPtr ToStringMethod { get; } = AndroidJNIHelp...
3c52d470-51de-4cd5-8931-623ef002dd64
{ "language": "C#" }
```c# namespace SIM.Tool.Windows.MainWindowComponents { using System; using System.IO; using System.Windows; using Sitecore.Diagnostics.Base; using JetBrains.Annotations; using SIM.Core; using SIM.Instances; using SIM.Tool.Base; using SIM.Tool.Base.Plugins; [UsedImplicitly] public class CreateSup...
```c# namespace SIM.Tool.Windows.MainWindowComponents { using System; using System.IO; using System.Windows; using Sitecore.Diagnostics.Base; using JetBrains.Annotations; using SIM.Core; using SIM.Instances; using SIM.Tool.Base; using SIM.Tool.Base.Plugins; [UsedImplicitly] public class CreateSup...
b8f75df8-6ca7-48a6-93ce-0a00a0411b74
{ "language": "C#" }
```c# using System; using Faithlife.Build; internal static class Build { public static int Main(string[] args) => BuildRunner.Execute(args, build => { build.AddDotNetTargets( new DotNetBuildSettings { DocsSettings = new DotNetDocsSettings { GitLogin = new GitLoginInfo("faithlifebuildbot", Enviro...
```c# using System; using Faithlife.Build; internal static class Build { public static int Main(string[] args) => BuildRunner.Execute(args, build => { build.AddDotNetTargets( new DotNetBuildSettings { DocsSettings = new DotNetDocsSettings { GitLogin = new GitLoginInfo("faithlifebuildbot", Enviro...
713d88ad-9262-4509-9267-8c69e784952b
{ "language": "C#" }
```c# using System; using System.Linq; using ExactTarget.TriggeredEmail.ExactTargetApi; namespace ExactTarget.TriggeredEmail.Core { public class ExactTargetResultChecker { public static void CheckResult(Result result) { if (result == null) { throw new Ex...
```c# using System; using System.Linq; using ExactTarget.TriggeredEmail.ExactTargetApi; namespace ExactTarget.TriggeredEmail.Core { public class ExactTargetResultChecker { public static void CheckResult(Result result) { if (result == null) { throw new Ex...
49350a1b-ba83-43ac-860d-edee160cf986
{ "language": "C#" }
```c# namespace EfMigrationsBug.Migrations { using System; using System.Data.Entity.Migrations; public partial class ChangePkType : DbMigration { public override void Up() { DropPrimaryKey("dbo.Foos"); AlterColumn("dbo.Foos", "ID", c => c.Int(nullab...
```c# namespace EfMigrationsBug.Migrations { using System; using System.Data.Entity.Migrations; public partial class ChangePkType : DbMigration { public override void Up() { DropTable("dbo.Foos"); CreateTable( "dbo.Foos", ...
3a5713db-d532-4bee-81e3-3000f41e01db
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Aurio.Streams { public class MemoryWriterStream : MemorySourceStream, IAudioWriterStream { public MemoryWriterStream(MemoryStream target, AudioProperties properties) : base(ta...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Aurio.Streams { public class MemoryWriterStream : MemorySourceStream, IAudioWriterStream { public MemoryWriterStream(MemoryStream target, AudioProperties properties) : base(ta...
9a9c7c61-9dbf-4f73-a73d-d4adb8b0eb24
{ "language": "C#" }
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="TypeExtensions.cs" company="OxyPlot"> // Copyright (c) 2014 OxyPlot contributors // </copyright> // <summary> // Provides extension methods for types. // </summary> // -...
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="TypeExtensions.cs" company="OxyPlot"> // Copyright (c) 2014 OxyPlot contributors // </copyright> // <summary> // Provides extension methods for types. // </summary> // -...
f3ecdc38-189d-4bc9-9856-8517578397bf
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Platform.Linux.Native; using osu.Framework.Platform.Linux.Sdl; using osuTK; namespace osu.Framework.Platform.Linux { public class LinuxGam...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Platform.Linux.Native; using osu.Framework.Platform.Linux.Sdl; using osuTK; namespace osu.Framework.Platform.Linux { public class LinuxGam...
954519bd-59f4-4d83-9d94-89877c83e919
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace mdryden.cflapi.v1.Models.Games { public class LineScore { [JsonProperty(PropertyName = "quarter")] public int Quarter { get; set; } [JsonProperty(Property...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace mdryden.cflapi.v1.Models.Games { public class LineScore { [JsonProperty(PropertyName = "quarter")] public Quarters Quarter { get; set; } [JsonProperty(Pro...
f55eb33b-61da-467f-add8-d777694504cb
{ "language": "C#" }
```c# using System.Linq; using EPiServer.Core; namespace Meridium.EPiServer.Migration.Support { public class SourcePage { public string TypeName { get; set; } public PropertyDataCollection Properties { get; set; } public TValue GetValue<TValue>(string propertyName, TValue @default = defaul...
```c# using System.Linq; using EPiServer.Core; namespace Meridium.EPiServer.Migration.Support { public class SourcePage { public string TypeName { get; set; } public PropertyDataCollection Properties { get; set; } public TValue GetValue<TValue>(string propertyName, TValue @default = defaul...
5f937be9-4194-4498-bc01-e361ce21378a
{ "language": "C#" }
```c# using System.Collections.Generic; using System.IO; using System.Linq; using System.Web; namespace Templar { public class TemplateSource : IContentSource { private readonly string global; private readonly Compiler compiler; private readonly TemplateFinder finder; public T...
```c# using System.Collections.Generic; using System.IO; using System.Linq; using System.Web; namespace Templar { public class TemplateSource : IContentSource { private readonly string global; private readonly Compiler compiler; private readonly TemplateFinder finder; public T...
371ba758-61b4-4237-80b7-bf8b0c1adb44
{ "language": "C#" }
```c# namespace Moya.Runner.Console { public struct OptionArgumentPair { public string Option { get; set; } public string Argument { get; set; } public static OptionArgumentPair Create(string stringFromCommandLine) { string[] optionAndArgument = stringFromCommandLi...
```c# namespace Moya.Runner.Console { using System.Linq; public struct OptionArgumentPair { public string Option { get; set; } public string Argument { get; set; } public static OptionArgumentPair Create(string stringFromCommandLine) { string[] optionAndArgume...
9c678871-7151-4e90-b62c-56a3bd1d5706
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. namespace osu.Game.Online.RealtimeMultiplayer { public enum MultiplayerUserState { Idle, Ready, WaitingForLoad, Loaded, ...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. namespace osu.Game.Online.RealtimeMultiplayer { public enum MultiplayerUserState { /// <summary> /// The user is idle and waiting for someth...
9b6fc73c-657c-4cfc-83cf-09c1771b8785
{ "language": "C#" }
```c# using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; namespace CollAction.ValidationAttributes { public class RichTextRequiredAttribute : ValidationAttribute, IClientModelValidator { public void AddValidation(ClientModelValidationContext context) ...
```c# using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; namespace CollAction.ValidationAttributes { public class RichTextRequiredAttribute : RequiredAttribute, IClientModelValidator { public void AddValidation(ClientModelValidationContext conte...
c4631f19-7da0-4753-8806-1a68f2f88140
{ "language": "C#" }
```c# namespace QuizFactory.Data.Migrations { using System; using System.Data.Entity.Migrations; using System.Linq; using QuizFactory.Data; internal sealed class Configuration : DbMigrationsConfiguration<QuizFactoryDbContext> { public Configuration() { this.Automatic...
```c# namespace QuizFactory.Data.Migrations { using System; using System.Data.Entity.Migrations; using System.Linq; using QuizFactory.Data; internal sealed class Configuration : DbMigrationsConfiguration<QuizFactoryDbContext> { public Configuration() { this.Automatic...
76baf323-2477-4f32-87b0-6c2925de2aaf
{ "language": "C#" }
```c# using AutoMapper; using MediatR; using SupportManager.DAL; using SupportManager.Web.Infrastructure.CommandProcessing; namespace SupportManager.Web.Features.User { public class CreateCommandHandler : RequestHandler<CreateCommand> { private readonly SupportManagerContext db; public Create...
```c# using SupportManager.DAL; using SupportManager.Web.Infrastructure.CommandProcessing; namespace SupportManager.Web.Features.User { public class CreateCommandHandler : RequestHandler<CreateCommand> { private readonly SupportManagerContext db; public CreateCommandHandler(SupportManagerCont...
ef316a83-affc-496a-a34b-499ba586a725
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; using Firehose.Web.Infrastructure; namespace Firehose.Web.Authors { public class NicholasMGetchell : IAmACommunityMember { public string FirstName => "Nicholas"; pub...
```c# using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; using Firehose.Web.Infrastructure; namespace Firehose.Web.Authors { public class NicholasMGetchell : IAmACommunityMember { public string FirstName => "Nicholas"; pub...
e3ad6ff3-dd6a-42d8-ae5e-7e47c2a956b6
{ "language": "C#" }
```c# using System; using Newtonsoft.Json; namespace Storage.Net.Microsoft.Azure.DataLake.Store.Gen2.Models { public class DirectoryItem { [JsonProperty("contentLength")] public int? ContentLength { get; set; } [JsonProperty("etag")] public DateTime Etag { get; set; } [JsonProperty("group")]...
```c# using System; using Newtonsoft.Json; namespace Storage.Net.Microsoft.Azure.DataLake.Store.Gen2.Models { public class DirectoryItem { [JsonProperty("contentLength")] public int? ContentLength { get; set; } [JsonProperty("etag")] public string Etag { get; set; } [JsonProperty("group")] p...
4c7892aa-1e25-4689-b781-760930be66a1
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Linq; using System.Net.Http.Formatting; using System.Web.Http.Controllers; using System.Web.Http.ModelBinding; namespace Umbraco.Web.WebApi.Filters { /// <summary> /// Allows an Action to execute with an arbitrary number of QueryStrings /// </summary> ...
```c# using System.Collections.Generic; using System.Linq; using System.Net.Http.Formatting; using System.Web.Http.Controllers; using System.Web.Http.ModelBinding; using Umbraco.Core; namespace Umbraco.Web.WebApi.Filters { /// <summary> /// Allows an Action to execute with an arbitrary number of QueryStrings ...
b5339b36-36be-476d-be38-e7801561e853
{ "language": "C#" }
```c# using System.Collections.Generic; using Promact.Trappist.DomainModel.Models.Question; using System.Linq; using Promact.Trappist.DomainModel.DbContext; namespace Promact.Trappist.Repository.Questions { public class QuestionRepository : IQuestionRespository { private readonly TrappistDbContext _db...
```c# using System.Collections.Generic; using Promact.Trappist.DomainModel.Models.Question; using System.Linq; using Promact.Trappist.DomainModel.DbContext; namespace Promact.Trappist.Repository.Questions { public class QuestionRepository : IQuestionRespository { private readonly TrappistDbContext _db...
6e8c61f0-46d8-4124-ad9d-41e719701ad7
{ "language": "C#" }
```c# 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("TsAnalyser")] [assembly: AssemblyDe...
```c# 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("TsAnalyser")] [assembly: AssemblyDe...
81be36b6-f29a-4893-a756-c141c8ba0c5f
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; namespace Solomobro.Instagram.Tests.WebApi { [TestFixture] public class AuthSettingsTests { //WebApiDemo.Settings.EnvironmentManager. } } ``` Add un...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; using Solomobro.Instagram.WebApiDemo.Settings; namespace Solomobro.Instagram.Tests.WebApi { [TestFixture] public class AuthSettingsTests { ...
29c361fd-36bb-4fc9-abe8-d5ccd9d02e06
{ "language": "C#" }
```c# using System; namespace MultiMiner.Xgminer { //marked Serializable to allow deep cloning of CoinConfiguration [Serializable] public class MiningPool { public string Host { get; set; } public int Port { get; set; } public string Username { get; set; } public string...
```c# using System; namespace MultiMiner.Xgminer { //marked Serializable to allow deep cloning of CoinConfiguration [Serializable] public class MiningPool { public MiningPool() { //set defaults Host = String.Empty; Username = String.Empty; ...
900f819d-6930-4e59-b638-b68d1fd2432e
{ "language": "C#" }
```c# // Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Globalization; namespace NuGet { public static class PackageIdValidator { internal const int Ma...
```c# // Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Globalization; using System.Text.RegularExpressions; namespace NuGet { public static class PackageIdValidat...
e9051524-3ee4-417f-ae6d-6781b964ef24
{ "language": "C#" }
```c# //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.34003 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-ge...
```c# //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18051 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-ge...
bb818d4d-301f-45af-8338-bf350b3a5fbd
{ "language": "C#" }
```c# //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.34003 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-ge...
```c# //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18051 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-ge...
386e4b1c-689e-4ba5-bd0d-4d79b5b56073
{ "language": "C#" }
```c# // <copyright file="PackageBuildList.cs" company="Mark Final"> // Opus // </copyright> // <summary>Opus Core</summary> // <author>Mark Final</author> namespace Opus.Core { public class PackageBuild { public PackageBuild(PackageIdentifier id) { this.Name = id.Name; ...
```c# // <copyright file="PackageBuildList.cs" company="Mark Final"> // Opus // </copyright> // <summary>Opus Core</summary> // <author>Mark Final</author> namespace Opus.Core { public class PackageBuild { public PackageBuild(PackageIdentifier id) { this.Name = id.Name; ...
c44e5dc1-a64e-470a-921d-bc0455b5b4a0
{ "language": "C#" }
```c# // Copyright 2020 Jon Skeet. All rights reserved. // Use of this source code is governed by the Apache License 2.0, // as found in the LICENSE.txt file. using Newtonsoft.Json; using System; using VDrumExplorer.Utility; namespace VDrumExplorer.Model.Schema.Json { internal class HexInt32Converter : JsonConve...
```c# // Copyright 2020 Jon Skeet. All rights reserved. // Use of this source code is governed by the Apache License 2.0, // as found in the LICENSE.txt file. using Newtonsoft.Json; using System; using VDrumExplorer.Utility; namespace VDrumExplorer.Model.Schema.Json { internal class HexInt32Converter : JsonConve...
93c6902f-d302-464a-8775-f861aac07fb0
{ "language": "C#" }
```c# using HarryPotterUnity.Game; using JetBrains.Annotations; using UnityEngine; namespace HarryPotterUnity.Cards.PlayRequirements { public class InputRequirement : MonoBehaviour, ICardPlayRequirement { private BaseCard _cardInfo; [SerializeField, UsedImplicitly] private int _fromHa...
```c# using HarryPotterUnity.Game; using JetBrains.Annotations; using UnityEngine; namespace HarryPotterUnity.Cards.PlayRequirements { public class InputRequirement : MonoBehaviour, ICardPlayRequirement { private BaseCard _cardInfo; [SerializeField, UsedImplicitly] private int _fromHa...
5359e40c-fca9-4b58-b762-fa4f60f64325
{ "language": "C#" }
```c# namespace System { /// <summary> /// Represents a 32-bit integer. /// </summary> public struct Int32 { // Note: integers are equivalent to instances of this data structure because // flame-llvm the contents of single-field structs as a value of their single // field, ra...
```c# namespace System { /// <summary> /// Represents a 32-bit integer. /// </summary> public struct Int32 { // Note: integers are equivalent to instances of this data structure because // flame-llvm stores the contents of single-field structs as a value of their // field, ra...
25c97676-bf4d-49e1-bbee-b52110d6bdec
{ "language": "C#" }
```c# using Android.App; using Android.OS; using MvvmCross.Droid.Support.V7.AppCompat; using System; namespace ExpandableList.Droid.Views { [Activity(Label = "DetailsView")] public class DetailsView : MvxAppCompatActivity { protected override void OnCreate(Bundle savedInstanceState) { ...
```c# using Android.App; using Android.OS; using MvvmCross.Droid.Support.V7.AppCompat; using System; namespace ExpandableList.Droid.Views { [Activity(Label = "DetailsView")] public class DetailsView : MvxAppCompatActivity { protected override void OnCreate(Bundle savedInstanceState) { ...
72f01018-a184-4045-9e59-267d085a2055
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Threading.Tasks; using NUnit.Framework; using osu.Framework.Audio; using osu.Framework.IO.Stores; using osu.Framework.Threading; namespace osu.Framewo...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Threading.Tasks; using NUnit.Framework; using osu.Framework.Audio; using osu.Framework.IO.Stores; using osu.Framework.Platform; using osu.Framework.Thr...
e25662af-b611-4274-91cf-225e0900301b
{ "language": "C#" }
```c# using System.Windows; using Arkivverket.Arkade.UI.Views; using Arkivverket.Arkade.Util; using Autofac; using Prism.Autofac; using Prism.Modularity; namespace Arkivverket.Arkade.UI { public class Bootstrapper : AutofacBootstrapper { protected override DependencyObject CreateShell() { ...
```c# using System.Windows; using Arkivverket.Arkade.UI.Views; using Arkivverket.Arkade.Util; using Autofac; using Prism.Autofac; using Prism.Modularity; namespace Arkivverket.Arkade.UI { public class Bootstrapper : AutofacBootstrapper { protected override DependencyObject CreateShell() { ...
df61088c-ca46-445d-8af1-71174ce4149b
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; namespace Totem.Runtime.Timeline { /// <summary> /// Describes the database persisting the timeline /// </summary> public interface ITimelineDb { Many<TimelinePoint> Append(TimelinePosition cause, Many<Event> events); TimelinePoint App...
```c# using System; using System.Collections.Generic; using System.Linq; namespace Totem.Runtime.Timeline { /// <summary> /// Describes the database persisting the timeline /// </summary> public interface ITimelineDb { Many<TimelinePoint> Append(TimelinePosition cause, Many<Event> events); TimelinePoint App...
e42dd004-ad8d-4502-87ad-90ee6a7b37b3
{ "language": "C#" }
```c# namespace Nancy.Session { using System.Collections; using System.Collections.Generic; public class Session : ISession { private readonly IDictionary<string, object> dictionary; private bool hasChanged; public Session() : this(new Dictionary<string, object>(0)){}...
```c# namespace Nancy.Session { using System.Collections; using System.Collections.Generic; public class Session : ISession { private readonly IDictionary<string, object> dictionary; private bool hasChanged; public Session() : this(new Dictionary<string, object>(0)){}...
810f07ec-2b5f-4e79-8f79-7cf326ab237d
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.IO; using osu.Framework.Graphics; using osu.Framework.Graphics.Colour; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Shapes; us...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.IO; using osu.Framework.Graphics; using osu.Framework.Graphics.Colour; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Shapes; us...
c931d87e-e245-4971-9f81-8f6e4d959e35
{ "language": "C#" }
```c# using UnityEngine; public class RoomGenerator : MonoBehaviour { public GameObject roomPrefab; public int roomCount = 100; public int spaceWidth = 500; public int spaceLength = 500; public int minRoomWidth = 5; public int maxRoomWidth = 20; public int minRoomLength = 5; public int maxRoomLength = 20;...
```c# using UnityEngine; public class RoomGenerator : MonoBehaviour { public GameObject roomPrefab; public int roomCount = 100; public int spaceWidth = 500; public int spaceLength = 500; public int minRoomWidth = 5; public int maxRoomWidth = 20; public int minRoomLength = 5; public int maxRoomLength = 20;...
45946d66-96d1-44a1-94f5-582497e4b46b
{ "language": "C#" }
```c# using System; using DeployStatus.Configuration; using DeployStatus.SignalR; using log4net; using Microsoft.Owin.Hosting; namespace DeployStatus.Service { public class DeployStatusService : IService { private IDisposable webApp; private readonly ILog log; private readonly DeploySta...
```c# using System; using System.Linq; using DeployStatus.Configuration; using DeployStatus.SignalR; using log4net; using Microsoft.Owin.Hosting; namespace DeployStatus.Service { public class DeployStatusService : IService { private IDisposable webApp; private readonly ILog log; private...
7e6d5e0a-09f7-4464-b431-22f3bed55548
{ "language": "C#" }
```c# using System; using System.Windows.Controls; using GitHub.InlineReviews.Views; using GitHub.InlineReviews.ViewModels; namespace GitHub.InlineReviews.Tags { public partial class ShowInlineCommentGlyph : UserControl { readonly CommentTooltipView commentTooltipView; public ShowInlineCommen...
```c# using System; using System.Windows.Controls; using GitHub.InlineReviews.Views; using GitHub.InlineReviews.ViewModels; namespace GitHub.InlineReviews.Tags { public partial class ShowInlineCommentGlyph : UserControl { readonly ToolTip toolTip; public ShowInlineCommentGlyph() { ...
f39ac870-c17e-489f-8a7d-98059345be62
{ "language": "C#" }
```c# using System.Collections.Generic; namespace Umbraco.Web.Media.EmbedProviders { public class YouTube : EmbedProviderBase { public override string ApiEndpoint => "https://www.youtube.com/oembed"; public override string[] UrlSchemeRegex => new string[] { @"youtu.be/.*",...
```c# using System.Collections.Generic; namespace Umbraco.Web.Media.EmbedProviders { public class YouTube : EmbedProviderBase { public override string ApiEndpoint => "https://www.youtube.com/oembed"; public override string[] UrlSchemeRegex => new string[] { @"youtu.be/.*",...
e0d5b908-0bf8-4117-ac14-cfb427dfe56d
{ "language": "C#" }
```c# using System; using Newtonsoft.Json; namespace ErgastApi.Responses { // TODO: Use internal/private constructors for all response types? public abstract class ErgastResponse { [JsonProperty("url")] public virtual string RequestUrl { get; private set; } [JsonProperty("limit")]...
```c# using System; using Newtonsoft.Json; namespace ErgastApi.Responses { // TODO: Use internal/private constructors for all response types? public abstract class ErgastResponse { [JsonProperty("url")] public string RequestUrl { get; protected set; } [JsonProperty("limit")] ...
00881bad-08a1-4388-9da4-0cb941d541dc
{ "language": "C#" }
```c# using System.Linq; using System.Text; namespace Modbus.IO { internal static class StreamResourceUtility { internal static string ReadLine(IStreamResource stream) { var result = new StringBuilder(); var singleByteBuffer = new byte[1]; do ...
```c# using System.Linq; using System.Text; namespace Modbus.IO { internal static class StreamResourceUtility { internal static string ReadLine(IStreamResource stream) { var result = new StringBuilder(); var singleByteBuffer = new byte[1]; do ...
a7d828a6-5a28-4d74-8928-9c275ed18ddc
{ "language": "C#" }
```c# using GitHub.UI; using GitHub.VisualStudio.UI; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Media; namespace GitHub.VisualStudio { public static class SharedResources { static readonly Dictionary<string, ...
```c# using System.Collections.Generic; using System.Windows.Media; using GitHub.UI; using GitHub.VisualStudio.UI; namespace GitHub.VisualStudio { public static class SharedResources { static readonly Dictionary<string, DrawingBrush> drawingBrushes = new Dictionary<string, DrawingBrush>(); pu...
eea2501f-a9c3-4b6a-ba20-fd0d343aff18
{ "language": "C#" }
```c# using Stylet.Samples.RedditBrowser.Events; using Stylet.Samples.RedditBrowser.RedditApi; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Stylet.Samples.RedditBrowser.Pages { public class TaskbarViewModel : Screen { pri...
```c# using Stylet.Samples.RedditBrowser.Events; using Stylet.Samples.RedditBrowser.RedditApi; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Stylet.Samples.RedditBrowser.Pages { public class TaskbarViewModel : Screen { pri...
fa79b2bb-e9b5-488c-a88d-c5e9dab7bb5d
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using XboxOnePadReader; namespace PadReaderTest { class Program { static void Main(string[] args) { ControllerReader myController = Cont...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using XboxOnePadReader; namespace PadReaderTest { class Program { static void Main(string[] args) { ControllerReader myController = Cont...
23b5ddb8-370e-475f-b560-ee96e44885fc
{ "language": "C#" }
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; public class Test1 : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { } } ``` Write Log message for test
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; public class Test1 : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { Condole.Log("This log is added by Suzuki"); } }```
06eb423d-069a-4414-a987-c4308d879e5f
{ "language": "C#" }
```c# namespace OpenKh.Game { public class Global { public const int ResolutionWidth = 512; public const int ResolutionHeight = 416; public const int ResolutionRemixWidth = 684; public const float ResolutionReMixRatio = 0.925f; public const float ResolutionBoostRatio = ...
```c# namespace OpenKh.Game { public class Global { public const int ResolutionWidth = 512; public const int ResolutionHeight = 416; public const int ResolutionRemixWidth = 684; public const float ResolutionReMixRatio = 0.925f; } } ```
a1340197-c2e4-4657-bdef-4b10ae1ea993
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Game.Beatmaps; using osu.Game.Rulesets.Difficulty; using osu.Game.Rulesets.Taiko.Difficulty; using osu.Game.Tests.Beatmaps; namesp...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Game.Beatmaps; using osu.Game.Rulesets.Difficulty; using osu.Game.Rulesets.Taiko.Difficulty; using osu.Game.Tests.Beatmaps; namesp...
ff267cfa-c770-4709-9629-68e382f8e185
{ "language": "C#" }
```c# using System; using System.Drawing.Imaging; using System.IO; using NUnit.Framework; using ValveResourceFormat; using ValveResourceFormat.ResourceTypes; namespace Tests { public class TextureTests { [Test] public void Test() { var path = Path.Combine(TestContext.Curren...
```c# using System; using System.Drawing.Imaging; using System.IO; using NUnit.Framework; using ValveResourceFormat; using ValveResourceFormat.ResourceTypes; namespace Tests { public class TextureTests { [Test] [Ignore("Need a better way of testing images rather than comparing the files direct...
9854d64b-7093-4f67-a073-6ab1ecfb021b
{ "language": "C#" }
```c# using System; using Microsoft.AspNetCore.StaticFiles; using Swashbuckle.AspNetCore.SwaggerUI; namespace Microsoft.AspNetCore.Builder { public static class SwaggerUIBuilderExtensions { public static IApplicationBuilder UseSwaggerUI( this IApplicationBuilder app, Action<Swa...
```c# using System; using Microsoft.AspNetCore.StaticFiles; using Swashbuckle.AspNetCore.SwaggerUI; namespace Microsoft.AspNetCore.Builder { public static class SwaggerUIBuilderExtensions { public static IApplicationBuilder UseSwaggerUI( this IApplicationBuilder app, Action<Swa...
795f4095-9560-4ad2-baef-10c048503439
{ "language": "C#" }
```c# // // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol; using System; using System.Collections.Generic; using System.Linq; using System.Text; us...
```c# // // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol; using System; using System.Collections.Generic; using System.Linq; using System.Text; us...
b1d300dd-71cc-4eeb-acf8-d494a5d7e071
{ "language": "C#" }
```c# //#tool nuget:?package=NUnit.ConsoleRunner&version=3.4.0 var target = Argument("target", "Default"); var configuration = Argument("configuration", "Release"); // Define directories. var buildDir = Directory("./src/Example/bin") + Directory(configuration); Task("Clean") .Does(() => { CleanDirectory(buil...
```c# //#tool nuget:?package=NUnit.ConsoleRunner&version=3.4.0 string target = Argument("target", "Default"); string configuration = Argument("configuration", "Release"); // Define directories. var dirs = new[] { Directory("./Live.Forms/bin") + Directory(configuration), Directory("./Live.Forms.iOS/bin") + Di...
30ccc076-1a37-4eae-a744-623f8dcdde7c
{ "language": "C#" }
```c# using System.Data.Entity; using Kandanda.Dal.DataTransferObjects; namespace Kandanda.Dal { public class KandandaDbContext : DbContext { public KandandaDbContext() { Database.SetInitializer(new SampleDataDbInitializer()); } public DbSet<Tournament> Tournaments...
```c# using System.Data.Entity; using Kandanda.Dal.DataTransferObjects; namespace Kandanda.Dal { public class KandandaDbContext : DbContext { public KandandaDbContext() { // TODO fix SetInitializer for tests Database.SetInitializer(new DropCreateDatabaseAlways<KandandaD...
8d2d4166-e672-4001-bb49-3d018e843546
{ "language": "C#" }
```c#  namespace nuPickers.Shared.DotNetDataSource { using nuPickers.Shared.Editor; using System; using System.Reflection; using System.Collections.Generic; using System.Linq; public class DotNetDataSource { public string AssemblyName { get; set; } public string ClassName ...
```c#  namespace nuPickers.Shared.DotNetDataSource { using nuPickers.Shared.Editor; using System; using System.Reflection; using System.Collections.Generic; using System.Linq; public class DotNetDataSource { public string AssemblyName { get; set; } public string ClassName ...
04aa6e74-a1fe-4012-b163-09910f5deb08
{ "language": "C#" }
```c# namespace Certify.Models.Shared { public class RenewalStatusReport { public string InstanceId { get; set; } public string MachineName { get; set; } public ManagedSite ManagedSite { get; set; } public string PrimaryContactEmail { get; set; } public string AppVersion...
```c# using System; namespace Certify.Models.Shared { public class RenewalStatusReport { public string InstanceId { get; set; } public string MachineName { get; set; } public ManagedSite ManagedSite { get; set; } public string PrimaryContactEmail { get; set; } public st...
306f7f9d-b1bf-4b12-97b4-742316b96337
{ "language": "C#" }
```c# using System; using SFA.DAS.CommitmentsV2.Types; namespace SFA.DAS.CommitmentsV2.Api.Types.Responses { public sealed class GetDraftApprenticeshipResponse { public long Id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public strin...
```c# using System; using SFA.DAS.CommitmentsV2.Types; namespace SFA.DAS.CommitmentsV2.Api.Types.Responses { public sealed class GetDraftApprenticeshipResponse { public long Id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public strin...
d775cffa-c574-44f2-b7e5-0e5291af99b4
{ "language": "C#" }
```c# using Autofac; using Autofac.Integration.WebApi; using FortuneTellerService4.Models; using Pivotal.Discovery.Client; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Web; using System.Web.Http; using System.Web.Routing; namespace FortuneTellerService4 { ...
```c# using Autofac; using Autofac.Integration.WebApi; using FortuneTellerService4.Models; using Pivotal.Discovery.Client; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Web; using System.Web.Http; using System.Web.Routing; namespace FortuneTellerService4 { ...
79a6f844-bd6e-4b15-bf61-98f1eed9c0d4
{ "language": "C#" }
```c# using System; using Xunit; namespace Stunts.Tests { public class StuntNamingTests { [Theory] [InlineData("StuntFactoryIDisposableIServiceProvider" + StuntNaming.DefaultSuffix, typeof(StuntFactory), typeof(IServiceProvider), typeof(IDisposable))] public void GetNameOrdersTypes(str...
```c# using System; using System.Collections.Generic; using Xunit; namespace Stunts.Tests { public class StuntNamingTests { [Theory] [InlineData("StuntFactoryIDisposableIServiceProvider" + StuntNaming.DefaultSuffix, typeof(StuntFactory), typeof(IServiceProvider), typeof(IDisposable))] ...
6caf5381-d1db-454b-89f0-984c47432907
{ "language": "C#" }
```c# using System; using System.Diagnostics.Eventing.Reader; using System.Net; using System.Net.Http; using Cogito.Net.Http; using Microsoft.Diagnostics.Tracing; using Microsoft.Diagnostics.Tracing.Session; using Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Utility; using Microsoft.Samples.Eventing; using Mi...
```c# using System; using System.Diagnostics.Eventing.Reader; using System.Net; using System.Net.Http; using Cogito.Net.Http; using Microsoft.Diagnostics.Tracing; using Microsoft.Diagnostics.Tracing.Session; using Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Utility; using Microsoft.Samples.Eventing; using Mi...
e747145e-2d95-4579-87c1-2368cb69f167
{ "language": "C#" }
```c# #region Using using System.Collections.Generic; using System.Windows.Input; using PuppyFramework.Services; #endregion namespace PuppyFramework.MenuService { public class MenuItem : MenuItemBase { #region Fields private ObservableSortedList<MenuItemBase> _children; ...
```c# #region Using using System.Collections.Generic; using System.Windows.Input; using PuppyFramework.Services; #endregion namespace PuppyFramework.MenuService { public class MenuItem : MenuItemBase { #region Fields private ObservableSortedList<MenuItemBase> _children; ...
23ddd8f1-4a5f-47f8-8a12-8928e5ce574e
{ "language": "C#" }
```c# using FluentEmail.Core.Interfaces; using FluentEmail.Smtp; using Microsoft.Extensions.DependencyInjection.Extensions; using System; using System.Net; using System.Net.Mail; namespace Microsoft.Extensions.DependencyInjection { public static class FluentEmailSmtpBuilderExtensions { public static F...
```c# using FluentEmail.Core.Interfaces; using FluentEmail.Smtp; using Microsoft.Extensions.DependencyInjection.Extensions; using System; using System.Net; using System.Net.Mail; namespace Microsoft.Extensions.DependencyInjection { public static class FluentEmailSmtpBuilderExtensions { public static F...
9ac803ca-a7b8-41ef-895d-c5d07874b304
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Linq; using JetBrains.Annotations; using MirrorSharp.Advanced; using SharpLab.Server.Common; namespace SharpLab.Server.MirrorSharp { [UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)] public class SetOptionsFromClient : IS...
```c# using System.Collections.Generic; using System.Linq; using JetBrains.Annotations; using MirrorSharp.Advanced; using SharpLab.Server.Common; namespace SharpLab.Server.MirrorSharp { [UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)] public class SetOptionsFromClient : IS...
c8859779-e54d-4a32-9eb1-26661935868c
{ "language": "C#" }
```c# <div class="sticky-notes"> <div class="sticky-note"> <i class="pin"></i> <div class="content green"> <h1> GC Handicapping System </h1> <p> New <a href="/disciplines/golf-croquet/resources">GC Handicapping System</a> comes int...
```c# <div class="sticky-notes"> <div class="sticky-note"> <i class="pin"></i> <div class="content green"> <h1> GC Handicapping System </h1> <p> New <a href="/disciplines/golf-croquet/resources">GC Handicapping System</a> comes int...
8a792086-834e-4090-9210-c8123fa6a3d6
{ "language": "C#" }
```c# using System; namespace GitIStage { internal sealed class ConsoleCommand { private readonly Action _handler; private readonly ConsoleKey _key; public readonly string Description; private readonly ConsoleModifiers _modifiers; public ConsoleCommand(Action handler, C...
```c# using System; namespace GitIStage { internal sealed class ConsoleCommand { private readonly Action _handler; private readonly ConsoleKey _key; public readonly string Description; private readonly ConsoleModifiers _modifiers; public ConsoleCommand(Action handler, C...
fe9d9c01-2b78-4b37-b696-f15a3375360a
{ "language": "C#" }
```c# using Hyperledger.Indy.PoolApi; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.IO; using System.Threading.Tasks; namespace Hyperledger.Indy.Test.PoolTests { [TestClass] public class CreatePoolTest : IndyIntegrationTestBase { [TestMethod] public async Task TestCreate...
```c# using Hyperledger.Indy.PoolApi; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.IO; using System.Threading.Tasks; namespace Hyperledger.Indy.Test.PoolTests { [TestClass] public class CreatePoolTest : IndyIntegrationTestBase { [TestMethod] public async Task TestCreate...
8f909d9f-a418-4360-b5ad-115ea2468e8b
{ "language": "C#" }
```c# using Auth0.Core.Serialization; using Newtonsoft.Json; using System; using System.Net.Http; using System.Threading.Tasks; namespace Auth0.Core { /// <summary> /// Error information captured from a failed API request. /// </summary> [JsonConverter(typeof(ApiErrorConverter))] public class ApiE...
```c# using Auth0.Core.Serialization; using Newtonsoft.Json; using System; using System.Net.Http; using System.Threading.Tasks; namespace Auth0.Core { /// <summary> /// Error information captured from a failed API request. /// </summary> [JsonConverter(typeof(ApiErrorConverter))] public class ApiE...
47131883-f2f0-4512-8f95-6110d943f1f1
{ "language": "C#" }
```c# using FluentMigrator.Runner.Generators.Generic; namespace FluentMigrator.Runner.Generators.MySql { public class MySqlQuoter : GenericQuoter { public override string OpenQuote { get { return "`"; } } public override string CloseQuote { get { return "`"; } } public override strin...
```c# using FluentMigrator.Runner.Generators.Generic; namespace FluentMigrator.Runner.Generators.MySql { public class MySqlQuoter : GenericQuoter { public override string OpenQuote { get { return "`"; } } public override string CloseQuote { get { return "`"; } } public override strin...
7a505d71-3a3e-4233-ae9c-89e4ab8d2847
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Schema; namespace Codge.Generator.Presentations.Xsd { public static class XmlSchemaExtensions { public static bool IsEmptyType(this XmlSchemaComplexType type) ...
```c# using System.Collections.Generic; using System.Linq; using System.Xml.Schema; namespace Codge.Generator.Presentations.Xsd { public static class XmlSchemaExtensions { public static bool IsEmptyType(this XmlSchemaComplexType type) { return type.ContentModel == null && type.Attr...
85d41e10-edaf-46cc-a441-289b6e156291
{ "language": "C#" }
```c# @model ICollection<AuthenticationClientData> @if (Model.Count > 0) { using (Html.BeginForm("ExternalLogin", "Account", new { ReturnUrl = ViewBag.ReturnUrl })) { @Html.AntiForgeryToken() <h4>Use another service to log in.</h4> <hr /> <div id="socialLoginList"> @foreach (Authentica...
```c# @model ICollection<Microsoft.Web.WebPages.OAuth.AuthenticationClientData> @if (Model.Count > 0) { using (Html.BeginForm("ExternalLogin", "Account", new { ReturnUrl = ViewBag.ReturnUrl })) { @Html.AntiForgeryToken() <h4>Use another service to log in.</h4> <hr /> <div id="socialLoginList">...
a176d67e-cf93-427b-bb8f-f4c0f74fa1ef
{ "language": "C#" }
```c# using System; using Eto.Drawing; using Eto.Forms; using MonoMac.AppKit; using SD = System.Drawing; namespace Eto.Platform.Mac.Forms { public class FormHandler : MacWindow<MyWindow, Form>, IDisposable, IForm { protected override bool DisposeControl { get { return false; } } public FormHandler() { Cont...
```c# using System; using Eto.Forms; using MonoMac.AppKit; using SD = System.Drawing; namespace Eto.Platform.Mac.Forms { public class FormHandler : MacWindow<MyWindow, Form>, IForm { protected override bool DisposeControl { get { return false; } } public FormHandler() { Control = new MyWindow(new SD.Rectan...
c76992fd-bc3d-4680-abb3-378d2abc3f0b
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Game.Rulesets.Osu.Mods; namespace osu.Game.Rulesets.Osu.Tests.Mods { public class TestSceneOsuModAimAssist : OsuModTestScene ...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Game.Rulesets.Osu.Mods; namespace osu.Game.Rulesets.Osu.Tests.Mods { public class TestSceneOsuModAimAssist : OsuModTestScene ...
b5efadd6-693a-4d17-9d1d-13524107d61e
{ "language": "C#" }
```c# using davClassLibrary.Common; using davClassLibrary.DataAccess; using UniversalSoundBoard.DataAccess; using Windows.Networking.Connectivity; namespace UniversalSoundboard.Common { public class GeneralMethods : IGeneralMethods { public bool IsNetworkAvailable() { var connectio...
```c# using davClassLibrary.Common; using davClassLibrary.DataAccess; using UniversalSoundBoard.DataAccess; using Windows.Networking.Connectivity; namespace UniversalSoundboard.Common { public class GeneralMethods : IGeneralMethods { public bool IsNetworkAvailable() { var connectio...
b2150d8f-3a19-4516-aa4e-7f6007da9a33
{ "language": "C#" }
```c# using JoinRpg.Web.CheckIn; using JoinRpg.Web.ProjectCommon; using JoinRpg.Web.ProjectMasterTools.ResponsibleMaster; using JoinRpg.Web.ProjectMasterTools.Subscribe; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; namespace JoinRpg.Blazor.Client.ApiClients; public static class HttpClientRegistration { ...
```c# using JoinRpg.Web.CheckIn; using JoinRpg.Web.ProjectCommon; using JoinRpg.Web.ProjectMasterTools.ResponsibleMaster; using JoinRpg.Web.ProjectMasterTools.Subscribe; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; namespace JoinRpg.Blazor.Client.ApiClients; public static class HttpClientRegistration { ...
615b281f-64a4-4850-ac2a-5a684fb05caf
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Graphics; using osu.Framework.Platform; namespace osu.Game.Screens.Play { in...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using JetBrains.Annotations; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Graphics; using osu.Framework.Platform...
66aff45b-df25-47c8-aa3f-bc11a617a8f6
{ "language": "C#" }
```c# using System; using System.Threading; namespace Bumblebee.Extensions { public static class Debugging { public static T DebugPrint<T>(this T obj) { Console.WriteLine(obj.ToString()); return obj; } public static T DebugPrint<T>(this T obj, string mes...
```c# using System; using System.Threading; namespace Bumblebee.Extensions { public static class Debugging { public static T DebugPrint<T>(this T obj) { Console.WriteLine(obj.ToString()); return obj; } public static T DebugPrint<T>(this T obj, string mes...