doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
70c28f96-ee61-48ee-a7e6-782c26b4ded1
{ "language": "C#" }
```c# /*Problem 3. Check for a Play Card Classical play cards use the following signs to designate the card face: `2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K and A. Write a program that enters a string and prints “yes” if it is a valid card sign or “no” otherwise. Examples: character Valid card sign? 5 ye...
```c# /*Problem 3. Check for a Play Card Classical play cards use the following signs to designate the card face: `2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K and A. Write a program that enters a string and prints “yes” if it is a valid card sign or “no” otherwise. Examples: character Valid card sign? 5 ye...
c8d7af49-66d6-4073-be2b-489f9df82433
{ "language": "C#" }
```c# using System; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using Xamarin.Forms; namespace Bit.ViewModel.Implementations { public class BitHttpClientHandler : HttpClientHandler { protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage reques...
```c# using System; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using Xamarin.Forms; namespace Bit.ViewModel.Implementations { public class BitHttpClientHandler : #if Android Xamarin.Android.Net.AndroidClientHandler #elif iOS NSUrlSessionHandler #else HttpC...
e833690d-94c0-44fd-bbef-110d2f21fcbe
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; using Csla.Core; using Csla; namespace DataBindingApp { [Serializable()] public class ListObject : BusinessListBase<ListObject, ListObject.DataObject> { [Serializable()] public class DataObject : BusinessBase<DataObjec...
```c# using System; using System.Collections.Generic; using System.Text; using Csla.Core; using Csla; namespace DataBindingApp { [Serializable()] public class ListObject : BusinessListBase<ListObject, ListObject.DataObject> { [Serializable()] public class DataObject : BusinessBase<DataObjec...
d37ab25e-2fd7-41e2-ba95-c63d9218c8b1
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace ConsoleApp { public class Table { private readonly string tableName; private readonly IEnumerable<Column> columns; public Table(string tableName, IEnumerable<Column> columns) { ...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace ConsoleApp { public class Table { private readonly string tableName; private readonly IEnumerable<Column> columns; public Table(string tableName, IEnumerable<Column> columns) { ...
5c4b814e-b104-4450-b8c3-728e7ab1e06d
{ "language": "C#" }
```c# using System; using System.Linq; using ExRam.Gremlinq.Core.Tests; using FluentAssertions; using Xunit; using static ExRam.Gremlinq.Core.GremlinQuerySource; namespace ExRam.Gremlinq.Providers.CosmosDb.Tests { public class GroovySerializationTest : GroovySerializationTest<CosmosDbGroovyGremlinQueryElementVisi...
```c# using System; using System.Linq; using ExRam.Gremlinq.Core.Tests; using FluentAssertions; using Xunit; using static ExRam.Gremlinq.Core.GremlinQuerySource; namespace ExRam.Gremlinq.Providers.CosmosDb.Tests { public class GroovySerializationTest : GroovySerializationTest<CosmosDbGroovyGremlinQueryElementVisi...
aa22ef3f-7a17-4c81-9428-5dd9c435ce4d
{ "language": "C#" }
```c# using System; using System.Diagnostics.CodeAnalysis; using System.Linq; using Octokit.Internal; namespace Octokit { static class EnumExtensions { [SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase")] internal static string ToParameter(this Enum prop) ...
```c# using System; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reflection; using Octokit.Internal; namespace Octokit { static class EnumExtensions { [SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase")] internal static string ToParameter...
bd286a58-b8c8-4732-85fa-d4a7fcfb6269
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace MailChimp.Net.Api { class PostHelpers { public static string PostJson(string url, string data) { var bytes = Encoding.Default.GetByt...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace MailChimp.Net.Api { class PostHelpers { public static string PostJson(string url, string data) { var bytes = Encoding.UTF8.GetBytes(...
131cf709-1180-4a2b-8d8b-6ab66d07a70c
{ "language": "C#" }
```c# using Discord.Commands; using Modix.Services.AutoCodePaste; using System.Threading.Tasks; namespace Modix.Modules { [Name("Code Paste"), Summary("Paste some code to the internet.")] public class CodePasteModule : ModuleBase { private CodePasteService _service; public CodePasteModule...
```c# using Discord.Commands; using Modix.Services.AutoCodePaste; using System.Net; using System.Threading.Tasks; namespace Modix.Modules { [Name("Code Paste"), Summary("Paste some code to the internet.")] public class CodePasteModule : ModuleBase { private CodePasteService _service; publ...
c67d5d7d-d627-4826-8a4f-534d73943c58
{ "language": "C#" }
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace UnitTestProject1 { [TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { Assert.AreEqual(ClassLibrary1.Class1.ReturnFive(), 5); Assert.AreEqual(ClassLibr...
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace UnitTestProject1 { [TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { Assert.AreEqual(ClassLibrary1.Class1.ReturnFive(), 5); Assert.AreEqual(ClassLibr...
7aac2e5e-e335-4478-ac24-f5ca59fcafee
{ "language": "C#" }
```c# using System; using System.Linq; using HtmlAgilityPack; namespace ReverseMarkdown.Converters { public class P : ConverterBase { public P(Converter converter) : base(converter) { Converter.Register("p", this); } public override string Convert(Ht...
```c# using System; using System.Linq; using HtmlAgilityPack; namespace ReverseMarkdown.Converters { public class P : ConverterBase { public P(Converter converter) : base(converter) { Converter.Register("p", this); } public override string Convert(Ht...
65c4f6f9-6e6c-45ca-997e-ce004fe6a3ce
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Microsoft.TeamFoundation.Authentication.Test { /// <summary> /// A class to test <see cref="Configuration"/>. /// </summary> [TestClass] public class ConfigurationTe...
```c# using System; using System.Collections.Generic; using System.IO; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Microsoft.TeamFoundation.Authentication.Test { /// <summary> /// A class to test <see cref="Configuration"/>. /// </summary> [TestClass] public class ConfigurationTe...
63fcbb40-12bc-4211-a6b4-fadce5621784
{ "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; using System.Collections.Generic; using System.ComponentModel.Composition; using Microsoft.CodeAnalysis.Text; using Microsoft.VisualStudi...
```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; using System.Collections.Generic; using System.ComponentModel.Composition; using Microsoft.CodeAnalysis.Text; using Microsoft.VisualStudi...
4fd38488-5a7e-4079-b103-dc3ada017a86
{ "language": "C#" }
```c# using KeyPay.DomainModels.V2.PayRun; using RestSharp; namespace KeyPay.ApiFunctions.V2 { public class PayRunDeductionFunction : BaseFunction { public PayRunDeductionFunction(ApiRequestExecutor api) : base(api) { } public DeductionsResponse List(int businessId,...
```c# using KeyPay.DomainModels.V2.PayRun; using RestSharp; namespace KeyPay.ApiFunctions.V2 { public class PayRunDeductionFunction : BaseFunction { public PayRunDeductionFunction(ApiRequestExecutor api) : base(api) { } public DeductionsResponse List(int businessId,...
92fdd1fb-82e5-484c-afae-4d07db77d16b
{ "language": "C#" }
```c# using System.Web; using System.Web.Optimization; namespace ClubChallengeBeta { public class BundleConfig { // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.A...
```c# using System.Web; using System.Web.Optimization; namespace ClubChallengeBeta { public class BundleConfig { // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.A...
0e7fff71-0c76-4a47-a473-be0249266551
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NBi.Core.Scalar.Resolver { public interface IScalarResolver { object Execute(); } public interface IScalarResolver<T> : IScalarResolver { T Execute()...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NBi.Core.Scalar.Resolver { public interface IScalarResolver { object Execute(); } public interface IScalarResolver<T> : IScalarResolver { new T Execu...
6793efe8-afc5-4b0b-8174-43e9d7946e62
{ "language": "C#" }
```c# using System; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Runtime.InteropServices; namespace Tgstation.Server.Host.Watchdog { /// <summary> /// See <see cref="IActiveAssemblyDeleter"/> for Windows systems /// </summary> sealed class WindowsActiveAssembly...
```c# using System; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Runtime.InteropServices; namespace Tgstation.Server.Host.Watchdog { /// <summary> /// See <see cref="IActiveAssemblyDeleter"/> for Windows systems /// </summary> sealed class WindowsActiveAssembly...
99446bcb-eeb9-43e1-a7e5-3de8a7270990
{ "language": "C#" }
```c# using MarcelloDB.Collections; using MarcelloDB.Platform; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.Storage; namespace MarcelloDB.uwp { public class Platform : IPlatform { public Storage.IStorageStreamProvider...
```c# using MarcelloDB.Collections; using MarcelloDB.Platform; using MarcelloDB.Storage; using MarcelloDB.uwp.Storage; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.Storage; namespace MarcelloDB.uwp { public class Platform : IPlat...
28b6916f-bd0e-4c2b-8669-8d47d3c8d009
{ "language": "C#" }
```c# using System.Collections.Generic; namespace BankFileParsers { public class BaiDetail { public string TransactionDetail { get; private set; } public List<string> DetailContinuation { get; internal set; } public BaiDetail(string line) { TransactionDetail = line;...
```c# using System.Collections.Generic; namespace BankFileParsers { public class BaiDetail { public string TransactionDetail { get; private set; } public List<string> DetailContinuation { get; internal set; } public BaiDetail(string line) { TransactionDetail = line;...
f923120a-b6db-427f-a0aa-bbd21fe7773d
{ "language": "C#" }
```c# using UnityEngine; [CreateAssetMenu (menuName = "AI/Actions/Enemy_Patrol")] public class Action_Patrol : Action { public override void Act(StateController controller) { Act(controller as Enemy_StateController); } public void Act(Enemy_StateController controller) { Patrol(controller); }...
```c# using UnityEngine; [CreateAssetMenu (menuName = "AI/Actions/Enemy_Patrol")] public class Action_Patrol : Action { public override void Act(StateController controller) { Act(controller as Enemy_StateController); } public void Act(Enemy_StateController controller) { Patrol(controller); }...
398c9007-2c12-4eed-8288-13ede26d89c7
{ "language": "C#" }
```c# using System.Reflection; [assembly: AssemblyTitle("Autofac.Extras.Tests.AggregateService")] [assembly: AssemblyDescription("")] ``` Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion ...
```c# using System.Reflection; [assembly: AssemblyTitle("Autofac.Extras.Tests.AggregateService")] ```
71bec767-f9f9-4da8-a89f-4d70fb84ef46
{ "language": "C#" }
```c# using OpenQA.Selenium; using System; namespace Atata { // TODO: Review IWebElementExtensions class. Remove unused methods. public static class IWebElementExtensions { public static WebElementExtendedSearchContext Try(this IWebElement element) { return new WebElementExtend...
```c# using System; using System.Linq; using OpenQA.Selenium; namespace Atata { // TODO: Review IWebElementExtensions class. Remove unused methods. public static class IWebElementExtensions { public static WebElementExtendedSearchContext Try(this IWebElement element) { return n...
bb96c5e0-139a-4602-ad3d-5c7e2ebfe3dd
{ "language": "C#" }
```c# using System; using Xamarin.Forms; namespace XamarinTest { public class App : Application { public App () { // The root page of your application MainPage = new ContentPage { Content = new StackLayout { VerticalOptions = LayoutOptions.Center, Children = { new Label { XAlign...
```c# using System; using Xamarin.Forms; namespace XamarinTest { public class App : Application { public App () { // The root page of your application MainPage = new ContentPage { Content = new StackLayout { VerticalOptions = LayoutOptions.Center, Children = { new Label { XAlign...
0b915d14-ba29-436b-bff9-fe6aaf971b63
{ "language": "C#" }
```c# using NLog; using Sandbox; using Torch.API; using Torch.Managers; using VRage.Dedicated.RemoteAPI; namespace Torch.Server.Managers { public class RemoteAPIManager : Manager { /// <inheritdoc /> public RemoteAPIManager(ITorchBase torchInstance) : base(torchInstance) { ...
```c# using NLog; using Sandbox; using Torch.API; using Torch.Managers; using VRage.Dedicated.RemoteAPI; namespace Torch.Server.Managers { public class RemoteAPIManager : Manager { /// <inheritdoc /> public RemoteAPIManager(ITorchBase torchInstance) : base(torchInstance) { ...
6a366bcd-c073-4c19-9655-ec7b7f978973
{ "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; using System.Collections.Generic; using System.ServiceModel; using System.ServiceModel.Channels; using System.ServiceModel.Description; using Syste...
```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; using System.Collections.Generic; using System.ServiceModel; using System.ServiceModel.Channels; using System.ServiceModel.Description; using Syste...
68a05d5d-f2dd-4280-b3b9-374fcad1a54d
{ "language": "C#" }
```c# using System; namespace FluentAssertions.Common { internal static class Guard { public static void ThrowIfArgumentIsNull<T>([ValidatedNotNull] T obj, string paramName) { if (obj is null) { throw new ArgumentNullException(paramName); } ...
```c# using System; namespace FluentAssertions.Common { internal static class Guard { public static void ThrowIfArgumentIsNull<T>([ValidatedNotNull] T obj, string paramName) { if (obj is null) { throw new ArgumentNullException(paramName); } ...
dd0df46e-4210-489d-94d8-d310c5e12bce
{ "language": "C#" }
```c# @model IEnumerable<RightpointLabs.Pourcast.Web.Areas.Admin.Models.TapModel> @{ ViewBag.Title = "Index"; } <h2>Taps</h2> @foreach (var tap in Model) { <div class="col-lg-6"> <h3>@tap.Name</h3> @if (null == tap.Keg) { <h4>No Keg On Tap</h4> <hr /> ...
```c# @model IEnumerable<RightpointLabs.Pourcast.Web.Areas.Admin.Models.TapModel> @{ ViewBag.Title = "Index"; } <h2>Taps</h2> @foreach (var tap in Model) { <div class="col-lg-6"> <h3>@tap.Name</h3> @if (null == tap.Keg) { <h4>No Keg On Tap</h4> <hr /> ...
7a33d732-d346-4689-907c-c08f8eb894b3
{ "language": "C#" }
```c# using System.Text.RegularExpressions; namespace MarekMotykaBot.ExtensionsMethods { public static class StringExtensions { public static string RemoveRepeatingChars(this string inputString) { string newString = string.Empty; char[] charArray = inputString.ToCharArray(); for (int i = 0; i < charAr...
```c# using System.Text.RegularExpressions; namespace MarekMotykaBot.ExtensionsMethods { public static class StringExtensions { public static string RemoveRepeatingChars(this string inputString) { string newString = string.Empty; char[] charArray = inputString.ToCharArray(); for (int i = 0; i < charAr...
8b4237a7-1d5a-40b6-acb5-729c8089805e
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.ModelBinding; namespace api { public class CommaDelimitedArrayModelBinder : IModelBinder { ...
```c# using System; using System.ComponentModel; using System.Linq; using System.Reflection; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.ModelBinding; namespace api { public class CommaDelimitedArrayModelBinder : IModelBinder { public Task BindModelAsync(ModelBindingContext bindingCon...
1e315dd0-63fc-42b6-8e18-541ff6ac15c5
{ "language": "C#" }
```c# using Core; using StructureMap; using System.Diagnostics; using Xunit; namespace Tests { public class TroubleshootingTests { [Fact] public void ShowBuildPlan() { var container = new Container(x => { x.For<IService>().Use<Service>(); ...
```c# using Core; using StructureMap; using Xunit; namespace Tests { public class TroubleshootingTests { [Fact] public void ShowBuildPlan() { var container = new Container(x => { x.For<IService>().Use<Service>(); }); var ...
515c0660-b3ea-46a3-be80-3e838ba62799
{ "language": "C#" }
```c# namespace Mollie.Api.Models.Payment { public static class PaymentMethod { public const string Bancontact = "bancontact"; public const string BankTransfer = "banktransfer"; public const string Belfius = "belfius"; public const string CreditCard = "creditcard"; public co...
```c# namespace Mollie.Api.Models.Payment { public static class PaymentMethod { public const string Bancontact = "bancontact"; public const string BankTransfer = "banktransfer"; public const string Belfius = "belfius"; public const string CreditCard = "creditcard"; public co...
8939ca30-c59e-4dc2-99fc-e03b6ad09925
{ "language": "C#" }
```c# using Rescuer.Management.Rescuers; namespace Rescuer.Management.Controller { public class RescuerController : IRescuerController { private readonly IRescuerFactory _factory; public RescuerController(IRescuerFactory factory) { _factory = factory; ...
```c# using System; using System.Text; using Rescuer.Management.Rescuers; namespace Rescuer.Management.Controller { public class RescuerController : IRescuerController { private readonly IRescuerFactory _factory; public RescuerController(IRescuerFactory factory) { ...
a1fcbce2-bdf2-4450-b75b-a087c6735a59
{ "language": "C#" }
```c# namespace ReamQuery.Test { using System; using Xunit; using ReamQuery.Helpers; using Microsoft.CodeAnalysis.Text; public class Helpers { [Fact] public void String_InsertTextAt() { var inp = "\r\n text\r\n"; var exp = "\r\n new text\r\n"; ...
```c# namespace ReamQuery.Test { using System; using Xunit; using ReamQuery.Helpers; using Microsoft.CodeAnalysis.Text; public class Helpers { [Fact] public void String_InsertTextAt() { var inp = Environment.NewLine + " text" + Environment.NewLine; ...
0c3054a8-0e00-4c25-bfef-f06942f9cd9f
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading; using System.Threading.Tasks; using Foundatio.Extensions; using Foundatio.Utility; namespace Foundatio.Messaging { public abstract class MessageBusBase : IMessagePublisher, IDisposable { ...
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading; using System.Threading.Tasks; using Foundatio.Extensions; using Foundatio.Utility; namespace Foundatio.Messaging { public abstract class MessageBusBase : IMessagePublisher, IDisposable { ...
bac8191d-da02-45eb-b3a4-bcfc76e48521
{ "language": "C#" }
```c# using System; using Shouldly; using Xunit; namespace Cake.Figlet.Tests { public class FigletTests { [Fact] public void Figlet_can_render() { const string expected = @" _ _ _ _ __ __ _ _ | | | | ___ | || | ___ \ \ ...
```c# using System; using Shouldly; using Xunit; namespace Cake.Figlet.Tests { public class FigletTests { [Fact] public void Figlet_can_render() { const string expected = @" _ _ _ _ __ __ _ _ | | | | ___ | || | ___ \ \ ...
4eeeaa87-1ebe-40cf-90b6-9f5ce0c24f11
{ "language": "C#" }
```c# namespace System.Collections.Async { /// <summary> /// This exception is thrown when you call <see cref="AsyncEnumerable{T}.Break"/>. /// </summary> public sealed class ForEachAsyncCanceledException : OperationCanceledException { } } ``` Fix xml comment cref compiler warning
```c# namespace System.Collections.Async { /// <summary> /// This exception is thrown when you call <see cref="ForEachAsyncExtensions.Break"/>. /// </summary> public sealed class ForEachAsyncCanceledException : OperationCanceledException { } } ```
b2655ea8-2d08-4f00-8fc9-5e2786bfdd36
{ "language": "C#" }
```c# using Microsoft.AspNetCore.Http; using Newtonsoft.Json; using System.Text; namespace MotleyFlash.AspNetCore.MessageProviders { public class SessionMessageProvider : IMessageProvider { public SessionMessageProvider(ISession session) { this.session = session; } ...
```c# using Microsoft.AspNetCore.Http; using Newtonsoft.Json; using System.Text; namespace MotleyFlash.AspNetCore.MessageProviders { public class SessionMessageProvider : IMessageProvider { public SessionMessageProvider(ISession session) { this.session = session; } ...
8c3fdc6b-f8bb-4a79-ac89-6d128d514e04
{ "language": "C#" }
```c# using System; using Csla.Server; namespace Csla.Testing.Business.DataPortal { /// <summary> /// Basically this test class exposes protected DataPortal constructor overloads to the /// Unit Testing System, allowing for a more fine-grained Unit Tests /// </summary> public class TestableData...
```c# using System; using Csla.Server; namespace Csla.Testing.Business.DataPortal { /// <summary> /// Basically this test class exposes protected DataPortal constructor overloads to the /// Unit Testing System, allowing for a more fine-grained Unit Tests /// </summary> public class TestableData...
dc4d1d03-0958-4863-bd94-e243b1705189
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Reactive.Disposables; using System.Reactive.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Core; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Navigation; using ReactiveUI.Routi...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Reactive.Disposables; using System.Reactive.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Core; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Navigation; using ReactiveUI.Routi...
3b52c880-c5f8-43a0-b152-6f7e6b713384
{ "language": "C#" }
```c# using System; using System.Runtime.InteropServices; using System.Security; using LibGit2Sharp.Core; namespace LibGit2Sharp { /// <summary> /// Class that uses <see cref="SecureString"/> to hold username and password credentials for remote repository access. /// </summary> public sealed class Sec...
```c# using System; using System.Runtime.InteropServices; using System.Security; using LibGit2Sharp.Core; namespace LibGit2Sharp { /// <summary> /// Class that uses <see cref="SecureString"/> to hold username and password credentials for remote repository access. /// </summary> public sealed class Sec...
e51b9810-3050-4ac2-9301-2b974ae37e14
{ "language": "C#" }
```c# //----------------------------------------------------------------------- // <copyright company="TheNucleus"> // Copyright (c) TheNucleus. All rights reserved. // Licensed under the Apache License, Version 2.0 license. See LICENCE.md file in the project root for full license information. // </copyright> //-...
```c# //----------------------------------------------------------------------- // <copyright company="TheNucleus"> // Copyright (c) TheNucleus. All rights reserved. // Licensed under the Apache License, Version 2.0 license. See LICENCE.md file in the project root for full license information. // </copyright> //-...
20292be3-72c8-4784-8ace-51f097d54c76
{ "language": "C#" }
```c# using System; using System.Text.RegularExpressions; namespace Floobits.Common { public class Constants { static public string baseDir = FilenameUtils.concat(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "floobits"); static public string shareDir = FilenameUtils.concat...
```c# using System; using System.Text.RegularExpressions; namespace Floobits.Common { public class Constants { static public string baseDir = baseDirInit(); static public string shareDir = FilenameUtils.concat(baseDir, "share"); static public string version = "0.11"; static public ...
234a4150-186f-4a1c-ba7b-591bedf13577
{ "language": "C#" }
```c# using System; using BmpListener.Bmp; using BmpListener.JSON; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace BmpListener.ConsoleExample { internal class Program { private static void Main() { JsonConvert.DefaultSettings = () => { ...
```c# using System; using BmpListener.Bmp; using BmpListener.JSON; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Serialization; namespace BmpListener.ConsoleExample { internal class Program { private static void Main() { JsonConvert.DefaultSettings ...
7f126d35-2817-4f2c-9d87-46912eeab990
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataGenerator { class Program { static void Main(string[] args) { var gen = new Fare.Xeger(ConfigurationSetti...
```c# using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Reactive.Linq; using System.Text; using System.Threading.Tasks; namespace DataGenerator { class Program { static void Main(string[] args) { var data = new...
fcc4aeee-0336-4d49-923a-8650c1a7d0a7
{ "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...
7df2fd2d-7532-4361-82e4-546bb98edf51
{ "language": "C#" }
```c# namespace Mappy.Models { using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; using Mappy.Data; using Mappy.Database; public interface IMapViewSettingsModel { IObservable<bool> GridVisible { get; } IObse...
```c# namespace Mappy.Models { using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; using Mappy.Data; using Mappy.Database; public interface IMapViewSettingsModel { IObservable<bool> GridVisible { get; } IObse...
68e8464f-2fe0-4d6b-a171-51792cf66a6f
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OpeningsMoeWpfClient { class FfmpegMovieConverter : IMovieConverter { private string ffmpegPath; public Task<string> C...
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OpeningsMoeWpfClient { class FfmpegMovieConverter : IMovieConverter { private string ffmpegPath; private Task<int> Lau...
3422a63d-d481-41f8-82e4-ab48ed644e8b
{ "language": "C#" }
```c# using System.Linq; using JetBrains.Annotations; using JetBrains.ReSharper.Feature.Services.Lookup; using JetBrains.ReSharper.PostfixTemplates.LookupItems; using JetBrains.ReSharper.Psi.CSharp; using JetBrains.ReSharper.Psi.CSharp.Tree; namespace JetBrains.ReSharper.PostfixTemplates.Templates { // todo: (Bar) ...
```c# using System.Linq; using JetBrains.Annotations; using JetBrains.ReSharper.Feature.Services.Lookup; using JetBrains.ReSharper.PostfixTemplates.LookupItems; using JetBrains.ReSharper.Psi.CSharp; using JetBrains.ReSharper.Psi.CSharp.Tree; namespace JetBrains.ReSharper.PostfixTemplates.Templates { [PostfixTemplat...
69bc573f-eb4c-4589-83c0-28d30dba7e63
{ "language": "C#" }
```c# @using So.ImageResizer.Helpers @{ Style.Include("slimbox2.css"); Script.Require("jQuery").AtFoot(); Script.Include("slimbox2.js").AtFoot(); } @if (!string.IsNullOrEmpty(Model.ContentField.FileNames)) { <div class="stripGallery"> @foreach (var fileName in Model.ContentField.FileNames.Spli...
```c# @{ Style.Include("slimbox2.css"); Script.Require("jQuery").AtFoot(); Script.Include("slimbox2.js").AtFoot(); } @if (!string.IsNullOrEmpty(Model.ContentField.FileNames)) { <div class="stripGallery"> @foreach (var fileName in Model.ContentField.FileNames.Split(';')) { <a...
cd6a7be0-1661-48f7-9db4-aa35a37ab717
{ "language": "C#" }
```c# using System; namespace CmnTools.Suice { /// <summary> /// @author DisTurBinG /// </summary> public class SingletonProvider : AbstractProvider { internal object Instance; public SingletonProvider (Type providedType) : base(providedType) { } internal virtual void CreateSingleto...
```c# using System; namespace CmnTools.Suice { /// <summary> /// @author DisTurBinG /// </summary> public class SingletonProvider : AbstractProvider { internal object Instance; public SingletonProvider (Type providedType) : base(providedType) { } internal virtual void CreateSingleto...
a40ea33e-7a81-4ea3-b7aa-791c9bd78063
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.Mvc; using System.Web.Routing; using System.Xml.Linq; namespace Twilio.TwiML.Mvc { public class TwiMLResult : ActionResult { XDocument data; public TwiMLResult() { } public TwiM...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.Mvc; using System.Web.Routing; using System.Xml.Linq; namespace Twilio.TwiML.Mvc { public class TwiMLResult : ActionResult { XDocument data; public TwiMLResult() { } public TwiM...
9912a9d7-0cc1-4f0b-83bc-f6a3cc111b57
{ "language": "C#" }
```c# using System.Linq; using System.Text.RegularExpressions; namespace Inscribe.Text { public static class TweetTextCounter { public static int Count(string input) { // URL is MAX 19 Chars. int prevIndex = 0; int totalCount = 0; foreach (var m ...
```c# using System.Linq; using System.Text.RegularExpressions; namespace Inscribe.Text { public static class TweetTextCounter { public static int Count(string input) { // URL is MAX 20 Chars (if URL has HTTPS scheme, URL is MAX 21 Chars) int prevIndex = 0; i...
8da94085-ed7a-45a0-89a6-88f23f3d5f7b
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using ExcelDna.Integration; namespace RtdArrayTest { public static class TestFunctions { public static object RtdArrayTest(string prefix) { object rtdValue = XlCall...
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using ExcelDna.Integration; namespace RtdArrayTest { public static class TestFunctions { public static object RtdArrayTest(string prefix) { object rtdValue = XlCall...
04755a07-b0ee-4dfd-870d-f75f73d741c5
{ "language": "C#" }
```c# // This code is part of the Fungus library (http://fungusgames.com) maintained by Chris Gregan (http://twitter.com/gofungus). // It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE) using UnityEngine; using System.Collections; public class PortraitFl...
```c# // This code is part of the Fungus library (http://fungusgames.com) maintained by Chris Gregan (http://twitter.com/gofungus). // It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE) using UnityEngine; using System.Collections; public class PortraitFl...
80a0894c-bfd0-4c10-b134-8604d1bab0ad
{ "language": "C#" }
```c# using NUnit.Framework; namespace FullSerializer.Tests.InitialInstance { public class SimpleModel { public int A; } public class InitialInstanceTests { [Test] public void TestInitialInstance() { SimpleModel model1 = new SimpleModel { A = 3 }; fsData d...
```c# using NUnit.Framework; namespace FullSerializer.Tests.InitialInstance { public class SimpleModel { public int A; } public class InitialInstanceTests { [Test] public void TestPopulateObject() { // This test verifies that when we pass in an existing object ...
4e1d8109-88b1-4936-a013-9cf1647dfa1e
{ "language": "C#" }
```c# using System.Resources; using System.Reflection; using System.Runtime.CompilerServices; 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...
```c# using System.Resources; using System.Reflection; using System.Runtime.CompilerServices; 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...
91ca70f9-ec19-4349-825f-95f0e65b4173
{ "language": "C#" }
```c# using System.Collections.Generic; using System.IO; namespace JiebaNet.Analyser { public abstract class KeywordExtractor { protected static readonly List<string> DefaultStopWords = new List<string>() { "the", "of", "is", "and", "to", "in", "that", "we", "for", "an", "are", ...
```c# using System.Collections.Generic; using System.IO; namespace JiebaNet.Analyser { public abstract class KeywordExtractor { protected static readonly List<string> DefaultStopWords = new List<string>() { "the", "of", "is", "and", "to", "in", "that", "we", "for", "an", "are", ...
81d61289-d81a-489d-82dd-cb1a05d8f41b
{ "language": "C#" }
```c# using System; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyVersion(SolutionInfo.Version + ".0")] [assembly: AssemblyInformationalVersion(SolutionInfo.Version)] [assembly: AssemblyFileVersion(SolutionInfo.Version + ".0")] [assembly: ComV...
```c# using System; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyVersion(SolutionInfo.Version + ".0")] [assembly: AssemblyInformationalVersion(SolutionInfo.Version)] [assembly: AssemblyFileVersion(SolutionInfo.Version + ".0")] [assembly: ComV...
89929b71-4ced-4870-902e-a71bb9abbebf
{ "language": "C#" }
```c# // Original Work Copyright (c) Ethan Moffat 2014-2016 // This file is subject to the GPL v2 License // For additional details, see the LICENSE file using EOLib; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using XNAControls; namespace EndlessClient.UIControls { public class Pictur...
```c# // Original Work Copyright (c) Ethan Moffat 2014-2016 // This file is subject to the GPL v2 License // For additional details, see the LICENSE file using EOLib; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using XNAControls; namespace EndlessClient.UIControls { public class Pictur...
2752ec3a-9f88-43a9-85c1-9b9e8d5f5045
{ "language": "C#" }
```c# using System; using Newtonsoft.Json; namespace Toggl.Phoebe.Data { public class ForeignKeyJsonConverter : JsonConverter { public override void WriteJson (JsonWriter writer, object value, JsonSerializer serializer) { var model = (Model)value; if (model == null) { ...
```c# using System; using Newtonsoft.Json; namespace Toggl.Phoebe.Data { public class ForeignKeyJsonConverter : JsonConverter { public override void WriteJson (JsonWriter writer, object value, JsonSerializer serializer) { var model = (Model)value; if (model == null) { ...
8bc362d9-bb17-4c47-a224-3879be7014c8
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using Newtonsoft.Json; using OutlookMatters.Core.Http; using OutlookMatters.Core.Mattermost.v4.Interface; namespace OutlookMatters.Core.Mattermost.v4 { public class RestService : IRestService { private readonly IHttpClient _httpClient; pub...
```c# using System; using System.Collections.Generic; using Newtonsoft.Json; using OutlookMatters.Core.Http; using OutlookMatters.Core.Mattermost.v4.Interface; namespace OutlookMatters.Core.Mattermost.v4 { public class RestService : IRestService { private readonly IHttpClient _httpClient; pub...
fdea2711-92b5-46d5-9caf-f5894f36e247
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using Demo.Endpoints; using Distributor; namespace Demo { internal class Program { private static void Main(string[] args) { var distributables = new List<DistributableFile> { new DistributableFile ...
```c# using System; using System.Collections.Generic; using Demo.Endpoints.FileSystem; using Demo.Endpoints.Sharepoint; using Distributor; namespace Demo { internal class Program { private static void Main(string[] args) { var distributables = new List<DistributableFile> ...
8efe15d0-f16f-4d70-97ea-74e5d36d6a4d
{ "language": "C#" }
```c# using UnityEngine; using UnityEngine.EventSystems; using System.Collections; public class UserInput : MonoBehaviour, IPointerClickHandler { // void Start(){} // void Update(){} // Mutually exclusive for now, priority is in the following order: // Left click for human, // Right for zombie, // Middle for co...
```c# using UnityEngine; using UnityEngine.EventSystems; using System.Collections; public class UserInput : MonoBehaviour, IPointerClickHandler { // void Start(){} // void Update(){} // Mutually exclusive for now, priority is in the following order: // Left click for human, // Right for zombie, // Middle for co...
def68408-4478-48f0-8744-81b2201fa65b
{ "language": "C#" }
```c# namespace Mappy.UI.Drawables { using System; using System.Drawing; public class DrawableBandbox : IDrawable, IDisposable { private readonly Brush fillBrush; private readonly Pen borderPen; public DrawableBandbox(Brush fillBrush, Pen borderPen, Size size) ...
```c# namespace Mappy.UI.Drawables { using System; using System.Drawing; public class DrawableBandbox : IDrawable, IDisposable { private readonly Brush fillBrush; private readonly Pen borderPen; public DrawableBandbox(Brush fillBrush, Pen borderPen, Size size) ...
057f83f5-c866-4785-a80c-deeb7cc86502
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.CompilerServices; 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: AssemblyTit...
```c# using System.Reflection; using System.Runtime.CompilerServices; 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: AssemblyTit...
3091f241-b219-4f6c-ab60-b6885b02bb8c
{ "language": "C#" }
```c# namespace McIP { using System; using System.Diagnostics; using System.IO; public static class Program { public static void Main() { var si = new ProcessStartInfo("ipconfig", "/all") { RedirectStandardOutput = true, UseSh...
```c# namespace McIP { using System; using System.Diagnostics; using System.IO; public static class Program { public static void Main() { var si = new ProcessStartInfo("ipconfig", "/all") { RedirectStandardOutput = true, UseSh...
e389d11a-5e20-47bf-aac7-aeb77aa465fe
{ "language": "C#" }
```c# using Microsoft.AspNetCore.Mvc; using Promact.Trappist.DomainModel.ApplicationClasses; using Promact.Trappist.Repository.Questions; using System; namespace Promact.Trappist.Core.Controllers { [Route("api")] public class QuestionController : Controller { private readonly IQuestionRepository ...
```c# using Microsoft.AspNetCore.Mvc; using Promact.Trappist.DomainModel.ApplicationClasses; using Promact.Trappist.Repository.Questions; using System; namespace Promact.Trappist.Core.Controllers { [Route("api")] public class QuestionController : Controller { private readonly IQuestionRepository ...
caaf154d-8ac4-49dc-b30f-384c8f375b73
{ "language": "C#" }
```c# // Copyright 2019 Maintainers of NUKE. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE using System; using System.Linq; using Nuke.Common.Utilities; namespace Nuke.Common.CI.TeamCity.Configuration { public class TeamCityScheduledTrigger : TeamCityTrigger {...
```c# // Copyright 2019 Maintainers of NUKE. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE using System; using System.Linq; using Nuke.Common.Utilities; namespace Nuke.Common.CI.TeamCity.Configuration { public class TeamCityScheduledTrigger : TeamCityTrigger {...
9af3f0e7-675f-4c98-b863-956364e06fe9
{ "language": "C#" }
```c# namespace TAUtil.Gaf.Structures { using System.IO; public struct GafFrameData { public ushort Width; public ushort Height; public ushort XPos; public ushort YPos; public char Unknown1; public bool Compressed; public ushort FramePoin...
```c# namespace TAUtil.Gaf.Structures { using System.IO; public struct GafFrameData { public ushort Width; public ushort Height; public ushort XPos; public ushort YPos; public byte Unknown1; public bool Compressed; public ushort FramePoin...
4aa0341d-ec40-4df7-b18a-7275557a7d54
{ "language": "C#" }
```c# using System.Collections.Generic; namespace Palaso.Extensions { public static class StringExtensions { public static List<string> SplitTrimmed(this string s, char seperator) { var x = s.Split(seperator); var r = new List<string>(); foreach (var part in x) { r.Add(part.Trim()); } ret...
```c# using System.Collections.Generic; namespace Palaso.Extensions { public static class StringExtensions { public static List<string> SplitTrimmed(this string s, char seperator) { if(s.Trim() == string.Empty) return new List<string>(); var x = s.Split(seperator); var r = new List<string>(); ...
bd7d727a-d5fd-4b5c-a241-2da0bb544d29
{ "language": "C#" }
```c# namespace Snittlistan.Test { using System.IO; using System.Text; using Models; using Raven.Imports.Newtonsoft.Json; using Xunit; public class SerializationTest : DbTest { [Fact] public void CanSerialize8x4Match() { // Arrange ...
```c# namespace Snittlistan.Test { using System.IO; using System.Text; using Models; using Raven.Imports.Newtonsoft.Json; using Xunit; public class SerializationTest : DbTest { [Fact] public void CanSerialize8x4Match() { // Arrange ...
3901d2fd-a380-4042-9c77-c1b71743f8c4
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Windows.Data; namespace NuPack.Dialog.PackageManagerUI { public class StringCollectionsToStringConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo ...
```c# using System; using System.Collections.Generic; using System.Windows.Data; namespace NuPack.Dialog.PackageManagerUI { public class StringCollectionsToStringConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo ...
6ffba918-9c86-4206-88d7-d6b5e83a9c91
{ "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...
4382fdbc-efff-414c-bd30-1da1086c0e10
{ "language": "C#" }
```c# using UnityEngine; namespace Entitas.Unity.VisualDebugging { public static class GameObjectDestroyExtension { public static void DestroyGameObject(this GameObject gameObject) { #if (UNITY_EDITOR) if (Application.isPlaying) { Object.Destroy(gameObject);...
```c# using UnityEngine; namespace Entitas.Unity.VisualDebugging { public static class GameObjectDestroyExtension { public static void DestroyGameObject(this GameObject gameObject) { #if (UNITY_EDITOR) if (Application.isPlaying) { Object.Destroy(gameObject);...
2df0da64-8136-4c49-999a-2edb3654fbd7
{ "language": "C#" }
```c# using CarFuel.DataAccess; using CarFuel.Models; using CarFuel.Services; using Microsoft.AspNet.Identity; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace CarFuel.Controllers { public class CarsController : Controller { private I...
```c# using CarFuel.DataAccess; using CarFuel.Models; using CarFuel.Services; using Microsoft.AspNet.Identity; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Web; using System.Web.Mvc; namespace CarFuel.Controllers { public class CarsController : Controller {...
67b761e3-f3b8-4eac-9375-2918a6c3a16b
{ "language": "C#" }
```c# using Orchard.Data.Migration; namespace Orchard.Users.DataMigrations { public class UsersDataMigration : DataMigrationImpl { public int Create() { //CREATE TABLE Orchard_Users_UserRecord (Id INTEGER not null, UserName TEXT, Email TEXT, NormalizedUserName TEXT, Password TEXT, Passw...
```c# using Orchard.Data.Migration; namespace Orchard.Users.DataMigrations { public class UsersDataMigration : DataMigrationImpl { public int Create() { //CREATE TABLE Orchard_Users_UserRecord (Id INTEGER not null, UserName TEXT, Email TEXT, NormalizedUserName TEXT, Password TEXT, Passw...
fa95c6e2-6429-420c-ae45-0e88c1c2e845
{ "language": "C#" }
```c# using System; namespace CITS.Models { public class MathProblemModel : ProblemModel { public MathProblemModel(string Problem, string Solution):base(Problem,Solution){} public override Boolean IsSolutionCorrect(String candidateSolution) { return Solution.Equals(candidat...
```c# using System; using System.Collections.Generic; namespace CITS.Models { public class MathProblemModel : ProblemModel { public MathProblemModel(string problem, string solution, List<String> listOfHints):base(problem,solution, listOfHints){} public override Boolean IsSolutionCorrect(String...
9c256828-9d96-4aac-938e-22ad55fc4644
{ "language": "C#" }
```c# using System; using System.IO; using System.Linq; using NuGet.Frameworks; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ProjectModel; using Microsoft.DotNet.ProjectModel.Graph; using Microsoft.Extensions.DependencyModel.Resolution; namespace ConsoleApplication { public class Program { ...
```c# using System; using System.IO; using System.Linq; using NuGet.Frameworks; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ProjectModel; using Microsoft.DotNet.ProjectModel.Graph; using Microsoft.Extensions.DependencyModel.Resolution; namespace TypeCatalogParser { public class Program { p...
f4b0a42e-81dd-4d2c-9d5c-6590285d7cc4
{ "language": "C#" }
```c#  using UnityEngine; using UnityEngine.EventSystems; class DisableMouse : MonoBehaviour { // private stuff we don't want the editor to see private GameObject m_lastSelectedGameObject; // this is called by unity before start void Awake() { m_lastSelectedGameObject = new GameObject(); } // this is calle...
```c#  using UnityEngine; using UnityEngine.EventSystems; class DisableMouse : MonoBehaviour { // private stuff we don't want the editor to see private GameObject m_lastSelectedGameObject; // this is called by unity before start void Awake() { m_lastSelectedGameObject = new GameObject(); } // this is calle...
efe8eda7-0ff5-48ce-821a-826afe4a365f
{ "language": "C#" }
```c# using com.techphernalia.MyPersonalAccounts.Model.Inventory; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace com.techphernalia.MyPersonalAccounts.Model.Controller { public interface IInventoryController { #region Stock Unit List<StockUnit> ...
```c# using com.techphernalia.MyPersonalAccounts.Model.Inventory; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace com.techphernalia.MyPersonalAccounts.Model.Controller { public interface IInventoryController { #region Stock Unit List<StockUnit> ...
c6c1b482-b548-4305-b368-0d720c47ce10
{ "language": "C#" }
```c# namespace TraktApiSharp.Objects.Get.Shows.Episodes { using Basic; public class TraktEpisodeIds : TraktIds { } } ``` Add documentation for episode ids.
```c# namespace TraktApiSharp.Objects.Get.Shows.Episodes { using Basic; /// <summary>A collection of ids for various web services, including the Trakt id, for a Trakt episode.</summary> public class TraktEpisodeIds : TraktIds { } } ```
f444693f-991f-4e22-8133-78a2b58d4b4d
{ "language": "C#" }
```c# namespace GeekLearning.Domain.AspnetCore { using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; public class DomainExceptionFilter : IActionFilter { private ILoggerFactory loggerFactory; private IOptions<DomainOptions...
```c# namespace GeekLearning.Domain.AspnetCore { using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; public class DomainExceptionFilter : IActionFilter { private ILoggerFactory loggerFactory; private IOptions<DomainOptions...
102c3592-c27b-4d25-bb0c-cc89f6d20159
{ "language": "C#" }
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using System.Collections.Generic; using osu.Game.Beatmaps; using osu.Game.Rulesets.Mods; using osu.Game.Users; using osu.Game.Rulesets.Replays; nam...
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using System.Collections.Generic; using Newtonsoft.Json; using osu.Game.Beatmaps; using osu.Game.Rulesets.Mods; using osu.Game.Users; using osu.Game...
ce709e59-923a-4b8c-ac8e-d24ea1c5392c
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace xwalk { class TwoinoneTest { static void Main(string[] args) { Emulator emulator = new Emulator(); T...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace xwalk { class TwoinoneTest { static void Main(string[] args) { if (args.Length > 0 && args[0] == "emulator") ...
8b1bfc15-49dc-48f3-8c28-46095500e87e
{ "language": "C#" }
```c# using Lbookshelf.Models; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Interactivity; namespace Lbookshelf.Utils { public class ChangeThumbnailBehavior : Behavior<FrameworkElemen...
```c# using Lbookshelf.Models; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Interactivity; namespace Lbookshelf.Utils { public class ChangeThumbnailBehavior : Behavior<FrameworkElemen...
2bb8c019-16ae-456c-be71-a549b7659366
{ "language": "C#" }
```c# // Copyright (c) 2010-2012 SharpDX - Alexandre Mutel // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy...
```c# // Copyright (c) 2010-2012 SharpDX - Alexandre Mutel // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy...
f8e4852b-cbb1-4d46-8d63-a9d39c5ec5d1
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NBi.Core.Analysis.Metadata { public class Property : IField { public string UniqueName { get; private set; } public string Caption { get; set; } public Property(string uni...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NBi.Core.Analysis.Metadata { public class Property : IField { public string UniqueName { get; private set; } public string Caption { get; set; } public Property(string uni...
f6504c83-ca06-412d-85f6-6c5d5ebd41c8
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NXTLib; using System.IO; namespace nxtlibtester { class Program { static void Main(string[] args) { try { string filename = "v...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NXTLib; using System.IO; namespace nxtlibtester { class Program { static void Main(string[] args) { try { string filename = "....
869e7ce0-9b54-4774-ad40-6f55f2bad8fe
{ "language": "C#" }
```c# namespace Microsoft.ApplicationInsights.Extensibility.Implementation.Platform { using Microsoft.ApplicationInsights.DataContracts; using Microsoft.VisualStudio.TestTools.UnitTesting; using Assert = Xunit.Assert; [TestClass] public class PlatformReferencesTests { [TestMethod] ...
```c# namespace Microsoft.ApplicationInsights.Extensibility.Implementation.Platform { using Microsoft.ApplicationInsights.DataContracts; using Microsoft.VisualStudio.TestTools.UnitTesting; using Assert = Xunit.Assert; [TestClass] public class PlatformReferencesTests { [TestMethod] ...
7aa3ca3e-9058-4ee3-8d66-179b351871cd
{ "language": "C#" }
```c# // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Runtime.Remoting.Messaging; using System.Security; namespace System.Diagnostics { public par...
```c# // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Runtime.Remoting.Messaging; using System.Security; namespace System.Diagnostics { // this co...
f403ddaf-d05d-4dcd-b79b-85f77ed6e388
{ "language": "C#" }
```c# using System.Linq; using Xunit; namespace Microsoft.Language.Xml.Tests { public class TestApi { [Fact] public void TestAttributeValue() { var root = Parser.ParseText("<e a=\"\"/>"); var attributeValue = root.Attributes.First().Value; ...
```c# using System.Linq; using Xunit; namespace Microsoft.Language.Xml.Tests { public class TestApi { [Fact] public void TestAttributeValue() { var root = Parser.ParseText("<e a=\"\"/>"); var attributeValue = root.Attributes.First().Value; ...
eb11ade0-960b-4de5-a4a1-78d57cb21917
{ "language": "C#" }
```c# using System.Reflection; [assembly: AssemblyCompany("Andrew Davey")] [assembly: AssemblyProduct("Cassette")] [assembly: AssemblyCopyright("Copyright © 2011 Andrew Davey")] // NOTE: When changing this version, also update Cassette.MSBuild\Cassette.targets to match. [assembly: AssemblyInformationalVersion...
```c# using System.Reflection; [assembly: AssemblyCompany("Andrew Davey")] [assembly: AssemblyProduct("Cassette")] [assembly: AssemblyCopyright("Copyright © 2011 Andrew Davey")] [assembly: AssemblyInformationalVersion("2.0.0-beta1")] [assembly: AssemblyVersion("2.0.0.*")] [assembly: AssemblyFileVersion("2....
3e733c96-2829-4262-b59c-f87be700df12
{ "language": "C#" }
```c# namespace DotnetThoughts.AspNet { using Microsoft.AspNet.Builder; using Microsoft.AspNet.Http; using System.IO; using System.Threading.Tasks; using System.Text; using System.Text.RegularExpressions; public class HtmlMinificationMiddleware { private RequestDelegate _next; ...
```c# namespace DotnetThoughts.AspNet { using Microsoft.AspNet.Builder; using Microsoft.AspNet.Http; using System.IO; using System.Threading.Tasks; using System.Text; using System.Text.RegularExpressions; public class HtmlMinificationMiddleware { private RequestDelegate _next; ...
8ca3da87-ca07-411a-b52a-493131216146
{ "language": "C#" }
```c# using LogicalShift.Reason.Api; using LogicalShift.Reason.Clauses; using System; using System.Linq; namespace LogicalShift.Reason { /// <summary> /// Methods for creating an altering clauses /// </summary> public static class Clause { /// <summary> /// Creates a new negative H...
```c# using LogicalShift.Reason.Api; using LogicalShift.Reason.Clauses; using System; using System.Linq; namespace LogicalShift.Reason { /// <summary> /// Methods for creating an altering clauses /// </summary> public static class Clause { /// <summary> /// Creates a new negative H...
3c628c84-e3b1-4743-88dc-c6f5a0d114ce
{ "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.Bindables; namespace osu.Framework.Statistics { public class GlobalStatistic<T> : IGlobalStatistic { public string Group { get;...
```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.Bindables; namespace osu.Framework.Statistics { public class GlobalStatistic<T> : IGlobalStatistic { public string Group { get;...
4606b80e-cfb7-4976-bdb0-7b967a97f079
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; using OpenQA.Selenium; using Selenium.Internal.SeleniumEmulation; namespace Selenium.Internal.SeleniumEmulation { /// <summary> /// Defines the command for the open keyword. /// </summary> internal class Open : SeleneseCommand ...
```c# using System; using System.Collections.Generic; using System.Text; using OpenQA.Selenium; using Selenium.Internal.SeleniumEmulation; namespace Selenium.Internal.SeleniumEmulation { /// <summary> /// Defines the command for the open keyword. /// </summary> internal class Open : SeleneseCommand ...
8e5ba7b4-54c8-46c3-91a3-dcb319eb189c
{ "language": "C#" }
```c# // Copyright(c) 2016 Google Inc. // // 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 or...
```c# // Copyright(c) 2016 Google Inc. // // 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 or...
c39d4dac-657b-4a09-b472-e68f395caa03
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Globalization; using System.Linq; namespace SpotifyAPI.Web { public static class Util { public static string GetStringAttribute<T>(this T en, String separator) where T : struct, IConvertible { Enum e = (Enum)(object...
```c# using System; using System.Collections.Generic; using System.Globalization; using System.Linq; namespace SpotifyAPI.Web { public static class Util { public static string GetStringAttribute<T>(this T en, String separator) where T : struct, IConvertible { Enum e = (Enum)(object...
c2e603bf-d385-45bc-b652-3d005a361821
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HermaFx.Settings { [AttributeUsage(AttributeTargets.Interface | AttributeTargets.Property, AllowMultiple = false)] public sealed class SettingsAttribute : Attribute { public const s...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Castle.Components.DictionaryAdapter; namespace HermaFx.Settings { [AttributeUsage(AttributeTargets.Interface | AttributeTargets.Property, AllowMultiple = false)] public sealed class Settin...
cf946b48-2811-45ee-9930-e62d489a1343
{ "language": "C#" }
```c# using System; static class Program { static int RemoveDupes(this int[] a) { int write = 1; int read = 0; bool same = false; int count = 0; for (int i = 1; i < a.Length; i++) { read = i; if (same && a[read] == a[write]) { ...
```c# using System; using System.Linq; using System.Collections.Generic; static class Program { static int RemoveDupes(this int[] a) { int write = 1; int read = 0; bool same = false; int count = 0; for (int i = 1; i < a.Length; i++) { read = i; ...
93d6174a-a968-4a6d-a539-f73bf071df0e
{ "language": "C#" }
```c# //Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>. //Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using osu.Framework.Configuration; usin...
```c# //Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>. //Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using osu.Framework.Configuration; usin...