doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
a036be2a-4c3a-4481-a5ad-044621b26f91
{ "language": "C#" }
```c# using System.IO; using System.Web; using System.Web.Mvc; using System.Net.Mail; namespace SmartCam.Controllers { public class SmartCamController : Controller { private static byte[] currentImage = new byte[0]; [HttpPost] public string PostImage(HttpPostedFileBase fil...
```c# using System.IO; using System.Web; using System.Web.Mvc; using System.Net.Mail; namespace SmartCam.Controllers { public class SmartCamController : Controller { private static byte[] currentImage = new byte[0]; [HttpPost] public string PostImage(HttpPostedFileBase file...
4d416e84-5558-4604-b0c4-b67bedfe48cb
{ "language": "C#" }
```c# using System.Collections.ObjectModel; using System.ComponentModel; using System.Linq; namespace XmlParserWpf { public class FilesViewModel: ObservableCollection<FilesListItem> { public const int NoneSelection = -1; private int _selectedIndex = NoneSelection; public int SelectedI...
```c# using System.Collections.ObjectModel; using System.ComponentModel; using System.Linq; namespace XmlParserWpf { public class FilesViewModel: ObservableCollection<FilesListItem> { public const int NoneSelection = -1; private int _selectedIndex = NoneSelection; public int SelectedI...
b838082f-9f59-482a-90d1-1052808928c7
{ "language": "C#" }
```c# using MongoDB.Driver; using MongoDB.Driver.Linq; using Persistence.MongoDB; using SO115App.Models.Servizi.Infrastruttura.GestioneTrasferimentiChiamate.CodiciChiamate; using System.Collections.Generic; namespace SO115App.Persistence.MongoDB.GestioneTrasferimentiChiamate.CodiciChiamate { public class GetCodic...
```c# using MongoDB.Driver; using MongoDB.Driver.Linq; using Persistence.MongoDB; using SO115App.API.Models.Classi.Organigramma; using SO115App.API.Models.Classi.Soccorso; using SO115App.Models.Servizi.Infrastruttura.GestioneTrasferimentiChiamate.CodiciChiamate; using SO115App.Models.Servizi.Infrastruttura.SistemiEste...
7938de17-5158-47f4-b3c7-729dcbbdc769
{ "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.Linq; using osu.Game.Beatmaps.ControlPoints; namespace osu.Game.Beatmaps.Formats { /// <summary> /// A <see cref="LegacyBeatmapDecoder"/> buil...
```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 osu.Game.Beatmaps.ControlPoints; namespace osu.Game.Beatmaps.Formats { /// <summary> /// A <see cref="LegacyBeatmapDecoder"/> buil...
3e3b211b-1ee0-462c-b9c8-bc7a923e2ef2
{ "language": "C#" }
```c# using System; using HexWorld.Enums; namespace HexWorld { public class Tile { public TileTypes Type { get; set; } public bool IsWater { get; set; } public string Printable { get; set; } public Tile(TileTypes type) { ChangeTile(type); } ...
```c# using System; using HexWorld.Enums; namespace HexWorld { public class Tile { public TileTypes Type { get; set; } public bool IsWater { get; set; } public string Printable { get; set; } public Tile(TileTypes type) { ChangeTile(type); } ...
0b97a71f-576a-47b6-a416-b935d3474c9f
{ "language": "C#" }
```c# namespace testproj { using System; using JetBrains.dotMemoryUnit; using NUnit.Framework; [TestFixture] public class UnitTest1 { [Test] public void TestMethod1() { dotMemory.Check( memory => { var st...
```c# namespace testproj { using System; using System.Collections.Generic; using JetBrains.dotMemoryUnit; using NUnit.Framework; [TestFixture] public class UnitTest1 { [Test] public void TestMethod1() { var strs = new List<string>(); var me...
38a4c9a5-7b4f-4bc5-b27f-736d6a1c1bb4
{ "language": "C#" }
```c# using UnityEngine; using UnityEngine.Networking; public class PlayerState : NetworkBehaviour { [SyncVar] string fakingTheory; [SyncVar] int score; void Start() { fakingTheory = null; score = 0; } [Command] public void CmdSetFakingState(string newFakingTh...
```c# using System; using UnityEngine; using UnityEngine.Networking; public class PlayerState : NetworkBehaviour { [SyncVar] string fakingTheory; [SyncVar] int score; void Start() { fakingTheory = null; score = 0; } [Command] public void CmdSetFakingState(stri...
16a4901f-43fd-46fa-b866-77e9fdee9656
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Windows.ApplicationModel.Background; using Gitter.Services.Abstract; namespace Gitter.Services.Concrete { public class BackgroundTaskService : IBackgroundTaskService { public Dictionary<string,...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Windows.ApplicationModel.Background; using Gitter.Services.Abstract; namespace Gitter.Services.Concrete { public class BackgroundTaskService : IBackgroundTaskService { public Dictionary<string,...
3830493e-f4da-4a31-83f5-f2f184a4f9da
{ "language": "C#" }
```c# using System; namespace Mindscape.Raygun4Net { public class RaygunSettings { private static RaygunSettings settings; private const string DefaultApiEndPoint = "https://api.raygun.io/entries"; private const string DefaultPulseEndPoint = "https://api.raygun.io/events"; public static RaygunSet...
```c# using System; namespace Mindscape.Raygun4Net { public class RaygunSettings { private static RaygunSettings settings; private const string DefaultApiEndPoint = "https://api.raygun.io/entries"; private const string DefaultPulseEndPoint = "https://api.raygun.io/events"; public static RaygunSet...
581f7ba3-5c6b-4e45-a121-bbe3896b70ec
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MatterHackers.Agg.UI { public class RootedObjectEventHandler { EventHandler InternalEvent; public void RegisterEvent(EventHandler functionToCallOnEvent, ref EventHandler functionThatWillBeCall...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MatterHackers.Agg.UI { public class RootedObjectEventHandler { #if DEBUG private event EventHandler InternalEventForDebug; private List<EventHandler> DebugEventDelegates = new List<EventHandle...
20bda35c-2762-4267-8af5-1e3ac0e7a16b
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GrienerTest { public partial class PolygonClip { #if false void insert(node *ins, node *first, node *last) { node *aux=first; while(aux != ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GrienerTest { public partial class PolygonClip { #if false void insert(node *ins, node *first, node *last) { node *aux=first; while(aux != ...
b1081316-1ffb-49b8-89c2-815d129a7328
{ "language": "C#" }
```c# @{ ViewBag.Title = "Contact"; } <h2>@ViewBag.Title.</h2> <h3>@ViewBag.Message</h3> <address> One Microsoft Way<br /> Redmond, WA 98052-6399<br /> <abbr title="Phone">P:</abbr> 425.555.0100 </address> <address> <strong>Support:</strong> <a href="mailto:Support@example.com">Support@exam...
```c# @{ ViewBag.Title = "Contact"; } <h2>@ViewBag.Title.</h2> <h3>@ViewBag.Message</h3> <address> One Microsoft Way<br /> Redmond, WA 98052-6399<br /> <abbr title="Phone">P:</abbr> 425.555.0100 </address> <address> <strong>Support:</strong> <a href="mailto:Support@example.com">Support@exam...
cd4fc3b9-30ae-4a2b-926a-17471bfa0ef7
{ "language": "C#" }
```c# using System; using Mono.TextEditor; using ICSharpCode.NRefactory; namespace JustEnoughVi { public class ChangeInnerBlock : ChangeCommand { public ChangeInnerBlock(TextEditorData editor, char openingChar, char closingChar) : base(editor, TextObject.InnerBlock, openingChar, closingCh...
```c# using System; using Mono.TextEditor; using ICSharpCode.NRefactory.Utils; using ICSharpCode.NRefactory; namespace JustEnoughVi { public class ChangeInnerBlock : ChangeCommand { public ChangeInnerBlock(TextEditorData editor, char openingChar, char closingChar) : base(editor, TextObjec...
db6d9789-b450-4455-bab9-f6792a8859fc
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("DynaShape")] [assembly: AssemblyDescription("Open-source Dynamo plugin for constraint-based form finding, optimization and physics simulation")] [assembly: AssemblyConfiguration("")] [a...
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("DynaShape")] [assembly: AssemblyDescription("Open-source Dynamo plugin for constraint-based form finding, optimization and physics simulation")] [assembly: AssemblyConfiguration("")] [a...
40ec705d-aa3c-4b66-961c-4a2cda6fec95
{ "language": "C#" }
```c# using System; using System.IO; using System.Text; namespace EvilDICOM.Core.IO.Writing { public class DICOMBinaryWriter : IDisposable { private readonly BinaryWriter _writer; /// <summary> /// Constructs a new writer from a file path. /// </summary> ...
```c# using System; using System.IO; using System.Text; namespace EvilDICOM.Core.IO.Writing { public class DICOMBinaryWriter : IDisposable { private readonly BinaryWriter _writer; /// <summary> /// Constructs a new writer from a file path. /// </summary> ...
4d0166e2-e37f-44e0-9849-91a5d36c6fb2
{ "language": "C#" }
```c# #tool "nuget:?package=GitVersion.CommandLine" #addin "Cake.Yaml" public class ContextInfo { public string NugetVersion { get; set; } public string AssemblyVersion { get; set; } public GitVersion Git { get; set; } public string BuildVersion { get { return NugetVersion + "-" + Git.Sha;...
```c# #tool "nuget:?package=GitVersion.CommandLine" #addin "Cake.Yaml" public class ContextInfo { public string NugetVersion { get; set; } public string AssemblyVersion { get; set; } public GitVersion Git { get; set; } public string BuildVersion { get { return NugetVersion + "-" + Git.Sha;...
00fb0737-81f1-49cd-a0c6-41b999c8fa81
{ "language": "C#" }
```c# using System; using System.Linq; using System.Windows; using System.Windows.Controls; using System.Windows.Media; using System.Windows.Shapes; class Program { [STAThread] static void Main(string[] args) { var app = new Application(); var window = new Window(); wi...
```c# using System; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Media; using System.Windows.Shapes; class Program { [STAThread] static void Main(string[] args) { var app = new Application(); var window = new W...
63124e48-7086-43ff-a13b-101e34025c94
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using Antlr4.Runtime; using Antlr4.Runtime.Misc; using Antlr4.Runtime.Tree; namespace Twee2Z.Analyzer { public static class TweeAnalyzer { public static O...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using Antlr4.Runtime; using Antlr4.Runtime.Misc; using Antlr4.Runtime.Tree; namespace Twee2Z.Analyzer { public static class TweeAnalyzer { public static Ob...
edbcb700-f4af-4101-b688-944f5798ac2c
{ "language": "C#" }
```c# using System; using System.Threading.Tasks; using Eurofurence.App.Domain.Model.Abstractions; using Eurofurence.App.Domain.Model.Sync; using Eurofurence.App.Server.Services.Abstractions; namespace Eurofurence.App.Server.Services.Storage { public class StorageService<T> : IStorageService { private...
```c# using System; using System.Threading.Tasks; using Eurofurence.App.Domain.Model.Abstractions; using Eurofurence.App.Domain.Model.Sync; using Eurofurence.App.Server.Services.Abstractions; namespace Eurofurence.App.Server.Services.Storage { public class StorageService<T> : IStorageService { private...
d0f9c2da-43ed-4a19-9032-d1282e7bbb11
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Vending.Core { public class VendingMachine { private readonly List<Coin> _coins = new List<Coin>(); private re...
```c# using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Vending.Core { public class VendingMachine { private readonly List<Coin> _coins = new List<Coin>(); private re...
4b790446-dcec-4e6c-9fba-c64bae215efc
{ "language": "C#" }
```c# using System; using System.Globalization; using System.Windows.Data; using System.Windows.Media; namespace MaterialDesignDemo.Converters { public class BrushToHexConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { ...
```c# using System; using System.Globalization; using System.Windows.Data; using System.Windows.Media; namespace MaterialDesignDemo.Converters { public class BrushToHexConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { ...
5216f373-0f0b-41b5-9834-22b2be349573
{ "language": "C#" }
```c# using System; namespace RockLib.Messaging { /// <summary> /// Defines an interface for receiving messages. To start receiving messages, /// set the value of the <see cref="MessageHandler"/> property. /// </summary> public interface IReceiver : IDisposable { /// <summary> ...
```c# using System; namespace RockLib.Messaging { /// <summary> /// Defines an interface for receiving messages. To start receiving messages, /// set the value of the <see cref="MessageHandler"/> property. /// </summary> public interface IReceiver : IDisposable { /// <summary> ...
ed3bbf8c-b3ed-469b-bfa5-48280b6d5440
{ "language": "C#" }
```c# using Citysim.Map; namespace Citysim { public class City { /// <summary> /// Amount of cash available. /// </summary> public int cash = 10000; // $10,000 starting cash /// <summary> /// The world. Needs generation. /// </summary> public Wo...
```c# using Citysim.Map; namespace Citysim { public class City { /// <summary> /// Amount of cash available. /// </summary> public int cash = 10000; // $10,000 starting cash /// <summary> /// MW (mega watts) of electricity available to the city. /// </s...
a14fc823-c53e-4969-afc3-05c00b140571
{ "language": "C#" }
```c# // Copyright 2018 Maintainers of NUKE. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE using System; using System.Linq; using System.Reflection; namespace Nuke.Common.Utilities { public static class AssemblyExtensions { public static string GetInfo...
```c# // Copyright 2018 Maintainers of NUKE. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE using System; using System.Linq; using System.Reflection; namespace Nuke.Common.Utilities { public static class AssemblyExtensions { public static string GetInfo...
10fab85e-d5d9-4447-9b58-5ab927af17e4
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Company.WebApplication1 { public class AzureAdB2COptions { public string ClientId { get; set; } public string AzureAdB2CInstance { get; set; } public string Tenant { get; se...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Company.WebApplication1 { public class AzureAdB2COptions { public string ClientId { get; set; } public string AzureAdB2CInstance { get; set; } public string Domain { get; se...
bbe9e1a9-883a-49f4-a03e-48bed9903982
{ "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.Linq; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.VisualStudio.LanguageServer.Protocol; usi...
```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.Linq; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.VisualStudio.LanguageServer.Protocol; usi...
855d5e92-f434-4f72-bfb1-34f3b5100d68
{ "language": "C#" }
```c# namespace Mappy { using System; using System.Windows.Forms; using UI.Forms; public static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] public static void Main() { ...
```c# namespace Mappy { using System; using System.IO; using System.Windows.Forms; using UI.Forms; public static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] public static void Main()...
274a856a-dfcf-485a-9955-2beb00ed205d
{ "language": "C#" }
```c# using System.Collections.Generic; using DotNetCore.CAP.Models; namespace DotNetCore.CAP { public abstract class CapTransactionBase : ICapTransaction { private readonly IDispatcher _dispatcher; private readonly IList<CapPublishedMessage> _bufferList; protected CapTransactionBase...
```c# using System.Collections.Generic; using DotNetCore.CAP.Models; namespace DotNetCore.CAP { public abstract class CapTransactionBase : ICapTransaction { private readonly IDispatcher _dispatcher; private readonly IList<CapPublishedMessage> _bufferList; protected CapTransactionBase...
35e37cef-2266-4f2b-954e-df2fca35e879
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; namespace osu.Framework.Tests.Audio { [TestFixture] public class DevicelessAudioTest : AudioThreadTest { public overrid...
```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; namespace osu.Framework.Tests.Audio { [TestFixture] public class DevicelessAudioTest : AudioThreadTest { public overrid...
5ac217db-477d-4933-b0cc-35d350407b96
{ "language": "C#" }
```c#  <div id="my-jumbotron" class="jumbotron"> <div class="container"> <h1>Welcome!</h1> <p>We are Sweet Water Revolver. This is our website. Please look around and check out our...</p> <p><a class="btn btn-primary btn-lg" role="button">... showtimes.</a></p> </div> </div> ``` Make t...
```c# <div class="container"> <div id="my-jumbotron" class="jumbotron"> <h1>Welcome!</h1> <p>We are Sweet Water Revolver. This is our website. Please look around and check out our...</p> <p><a class="btn btn-primary btn-lg" role="button">... showtimes.</a></p> </div> </div> ```
906b241f-f110-44b6-a3bf-608be62a7ee2
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; public class test : Skill { private float duration = 10f; private float expiration; bool active; Player player; private int bonusStrength; protected override void Start() { base.Start(); base.SetBaseValues(15, 16000, 1...
```c# using UnityEngine; using System.Collections; public class test : Skill { private float duration = 10f; private float expiration; bool active; Player player; private int bonusStrength; protected override void Start() { base.Start(); base.SetBaseValues(15, 16000, 1...
049186f5-78c4-4fa7-a335-a3a6b7a2a248
{ "language": "C#" }
```c# using Xunit; namespace Pioneer.Pagination.Tests { /// <summary> /// Clamp Tests /// </summary> public class ClampTests { private readonly PaginatedMetaService _sut = new PaginatedMetaService(); [Fact] public void LastPageDisplayed() { var result =...
```c# using Xunit; namespace Pioneer.Pagination.Tests { /// <summary> /// Clamp Tests /// </summary> public class ClampTests { private readonly PaginatedMetaService _sut = new PaginatedMetaService(); [Fact] public void NextPageIsLastPageInCollectionWhenRequestedPageIsGreat...
c4a8fe99-2b6e-4510-83a4-85e6da33bc9e
{ "language": "C#" }
```c# using TruckRouter.Models; var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddControllers(); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwaggerGen();...
```c# using TruckRouter.Models; var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddControllers(); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwaggerGen();...
41671c8c-cb1c-445a-95d4-69d07e3749f0
{ "language": "C#" }
```c# namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth { using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; using TraktApiSharp.Experimental.Requests.Base.Put; using TraktApiSharp.Experimental.Requests.Users.OAuth; using TraktApiSharp.Objects.Get.Users.Lists;...
```c# namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth { using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; using TraktApiSharp.Experimental.Requests.Base.Put; using TraktApiSharp.Experimental.Requests.Users.OAuth; using TraktApiSharp.Objects.Get.Users.Lists;...
c3e151c6-f12c-45d4-aa32-1ed744140542
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Umbraco.Inception.Attributes { [AttributeUsage(AttributeTargets.Property)] public class UmbracoTabAttribute : Attribute { public string Name { get; set; } pub...
```c# using System; namespace Umbraco.Inception.Attributes { [AttributeUsage(AttributeTargets.Property)] public class UmbracoTabAttribute : Attribute { public string Name { get; set; } public int SortOrder { get; set; } public UmbracoTabAttribute(string name) { ...
fd599e1a-9b48-4bce-805d-f10f258caa5e
{ "language": "C#" }
```c# using System.Linq; namespace HundredDoors { public static class HundredDoors { /// <summary> /// Solves the 100 Doors problem /// </summary> /// <returns>An array with 101 values, each representing a door (except 0). True = open</returns> public static bool[] Solve() { // Create our array with ...
```c# using System.Linq; namespace HundredDoors { public static class HundredDoors { /// <summary> /// Solves the 100 Doors problem /// </summary> /// <returns>An array with 101 values, each representing a door (except 0). True = open</returns> public static bool[] Solve() { // Create our array with ...
16922b48-8e87-4b4f-a059-0d720f20f9f4
{ "language": "C#" }
```c# using Cake.Core; using Cake.Core.Annotations; using System; namespace Cake.Docker { partial class DockerAliases { /// <summary> /// Logs <paramref name="container"/> using default settings. /// </summary> /// <param name="context">The context.</param> /// <param n...
```c# using Cake.Core; using Cake.Core.Annotations; using System; using System.Linq; using System.Collections.Generic; namespace Cake.Docker { partial class DockerAliases { /// <summary> /// Logs <paramref name="container"/> using default settings. /// </summary> /// <param nam...
20c4c4b5-1958-468a-8117-ab4fce5462fc
{ "language": "C#" }
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Bonobo.Git.Server.Controllers; using Bonobo.Git.Server.Test.Integration.Web; using Bonobo.Git.Server.Test.IntegrationTests.Helpers; using SpecsFor.Mvc; namespace Bonobo.Git.Server.Test.IntegrationTests { using OpenQA.Selenium.Support.UI...
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Bonobo.Git.Server.Controllers; using Bonobo.Git.Server.Test.Integration.Web; using Bonobo.Git.Server.Test.IntegrationTests.Helpers; using SpecsFor.Mvc; namespace Bonobo.Git.Server.Test.IntegrationTests { using OpenQA.Selenium.Support.UI...
d598b54f-6ccc-490b-8601-2a85b6d597e5
{ "language": "C#" }
```c# using System; using System.Linq; using System.Linq.Expressions; using FluentAssertions; namespace PSql.Tests { using static ScriptExecutor; internal static class StringExtensions { internal static void ShouldOutput( this string script, params o...
```c# using System; using System.Linq; using System.Linq.Expressions; using FluentAssertions; namespace PSql.Tests { using static ScriptExecutor; internal static class StringExtensions { internal static void ShouldOutput( this string script, params o...
48515917-119e-4145-81e7-fd69b7077fbc
{ "language": "C#" }
```c# using Microsoft.VisualStudio.TestTools.UnitTesting; using Renci.SshNet.Security.Cryptography; using Renci.SshNet.Tests.Common; using System; namespace Renci.SshNet.Tests.Classes { /// <summary> /// Holds information about key size and cipher to use /// </summary> [TestClass] publi...
```c# using Microsoft.VisualStudio.TestTools.UnitTesting; using Renci.SshNet.Security.Cryptography; using Renci.SshNet.Tests.Common; using System; namespace Renci.SshNet.Tests.Classes { /// <summary> /// Holds information about key size and cipher to use /// </summary> [TestClass] publi...
49e6cdf0-2b3f-4b9e-9206-e5fd417f71ae
{ "language": "C#" }
```c# // Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.CodeAnalysis { /// <summary> /// Indicates that the implementing type can be serialized via <see cre...
```c# // Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.CodeAnalysis { /// <summary> /// Indicates that the implementing type can be serialized via <see cre...
05434fb0-d458-4139-983a-38f516e0c2ff
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Threading.Tasks; using Smooth.IoC.Dapper.Repository.UnitOfWork.Data; namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Repo { public interface IRepository<TEntity, TPk> where TEntity : class, IEntity<TPk> { TEntity Get(TPk key, ISession sess...
```c# using System.Collections.Generic; using System.Threading.Tasks; using Smooth.IoC.Dapper.Repository.UnitOfWork.Data; namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Repo { public interface IRepository<TEntity, TPk> where TEntity : class, IEntity<TPk> { TEntity GetKey(TPk key, ISession s...
c0737f95-ddbb-4949-9c3f-3c67d5f9ab96
{ "language": "C#" }
```c# using System; using System.Diagnostics; using System.Linq; namespace mountain_thoughts { public class Program { public static void Main(string[] args) { Process mountainProcess = NativeMethods.GetMountainProcess(); if (mountainProcess == null) { ...
```c# using System; using System.Diagnostics; namespace mountain_thoughts { public class Program { public static void Main(string[] args) { Process mountainProcess = NativeMethods.GetMountainProcess(); if (mountainProcess == null) { Console.W...
040095e3-4c4c-4fab-bf5e-04883ea0dc17
{ "language": "C#" }
```c# //----------------------------------------------------------------------- // <copyright file="AllScoreData.cs" company="None"> // Copyright (c) IIHOSHI Yoshinori. // Licensed under the BSD-2-Clause license. See LICENSE.txt file in the project root for full license information. // </copyright> //-----------------...
```c# //----------------------------------------------------------------------- // <copyright file="AllScoreData.cs" company="None"> // Copyright (c) IIHOSHI Yoshinori. // Licensed under the BSD-2-Clause license. See LICENSE.txt file in the project root for full license information. // </copyright> //-----------------...
cf7dca4a-b06f-4ccf-9d0c-5c071045f241
{ "language": "C#" }
```c# namespace MultiMiner.Win.Extensions { static class TimeIntervalExtensions { public static int ToMinutes(this MultiMiner.Win.ApplicationConfiguration.TimerInterval timerInterval) { int coinStatsMinutes; switch (timerInterval) { case Appli...
```c# namespace MultiMiner.Win.Extensions { static class TimeIntervalExtensions { public static int ToMinutes(this MultiMiner.Win.ApplicationConfiguration.TimerInterval timerInterval) { int coinStatsMinutes; switch (timerInterval) { case Appli...
6c3bf274-1b75-42ce-8320-ebfa4d7d7dc3
{ "language": "C#" }
```c# using System; namespace Csla.Serialization.Mobile { /// <summary> /// Placeholder for null child objects. /// </summary> [Serializable()] public sealed class NullPlaceholder : IMobileObject { #region Constructors public NullPlaceholder() { // Nothing } #e...
```c# using System; namespace Csla.Serialization.Mobile { /// <summary> /// Placeholder for null child objects. /// </summary> [Serializable()] public sealed class NullPlaceholder : IMobileObject { #region Constructors /// <summary> /// Creates an instance of the type. /// <...
cdb389d3-2066-4821-9ce2-b2b15b13edf7
{ "language": "C#" }
```c# // Copyright (c) ComUnity 2015 // Hans Malherbe <hansm@comunity.co.za> using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; namespace CEP { public class UserProfile { ...
```c# // Copyright (c) ComUnity 2015 // Hans Malherbe <hansm@comunity.co.za> using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; namespace CEP { public class UserProfile { ...
a9ea1419-304a-48da-aeab-f09f7ae2b36f
{ "language": "C#" }
```c# using System.Collections.Generic; namespace Ganss.Text { /// <summary> /// Provides extension methods. /// </summary> public static class Extensions { /// <summary> /// Determines whether this instance contains the specified words. /// </summary> /// <param na...
```c# using System.Collections.Generic; namespace Ganss.Text { /// <summary> /// Provides extension methods. /// </summary> public static class Extensions { /// <summary> /// Determines whether this instance contains the specified words. /// </summary> /// <param na...
478f37ff-3d1c-41b3-9d72-9b22c521502e
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using Akka.Event; using Serilog.Events; using Serilog.Parsing; namespace Akka.Serilog.Event.Serilog { public class SerilogLogMessageFormatter : ILogMessageFormatter { private readonly MessageTemplateCache _templateCache; ...
```c# using System; using System.Collections.Generic; using System.Linq; using Akka.Event; using Serilog.Events; using Serilog.Parsing; namespace Akka.Serilog.Event.Serilog { public class SerilogLogMessageFormatter : ILogMessageFormatter { private readonly MessageTemplateCache _templateCache; ...
f7600525-03cd-4a44-97fb-4ae04362fe4c
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using Duality; using RockyTV.Duality.Plugins.IronPython.Resources; using IronPython.Hosting; using IronPython.Runtime; using IronPython.Compiler; using Microsoft.Scripting; using Microsoft.Scripting.Hosting; namespace RockyTV.Duality.Plugins....
```c# using System; using System.Collections.Generic; using System.Linq; using Duality; using RockyTV.Duality.Plugins.IronPython.Resources; using IronPython.Hosting; using IronPython.Runtime; using IronPython.Compiler; using Microsoft.Scripting; using Microsoft.Scripting.Hosting; namespace RockyTV.Duality.Plugins....
2f2cabdf-a666-4d28-91f3-e780c384aa92
{ "language": "C#" }
```c# using UnityEngine; using System.Reflection; [assembly: AssemblyVersion("1.0.0.*")] public class Loader : MonoBehaviour { /// <summary> /// DebugUI prefab to instantiate. /// </summary> [SerializeField] private GameObject _debugUI; /// <summary> /// ModalDialog prefab to...
```c# using UnityEngine; using System.Reflection; [assembly: AssemblyVersion("1.1.0.*")] public class Loader : MonoBehaviour { /// <summary> /// DebugUI prefab to instantiate. /// </summary> [SerializeField] private GameObject _debugUI; /// <summary> /// ModalDialog prefab to...
420c4981-5bd5-466d-99a8-5cc6b89c1d64
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Console; namespace ConsoleApp { public class Table { private readonly string tableName; private readonly IEnumerable<Column> columns; public Table(string tableName, IEnumerabl...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Console; namespace ConsoleApp { public class Table { private readonly string tableName; private readonly IEnumerable<Column> columns; public Table(string tableName, IEnumerabl...
4fb06a43-7e74-4541-ac33-521fdb58a92a
{ "language": "C#" }
```c# // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using UnityEngine; using Microsoft.MixedReality.Toolkit.Input; using TMPro; #if LEAPMOTIONCORE_PRESENT using Microsoft.MixedReality.Toolkit.LeapMotion.Input; #endif namespace Microsoft.MixedReality.Toolkit.Examples { /// <summary> ...
```c# // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using UnityEngine; using Microsoft.MixedReality.Toolkit.Input; using TMPro; #if LEAPMOTIONCORE_PRESENT && UNITY_STANDALONE using Microsoft.MixedReality.Toolkit.LeapMotion.Input; #endif namespace Microsoft.MixedReality.Toolkit.Examples {...
94cd8bf9-2f72-419b-8306-81355b664cb6
{ "language": "C#" }
```c# // Copyright (c) Alex Ghiondea. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace SmugMugCodeGen { public static class Constants { public const string PropertyDefinition = @"public {0} {1} {{get; set;}}"; ...
```c# // Copyright (c) Alex Ghiondea. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace SmugMugCodeGen { public static class Constants { public const string PropertyDefinition = @"public {0} {1} {{get; set;}}"; ...
a0f381dd-6aa7-4822-ba5f-6d6b06e9b183
{ "language": "C#" }
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; public class Levels : MonoBehaviour { /* Cette classe a pour destin d'être sur un prefab. * Ce prefab agira comme une config manuelle de niveaux pour faciliter le level design. * On pourra faire différentes configs si o...
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; public class Levels : MonoBehaviour { /* Cette classe a pour destin d'être sur un prefab. * Ce prefab agira comme une config manuelle de niveaux pour faciliter le level design. * On pourra faire différentes configs si o...
fb4a4a9f-29cf-43fe-bd88-c074c0128749
{ "language": "C#" }
```c# using System; using System.Text.RegularExpressions; using Should; using Xunit; namespace Cassette.UI { public class PlaceholderTracker_Tests { [Fact] public void WhenInsertPlaceholder_ThenPlaceholderIdHtmlReturned() { var tracker = new PlaceholderTracker()...
```c# using System; using System.Text.RegularExpressions; using Should; using Xunit; namespace Cassette { public class PlaceholderTracker_Tests { [Fact] public void WhenInsertPlaceholder_ThenPlaceholderIdHtmlReturned() { var tracker = new PlaceholderTracker(); ...
1048fc31-fb49-4d07-b8e3-6da610b7a80a
{ "language": "C#" }
```c# using Newtonsoft.Json; using System; using System.Net; using System.Net.Http; using System.Threading.Tasks; namespace Modix.Services.StackExchange { public class StackExchangeService { private string _ApiReferenceUrl = $"http://api.stackexchange.com/2.2/search/advanced" + ...
```c# using Newtonsoft.Json; using System; using System.Net; using System.Net.Http; using System.Threading.Tasks; namespace Modix.Services.StackExchange { public class StackExchangeService { private static HttpClient HttpClient => new HttpClient(new HttpClientHandler { AutomaticDec...
2eecd8c0-4ea7-4a3e-ac63-0f01f8f87af2
{ "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...
ec0b1fab-b2db-40b9-bae1-d13d62aed96a
{ "language": "C#" }
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Consul.Test { [TestClass] public class CoordinateTest { [TestMethod] public void TestCoordinate_Datacenters() { var client = new Client(); var info = client.Agent.Self(); ...
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Consul.Test { [TestClass] public class CoordinateTest { [TestMethod] public void Coordinate_Datacenters() { var client = new Client(); var info = client.Agent.Self(); ...
012da4db-4051-4f7f-aa60-2519e304be7f
{ "language": "C#" }
```c# using System; using System.Globalization; using System.Windows.Data; using System.Windows.Media.Imaging; using PackageExplorerViewModel; namespace PackageExplorer { public class PackageIconConverter : IMultiValueConverter { #region IMultiValueConverter Members public object? Convert(obj...
```c# using System; using System.Globalization; using System.Windows.Data; using System.Windows.Media.Imaging; using PackageExplorerViewModel; namespace PackageExplorer { public class PackageIconConverter : IMultiValueConverter { #region IMultiValueConverter Members public object? Convert(obj...
4772a318-0548-478d-9bc5-28d8de47f2a2
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Diagnostics; namespace Octokit { /// <summary> /// An enhanced git commit containing links to additional resources /// </summary> [DebuggerDisplay("{DebuggerDisplay,nq}")] public class GitHubCommit : GitReference { public GitHubCommi...
```c# using System.Collections.Generic; using System.Diagnostics; namespace Octokit { /// <summary> /// An enhanced git commit containing links to additional resources /// </summary> [DebuggerDisplay("{DebuggerDisplay,nq}")] public class GitHubCommit : GitReference { public GitHubCommi...
dc6c6024-7584-4155-97df-b21d8f4b1e59
{ "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; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using...
```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; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using...
b0b6939c-2d15-4820-9688-85e0bf9663b5
{ "language": "C#" }
```c# using System; using System.Drawing; using NUnit.Framework; using Palaso.UI.WindowsForms; namespace PalasoUIWindowsForms.Tests.FontTests { [TestFixture] public class FontHelperTests { [SetUp] public void SetUp() { // setup code goes here } [TearDown] public void TearDown() { // tear down...
```c# using System; using System.Drawing; using System.Linq; using NUnit.Framework; using Palaso.UI.WindowsForms; namespace PalasoUIWindowsForms.Tests.FontTests { [TestFixture] public class FontHelperTests { [SetUp] public void SetUp() { // setup code goes here } [TearDown] public void TearDown() ...
cad22486-3bdd-4880-b756-3d0ba0da3ff8
{ "language": "C#" }
```c# /* * Copyright 2017 Chirojeugd-Vlaanderen vzw. See the NOTICE file at the * top-level directory of this distribution, and at * https://gapwiki.chiro.be/copyright * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You m...
```c# /* * Copyright 2017 Chirojeugd-Vlaanderen vzw. See the NOTICE file at the * top-level directory of this distribution, and at * https://gapwiki.chiro.be/copyright * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You m...
a6fc0f78-f9ec-459b-897f-94bacb8f9141
{ "language": "C#" }
```c# /* Empiria Extensions Framework ****************************************************************************** * * * Solution : Empiria Extensions Framework System : Empiria Microser...
```c# /* Empiria Extensions Framework ****************************************************************************** * * * Module : Empiria Web Api Component : Base controllers ...
ddade4ce-e460-4791-afa1-b1024090ad3c
{ "language": "C#" }
```c# using System; using System.Threading.Tasks; using Windows.Storage; namespace Papyrus { public static class EBookExtensions { public static async Task<bool> VerifyMimetypeAsync(this EBook ebook) { var mimetypeFile = await ebook._rootFolder.GetItemAsync("mimetype"); ...
```c# using System; using System.Threading.Tasks; using Windows.Storage; namespace Papyrus { public static class EBookExtensions { public static async Task<bool> VerifyMimetypeAsync(this EBook ebook) { bool VerifyMimetypeString(string value) => value == "application...
9da8e092-437b-4c68-bbb2-ad0343661083
{ "language": "C#" }
```c# using AvalonStudio.MainMenu; using AvalonStudio.Menus; using System; using System.Collections.Generic; using System.Composition; using System.Text; namespace WalletWasabi.Gui.Shell.MainMenu { internal class ToolsMainMenuItems { private IMenuItemFactory _menuItemFactory; [ImportingConstructor] public To...
```c# using AvalonStudio.MainMenu; using AvalonStudio.Menus; using System; using System.Collections.Generic; using System.Composition; using System.Text; namespace WalletWasabi.Gui.Shell.MainMenu { internal class ToolsMainMenuItems { private IMenuItemFactory _menuItemFactory; [ImportingConstructor] public To...
392340cc-dc59-4eeb-afc1-3bfd744b74ab
{ "language": "C#" }
```c# using NBitcoin; using Newtonsoft.Json; using System; namespace WalletWasabi.JsonConverters { public class ExtPubKeyJsonConverter : JsonConverter { /// <inheritdoc /> public override bool CanConvert(Type objectType) { return objectType == typeof(ExtPubKey); } /// <inheritdoc /> public override ...
```c# using NBitcoin; using Newtonsoft.Json; using System; namespace WalletWasabi.JsonConverters { public class ExtPubKeyJsonConverter : JsonConverter { /// <inheritdoc /> public override bool CanConvert(Type objectType) { return objectType == typeof(ExtPubKey); } /// <inheritdoc /> public override ...
847b85ae-5e56-44bc-80b8-62731c03959a
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; using Draw = System.Drawing; using Geo = ERY.AgateLib.Geometry; namespace ERY.AgateLib.WinForms { public static class FormsInterop { public static Draw.Rectangle ToRectangle(Geo.Rectangle rect) { re...
```c# using System; using System.Collections.Generic; using System.Text; using Draw = System.Drawing; using ERY.AgateLib.Geometry; namespace ERY.AgateLib.WinForms { public static class FormsInterop { public static Draw.Color ConvertColor(Color clr) { return Draw.Color.Fr...
b4fdbc0e-bae0-4a7c-a3d7-659f6ec70302
{ "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...
5d9bf72a-5437-48d5-85d8-c144a03868e5
{ "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...
90fc913d-0784-4e49-8904-591df87695d0
{ "language": "C#" }
```c# using System; using System.Globalization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using VirusTotalNET.Exceptions; namespace VirusTotalNET.DateTimeParsers { public class YearMonthDayConverter : DateTimeConverterBase { private readonly CultureInfo _culture = new CultureInfo("en-us"...
```c# using System; using System.Globalization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using VirusTotalNET.Exceptions; namespace VirusTotalNET.DateTimeParsers { public class YearMonthDayConverter : DateTimeConverterBase { private readonly CultureInfo _culture = new CultureInfo("en-us"...
f963af86-b9f2-4a6f-959a-783702d69d03
{ "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.ComponentModel; namespace osu.Game.Configuration { public enum ScoreMeterType { [Description("None")] None, [Descrip...
```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.ComponentModel; namespace osu.Game.Configuration { public enum ScoreMeterType { [Description("None")] None, [Descrip...
ba90fe28-51f8-47a4-8e16-eaa7ef42122d
{ "language": "C#" }
```c# using System; using System.IO; using System.Reflection; using JetBrains.Annotations; using Microsoft.Extensions.Configuration; namespace AudioWorks.Common { /// <summary> /// Manages the retrieval of configuration settings from disk. /// </summary> public static class ConfigurationManager { ...
```c# using System; using System.IO; using System.Reflection; using JetBrains.Annotations; using Microsoft.Extensions.Configuration; namespace AudioWorks.Common { /// <summary> /// Manages the retrieval of configuration settings from disk. /// </summary> public static class ConfigurationManager { ...
53830c77-36ac-4c0d-bec6-f93d3b599cf9
{ "language": "C#" }
```c# using System.IO; using Microsoft.VisualStudio.TestTools.UnitTesting; using RohlikAPI; namespace RohlikAPITests { [TestClass] public class RohlikovacTests { private string[] GetCredentials() { string filePath = @"..\..\..\loginPassword.txt"; if (!File.Exists(fi...
```c# using System.IO; using Microsoft.VisualStudio.TestTools.UnitTesting; using RohlikAPI; namespace RohlikAPITests { [TestClass] public class RohlikovacTests { private string[] GetCredentials() { string filePath = @"..\..\..\loginPassword.txt"; if (!File.Exists(fi...
08300984-b461-4e1f-bc54-a9be356047e8
{ "language": "C#" }
```c# using System; using Reachmail.Easysmtp.Post.Request; public void Main() { var reachmail = Reachmail.Api.Create("<API Token>"); var request = new DeliveryRequest { FromAddress = "from@from.com", Recipients = new Recipients { new Recipient { Address = "to@to...
```c# using System; using Reachmail.Easysmtp.Post.Request; public void Main() { var reachmail = Reachmail.Api.Create("<API Token>"); var request = new DeliveryRequest { FromAddress = "from@from.com", Recipients = new Recipients { new Recipient { Address = "to@to...
dd13d7fd-34eb-4df9-919b-a4537dae238e
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; using System.Linq; using Discord; using Discord.WebSocket; using Discord.Commands; using System.Threading.Tasks; namespace ContactsBot.Modules { class UserMotd : IMessageAction { private DiscordSocketClient _client; priva...
```c# using System; using System.Collections.Generic; using System.Text; using System.Linq; using Discord; using Discord.WebSocket; using Discord.Commands; using System.Threading.Tasks; namespace ContactsBot.Modules { class UserMotd : IMessageAction { private DiscordSocketClient _client; priva...
4040ac91-8d21-408a-999f-5ea31d44a932
{ "language": "C#" }
```c# using System; using Cake.Frosting; public class Program { public static int Main(string[] args) { return new CakeHost() .UseContext<Context>() .UseLifetime<Lifetime>() .UseWorkingDirectory("..") .InstallTool(new Uri("nuget:?package=Git...
```c# using System; using Cake.Frosting; public class Program { public static int Main(string[] args) { return new CakeHost() .UseContext<Context>() .UseLifetime<Lifetime>() .UseWorkingDirectory("..") .SetToolPath("../tools") .I...
6716fb15-108d-489b-afe5-97730e15c3e3
{ "language": "C#" }
```c# using System.Reactive.Linq; using ReactiveUI; using System; namespace WalletWasabi.Fluent.ViewModels { public class AddWalletPageViewModel : NavBarItemViewModel { private string _walletName = ""; private bool _optionsEnabled; public AddWalletPageViewModel(NavigationStateViewModel navigationState) : base...
```c# using System.Reactive.Linq; using ReactiveUI; using System; using System.Windows.Input; namespace WalletWasabi.Fluent.ViewModels { public class AddWalletPageViewModel : NavBarItemViewModel { private string _walletName = ""; private bool _optionsEnabled; public AddWalletPageViewModel(NavigationStateViewM...
e5c2cd8d-6b2b-4202-a175-34250469dcde
{ "language": "C#" }
```c# using System.Collections.Generic; namespace Kazyx.RemoteApi { /// <summary> /// Response of getMethodTypes API. /// </summary> public class MethodType { /// <summary> /// Name of API /// </summary> public string Name { set; get; } /// <summary> ...
```c# using System.Collections.Generic; using System.Linq; namespace Kazyx.RemoteApi { /// <summary> /// Response of getMethodTypes API. /// </summary> public class MethodType { /// <summary> /// Name of API /// </summary> public string Name { set; get; } //...
61c15747-c5d8-4644-a7ad-2b1feed57acb
{ "language": "C#" }
```c# // Copyright © 2010-2016 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; using System.Windows; namespace CefSharp.Wpf.Example.Handlers { internal class GeolocationHandler : IGeolocationHandler ...
```c# // Copyright © 2010-2016 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; using System.Windows; namespace CefSharp.Wpf.Example.Handlers { internal class GeolocationHandler : IGeolocationHandler ...
8c0c5182-48ec-46fa-ac9d-f83ad9cd4595
{ "language": "C#" }
```c# using System.Drawing; using MonoHaven.UI.Widgets; namespace MonoHaven.UI.Remote { public class ServerInventoryWidget : ServerWidget { public static ServerWidget Create(ushort id, ServerWidget parent, object[] args) { var size = (Point)args[0]; var widget = new InventoryWidget(parent.Widget); widg...
```c# using System.Drawing; using MonoHaven.UI.Widgets; namespace MonoHaven.UI.Remote { public class ServerInventoryWidget : ServerWidget { public static ServerWidget Create(ushort id, ServerWidget parent, object[] args) { var size = (Point)args[0]; var widget = new InventoryWidget(parent.Widget); widg...
41ad4ee3-0a5e-411c-b0b3-70c1cd9b225e
{ "language": "C#" }
```c# using CommandLine; using System; using System.IO; using System.Threading; using WebScriptHook.Framework; using WebScriptHook.Framework.BuiltinPlugins; using WebScriptHook.Framework.Plugins; using WebScriptHook.Service.Plugins; namespace WebScriptHook.Service { class Program { static WebScriptHoo...
```c# using CommandLine; using System; using System.IO; using System.Threading; using WebScriptHook.Framework; using WebScriptHook.Framework.BuiltinPlugins; using WebScriptHook.Framework.Plugins; using WebScriptHook.Service.Plugins; namespace WebScriptHook.Service { class Program { static WebScriptHoo...
2ac61dbe-4590-4e85-babc-e4caed41eda1
{ "language": "C#" }
```c# using System; using System.Collections.Generic; namespace WootzJs.Injection { public class Context { private ICache cache; private IDictionary<Type, IBinding> transientBindings; public Context(Context context = null, ICache cache = null, IDictionary<Type, IBinding> transientBind...
```c# using System; using System.Collections.Generic; namespace WootzJs.Injection { public class Context { private ICache cache; private IDictionary<Type, IBinding> transientBindings; public Context(Context context = null, ICache cache = null, IDictionary<Type, IBinding> transientBind...
7fa62292-130e-4839-9a61-09e0dbd5d46e
{ "language": "C#" }
```c# using System.Reflection; [assembly: AssemblyVersion("1.4.0.0")] [assembly: AssemblyFileVersion("1.4.0.0")] [assembly: AssemblyInformationalVersion("1.4.15")]``` Use 1.0.0 as the default informational version so it's easy to spot when it might have been un-patched during a build
```c# using System.Reflection; [assembly: AssemblyVersion("1.4.0.0")] [assembly: AssemblyFileVersion("1.4.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")]```
6943fdae-ef62-45d5-97d5-aee618b55f41
{ "language": "C#" }
```c# #if NUNIT using NUnit.Framework; using TestClass = NUnit.Framework.TestFixtureAttribute; using TestInitialize = NUnit.Framework.SetUpAttribute; using TestCleanup = NUnit.Framework.TearDownAttribute; using TestMethod = NUnit.Framework.TestAttribute; using TestSetup = NUnit.Framework.SetUpAttribute; #elif M...
```c# #if NUNIT using NUnit.Framework; using TestClass = NUnit.Framework.TestFixtureAttribute; using TestInitialize = NUnit.Framework.SetUpAttribute; using TestCleanup = NUnit.Framework.TearDownAttribute; using TestMethod = NUnit.Framework.TestAttribute; using TestSetup = NUnit.Framework.SetUpAttribute; #elif M...
654a6dcf-53a4-447a-b247-eb001a4a09b8
{ "language": "C#" }
```c# using System; using System.Runtime.InteropServices; namespace LibGPhoto2 { public class Context : Object { [DllImport ("libgphoto2.so")] internal static extern IntPtr gp_context_new (); public Context () { this.handle = new HandleRef (this, gp_context_new ()); } [DllImport ("libgphoto2.so")]...
```c# using System; using System.Runtime.InteropServices; namespace LibGPhoto2 { public class Context : Object { [DllImport ("libgphoto2.so")] internal static extern IntPtr gp_context_new (); public Context () { this.handle = new HandleRef (this, gp_context_new ()); } [DllImport ("libgphoto2.so")]...
ce68da9c-322c-496a-9296-6c133ed1a59e
{ "language": "C#" }
```c# // Copyright 2019 Jon Skeet. All rights reserved. // Use of this source code is governed by the Apache License 2.0, // as found in the LICENSE.txt file. namespace VDrumExplorer.Data.Fields { public interface IField { string Description { get; } FieldPath Path { get; } ModuleAddre...
```c# // Copyright 2019 Jon Skeet. All rights reserved. // Use of this source code is governed by the Apache License 2.0, // as found in the LICENSE.txt file. namespace VDrumExplorer.Data.Fields { public interface IField { string Description { get; } FieldPath Path { get; } ModuleAddre...
e63007a5-b60d-495f-a865-9e92199f47fb
{ "language": "C#" }
```c# using JetBrains.Annotations; using PlayGroups.Input; using UI; using UnityEngine; public class MessageOnInteract : InputTrigger { public string Message; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } public override void Interact(GameObject o...
```c# using JetBrains.Annotations; using PlayGroups.Input; using UI; using UnityEngine; public class MessageOnInteract : InputTrigger { public string Message; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } public override void Interact(GameObject o...
b939758b-c5f9-46f9-babf-86329ab9b6b6
{ "language": "C#" }
```c# namespace StackExchange.Exceptional.Internal { /// <summary> /// Internal Exceptional static controls, not meant for consumption. /// This can and probably will break without warning. Don't use the .Internal namespace directly. /// </summary> public static class Statics { /// <sum...
```c# namespace StackExchange.Exceptional.Internal { /// <summary> /// Internal Exceptional static controls, not meant for consumption. /// This can and probably will break without warning. Don't use the .Internal namespace directly. /// </summary> public static class Statics { /// <sum...
868a0aae-428d-4028-b619-963d65d17038
{ "language": "C#" }
```c# namespace Mappy { using System; using System.ComponentModel; using System.Reactive.Linq; using System.Reactive.Subjects; public static class ExtensionMethods { public static IObservable<TField> PropertyAsObservable<TSource, TField>(this TSource source, Func<TSource, TFie...
```c# namespace Mappy { using System; using System.ComponentModel; using System.Reactive.Linq; using System.Reactive.Subjects; public static class ExtensionMethods { public static IObservable<TField> PropertyAsObservable<TSource, TField>(this TSource source, Func<TSource, TFie...
aba5a094-ee8c-4ae5-b342-facfd3ffd5c5
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TirkxDownloader.Framework.Interface { /// <summary> /// This interface should be implemented for recieve JSON then parse it and return to caller /// </summary> /// <typep...
```c# using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace TirkxDownloader.Framework.Interface { /// <summary> /// This interface should be implemented for recieve JSON then parse it and return to caller /// </summary> /// <typeparam name="T">Type of messag...
b9a01809-0be8-4f88-9ecd-f31a96559d99
{ "language": "C#" }
```c# #if NULLABLE_SHIMS using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace System.Diagnostics.CodeAnalysis { [AttributeUsage(AttributeTargets.Parameter, Inherited = false)] public sealed class MaybeNullWhenAttribute : Attribute { public ...
```c# #if NULLABLE_SHIMS using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace System.Diagnostics.CodeAnalysis { [AttributeUsage(AttributeTargets.Parameter, Inherited = false)] internal sealed class MaybeNullWhenAttribute : Attribute { publi...
a5b1d5ea-4ed0-44ff-87de-574045617249
{ "language": "C#" }
```c# // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using Microsoft.AspNet.Hosting.Server; using Microsoft.Framework.Configuration; namespace Microso...
```c# // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using Microsoft.AspNet.Hosting.Server; using Microsoft.Framework.Configuration; namespace Microso...
ceb56161-9dc8-4412-8341-666b3a9efb2e
{ "language": "C#" }
```c# using System; using Pdelvo.Minecraft.Network; namespace Pdelvo.Minecraft.Protocol.Packets { [PacketUsage(PacketUsage.ServerToClient)] public class DisplayScoreboard : Packet { public byte Position { get; set; } public string ScoreName { get; set; } /// <summary> /// ...
```c# using System; using Pdelvo.Minecraft.Network; namespace Pdelvo.Minecraft.Protocol.Packets { [PacketUsage(PacketUsage.ServerToClient)] public class DisplayScoreboard : Packet { public byte Position { get; set; } public string ScoreName { get; set; } /// <summary> /// ...
aee4d5da-9730-409f-a591-fc3b726af501
{ "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....
58f28d5c-5606-4729-9bee-f08c4fd412c6
{ "language": "C#" }
```c# using System; using System.Runtime.InteropServices; using Foundation; // Generated by Objective Sharpie (https://download.xamarin.com/objective-sharpie/ObjectiveSharpie.pkg) // > sharpie bind -output TestFairy -namespace TestFairyLib -sdk iphoneos10.1 TestFairy.h namespace TestFairyLib { public static class CFu...
```c# using System; using System.Runtime.InteropServices; using Foundation; // Generated by Objective Sharpie (https://download.xamarin.com/objective-sharpie/ObjectiveSharpie.pkg) // > sharpie bind -output TestFairy -namespace TestFairyLib -sdk iphoneos10.1 TestFairy.h namespace TestFairyLib { public static class CFu...
c82e7c18-2b1b-41e4-8f05-50408920e639
{ "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; using System.IO; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Input.Events; using osu.Framewo...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using System; using System.IO; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Input.Events; using osu.Framewo...
676bc0cc-1e23-4436-9774-e986eae19f61
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Net.Http; using System.Net.Http.Headers; using System.Text; namespace PinSharp.Http { internal class FormUrlEncodedContent : ByteArrayContent { private static readonly Encoding DefaultHttpEncoding = Encoding.GetEncoding("ISO-8859-1"); ...
```c# using System; using System.Collections.Generic; using System.Net.Http; using System.Net.Http.Headers; using System.Text; namespace PinSharp.Http { internal class FormUrlEncodedContent : ByteArrayContent { private static readonly Encoding DefaultHttpEncoding = Encoding.GetEncoding("ISO-8859-1"); ...
1dfe8885-d7ad-4008-84ff-360c6a3c6c22
{ "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("XeroApi")] [assembly: AssemblyDescr...
```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("XeroApi")] [assembly: AssemblyDescr...