doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
6654ea5b-8da8-4cf7-bbae-f101049afcdf
{ "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("CurrencyCloud")] [assembly: Assembl...
```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("CurrencyCloud")] [assembly: Assembl...
be0218b2-6fcc-4d7c-b565-3bad29676099
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Threading.Tasks; using Glimpse.Host.Web.Owin.Framework; namespace Glimpse.Host.Web.Owin { public class GlimpseMiddleware { private readonly Func<IDictionary<string, object>, Task> _innerNext; public GlimpseMiddleware(Func<IDic...
```c# using System; using System.Collections.Generic; using System.Threading.Tasks; using Glimpse.Host.Web.Owin.Framework; using Glimpse.Agent.Web; namespace Glimpse.Host.Web.Owin { public class GlimpseMiddleware { private readonly Func<IDictionary<string, object>, Task> _innerNext; private re...
91287182-74c5-4e65-a4cb-a888744005af
{ "language": "C#" }
```c# using System; using Android.Views; using Xamarin.Forms; using Xamarin.Forms.Platform.Android; using Android.Graphics; using System.ComponentModel; using CrossPlatformTintedImage; using CrossPlatformTintedImage.Droid; [assembly:ExportRendererAttribute(typeof(TintedImage), typeof(TintedImageRenderer))] namespace C...
```c# using System; using Android.Views; using Xamarin.Forms; using Xamarin.Forms.Platform.Android; using Android.Graphics; using System.ComponentModel; using CrossPlatformTintedImage; using CrossPlatformTintedImage.Droid; [assembly:ExportRendererAttribute(typeof(TintedImage), typeof(TintedImageRenderer))] namespace C...
e698bd69-b345-4178-9d51-39384c4b3fda
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using FeralTic.DX11; namespace VVVV.DX11 { public interface IAttachableWindow { void AttachContext(DX11RenderContext renderContext); IntPtr WindowHandle { get; } } public interface IDX11RenderS...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using FeralTic.DX11; namespace VVVV.DX11 { public interface IAttachableWindow { void AttachContext(DX11RenderContext renderContext); IntPtr WindowHandle { get; } } public interface IDX11RenderS...
780d0de6-258f-47eb-8b55-82335e02fcb2
{ "language": "C#" }
```c# using System.Windows; namespace GitMind.Common.MessageDialogs { /// <summary> /// Interaction logic for MessageDialog.xaml /// </summary> public partial class MessageDialog : Window { public MessageDialog( Window owner, string message, string title, MessageBoxButton button, MessageBoxImag...
```c# using System.Windows; namespace GitMind.Common.MessageDialogs { /// <summary> /// Interaction logic for MessageDialog.xaml /// </summary> public partial class MessageDialog : Window { public MessageDialog( Window owner, string message, string title, MessageBoxButton button, MessageBoxImag...
0add0f63-c910-426d-8e66-a703a5e84119
{ "language": "C#" }
```c# using System; using DevLab.JmesPath.Interop; using Newtonsoft.Json.Linq; namespace DevLab.JmesPath.Functions { public class ToNumberFunction : JmesPathFunction { public ToNumberFunction() : base("to_number", 1) { } public override bool Validate(pa...
```c# using System; using System.Globalization; using DevLab.JmesPath.Interop; using Newtonsoft.Json.Linq; namespace DevLab.JmesPath.Functions { public class ToNumberFunction : JmesPathFunction { public ToNumberFunction() : base("to_number", 1) { } pub...
4c7df2cb-1e7e-4d8b-96e4-557777173bb4
{ "language": "C#" }
```c# using System.Collections.Generic; using NHibernate; using NHibernate.Cfg; using NHibernate.Dialect; using NHibernate.Driver; namespace PPWCode.Vernacular.NHibernate.I.Test { public static class NhConfigurator { private const string ConnectionString = "Data Source=:memory:;Version=3;N...
```c# using System.Collections.Generic; using NHibernate; using NHibernate.Cfg; using NHibernate.Dialect; using NHibernate.Driver; namespace PPWCode.Vernacular.NHibernate.I.Test { public static class NhConfigurator { private const string ConnectionString = "Data Source=:memory:;Version=3;N...
782dc677-8d78-409c-9a13-31ce8b40f8a2
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using Xunit; namespace CSharpViaTest.IOs._10_HandleText { /* * Description * =========== * * This test will introduce the concept of Codepoint and surrogate pair to you. But * for the most of the cases, the character can fit in 16-bi...
```c# using System; using System.Collections.Generic; using Xunit; namespace CSharpViaTest.IOs._10_HandleText { /* * Description * =========== * * This test will introduce the concept of Codepoint and surrogate pair to you. But * for the most of the cases, the character can fit in 16-bi...
14ff3816-c8a0-40c9-9611-b426f1128ee6
{ "language": "C#" }
```c# using Newtonsoft.Json; namespace Dnn.PersonaBar.Library.Prompt.Models { /// <summary> /// Standard response object sent to client /// </summary> public class ConsoleResultModel { // the returned result - text or HTML [JsonProperty(PropertyName = "output")] public stri...
```c# using Newtonsoft.Json; namespace Dnn.PersonaBar.Library.Prompt.Models { /// <summary> /// Standard response object sent to client /// </summary> public class ConsoleResultModel { // the returned result - text or HTML [JsonProperty(PropertyName = "output")] public stri...
67b1b2f5-b616-4635-a1a8-0582ca9354ff
{ "language": "C#" }
```c# using UnityEngine; using System; using System.Collections; using System.Collections.Generic; namespace Fungus { public class EventHandlerInfoAttribute : Attribute { public EventHandlerInfoAttribute(string category, string eventHandlerName, string helpText) { this.Category = category; this.EventHan...
```c# using UnityEngine; using System; using System.Collections; using System.Collections.Generic; namespace Fungus { public class EventHandlerInfoAttribute : Attribute { public EventHandlerInfoAttribute(string category, string eventHandlerName, string helpText) { this.Category = category; this.EventHan...
ef4f2ae4-8550-4b02-b568-8039261c0532
{ "language": "C#" }
```c# @model SFA.DAS.EmployerAccounts.Web.ViewModels.AccountDashboardViewModel @if (Model.ReservedFundingToShow != null) { <h3 class="das-panel__heading">Apprenticeship funding secured</h3> <dl class="das-definition-list das-definition-list--with-separator"> <dt class="das-definition-list__title">Lega...
```c# @model SFA.DAS.EmployerAccounts.Web.ViewModels.AccountDashboardViewModel @if (Model.ReservedFundingToShow != null) { <h3 class="das-panel__heading">Apprenticeship funding secured</h3> <dl class="das-definition-list das-definition-list--with-separator"> <dt class="das-definition-list__title">Lega...
510f12f5-cbb6-4218-a5be-f7b75d9aaf8f
{ "language": "C#" }
```c# using System; using System.Collections.Generic; namespace DevelopmentInProgress.DipMapper.Test { public class TestDapperClass { public int Id { get; set; } public string Name { get; set; } public DateTime Date { get; set; } public IEnumerable<TestDapperClass> TestDataClas...
```c# using System; using System.Collections.Generic; namespace DevelopmentInProgress.DipMapper.Test { public class TestDapperClass { public int Id { get; set; } public string Name { get; set; } public DateTime Date { get; set; } public IEnumerable<TestDapperClass> TestDataClas...
7411f8eb-9aa9-42c8-8df4-880d9ab3424a
{ "language": "C#" }
```c# using System.Windows.Controls; namespace PopulousStringEditor.Views { /// <summary> /// Interaction logic for StringComparisonView.xaml /// </summary> public partial class StringComparisonView : UserControl { /// <summary>Gets or sets the visibility of the referenced strings.</summary> ...
```c# using System.Windows.Controls; namespace PopulousStringEditor.Views { /// <summary> /// Interaction logic for StringComparisonView.xaml /// </summary> public partial class StringComparisonView : UserControl { /// <summary>Gets or sets the visibility of the referenced strings.</summar...
479f3ad4-67a4-4570-a530-f02b3c62fc76
{ "language": "C#" }
```c# using MessagePack; using MessagePack.Resolvers; using UnityEngine; namespace Assets.Scripts { class InitialSettings { [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] static void RegisterResolvers() { MessagePackSerializer.DefaultOptions = Me...
```c# using MessagePack; using MessagePack.Resolvers; using UnityEngine; namespace Assets.Scripts { class InitialSettings { [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] static void RegisterResolvers() { // NOTE: Currently, CompositeResolver does...
01aa0623-1785-42cb-9f3b-632dfb163f5b
{ "language": "C#" }
```c# using System; namespace Take.Blip.Builder.Hosting { public class ConventionsConfiguration : IConfiguration { public virtual TimeSpan InputProcessingTimeout => TimeSpan.FromMinutes(1); public virtual string RedisStorageConfiguration => "localhost"; public virtual int RedisDataba...
```c# using System; namespace Take.Blip.Builder.Hosting { public class ConventionsConfiguration : IConfiguration { public virtual TimeSpan InputProcessingTimeout => TimeSpan.FromMinutes(1); public virtual string RedisStorageConfiguration => "localhost"; public virtual int RedisDataba...
729dd154-5adb-4a49-9322-9a41fc8a9e4d
{ "language": "C#" }
```c# // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. namespace TerraFX.Audio { /// <summary>Represents a type of <see cref="IAudioDeviceOptions"/></summary> public enum AudioDeviceType { /// <summary>...
```c# // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. namespace TerraFX.Audio { /// <summary>Represents a type of <see cref="IAudioAdapter"/></summary> public enum AudioDeviceType { /// <summary>Indica...
9b71c3c7-9b52-4b44-b126-8ffbb5d0a6a0
{ "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 System; internal partial class Interop { internal partial class mincore { internal static int DeleteVolumeMountPoint(string mountPoint) ...
```c# // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; internal partial class Interop { internal partial class mincore { internal static bool DeleteVolumeMountPoint(string mountPoint) ...
052326b3-a549-4fac-80d9-daece06e0598
{ "language": "C#" }
```c# // Copyright (c) Zac Brown. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using O365.Security.ETW; namespace hiddentreasure_etw_demo { public static class PowerShellMethodExecution { public static void Ru...
```c# // Copyright (c) Zac Brown. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using O365.Security.ETW; namespace hiddentreasure_etw_demo { public static class PowerShellMethodExecution { public static void Ru...
67c042b5-c106-4b1c-8daa-ac6807c872eb
{ "language": "C#" }
```c# using Newtonsoft.Json.Linq; using SnapMD.ConnectedCare.Sdk.Models; namespace SnapMD.ConnectedCare.Sdk { public class PaymentsApi : ApiCall { public PaymentsApi(string baseUrl, string bearerToken, int hospitalId, string developerId, string apiKey) : base(baseUrl, bearerToken, develope...
```c# using Newtonsoft.Json.Linq; using SnapMD.ConnectedCare.Sdk.Models; namespace SnapMD.ConnectedCare.Sdk { public class PaymentsApi : ApiCall { public PaymentsApi(string baseUrl, string bearerToken, int hospitalId, string developerId, string apiKey) : base(baseUrl, bearerToken, develope...
d954c143-4f8e-4dda-9145-75b8f90bdf9e
{ "language": "C#" }
```c# using System; using System.IO; using System.Linq; using System.Reflection; using Sharpmake; namespace SharpmakeGen { [Generate] public class SharpmakeApplicationProject : Common.SharpmakeBaseProject { public SharpmakeApplicationProject() : base(generateXmlDoc: false) { ...
```c# using System; using System.IO; using System.Linq; using System.Reflection; using Sharpmake; namespace SharpmakeGen { [Generate] public class SharpmakeApplicationProject : Common.SharpmakeBaseProject { public SharpmakeApplicationProject() : base(generateXmlDoc: false) { ...
0783270c-ec58-4626-aa2b-16c18e41f9c5
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Collections.Specialized; namespace GitHub.Collections { public interface ITrackingCollection<T> : IDisposable, IList<T> where T : ICopyable<T> { IObservable<T> Listen(IObservable<T> obs); IDisposable Subscribe(); IDispo...
```c# using System; using System.Collections.Generic; using System.Collections.Specialized; namespace GitHub.Collections { /// <summary> /// TrackingCollection is a specialization of ObservableCollection that gets items from /// an observable sequence and updates its contents in such a way that two updates...
8f6b621e-ce8b-4a29-8bb0-df677424ab51
{ "language": "C#" }
```c# using System; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; namespace Mirage.Urbanization.Simulation { public class NeverEndingTask { private readonly CancellationToken _token; private readonly Task _task; public NeverEndingTask(string description...
```c# using System; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; namespace Mirage.Urbanization.Simulation { public class NeverEndingTask { private readonly CancellationToken _token; private readonly Task _task; public NeverEndingTask(string description...
98dc8886-805c-449e-8a95-f93fe9aaa251
{ "language": "C#" }
```c# using System.Text; using System.Xml; using System.Xml.XPath; using System.Xml.Xsl; namespace Tranquire.Reporting { partial class XmlDocumentObserver { /// <summary> /// Returns a HTML document that contains the report. /// </summary> /// <returns></returns> public...
```c# using System.Text; using System.Xml; using System.Xml.XPath; using System.Xml.Xsl; namespace Tranquire.Reporting { partial class XmlDocumentObserver { /// <summary> /// Returns a HTML document that contains the report. /// </summary> /// <returns></returns> public...
e255d998-2305-4cf0-84e9-715469c942d9
{ "language": "C#" }
```c# using System.Globalization; namespace OpenSage.Data.Utilities { internal static class ParseUtility { public static float ParseFloat(string s) { return float.Parse(s, CultureInfo.InvariantCulture); } public static bool TryParseFloat(string s, out float result)...
```c# using System.Globalization; namespace OpenSage.Data.Utilities { internal static class ParseUtility { public static float ParseFloat(string s) { return float.Parse(s, CultureInfo.InvariantCulture); } public static bool TryParseFloat(string s, out float result)...
6c0954af-71ce-4cd3-86ca-8e3f191fba87
{ "language": "C#" }
```c# using System; namespace HobknobClientNet { public interface IHobknobClientFactory { IHobknobClient Create(string etcdHost, int etcdPort, string applicationName, TimeSpan cacheUpdateInterval, EventHandler<CacheUpdateFailedArgs> cacheUpdateFailed); } public class HobknobClientFactory : I...
```c# using System; namespace HobknobClientNet { public interface IHobknobClientFactory { IHobknobClient Create(string etcdHost, int etcdPort, string applicationName, TimeSpan cacheUpdateInterval, EventHandler<CacheUpdateFailedArgs> cacheUpdateFailed); } public class HobknobClientFactory : I...
81f24690-ff64-43f8-bc1d-d23ce058614d
{ "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.Graphics; using osu.Framework.Graphics.UserInterface; using osu.Framework.Testing; namespace osu.Framework.Tests.Visual.UserInterface { pub...
```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.Framework.Graphics; using osu.Framework.Graphics.UserInterface; namespace osu.Framework.Tests.Visual.UserInterface { public cl...
9f39a866-267b-497d-b96f-710547ae1f38
{ "language": "C#" }
```c# using Azure.Core.Pipeline; using Azure.Test.PerfStress; using System; using System.Net.Http; namespace Azure.Storage.Blobs.PerfStress { public abstract class StorageTest<TOptions> : PerfStressTest<TOptions> where TOptions: PerfStressOptions { private const string _containerName = "perfstress"; ...
```c# using Azure.Core.Pipeline; using Azure.Test.PerfStress; using System; using System.Net.Http; namespace Azure.Storage.Blobs.PerfStress { public abstract class StorageTest<TOptions> : PerfStressTest<TOptions> where TOptions: PerfStressOptions { private const string _containerName = "perfstress"; ...
2c8e8ea5-be35-43ff-9704-20e83ea72784
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; // ADDED FIRST LINE namespace PracticeGit.Controllers { public class HomeController : Controller { public ActionResult Index() { ViewBag.Title = "Home Page"; ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; // ADDED FIRST LINE // ADDED SECOND LINE namespace PracticeGit.Controllers { public class HomeController : Controller { public ActionResult Index() { ViewBag.Title = ...
f6300786-8ff5-4088-8c60-f4a58c2b2fcf
{ "language": "C#" }
```c# using System; using System.ComponentModel; using DesktopWidgets.WidgetBase.Settings; namespace DesktopWidgets.Widgets.PictureSlideshow { public class Settings : WidgetSettingsBase { public Settings() { Width = 384; Height = 216; } [Category("Gener...
```c# using System; using System.ComponentModel; using DesktopWidgets.WidgetBase.Settings; namespace DesktopWidgets.Widgets.PictureSlideshow { public class Settings : WidgetSettingsBase { public Settings() { Width = 384; Height = 216; } [Category("Gener...
4c8c7973-961c-40db-b568-d531726df2ba
{ "language": "C#" }
```c# using System.Linq; using AutoMapper; using Abp.Authorization; using Abp.Authorization.Roles; using AbpCompanyName.AbpProjectName.Authorization.Roles; namespace AbpCompanyName.AbpProjectName.Roles.Dto { public class RoleMapProfile : Profile { public RoleMapProfile() { // Role a...
```c# using System.Linq; using AutoMapper; using Abp.Authorization; using Abp.Authorization.Roles; using AbpCompanyName.AbpProjectName.Authorization.Roles; namespace AbpCompanyName.AbpProjectName.Roles.Dto { public class RoleMapProfile : Profile { public RoleMapProfile() { // Role a...
56679a61-8753-43b0-bb1a-fe7e6b952fdf
{ "language": "C#" }
```c# #if !NO_UNITY using System; using System.Collections.Generic; using UnityEngine; namespace FullSerializer { public class fsAotConfiguration : ScriptableObject { public enum AotState { Default, Enabled, Disabled } [Serializable] public struct Entry { publi...
```c# #if !NO_UNITY using System; using System.Collections.Generic; using UnityEngine; namespace FullSerializer { [CreateAssetMenu(menuName = "Full Serializer AOT Configuration")] public class fsAotConfiguration : ScriptableObject { public enum AotState { Default, Enabled, Disabled ...
55a9e8ed-f448-47f2-b0a6-e4ce9671cf12
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net.Mail; using System.Text; namespace Toolhouse.Monitoring.Dependencies { public class SmtpDependency : IDependency { public SmtpDependency(string name) { this.Name = name; } publ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net.Mail; using System.Text; namespace Toolhouse.Monitoring.Dependencies { public class SmtpDependency : IDependency { public SmtpDependency(string name) { this.Name = name; } publ...
8cccdda8-0bfb-4980-a8ab-908fd684723d
{ "language": "C#" }
```c# using System; using System.Reflection; //using System.IO; //using System.Reflection; using LASI.Utilities; namespace LASI.WebApp.Tests.TestAttributes { [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)] public class PreconfigureLASIAttribute : Xunit.Sdk.BeforeAfterTestAttr...
```c# using System; using System.Reflection; //using System.IO; //using System.Reflection; using LASI.Utilities; namespace LASI.WebApp.Tests.TestAttributes { [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)] public class PreconfigureLASIAttribute : Xunit.Sdk.BeforeAfterTestAttr...
c51a5d31-a2c4-4c96-aaee-18a56772f6d8
{ "language": "C#" }
```c# using System; using Agiil.Domain.Validation; using CSF.Validation; using CSF.Validation.Manifest.Fluent; using CSF.Validation.StockRules; namespace Agiil.Domain.Sprints { public class CreateSprintValidatorFactory : ValidatorFactoryBase<CreateSprintRequest> { protected override void ConfigureManifest(IMa...
```c# using System; using Agiil.Domain.Validation; using CSF.Validation; using CSF.Validation.Manifest.Fluent; using CSF.Validation.StockRules; namespace Agiil.Domain.Sprints { public class CreateSprintValidatorFactory : ValidatorFactoryBase<CreateSprintRequest> { protected override void ConfigureManifest(IMa...
0fcaa614-8641-46ed-9e5a-e62632ac9cf5
{ "language": "C#" }
```c# using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using SupportManager.DAL; namespace SupportManager.Web.Areas.Teams { [Area("Teams")] [Authorize] public abstract class BaseController : Controller { ...
```c# using System.Data.Entity; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using SupportManager.DAL; namespace SupportManager.Web.Areas.Teams { [Area("Teams")] [Authorize] public abstract class BaseControl...
a1fc5bea-a275-490d-b833-af194b8fe300
{ "language": "C#" }
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System.Globalization; using Microsoft.Common.Core; using Microsoft.Common.Core.Shell; using Microsoft.R.Host.Client; using Microsoft.VisualStudio.R.Packa...
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System.Globalization; using Microsoft.Common.Core; using Microsoft.Common.Core.Shell; using Microsoft.R.Host.Client; using Microsoft.VisualStudio.R.Packa...
a3e9ca2b-7cdb-47cf-adc2-8b2cd16902f9
{ "language": "C#" }
```c# using System; using System.IO; using System.Security.Cryptography; namespace Nuterra.Installer { public static class InstallerUtil { public static string GetFileHash(string filePath) { if (!File.Exists(filePath)) { return null; } using (var md5 = MD5.Create()) using (var stream = File.O...
```c# using System; using System.IO; using System.Security.Cryptography; namespace Nuterra.Installer { public static class InstallerUtil { public static string GetFileHash(string filePath) { if (!File.Exists(filePath)) { return null; } using (var md5 = MD5.Create()) using (var stream = File.O...
cd3983e2-c7e8-41da-9dca-a7a9781c0ef4
{ "language": "C#" }
```c# // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using System.IO; using System.Xml; namespace Roslyn.Test.Utilities { public struct TestInfo { public...
```c# // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Immutable; using System.IO; using System.Xml.Linq; using System.Xml.XPath; namespace Roslyn.Test.Utilities { public reado...
25fe64c1-f894-4309-9cb2-d74f42a1ecf7
{ "language": "C#" }
```c# // NoteSorter.cs // <copyright file="NoteSorter.cs"> This code is protected under the MIT License. </copyright> using System.Collections.Generic; using System.Linq; namespace Todo_List { /// <summary> /// A static class containing a list of notes and methods for sorting them. /// </summary> publ...
```c# // NoteSorter.cs // <copyright file="NoteSorter.cs"> This code is protected under the MIT License. </copyright> using System.Collections.Generic; using System.Linq; namespace Todo_List { /// <summary> /// A static class containing a list of notes and methods for sorting them. /// </summary> publ...
0a8a9e0e-1745-4385-a0db-ab6c440c91e3
{ "language": "C#" }
```c# using System; using Elastic.Xunit.Sdk; using Elastic.Xunit.XunitPlumbing; using Elasticsearch.Net; using FluentAssertions; using Tests.Framework.ManagedElasticsearch.Clusters; namespace Tests.Reproduce { public class GithubIssue2985 : IClusterFixture<WritableCluster> { private readonly WritableCluster _clust...
```c# using System; using Elastic.Xunit.Sdk; using Elastic.Xunit.XunitPlumbing; using Elasticsearch.Net; using FluentAssertions; using Tests.Framework.ManagedElasticsearch.Clusters; namespace Tests.Reproduce { public class GithubIssue2985 : IClusterFixture<WritableCluster> { private readonly WritableCluster _clust...
360c2306-e91e-4332-acee-b3f66a9abf37
{ "language": "C#" }
```c# using System; namespace Table { public class Table { public int Width; public int Spacing; public Table(int width, int spacing) { Width = width; Spacing = spacing; } } } ``` Make the namespace uniform accross the project
```c# using System; namespace Hangman { public class Table { public int Width; public int Spacing; public Table(int width, int spacing) { Width = width; Spacing = spacing; } } } ```
a583c69b-323a-42e3-aafa-66e4b4451fa1
{ "language": "C#" }
```c# using System; using Structurizer.Extensions; namespace Structurizer.Schemas { public class StructureProperty : IStructureProperty { private readonly DynamicGetter _getter; public string Name { get; } public string Path { get; } public Type DataType { get; } publi...
```c# using System; using Structurizer.Extensions; namespace Structurizer.Schemas { public class StructureProperty : IStructureProperty { private readonly DynamicGetter _getter; public string Name { get; } public string Path { get; } public Type DataType { get; } publi...
eefcb6ca-c94e-493a-a2c4-1b2c64ac4af9
{ "language": "C#" }
```c# // Copyright 2009 Jeffrey Cameron // // 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 applicable law...
```c# // Copyright 2009 Jeffrey Cameron // // 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 applicable law...
a5ce9999-7045-4bd2-a722-76d292588537
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Microsoft.Bot.Connector { public class ActionTypes { /// <summary> /// Client will open given url in the built-in browser. /// </summary> public c...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Microsoft.Bot.Connector { public class ActionTypes { /// <summary> /// Client will open given url in the built-in browser. /// </summary> public c...
82acb2c1-aa43-4751-a1d9-f80b5147b1a6
{ "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; using System.IO; namespace osu.Framework.Audio.Callbacks { /// <summary> /// Implementation of <see cref="IFileProcedures"/> that supports r...
```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 System.IO; #nullable enable namespace osu.Framework.Audio.Callbacks { /// <summary> /// Implementation of <see cref="IFileProcedures"...
effbc3f8-652b-4dbc-aea6-61d179348093
{ "language": "C#" }
```c# using System.Diagnostics; namespace Microsoft.Build.Logging.StructuredLogger { public class BinaryLog { public static Build ReadBuild(string filePath) { var eventSource = new BinaryLogReplayEventSource(); byte[] sourceArchive = null; even...
```c# using System.Diagnostics; namespace Microsoft.Build.Logging.StructuredLogger { public class BinaryLog { public static Build ReadBuild(string filePath) { var eventSource = new BinaryLogReplayEventSource(); byte[] sourceArchive = null; even...
c7cffaa5-f992-46eb-8204-d078f6128c9e
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Zermelo.App.UWP.Helpers { static class ObservableCollectionExtensions { public static void MorphInto<TSource>(this ObservableCollect...
```c# using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Zermelo.App.UWP.Helpers { static class ObservableCollectionExtensions { public static void MorphInto<TSource>(this ObservableCollect...
45129c93-d7da-4604-b7cd-ba68bb4d5c4a
{ "language": "C#" }
```c# namespace Mollie.Api.Models { /// <summary> /// Payment method /// </summary> public enum Method { ideal, creditcard, mistercash, sofort, banktransfer, directdebit, belfius, kbc, bitcoin, paypal, paysafecar...
```c# namespace Mollie.Api.Models { /// <summary> /// Payment method /// </summary> public enum Method { ideal, creditcard, mistercash, sofort, banktransfer, directdebit, belfius, kbc, bitcoin, paypal, paysafecar...
eb4dd510-50b9-4aaa-993b-08321d0eae8f
{ "language": "C#" }
```c# using System; using System.Collections.ObjectModel; using ReactiveUI; namespace BindingTest.ViewModels { public class MainWindowViewModel : ReactiveObject { private string _simpleBinding = "Simple Binding"; public MainWindowViewModel() { Items = new ObservableCollect...
```c# using System; using System.Collections.ObjectModel; using ReactiveUI; namespace BindingTest.ViewModels { public class MainWindowViewModel : ReactiveObject { private string _simpleBinding = "Simple Binding"; public MainWindowViewModel() { Items = new ObservableCollect...
4361f018-38a8-47a8-92b9-f95488b3b59e
{ "language": "C#" }
```c# using System.ComponentModel.DataAnnotations; using Newtonsoft.Json.Linq; namespace CmsEngine.Application.Helpers.Email { public class ContactForm { [Required] [DataType(DataType.EmailAddress)] public string From { get; set; } [DataType(DataType.EmailAddress)] publi...
```c# using System.ComponentModel.DataAnnotations; using Newtonsoft.Json.Linq; namespace CmsEngine.Application.Helpers.Email { public class ContactForm { [Required] [DataType(DataType.EmailAddress)] public string From { get; set; } [DataType(DataType.EmailAddress)] publi...
f5177f06-d9a2-40fd-ab4f-131db275fcb7
{ "language": "C#" }
```c# using System; namespace ClosedXML_Sandbox { internal class Program { private static void Main(string[] args) { Console.WriteLine("Running {0}", nameof(PerformanceRunner.OpenTestFile)); PerformanceRunner.TimeAction(PerformanceRunner.OpenTestFile); Consol...
```c# using System; namespace ClosedXML_Sandbox { internal static class Program { private static void Main(string[] args) { Console.WriteLine("Running {0}", nameof(PerformanceRunner.OpenTestFile)); PerformanceRunner.TimeAction(PerformanceRunner.OpenTestFile); ...
c08bcaf0-fa87-445c-a894-4fbb4a82387e
{ "language": "C#" }
```c# namespace formulate.meta { /// <summary> /// Constants relating to Formulate itself (i.e., does not /// include constants used by Formulate). /// </summary> public class Constants { /// <summary> /// This is the version of Formulate. It is used on /// assemblies ...
```c# namespace formulate.meta { /// <summary> /// Constants relating to Formulate itself (i.e., does not /// include constants used by Formulate). /// </summary> public class Constants { /// <summary> /// This is the version of Formulate. It is used on /// assemblies ...
6a6fca40-88f8-41de-97d8-6a99430d7d27
{ "language": "C#" }
```c# namespace TAUtil.Tdf { using System.Collections.Generic; public class TdfNodeAdapter : ITdfNodeAdapter { private readonly Stack<TdfNode> nodeStack = new Stack<TdfNode>(); public TdfNodeAdapter() { this.RootNode = new TdfNode(); this.nodeSta...
```c# namespace TAUtil.Tdf { using System.Collections.Generic; public class TdfNodeAdapter : ITdfNodeAdapter { private readonly Stack<TdfNode> nodeStack = new Stack<TdfNode>(); public TdfNodeAdapter() { this.RootNode = new TdfNode(); this.nodeSta...
e9b93a80-992f-4955-a07c-675063eb311c
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Threading; namespace tweetz5.Utilities.Translate { public class TranslationService { public readonly static TranslationService Instance = new TranslationService(); publi...
```c# using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Threading; namespace tweetz5.Utilities.Translate { public class TranslationService { public readonly static TranslationService Instance = new TranslationService(); publi...
be61c951-6d66-40d0-8566-4f8d39bcfa19
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Reflection; using System.Reflection.Emit; namespace Harmony { public static class Transpilers { public static IEnumerable<CodeInstruction> MethodReplacer(this IEnumerable<CodeInstruction> instructions, MethodBase from, MethodBase to, OpCode? callOpcode = null) ...
```c# using System; using System.Collections.Generic; using System.Reflection; using System.Reflection.Emit; namespace Harmony { public static class Transpilers { public static IEnumerable<CodeInstruction> MethodReplacer(this IEnumerable<CodeInstruction> instructions, MethodBase from, MethodBase to, OpCode? callOp...
695d3bc3-b885-4d9f-abff-2401f1a68e42
{ "language": "C#" }
```c# using System.Web.Security; using Oogstplanner.Models; namespace Oogstplanner.Services { public interface IMembershipService { bool ValidateUser(string userNameOrEmail, string password); void SetAuthCookie(string userNameOrEmail, bool createPersistentCookie); MembershipUser GetMe...
```c# using System.Web.Security; using Oogstplanner.Models; namespace Oogstplanner.Services { public interface IMembershipService { bool ValidateUser(string userNameOrEmail, string password); MembershipUser GetMembershipUserByEmail(string email); bool TryCreateUser(string username, st...
8de016e7-77d1-4e89-9428-e2feaf231463
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; using MonoTorrent.BEncoding; using System.Net; namespace MonoTorrent.Tracker.Listeners { public class ManualListener : ListenerBase { private bool running; public override bool Running { get { return running; } } ...
```c# using System; using System.Collections.Generic; using System.Text; using MonoTorrent.BEncoding; using System.Net; namespace MonoTorrent.Tracker.Listeners { public class ManualListener : ListenerBase { private bool running; public override bool Running { get { return running; } } ...
7ed51cec-4bf4-4398-8218-b1abba736446
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; namespace Assets.BeMoBI.Paradigms.SearchAndFind { /// <summary> /// Represents all possible interactions for subject regarding the paradigm or trial behaviour /// </summary> public class SubjectInteractions : MonoBehaviour { private const string SUBMIT_INPUT...
```c# using UnityEngine; using System.Collections; namespace Assets.BeMoBI.Paradigms.SearchAndFind { /// <summary> /// Represents all possible interactions for subject regarding the paradigm or trial behaviour /// </summary> public class SubjectInteractions : MonoBehaviour { private const string SUBMIT_INPUT...
4ea6cd28-e221-4ef6-bc69-ba111b873a4a
{ "language": "C#" }
```c# using NUnit.Framework; namespace Algorithms.Collections.Tests { [TestFixture] public class SquareMatrixTests { } } ``` Add square matrix multiplication test case.
```c# using System.Collections.Generic; using System.Globalization; using System.Text; using NUnit.Framework; namespace Algorithms.Collections.Tests { [TestFixture] public class SquareMatrixTests { [TestCaseSource("GetTestCases")] public void Multiply(TestCase testCase) { int[,] result = Squa...
3cb85515-11ca-4d04-8b03-51fd83796d84
{ "language": "C#" }
```c# using UnityEngine; using UnityEngine.UI; public class LeaderboardEntry : MonoBehaviour { [SerializeField] private Text _name; [SerializeField] private Text _time; [SerializeField] private Text _penality; public void SetInfo(Score score) { _name.text = score.Name; ...
```c# using UnityEngine; using UnityEngine.UI; public class LeaderboardEntry : MonoBehaviour { [SerializeField] private Text _name; [SerializeField] private Text _time; [SerializeField] private Text _penality; public void SetInfo(Score score) { _name.text = score.Name; ...
47dad1ff-4eed-4873-994f-99f820e87715
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TestingApplication { class Program { static void Main(string[] args) { Console.WriteLine("Hello World\nPress any key to clos...
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TestingApplication { class Program { static void Main(string[] args) { Console.WriteLine("Hello World\nPress any key to clos...
f14fc197-4ff7-4a2a-b954-5e16eca40c12
{ "language": "C#" }
```c# namespace Stripe { using Newtonsoft.Json; public class InvoiceItemListOptions : ListOptionsWithCreated { [JsonProperty("customer")] public string CustomerId { get; set; } } } ``` Add support for listing invoice items via invoice and pending
```c# namespace Stripe { using Newtonsoft.Json; public class InvoiceItemListOptions : ListOptionsWithCreated { [JsonProperty("customer")] public string CustomerId { get; set; } [JsonProperty("invoice")] public string InvoiceId { get; set; } [JsonProperty("pending")...
0cc32573-af78-42bc-b669-480d27404b86
{ "language": "C#" }
```c# namespace Boxed.Templates.Test { using System; using System.Threading; public static class CancellationTokenFactory { public static CancellationToken GetCancellationToken(TimeSpan? timeout) => GetCancellationToken(timeout ?? TimeSpan.FromSeconds(30)); public static Ca...
```c# namespace Boxed.Templates.Test { using System; using System.Threading; public static class CancellationTokenFactory { public static CancellationToken GetCancellationToken(TimeSpan? timeout) => GetCancellationToken(timeout ?? TimeSpan.FromMinutes(1)); public static Can...
cb56bee5-a8b1-4a5b-895b-91fbc5635c77
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; using System.Collections.Generic; public class AdminModeTriggerer : MonoBehaviour { private const float WAIT_TIME = 10f; public ActionBase AdminModeAction; public void Initialize() { StartCoroutine(WaitThenEnterAdminMode()); } public IEnu...
```c# using UnityEngine; using System.Collections; using System.Collections.Generic; public class AdminModeTriggerer : MonoBehaviour { private const float WAIT_TIME = 180f; public ActionBase AdminModeAction; public void Initialize() { StartCoroutine(WaitThenEnterAdminMode()); } public IEn...
6c383af3-212a-432e-aabb-64c95a3ac364
{ "language": "C#" }
```c# <div class="span7"> <div id="button" class="tile quadro triple-vertical bg-lightPink bg-active-lightBlue" style="padding:10px; text-align: center;"> Your number is... <br /><br /> <span class="COUNT">@(Model)!!!</span><br /><br /> Click this pink square to record a three second vi...
```c# <div class="span7"> <div id="button" class="tile quadro triple-vertical bg-lightPink bg-active-lightBlue" style="padding:10px; text-align: center;"> Your number is... <br /><br /> <span class="COUNT">@(Model)!!!</span><br /><br /> Click this pink square to record a three second vi...
ffa403fb-b1d0-4298-a650-dc0ce72feb7e
{ "language": "C#" }
```c# using System.Collections.ObjectModel; using System.ComponentModel; namespace ProjectCDA.Data { public class DataSource : INotifyPropertyChanged { private ObservableCollection<TwoPages> _Schedule; public DataSource() { AddSomeDummyData(); } public Obs...
```c# using System.Collections.ObjectModel; using System.ComponentModel; namespace ProjectCDA.Data { public class DataSource : INotifyPropertyChanged { private ObservableCollection<TwoPages> _Schedule; public DataSource() { AddSomeDummyData(); } public Obs...
6a9c4196-ae1b-45bb-ab29-37cd2ca96b44
{ "language": "C#" }
```c# // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.CodeAnalysis.Options; namespace Microsoft.CodeAnalysis.SymbolSearch { internal static class SymbolSearchOptions { priv...
```c# // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.CodeAnalysis.Options; namespace Microsoft.CodeAnalysis.SymbolSearch { internal static class SymbolSearchOptions { priv...
aa192fcf-6067-4a53-b183-0ecf76ed2163
{ "language": "C#" }
```c# @model SFA.DAS.EmployerUsers.Web.Models.AccessCodeViewModel <h1 class="heading-large">Register</h1> @if (!Model.Valid) { <div class="error" style="margin-bottom: 10px;"> <p class="error-message"> Invalid Code </p> </div> } <form method="post"> <fieldset> <legend...
```c# @model SFA.DAS.EmployerUsers.Web.Models.AccessCodeViewModel @{ var invalidAttributes = Model.Valid ? "aria-invalid=\"true\" aria-labeledby=\"invalidMessage\"" : ""; } <h1 class="heading-large">Register</h1> @if (!Model.Valid) { <div id="invalidMessage" class="error" style="margin-bottom: 10px;"> ...
71f21a4b-4f23-4f50-aa38-025c56f6098f
{ "language": "C#" }
```c# using Infra.Authentications; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Net; using System.Security.Claims; using System.Threading; using Infra.Events; namespace Infra.Authentications.Identity.Services { public class Authenticator : IAuthenticator { ...
```c# using Infra.Authentications; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Net; using System.Security.Claims; using System.Threading; using Infra.Events; namespace Infra.Authentications.Identity.Services { public class Authenticator : IAuthenticator { ...
35fb5f52-c9d5-4e68-aa2b-ccae0d349de5
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace MetroTrilithon.Lifetime { public static class DisposableExtensions { /// <summary> /// <see cref="IDisposable"/> オブジェクトを、指定した <see cref="IDisposableHolder.CompositeDisposable"/> に追加します。 /// </summa...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using StatefulModel; namespace MetroTrilithon.Lifetime { public static class DisposableExtensions { /// <summary> /// <see cref="IDisposable"/> オブジェクトを、指定した <see cref="IDisposableHolder.CompositeDisposable"/>...
614cf81c-24e5-4a04-82f4-af09e6da5d1d
{ "language": "C#" }
```c# using Microsoft.AspNetCore.Mvc; using Promact.Trappist.DomainModel.Models.Question; using Promact.Trappist.Repository.Questions; using System; namespace Promact.Trappist.Core.Controllers { [Route("api/question")] public class QuestionsController : Controller { private readonly IQuestionRepos...
```c# using Microsoft.AspNetCore.Mvc; using Promact.Trappist.DomainModel.Models.Question; using Promact.Trappist.Repository.Questions; using System; namespace Promact.Trappist.Core.Controllers { [Route("api/question")] public class QuestionsController : Controller { private readonly IQuestionRepos...
fe9337df-1b6a-42c7-9a80-74f00dc202a5
{ "language": "C#" }
```c# using System.Globalization; namespace Agens.Stickers { public static class StickerEditorUtility { /// <summary> /// Checks the file extension of a filename /// </summary> /// <param name="fileName">filename with extension or full path of a file</param> /// <return...
```c# using System.Globalization; namespace Agens.Stickers { public static class StickerEditorUtility { /// <summary> /// Checks the file extension of a filename /// </summary> /// <param name="fileName">filename with extension or full path of a file</param> /// <return...
509c1d4a-d8ff-448f-9c10-647b75663c92
{ "language": "C#" }
```c# using System; using System.Diagnostics; using CIV.Formats; using static System.Console; namespace CIV { [Flags] enum ExitCodes : int { Success = 0, FileNotFound = 1, ParsingFailed = 2, VerificationFailed = 4 } class Program { static void Main(string[] args) ...
```c# using System; using System.Diagnostics; using CIV.Formats; using CIV.Common; using static System.Console; namespace CIV { [Flags] enum ExitCodes : int { Success = 0, FileNotFound = 1, ParsingFailed = 2, VerificationFailed = 4 } class Program { static void Main(stri...
273fd228-4e1d-473c-b159-c56c94b1fd72
{ "language": "C#" }
```c# @if (ViewData.ModelState.Any(x => x.Value.Errors.Any())) { <div class="alert alert-error"> <a class="close" data-dismiss="alert">�</a> @Html.ValidationSummary(true) </div> } ``` Use `&times;` for close button
```c# @if (ViewData.ModelState.Any(x => x.Value.Errors.Any())) { <div class="alert alert-error"> <a class="close" data-dismiss="alert">&times;/a> @Html.ValidationSummary(true) </div> } ```
25eff194-86f7-4927-b2e8-0ca71c5e7909
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using LifeTimeV3.BL.LifeTimeDiagram; namespace LifeTimeV3.LifeTimeDiagram.CopyPeriodicD...
```c# using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using LifeTimeV3.BL.LifeTimeDiagram; namespace LifeTimeV3.LifeTimeDiagram.CopyPeriodicD...
2aeea6df-18ed-4bcb-88b5-b138d50486cd
{ "language": "C#" }
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE namespace osu.Game.Rulesets.Mania.Judgements { public class HoldNoteTailJudgement : ManiaJudgement { /// <summary> /// Whether the ...
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE namespace osu.Game.Rulesets.Mania.Judgements { public class HoldNoteTailJudgement : ManiaJudgement { /// <summary> /// Whether the ...
55cc0a8b-8b5f-428a-94ed-6d6d4fc901c2
{ "language": "C#" }
```c# namespace Stripe { using Newtonsoft.Json; using Stripe.Infrastructure; public class ChargePaymentMethodDetailsCardPresentReceipt : StripeEntity { [JsonProperty("application_cryptogram")] public string ApplicationCryptogram { get; set; } [JsonProperty("application_preferre...
```c# namespace Stripe { using Newtonsoft.Json; using Stripe.Infrastructure; public class ChargePaymentMethodDetailsCardPresentReceipt : StripeEntity { [JsonProperty("application_cryptogram")] public string ApplicationCryptogram { get; set; } [JsonProperty("application_preferre...
b27ccc8b-fab4-44cf-8f10-6de5cb891e4e
{ "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.Game.Online.API.Requests.Responses; namespace osu.Game.Configuration { /// <summary> /// Stores global per-session statics. These will not be st...
```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.Game.Online.API.Requests.Responses; namespace osu.Game.Configuration { /// <summary> /// Stores global per-session statics. These will not be st...
cdb64f61-26c1-43b8-a225-a89ac0e3aee2
{ "language": "C#" }
```c# ``` Revert assembly info change in uwp project
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("ValueConverters.UWP")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Thomas Galliker")] [assembly: AssemblyProduct("ValueConvert...
610aa7ae-62db-45fe-988b-288069674535
{ "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.Game.Screens.Select; namespace osu.Game.Screens.Multi.RealtimeMultiplayer { public class RealtimeMatchSongSelect : SongSelect { protected...
```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.Linq; using Humanizer; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Screens; using osu.Game.Online.Multiplayer; u...
b8eb6a38-c46a-4977-96cf-76cb1b95d97f
{ "language": "C#" }
```c# namespace Pdelvo.Minecraft.Protocol.Helper { /// <summary> /// /// </summary> /// <remarks></remarks> public static class ProtocolInformation { /// <summary> /// /// </summary> public const int MinSupportedClientVersion = 22; /// <summary> ...
```c# namespace Pdelvo.Minecraft.Protocol.Helper { /// <summary> /// /// </summary> /// <remarks></remarks> public static class ProtocolInformation { /// <summary> /// /// </summary> public const int MinSupportedClientVersion = 22; /// <summary> ...
8aca70e9-bee3-4147-b5ef-5477935c3e98
{ "language": "C#" }
```c# using System.Collections.Generic; using Raml.Parser.Expressions; namespace Raml.Parser.Builders { public class SecuritySchemeDescriptorBuilder { public SecuritySchemeDescriptor Build(IDictionary<string, object> dynamicRaml, string defaultMediaType) { var descriptor = new SecuritySchemeDescriptor...
```c# using System.Collections.Generic; using System.Dynamic; using System.Linq; using Raml.Parser.Expressions; namespace Raml.Parser.Builders { public class SecuritySchemeDescriptorBuilder { public SecuritySchemeDescriptor Build(IDictionary<string, object> dynamicRaml, string defaultMediaType) { var ...
a5ee9ca7-42ac-4370-ae87-3208f60a5de3
{ "language": "C#" }
```c# using System; using UnityEngine; using UnityEngine.Assertions; namespace Alensia.Core.Common { public enum Axis { X, Y, Z, InverseX, InverseY, InverseZ } public static class AxisExtensions { public static Vector3 Of(this Axis axis, Tra...
```c# using System; using UnityEngine; using UnityEngine.Assertions; namespace Alensia.Core.Common { public enum Axis { X, Y, Z, InverseX, InverseY, InverseZ } public static class AxisExtensions { public static Vector3 Of(this Axis axis, Tra...
855751b4-48f6-4fe9-9a56-4c058e0d1db0
{ "language": "C#" }
```c# using BmpListener.MiscUtil.Conversion; using System; using System.Collections.Generic; using System.Linq; namespace BmpListener.Bgp { public class PathAttributeMPUnreachNLRI : PathAttribute { public AddressFamily AFI { get; private set; } public SubsequentAddressFamily SAFI { get; privat...
```c# using BmpListener.MiscUtil.Conversion; using System; using System.Collections.Generic; using System.Linq; namespace BmpListener.Bgp { public class PathAttributeMPUnreachNLRI : PathAttribute { public AddressFamily AFI { get; private set; } public SubsequentAddressFamily SAFI { get; privat...
c484c976-d8d8-4871-b117-92fcfa6bb01b
{ "language": "C#" }
```c# using Xunit; public class AcronymTest { [Fact] public void Empty_string_abbreviated_to_empty_string() { Assert.Equal(string.Empty, Acronym.Abbreviate(string.Empty)); } [Theory(Skip = "Remove to run test")] [InlineData("Portable Network Graphics", "PNG")] [InlineData("Ruby on ...
```c# using Xunit; public class AcronymTest { [Fact] public void Basic() { Assert.Equal("PNG", Acronym.Abbreviate("Portable Network Graphics")); } [Fact(Skip = "Remove to run test")] public void Lowercase_words() { Assert.Equal("ROR", Acronym.Abbreviate("Ruby on Rails")); ...
99903002-7937-4cab-bc51-787fda390b9f
{ "language": "C#" }
```c# using System; namespace Foundatio.Repositories.Elasticsearch.Configuration { public interface IChildIndexType : IIndexType { string ParentPath { get; } } public interface IChildIndexType<T> : IChildIndexType { string GetParentId(T document); } public class ChildIndexType<T>...
```c# using System; namespace Foundatio.Repositories.Elasticsearch.Configuration { public interface IChildIndexType : IIndexType { string ParentPath { get; } } public interface IChildIndexType<T> : IChildIndexType { string GetParentId(T document); } public class ChildIndexType<T>...
d1f38904-9e42-4eb5-b1e9-468ebaf81c39
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using OpenSage.Data; using OpenSage.Data.Sav; using OpenSage.Mods.Generals; using Veldrid; using Xunit; namespace OpenSage.Tests.Data.Sav { public class SaveFileTests { private static readonly string RootFolder = Path.Combine(Envir...
```c# using System; using System.Collections.Generic; using System.IO; using OpenSage.Data; using OpenSage.Data.Sav; using OpenSage.Mods.Generals; using Veldrid; using Xunit; namespace OpenSage.Tests.Data.Sav { public class SaveFileTests { private static readonly string RootFolder = Path.Combine(Envir...
9008128a-587d-4f0a-bbb7-ad332027e170
{ "language": "C#" }
```c# using System.Linq; using AutoMapper; using IObjectMapper = Abp.ObjectMapping.IObjectMapper; namespace Abp.AutoMapper { public class AutoMapperObjectMapper : IObjectMapper { private readonly IMapper _mapper; public AutoMapperObjectMapper(IMapper mapper) { _mapper = ma...
```c# using System.Linq; using AutoMapper; using IObjectMapper = Abp.ObjectMapping.IObjectMapper; namespace Abp.AutoMapper { public class AutoMapperObjectMapper : IObjectMapper { protected readonly IMapper _mapper; public AutoMapperObjectMapper(IMapper mapper) { _mapper = ...
b4be260d-9e89-4a64-8d2a-dfefe2710e62
{ "language": "C#" }
```c# /* Copyright (c) 2017 Marcin Szeniak (https://github.com/Klocman/) Apache License Version 2.0 */ using System; using System.Diagnostics; using System.IO; using System.Text; namespace BulkCrapUninstaller { internal sealed class LogWriter : StreamWriter { public LogWriter(str...
```c# /* Copyright (c) 2017 Marcin Szeniak (https://github.com/Klocman/) Apache License Version 2.0 */ using System; using System.Diagnostics; using System.IO; using System.Text; namespace BulkCrapUninstaller { internal sealed class LogWriter : StreamWriter { public LogWriter(str...
9418afd2-38b6-4265-be0e-217837e19fa4
{ "language": "C#" }
```c# using System; using WampSharp.Binding; using WampSharp.Fleck; using WampSharp.V2; using WampSharp.V2.MetaApi; namespace Adaptive.ReactiveTrader.MessageBroker { public class MessageBroker : IDisposable { private WampHost _router; public void Dispose() { _router.Dispose...
```c# using System; using WampSharp.Binding; using WampSharp.Fleck; using WampSharp.V2; using WampSharp.V2.MetaApi; namespace Adaptive.ReactiveTrader.MessageBroker { public class MessageBroker : IDisposable { private WampHost _router; public void Dispose() { _router.Dispose...
f9ea7402-bcd3-4a5b-9553-5d9ef184efcb
{ "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.Graphics; using osu.Framework.Graphics.Sprites; using osu.Framework.Localisation; using osu.Game.Localisation; using osu.Game.Overlays.Settings...
```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.Graphics; using osu.Framework.Graphics.Sprites; using osu.Framework.Localisation; using osu.Game.Localisation; using osu.Game.Overlays.Settings...
7083c95f-6283-4d8d-b912-9b85421a5e6f
{ "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; namespace osu.Game.Skinning { public class UnsupportedSkinComponentException : Exception { public UnsupportedSkinComponentException(I...
```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; namespace osu.Game.Skinning { public class UnsupportedSkinComponentException : Exception { public UnsupportedSkinComponentException(I...
dd45f150-4997-4fd6-b085-c7407a490d7a
{ "language": "C#" }
```c# using ArcGIS.ServiceModel.Operation; using System; using System.Collections.Generic; namespace ArcGIS.ServiceModel.Serializers.ServiceStackV3 { public class ServiceStackSerializer : ISerializer { static ISerializer _serializer = null; public static void Init() { _ser...
```c# using ArcGIS.ServiceModel.Operation; using System; using System.Collections.Generic; namespace ArcGIS.ServiceModel.Serializers { public class ServiceStackSerializer : ISerializer { static ISerializer _serializer = null; public static void Init() { _serializer = new S...
1f7a0201-6911-44f4-9a9f-9b2efb2fc740
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Linq; using UnityEngine; using UnityEngine.Networking; public class SubsystemManager : NetworkBehaviour { private List<SubsystemBehaviour> systems = new List<SubsystemBehaviour>(); private bool initialized; public override void OnStartServer() { systems = sy...
```c# using System.Collections.Generic; using System.Linq; using UnityEngine; using UnityEngine.Networking; public class SubsystemManager : NetworkBehaviour { private List<SubsystemBehaviour> systems = new List<SubsystemBehaviour>(); private bool initialized; private void Start() { if (isServer) { systems...
ed3a2467-41f0-42a8-a960-a81f3a2fa9e4
{ "language": "C#" }
```c# using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.SignalR; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Ordering.SignalrHub { [Authorize] public class NotificationsHub : Hub { public override async Task OnConne...
```c# using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.SignalR; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Ordering.SignalrHub { [Authorize] public class NotificationsHub : Hub { public override async Task OnConne...
855eb739-2171-48f7-9c06-80dcc431e06f
{ "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. #nullable disable using System.Collections.Generic; using System.Linq; using osu.Framework.Extensions; using osu.Framework.Localisation; using osu.Game.Resources....
```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. #nullable disable using System.Collections.Generic; using System.Linq; using osu.Framework.Extensions; using osu.Framework.Localisation; using osu.Game.Resources....
173965c4-394b-4038-9e8a-fbb0fb312b37
{ "language": "C#" }
```c# // Copyright (c) The Perspex Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System; using Perspex.Win32.Interop; namespace Perspex.Win32 { public class EmbeddedWindowImpl : WindowImpl { private static ...
```c# // Copyright (c) The Perspex Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System; using Perspex.Win32.Interop; namespace Perspex.Win32 { public class EmbeddedWindowImpl : WindowImpl { private static ...
f6112a0a-41ed-4f3b-bd24-b3709c0ee83d
{ "language": "C#" }
```c# @model IEnumerable<MMLibrarySystem.Models.BorrowRecord> @{ ViewBag.Title = "Borrowed Books"; } <table id="bookList"> <tr> <td> Book Number </td> <td> Title </td> <td> Borrowed By </td> <td> Borrowed ...
```c# @model IEnumerable<MMLibrarySystem.Models.BorrowRecord> @{ ViewBag.Title = "Borrowed Books"; } <table id="bookList"> <tr> <td> Book Number </td> <td> Title </td> <td> Borrowed By </td> <td> Borrowed ...
ef078c94-9f20-4be2-99c9-19002d91f0ea
{ "language": "C#" }
```c# using System; namespace Hangman { public class Table { public int Width; public int Spacing; public Row[] Rows; public Table(int width, int spacing, Row[] rows) { Width = width; Spacing = spacing; Rows = rows; } public string Draw() { return "Hello World"; ...
```c# using System; using System.Collections.Generic; using System.Text; namespace Hangman { public class Table { public int Width; public int Spacing; public Row[] Rows; public Table(int width, int spacing, Row[] rows) { Width = width; Spacing = spacing; Rows = rows; } pu...
728ef803-0d1f-4781-9d05-6f590c6e4da6
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.ComponentModel; namespace DesktopWidgets.WidgetBase.Settings { public class WidgetClockSettingsBase : WidgetSettingsBase { [Category("General")] [DisplayName("Refresh Interval")] public int UpdateInterval { get; set; } ...
```c# using System; using System.Collections.Generic; using System.ComponentModel; namespace DesktopWidgets.WidgetBase.Settings { public class WidgetClockSettingsBase : WidgetSettingsBase { [Category("General")] [DisplayName("Refresh Interval")] public int UpdateInterval { get; set; } ...