doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
7c3d0af6-8507-4a54-a262-720c494501f1
{ "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.Collections.Immutable; using System.Linq; using Microsoft.CodeAnalysis.CSharp.Syntax; using Micr...
```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.Collections.Immutable; using System.Linq; using Microsoft.CodeAnalysis.CSharp.Syntax; using Micr...
55de7bee-5f2d-4aaa-aada-df96b27d95eb
{ "language": "C#" }
```c# using System; namespace FractionCalculator.Class { public struct Fraction { private long numerator; private long denominator; public Fraction(long numerator, long denominator) : this() { this.Numerator = numerator; this.Denominator = denominator; ...
```c# using System; namespace FractionCalculator.Class { public struct Fraction { private long numerator; private long denominator; public Fraction(long numerator, long denominator) : this() { this.Numerator = numerator; this.Denominator = denominator; ...
f1d69fdc-765d-441a-8f73-cd021d400cba
{ "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. /*============================================================================= ** ** File: ExceptionNotificat...
```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. /*============================================================================= ** ** File: ExceptionNotificat...
66b37e9d-9fa9-4a17-ada1-5010a04d1fb8
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FreecraftCore.Serializer; namespace Booma.Proxy { /// <summary> /// An unimplemented or unknown subcommand for the 0x6D packets. /// </summary> [WireDataContract] public sealed class Un...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FreecraftCore.Serializer; namespace Booma.Proxy { /// <summary> /// An unimplemented or unknown subcommand for the 0x6D packets. /// </summary> [WireDataContract] public sealed class Un...
1d8c7bab-c442-49ba-8a16-489758df57da
{ "language": "C#" }
```c# using Microsoft.AspNet.Identity; using SendGrid; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Mail; using System.Threading.Tasks; using System.Web; namespace VotingApplication.Web.Api.Services { public class SendMailEmailSender : IMailSender { ...
```c# using SendGrid; using System.Net; using System.Net.Mail; using System.Threading.Tasks; namespace VotingApplication.Web.Api.Services { public class SendMailEmailSender : IMailSender { private NetworkCredential credentials; private string hostEmail; public SendMailEmailSender(Netw...
aa592245-58ed-40dd-9b9e-ce11ee743a80
{ "language": "C#" }
```c# // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Immutable; using System.Linq; using System.Threading.Tasks; using Microsoft.CodeAnalysis.NavigateTo; namespace Microsoft.Code...
```c# // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Immutable; using System.Linq; using System.Threading.Tasks; using Microsoft.CodeAnalysis.NavigateTo; namespace Microsoft.Code...
f8d4c559-b9c6-4df5-8227-a9b9876ec1a0
{ "language": "C#" }
```c# @model IEnumerable<Tag> @{ ViewBag.Title = "Tag Index"; } <h2>Tag Index</h2> @if (User.Identity.IsAuthenticated) { <p> <a asp-action="Create">Create new Tag</a> </p> } <h3>@Model.Count() tags</h3> <ul class="tag-buttons"> @Html.Partial("_TagButtons", Model) </ul> ``` Update tag butt...
```c# @model IEnumerable<Tag> @{ ViewBag.Title = "Tag Index"; } <h2>Tag Index</h2> @if (User.Identity.IsAuthenticated) { <p> <a asp-action="Create">Create new Tag</a> </p> } <h3>@Model.Count() tags</h3> <div> @Html.Partial("_TagButtons", Model) </div>```
551f0013-fc13-48a2-ae32-1e0898d1c06c
{ "language": "C#" }
```c# using System; namespace Terrajobst.Pns.Scanner { public struct PnsResult { public static readonly PnsResult DoesNotThrow = new PnsResult(-1); private PnsResult(int level) { Level = level; } public static PnsResult ThrowsAt(int level) { ...
```c# using System; namespace Terrajobst.Pns.Scanner { public struct PnsResult { public static readonly PnsResult DoesNotThrow = new PnsResult(-1); private PnsResult(int level) { Level = level; } public static PnsResult ThrowsAt(int level) { ...
76f45d5a-0828-44e3-8c94-374135b80def
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using Lokad.Cqrs.Properties; using Microsoft.WindowsAzure; using Microsoft.WindowsAzure.StorageClient; using NUnit.Framework; namespace Lokad.Cqrs.Feature.TapeStorage { [TestFixture] public class BlobTapeSt...
```c# using System; using Lokad.Cqrs.Properties; using Microsoft.WindowsAzure; using Microsoft.WindowsAzure.StorageClient; using NUnit.Framework; namespace Lokad.Cqrs.Feature.TapeStorage { [TestFixture] public class BlobTapeStorageTests : TapeStorageTests { const string ContainerName = ...
df54a43d-b0bf-4b3c-9b66-641acf587f2c
{ "language": "C#" }
```c# using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Steeltoe.Extensions.Configuration.CloudFoundry; namespace CloudFoundry { public class Program { public static void Main(string[] args) { BuildWebHost(args).Run(); } public static IWebHost ...
```c# using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Steeltoe.Extensions.Configuration.CloudFoundry; namespace CloudFoundry { public class Program { public static void Main(string[] args) { BuildWebHost(args).Run(); ...
a4125871-8edd-4229-aa5f-876fd2e1458b
{ "language": "C#" }
```c# using System; using System.Linq; using Microsoft.VisualStudio.ExtensionsExplorer; namespace NuGet.Dialog.Providers { internal class PackagesSearchNode : PackagesTreeNodeBase { private string _searchText; private readonly PackagesTreeNodeBase _baseNode; public PackagesTre...
```c# using System; using System.Linq; using Microsoft.VisualStudio.ExtensionsExplorer; namespace NuGet.Dialog.Providers { internal class PackagesSearchNode : PackagesTreeNodeBase { private string _searchText; private readonly PackagesTreeNodeBase _baseNode; public PackagesTre...
1ecb572f-74c8-44e3-8ed4-968898d473d2
{ "language": "C#" }
```c# using System.Linq; using Microsoft.CodeAnalysis.CSharp.Syntax; using SharpDox.Build.Roslyn.MethodVisitors; namespace SharpDox.Build.Roslyn.Parser.ProjectParser { internal class MethodCallParser : BaseParser { internal MethodCallParser(ParserOptions parserOptions) : base(parserOptions) { } ...
```c# using System.Linq; using Microsoft.CodeAnalysis.CSharp.Syntax; using SharpDox.Build.Roslyn.MethodVisitors; namespace SharpDox.Build.Roslyn.Parser.ProjectParser { internal class MethodCallParser : BaseParser { internal MethodCallParser(ParserOptions parserOptions) : base(parserOptions) { } ...
36d3acc4-8c9c-49c1-a817-d76cefb37d80
{ "language": "C#" }
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using Microsoft.Azure.Management.Sql.Models; using Microsoft.Azure.Management.Sql; using Xunit; namespace Sql.Tests { public class ServiceObjectiveSce...
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using Microsoft.Azure.Management.Sql.Models; using Microsoft.Azure.Management.Sql; using Xunit; namespace Sql.Tests { public class ServiceObjectiveSce...
2f8567d1-cf61-41c2-b1c3-29674fd64b03
{ "language": "C#" }
```c# using System.Collections.Generic; using Mono.Debugger.Cli.Debugging; using Mono.Debugger.Cli.Logging; namespace Mono.Debugger.Cli.Commands { public sealed class LocalsCommand : ICommand { public string Name { get { return "Locals"; } } public string Descriptio...
```c# using System.Collections.Generic; using Mono.Debugger.Cli.Debugging; using Mono.Debugger.Cli.Logging; namespace Mono.Debugger.Cli.Commands { public sealed class LocalsCommand : ICommand { public string Name { get { return "Locals"; } } public string Descriptio...
978ca464-f726-45e7-9084-361410cca445
{ "language": "C#" }
```c# using OrienteeringToolWPF.Model; using OrienteeringToolWPF.Utils; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OrienteeringToolWPF.DAO { public static class CompetitorHelper { public static List<Competitor> Competit...
```c# using OrienteeringToolWPF.Model; using OrienteeringToolWPF.Utils; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OrienteeringToolWPF.DAO { public static class CompetitorHelper { public static List<Competitor> Competit...
56a9b5f3-bdc2-4431-a30d-18b3614a03af
{ "language": "C#" }
```c# using LiveScoreUpdateSystem.Data.Models.Contracts; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using System; using System.Security.Claims; using System.Threading.Tasks; namespace LiveScoreUpdateSystem.Data.Models { public class User : IdentityUser, IDeletable, IAuditabl...
```c# using LiveScoreUpdateSystem.Data.Models.Contracts; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using System; using System.Security.Claims; using System.Threading.Tasks; namespace LiveScoreUpdateSystem.Data.Models { public class User : IdentityUser, IDeletable, IAuditabl...
a509c458-e72d-4317-a74c-a77d6fb62f47
{ "language": "C#" }
```c# @model Vehicle @switch(Model.Status) { case Vehicle.VehicleStatus.FMC: <span class="label label-success">FMC</span> return; case Vehicle.VehicleStatus.NMC: <span class="label label-danger">NMC</span> return; default: <span class="label label-warning">@Model</...
```c# @model Vehicle @switch(Model.Status) { case Vehicle.VehicleStatus.FMC: <span class="label label-success">FMC</span> return; case Vehicle.VehicleStatus.NMC: <span class="label label-danger">NMC</span> return; case Vehicle.VehicleStatus.Unknown: <span c...
2aee94f8-f8ca-4ab1-a417-93d9aa3b4924
{ "language": "C#" }
```c# using System.Windows.Controls.Primitives; namespace SharpGraphEditor.Controls.GraphElements { /// <summary> /// Логика взаимодействия для VertexControl.xaml /// </summary> public partial class VertexControl : Thumb { public VertexControl() { InitializeComponent();...
```c# using System.Windows.Controls.Primitives; namespace SharpGraphEditor.Controls.GraphElements { /// <summary> /// Логика взаимодействия для VertexControl.xaml /// </summary> public partial class VertexControl : Thumb { public VertexControl() { InitializeComponent();...
2739fc1f-3d03-46c2-8f04-2261ffebf72b
{ "language": "C#" }
```c# // Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved. // The Apache v2. See License.txt in the project root for license information. using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; usin...
```c# // Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved. // The Apache v2. See License.txt in the project root for license information. using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; usin...
ceb77c67-387d-4930-a438-53ee183e10e7
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.Data.Entity; namespace CodeComb.AspNet.Upload.Models { public static class ModelBuilderExtensions { public static ModelBuilder SetupBlob(this ModelBuilder self) { ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.Data.Entity; namespace CodeComb.AspNet.Upload.Models { public static class ModelBuilderExtensions { public static ModelBuilder SetupFiles(this ModelBuilder self) { ...
20c374fe-4322-46e8-ab54-b1a16a945f5a
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Xamarin.Forms.GoogleMaps { public static class GeoConstants { public const double EarthRadiusKm = 6371; public const double EarthCircumferenceKm = EarthRadiusKm *...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Xamarin.Forms.GoogleMaps { internal static class GeoConstants { public const double EarthRadiusKm = 6371; public const double EarthCircumferenceKm = EarthRadiusKm...
5d0e6b2c-1763-40bb-8e32-3a7c73c60b86
{ "language": "C#" }
```c# using CodeHub.Services; using GalaSoft.MvvmLight; namespace CodeHub.ViewModels.Settings { public class NofiticationSettingsViewModel : ObservableObject { private bool _isToastEnabled = SettingsService.Get<bool>(SettingsKeys.IsToastEnabled); public bool IsToastEnabled { get => _isToastEnabled; set...
```c# using CodeHub.Services; using GalaSoft.MvvmLight; namespace CodeHub.ViewModels.Settings { public class NofiticationSettingsViewModel : ObservableObject { private bool _isToastEnabled = SettingsService.Get<bool>(SettingsKeys.IsToastEnabled); private bool _isLiveTilesEnabled = SettingsServ...
1222eaac-01ef-4226-acc8-2da8bb40b1a9
{ "language": "C#" }
```c# // Helpers/Settings.cs using Refractored.Xam.Settings; using Refractored.Xam.Settings.Abstractions; namespace CodeCamp.Helpers { /// <summary> /// This is the Settings static class that can be used in your Core solution or in any /// of your client applications. All settings are laid out the same exact way...
```c# // Helpers/Settings.cs using Refractored.Xam.Settings; using Refractored.Xam.Settings.Abstractions; namespace CodeCamp.Helpers { /// <summary> /// This is the Settings static class that can be used in your Core solution or in any /// of your client applications. All settings are laid out the same exact way...
e44434b9-d913-47d0-9fd1-ffc6c12eeea7
{ "language": "C#" }
```c# using System; using System.IO; using System.Collections.Generic; namespace CyLR { internal static class CollectionPaths { public static List<string> GetPaths(Arguments arguments) { var paths = new List<string> { @"C:\Windows\System32\config...
```c# using System; using System.IO; using System.Collections.Generic; namespace CyLR { internal static class CollectionPaths { public static List<string> GetPaths(Arguments arguments) { var paths = new List<string> { @"C:\Windows\System32\config...
9f83f3cf-2ed1-4d84-9093-f2c7a93dd771
{ "language": "C#" }
```c# @{ var parsedModel = TempData.GetStatusMessageModel(); } @if (parsedModel != null) { <div class="alert alert-@parsedModel.SeverityCSS @(parsedModel.AllowDismiss? "alert-dismissible":"" )" role="alert"> @if (parsedModel.AllowDismiss) { <button type="button" class="close" data-...
```c# @{ var parsedModel = TempData.GetStatusMessageModel(); } @if (parsedModel != null) { <div class="alert alert-@parsedModel.SeverityCSS @(parsedModel.AllowDismiss? "alert-dismissible":"" ) mb-5" role="alert"> @if (parsedModel.AllowDismiss) { <button type="button" class="close" ...
b36f80bb-2ee7-4221-8f42-22bc05802e02
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Framework.Bindables; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Sprites; using osu...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Game.Graphics.UserInterface; using osu.Game.Overlays; using osu.Game.Screens.Edit.Timing; namespace osu.Game.Screens.Edi...
649992ac-2b47-4e0b-b8c2-26675dcc3d2c
{ "language": "C#" }
```c# <script type="text/javascript"> angular.module("myapp") .constant("WAIT", @ViewBag.WAIT) .constant("NAME", @ViewBag.NAME) ; </script> ``` Fix string injection of NAME from ViewBag to ng.constant
```c# <script type="text/javascript"> angular.module("myapp") .constant("WAIT", @ViewBag.WAIT) .constant("NAME", '@ViewBag.NAME') ; </script> ```
2fdefa91-873f-492d-9dfa-660bf1ae281f
{ "language": "C#" }
```c# using Glimpse.Web; using Microsoft.AspNet.Http; using Newtonsoft.Json; using System.IO; using System.Text; using Microsoft.AspNet.Builder; namespace Glimpse.Server.Web { public class HttpChannelReceiver : IMiddlewareResourceComposer { private readonly IServerBroker _messageServerBus; pu...
```c# using Glimpse.Web; using Microsoft.AspNet.Http; using Newtonsoft.Json; using System.IO; using System.Text; using Microsoft.AspNet.Builder; namespace Glimpse.Server.Web { public class HttpChannelReceiver : IMiddlewareResourceComposer { private readonly IServerBroker _messageServerBus; pu...
ef6f81a3-5f3d-414e-8911-1c77dc15aad2
{ "language": "C#" }
```c# using System.Collections.Generic; using JoinRpg.DataModel; using JoinRpg.Domain; using Claim = System.Security.Claims.Claim; using ClaimTypes = System.Security.Claims.ClaimTypes; namespace Joinrpg.Web.Identity { internal static class ClaimInfoBuilder { public static IList<Claim> ToClaimsList(this...
```c# using System.Collections.Generic; using JoinRpg.DataModel; using JoinRpg.Domain; using Claim = System.Security.Claims.Claim; using ClaimTypes = System.Security.Claims.ClaimTypes; namespace Joinrpg.Web.Identity { internal static class ClaimInfoBuilder { public static IList<Claim> ToClaimsList(this...
8207777c-48eb-470f-9759-5fed0ed9746b
{ "language": "C#" }
```c# namespace Nubot.Abstractions { using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; public abstract class RobotPluginBase : IRobotPlugin { protected readonly IRobot Robot; protected RobotPluginBase(string pluginName, IRobot robot...
```c# namespace Nubot.Abstractions { using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; public abstract class RobotPluginBase : IRobotPlugin { protected readonly IRobot Robot; protected RobotPluginBase(string pluginName, IRobot robot...
420699e8-adc0-449b-b740-ea7a04a952b2
{ "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.Collections.Generic; using osu.Framework.Allocation; using osu.Game.Graphics; using osu.Game.Rulesets.Osu.Objects; using osu.Game.Rulesets.Osu.Objects....
```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.Collections.Generic; using osu.Framework.Allocation; using osu.Game.Graphics; using osu.Game.Rulesets.Osu.Objects; using osu.Game.Rulesets.Osu.Objects....
56cbf36b-ee81-4f9a-96eb-16ce77115741
{ "language": "C#" }
```c# using Autofac; using Autofac.Integration.Owin; using Bit.Owin.Contracts; using Bit.Owin.Middlewares; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Owin; using Owin; using System; using System.Reflection; using System.Threading.Tasks; namespace Bit.OwinCore.Midd...
```c# using Autofac; using Autofac.Integration.Owin; using Bit.Owin.Contracts; using Bit.Owin.Middlewares; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Owin; using Owin; using System.Threading.Tasks; namespace Bit.OwinCore.Middlewares { public class AspNetCoreAu...
33dcac39-bbd3-464c-928b-039957cca99e
{ "language": "C#" }
```c# namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Seasons { using Enums; using Objects.Basic; using Objects.Get.Shows.Seasons; using System.Collections.Generic; internal class TraktSeasonCommentsRequest : TraktGetByIdSeasonRequest<TraktPaginationListResult<TraktSeasonComment>, TraktSeasonC...
```c# namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Seasons { using Enums; using Objects.Basic; using Objects.Get.Shows.Seasons; using System.Collections.Generic; internal class TraktSeasonCommentsRequest : TraktGetByIdSeasonRequest<TraktPaginationListResult<TraktSeasonComment>, TraktSeasonC...
1bf0d24b-9ce3-4604-8141-0f040e957275
{ "language": "C#" }
```c# using System; using System.Collections; using System.Collections.Immutable; using System.Linq; using NQuery.Binding; namespace NQuery.Optimization { internal sealed class AggregationPhysicalOperatorChooser : BoundTreeRewriter { protected override BoundRelation RewriteGroupByAndAggregationRelatio...
```c# using System; using System.Collections; using System.Collections.Immutable; using System.Linq; using NQuery.Binding; namespace NQuery.Optimization { internal sealed class AggregationPhysicalOperatorChooser : BoundTreeRewriter { protected override BoundRelation RewriteGroupByAndAggregationRelatio...
96432c97-b444-4e19-813f-61935ccf3876
{ "language": "C#" }
```c# namespace Stripe.Terminal { using System; using Newtonsoft.Json; public class ReaderListOptions : ListOptions { [JsonProperty("location")] public string Location { get; set; } [Obsolete("This feature has been deprecated and should not be used moving forward.")] [J...
```c# namespace Stripe.Terminal { using System; using Newtonsoft.Json; public class ReaderListOptions : ListOptions { /// <summary> /// A location ID to filter the response list to only readers at the specific location. /// </summary> [JsonProperty("location")] p...
8ac36819-02ee-43e5-9b40-68461af35e72
{ "language": "C#" }
```c# // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using Microsoft.Azure.WebJobs.Description; namespace Microsoft.Azure.WebJobs.ServiceBus { /// <summary> /// Setup an 'trigger' on a parame...
```c# // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using Microsoft.Azure.WebJobs.Description; namespace Microsoft.Azure.WebJobs.ServiceBus { /// <summary> /// Setup an 'trigger' on a parame...
db5c84bf-c1dc-459c-a78b-056fae5318b9
{ "language": "C#" }
```c# using System; using System.Threading.Tasks; using System.Web.Mvc; using BookSleeve; using SignalR; namespace Compilify.Web.EndPoints { public class ExecuteEndPoint : PersistentConnection { /// <summary> /// Handle messages sent by the client.</summary> protected overr...
```c# using System; using System.Threading.Tasks; using System.Web.Mvc; using BookSleeve; using SignalR; namespace Compilify.Web.EndPoints { public class ExecuteEndPoint : PersistentConnection { /// <summary> /// Handle messages sent by the client.</summary> protected overr...
c61f8700-cf5b-4823-8bd6-c10d7a19e9ef
{ "language": "C#" }
```c# using System.Diagnostics; using System.Windows.Input; using Norma.Models; using Norma.ViewModels.Internal; using Prism.Commands; namespace Norma.ViewModels { internal class LibraryViewModel : ViewModel { private readonly Library _library; public string Name => _library.Name; ...
```c# using System.Diagnostics; using System.Windows.Input; using Norma.Models; using Norma.ViewModels.Internal; using Prism.Commands; namespace Norma.ViewModels { internal class LibraryViewModel : ViewModel { private readonly Library _library; public string Name => _library.Name; ...
fd2195c2-ff8d-45d4-9078-4c84c4e1e6ab
{ "language": "C#" }
```c# using System; using System.ComponentModel; namespace CoffeeFilter.UITests.Shared { public static class UITestsHelpers { public static string XTCApiKey { get; } = "024b0d715a7e9c22388450cf0069cb19"; public static TestType SelectedTest { get; set; } public enum TestType { NoConnection, Parse...
```c# using System; using System.ComponentModel; namespace CoffeeFilter.UITests.Shared { public static class UITestsHelpers { public static string XTCApiKey { get; } = "024b0d715a7e9c22388450cf0069cb19"; public static TestType SelectedTest { get; set; } public enum TestType { OpenCoffee = 0, NoC...
5f780348-3505-4fbb-9f82-397d3b07fec9
{ "language": "C#" }
```c# using System; using System.IO; using System.Net.Http; using System.Threading.Tasks; using CompaniesHouse.Response.Document; using CompaniesHouse.UriBuilders; using FluentAssertions; using Moq; using NUnit.Framework; namespace CompaniesHouse.Tests.CompaniesHouseDocumentClientTests { [TestFixture] public ...
```c# using System; using System.IO; using System.Net.Http; using System.Threading.Tasks; using CompaniesHouse.Response.Document; using CompaniesHouse.UriBuilders; using FluentAssertions; using Moq; using NUnit.Framework; namespace CompaniesHouse.Tests.CompaniesHouseDocumentClientTests { [TestFixture] public ...
f845685b-911e-42ac-9d98-e2c3412c5248
{ "language": "C#" }
```c# using System; using System.Runtime.InteropServices; using Klawr.ClrHost.Managed; using Klawr.ClrHost.Interfaces; using Klawr.ClrHost.Managed.SafeHandles; namespace Klawr.UnrealEngine { public class TestActor : AActorScriptObject { public TestActor(long instanceID, UObjectHandle nativeObject) : b...
```c# using System; using System.Runtime.InteropServices; using Klawr.ClrHost.Managed; using Klawr.ClrHost.Interfaces; using Klawr.ClrHost.Managed.SafeHandles; namespace Klawr.UnrealEngine { // NOTE: IScriptObject should probably be considered deprecated in favor of UKlawrScriptComponent public class TestActo...
9ec60a2b-3572-4c03-a653-6ef438534b1e
{ "language": "C#" }
```c# //----------------------------------------------------------------------- // <copyright file="BeCompletedTest.cs" company="Brian Rogers"> // Copyright (c) Brian Rogers. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace FluentSample.Test.Unit...
```c# //----------------------------------------------------------------------- // <copyright file="BeCompletedTest.cs" company="Brian Rogers"> // Copyright (c) Brian Rogers. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace FluentSample.Test.Unit...
adfcb5b7-556d-4fb9-8fbf-cd5b015beb06
{ "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. namespace Microsoft.DocAsCode.MarkdigEngine.Extensions { using Markdig; using Markdig.Renderers; using Markdig.Syntax; using Markdig.Syntax.Inline...
```c# // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.DocAsCode.MarkdigEngine.Extensions { using Markdig; using Markdig.Renderers; using Markdig.Syntax; using Markdig.Syntax.Inline...
88e67a15-6366-4ab2-a538-c356acf36953
{ "language": "C#" }
```c# using System; using Orchard.Environment; using Orchard.Environment.Extensions; using Orchard.Environment.Extensions.Models; using Orchard.Localization; using Orchard.Packaging.Services; using Orchard.UI.Notify; namespace Orchard.Packaging { [OrchardFeature("Gallery")] public class DefaultPacka...
```c# using System; using Orchard.Environment; using Orchard.Environment.Extensions; using Orchard.Environment.Extensions.Models; using Orchard.Localization; using Orchard.Packaging.Services; using Orchard.UI.Notify; namespace Orchard.Packaging { [OrchardFeature("Gallery")] public class DefaultPacka...
24dcaafa-abc3-45c6-8daf-d81bf46ebe5a
{ "language": "C#" }
```c# using MarkdownLog; using NBi.Core.ResultSet; using NBi.Core.ResultSet.Lookup; using NBi.Core.ResultSet.Lookup.Violation; using NBi.Framework.FailureMessage.Common; using NBi.Framework.FailureMessage.Common.Helper; using NBi.Framework.FailureMessage.Markdown.Helper; using NBi.Framework.Sampling; using System; usi...
```c# using MarkdownLog; using NBi.Core.ResultSet; using NBi.Core.ResultSet.Lookup; using NBi.Core.ResultSet.Lookup.Violation; using NBi.Framework.FailureMessage.Common; using NBi.Framework.FailureMessage.Common.Helper; using NBi.Framework.FailureMessage.Markdown.Helper; using NBi.Framework.Sampling; using System; usi...
2f075680-7ad0-4a37-8b5c-5e79f8c675dd
{ "language": "C#" }
```c# using System; namespace Urho { public partial class BillboardSet { public BillboardWrapper GetBillboardSafe (uint index) { unsafe { Billboard* result = BillboardSet_GetBillboard (handle, index); if (result == null) return null; return new BillboardWrapper(result); ...
```c# using System; namespace Urho { public partial class BillboardSet { public BillboardWrapper GetBillboardSafe (uint index) { unsafe { Billboard* result = BillboardSet_GetBillboard (handle, index); if (result == null) return null; return new BillboardWrapper(this, resu...
c7329c3d-5603-450a-8d83-a52e088cc18a
{ "language": "C#" }
```c# using System.Web.Mvc; using System.Web.Routing; namespace RestfulRouting { public abstract class Mapper { protected Route GenerateRoute(string path, string controller, string action, string[] httpMethods) { return new Route(path, new RouteValueDictionary(new { controller, action }), new RouteVa...
```c# using System.Web.Mvc; using System.Web.Routing; namespace RestfulRouting { public abstract class Mapper { private readonly IRouteHandler _routeHandler; protected Route GenerateRoute(string path, string controller, string action, string[] httpMethods) { return new Route(path, new RouteValueDictio...
134a7eb5-c1dd-4c34-961f-05b88799ec9e
{ "language": "C#" }
```c# using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Text; namespace Contentful.Core.Models.Management { /// <summary> /// Encapsulates information about a Contentful Ui Extension /// </summary> public class UiExtension : IContentfulResource { /// <summ...
```c# using Contentful.Core.Configuration; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Text; namespace Contentful.Core.Models.Management { /// <summary> /// Encapsulates information about a Contentful Ui Extension /// </summary> [JsonConverter(typeof(ExtensionJs...
b49b9dcf-42bb-479b-a950-110b0710b364
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Globalization; using System.Linq; #if (NETFX || WINDOWS_PHONE) using System.Windows; using System.Windows.Data; using System.Windows.Markup; #elif (NETFX_CORE) using Windows.UI.Xaml; using Windows.UI.Xaml.Data; #elif (XAMARIN) using Xamarin.Forms; #en...
```c# using System; using System.Collections.Generic; using System.Globalization; using System.Linq; #if (NETFX || WINDOWS_PHONE) using System.Windows; using System.Windows.Data; using System.Windows.Markup; #elif (NETFX_CORE) using Windows.UI.Xaml; using Windows.UI.Xaml.Data; using Windows.UI.Xaml.Markup; #elif (XAM...
352fb419-265e-4bf3-a8c3-9bee550dac6a
{ "language": "C#" }
```c# using System.IO; using System.Web; namespace Bundlr { public class TemplateSource : IContentSource { private readonly string global; private readonly Compiler compiler; private readonly TemplateFinder finder; public TemplateSource(string global, Compiler compiler, Templa...
```c# using System.Collections.Generic; using System.IO; using System.Linq; using System.Web; namespace Bundlr { public class TemplateSource : IContentSource { private readonly string global; private readonly Compiler compiler; private readonly TemplateFinder finder; public Te...
3e40a5c8-e6c4-46ac-b8ca-78d2fab523bb
{ "language": "C#" }
```c# using Mindscape.Raygun4Net.Utils; namespace Mindscape.Raygun4Net.Logging { public class RaygunLogger : Singleton<RaygunLogger>, IRaygunLogger { public RaygunLogLevel LogLevel { get; set; } public void Error(string message) { Log(RaygunLogLevel.Error, message); } public void Warnin...
```c# using Mindscape.Raygun4Net.Utils; namespace Mindscape.Raygun4Net.Logging { public class RaygunLogger : Singleton<RaygunLogger>, IRaygunLogger { private const string RaygunPrefix = "Raygun: "; public RaygunLogLevel LogLevel { get; set; } public void Error(string message) { Log(RaygunLo...
f1268545-e4a1-44bd-a60e-5508680d7fd7
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Net; using System.Net.Sockets; namespace MultiMiner.Utility.Networking { public class PortScanner { public static List<IPEndPoint> Find(string ipRange, int startingPort, int endingPort, int connectTimeout = 100) { i...
```c# using System; using System.Collections.Generic; using System.Net; using System.Net.Sockets; namespace MultiMiner.Utility.Networking { public class PortScanner { public static List<IPEndPoint> Find(string ipRange, int startingPort, int endingPort, int connectTimeout = 100) { i...
d71eb472-b406-482d-b719-d70bc5b5da95
{ "language": "C#" }
```c# namespace TestAppUWP.Samples.Map { public class MapServiceSettings { public static string Token = string.Empty; } }``` Add multiple bing maps keys
```c# namespace TestAppUWP.Samples.Map { public class MapServiceSettings { public const string TokenUwp1 = "TokenUwp1"; public const string TokenUwp2 = "TokenUwp2"; public static string SelectedToken = TokenUwp1; } }```
18057974-8935-40af-b315-d0053c65d7a8
{ "language": "C#" }
```c# using Microsoft.Speech.Recognition; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace lex4all { public static class EngineControl { /// <summary> /// creates engine and sets properties /// </summary> ...
```c# using Microsoft.Speech.Recognition; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace lex4all { public static class EngineControl { /// <summary> /// creates engine and sets properties /// </summary> ...
c574337b-05ef-420d-9d36-7b6c237486c8
{ "language": "C#" }
```c# using System.Linq; using System.Threading.Tasks; using Microsoft.AspNet.Mvc; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Recommendations; using Microsoft.CodeAnalysis.Text; using OmniSharp.Models; namespace OmniSharp { public partial class OmnisharpController { [HttpPost("autocomp...
```c# using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNet.Mvc; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Recommendations; using Microsoft.CodeAnalysis.Text; using OmniSharp.Models; namespace OmniSharp { public partial class OmnisharpController...
b94b7985-77bf-43b0-a621-3f043c233a53
{ "language": "C#" }
```c# using InfinniPlatform.Http; using InfinniPlatform.IoC; namespace InfinniPlatform.Auth.HttpService.IoC { public class AuthHttpServiceContainerModule<TUser> : IContainerModule where TUser : AppUser { public void Load(IContainerBuilder builder) { builder.RegisterType(typeof(Auth...
```c# using InfinniPlatform.Http; using InfinniPlatform.IoC; namespace InfinniPlatform.Auth.HttpService.IoC { public class AuthHttpServiceContainerModule<TUser> : IContainerModule where TUser : AppUser { public void Load(IContainerBuilder builder) { builder.RegisterType(typeof(Auth...
3d30526e-43ff-4e16-b13c-f3a944ff6930
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics.Containers; using osu.Game.Overlays.Toolbar; using System; using System.Collections.Generic; using osu.Framework.Graphics; using Syste...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics.Containers; using osu.Game.Overlays.Toolbar; using System; using System.Collections.Generic; using osu.Framework.Graphics; using Syste...
633fc5e7-ad54-4d42-8aab-6689a3d87595
{ "language": "C#" }
```c# using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using RockLib.Logging.DependencyInjection; using System; namespace RockLib.Logging { public static class RockLibLoggerExtensions { public static ILoggingBuilder AddRockLibLogge...
```c# using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using RockLib.Logging.DependencyInjection; using System; namespace RockLib.Logging { public static class RockLibLoggerExtensions { public static ILoggingBuilder AddRockLibLogge...
3e57dcbc-c483-4662-8bc7-743b4342d2df
{ "language": "C#" }
```c# using System.Collections.Generic; namespace Ical.Net.Interfaces.DataTypes { public interface IPeriodList : IEncodableDataType, IList<IPeriod> { string TzId { get; set; } IPeriod this[int index] { get; set; } void Add(IDateTime dt); void Remove(IDateTime dt); } }``` ...
```c# using System.Collections.Generic; namespace Ical.Net.Interfaces.DataTypes { public interface IPeriodList : IEncodableDataType, IList<IPeriod> { string TzId { get; set; } new IPeriod this[int index] { get; set; } void Add(IDateTime dt); void Remove(IDateTime dt); } }`...
ac68e8e4-9eb9-4a6b-aadf-1e73ea8e267c
{ "language": "C#" }
```c# using System.Threading.Tasks; using Content.Server.GameObjects.EntitySystems.StationEvents; using NUnit.Framework; using Robust.Shared.GameObjects.Systems; using Robust.Shared.Interfaces.Timing; using Robust.Shared.IoC; namespace Content.IntegrationTests.Tests.StationEvents { [TestFixture] public class S...
```c# using System.Threading.Tasks; using Content.Server.GameObjects.EntitySystems.StationEvents; using NUnit.Framework; using Robust.Shared.GameObjects.Systems; using Robust.Shared.Interfaces.Timing; using Robust.Shared.IoC; namespace Content.IntegrationTests.Tests.StationEvents { [TestFixture] public class S...
d5e3c0bc-b230-43bb-981a-14da2bd2069b
{ "language": "C#" }
```c# // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Azure.WebJobs.Script.Config; using static Micr...
```c# // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Azure.WebJobs.Script.Config; using static Micr...
e414fc53-27e3-414c-9f1d-3c4d409a5d05
{ "language": "C#" }
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using osu.Framework.Platform; using osu.Framework.Testing; namespace osu.Game.Tests.Visual { public abstract class OsuTestCase : TestC...
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using osu.Framework.Platform; using osu.Framework.Testing; namespace osu.Game.Tests.Visual { public abstract class OsuTestCase : TestC...
1aff3247-ae1e-4eaf-b8d2-602b785d02dd
{ "language": "C#" }
```c# // Copyright 2016 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
```c# // Copyright 2016 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
921aae49-3a66-4e37-ac29-840926324b82
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Android.App; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assemb...
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Android.App; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assemb...
0598afb6-5161-417f-95e6-a4b499e1ec17
{ "language": "C#" }
```c# namespace BigEgg.ConsoleExtension.Parameters.Errors { using System; internal class CommandHelpRequestError : Error { public CommandHelpRequestError() : base(ErrorType.CommandHelpRequest, true) { } public string CommandName { get; private set; } public b...
```c# namespace BigEgg.ConsoleExtension.Parameters.Errors { using System; internal class CommandHelpRequestError : Error { public CommandHelpRequestError(string commandName, bool existed, Type commandType) : base(ErrorType.CommandHelpRequest, true) { CommandName = c...
a4cfd2ca-a694-40b4-a07f-fa141641e0eb
{ "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.Collections.Generic; using System.Linq; using osu.Game.Beatmaps; using osu.Game.Graphics; using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Os...
```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.Collections.Generic; using System.Linq; using osu.Game.Beatmaps; using osu.Game.Graphics; using osu.Game.Rulesets.Osu.Objects; namespace osu.Game.Ru...
8f8f0942-842a-4148-a142-4041a3e37050
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Threading; using Nancy; using Nancy.Hosting.Self; namespace ChildProcessUtil { public class Program { private const string HttpAddress = "http://localhost:"; private static NancyHost host; private static void Main(strin...
```c# using System; using System.Collections.Generic; using System.Threading; using Nancy; using Nancy.Hosting.Self; namespace ChildProcessUtil { public class Program { private const string HttpAddress = "http://localhost:"; private static NancyHost host; private static void Main(strin...
bb2b487e-916c-486a-be79-7cb28a2eccb6
{ "language": "C#" }
```c# namespace ReimuPlugins.Common { public enum Revision { Rev1 = 1, Rev2 } public enum ErrorCode { NoFunction = -1, AllRight, NotSupport, FileReadError, FileWriteError, NoMemory, UnknownError, DialogCanceled } ...
```c# using System.Text; namespace ReimuPlugins.Common { public enum Revision { Rev1 = 1, Rev2 } public enum ErrorCode { NoFunction = -1, AllRight, NotSupport, FileReadError, FileWriteError, NoMemory, UnknownError, Di...
695ba438-5102-421a-92b3-3b5d97a81085
{ "language": "C#" }
```c# /** Copyright 2014-2017 Robert McNeel and Associates 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 agreed to...
```c# /** Copyright 2014-2017 Robert McNeel and Associates 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 agreed to...
06aab446-82fc-47c5-b364-98475ff30296
{ "language": "C#" }
```c# // Copyright 2013 The Noda Time Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0, // as found in the LICENSE.txt file. using System; namespace NodaTime.Utility { /// <summary> /// Exception thrown when data read by Noda Time (such as serialized time zone dat...
```c# // Copyright 2013 The Noda Time Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0, // as found in the LICENSE.txt file. using System; namespace NodaTime.Utility { /// <summary> /// Exception thrown when data read by Noda Time (such as serialized time...
031531b1-8e20-4674-b4a5-e348ef6fc0a9
{ "language": "C#" }
```c# using System; namespace Cake.Yarn { /// <summary> /// Yarn Runner command interface /// </summary> public interface IYarnRunnerCommands { /// <summary> /// execute 'yarn install' with options /// </summary> /// <param name="configure">options when running 'yarn...
```c# using System; namespace Cake.Yarn { /// <summary> /// Yarn Runner command interface /// </summary> public interface IYarnRunnerCommands { /// <summary> /// execute 'yarn install' with options /// </summary> /// <param name="configure">options when running 'yarn...
7e0fa407-45ce-4b5d-93fb-9642bca044e6
{ "language": "C#" }
```c# /* Copyright 2014 Jonathan Holland. * * 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 agreed ...
```c# /* Copyright 2014 Jonathan Holland. * * 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 agreed ...
35696e4a-b130-4973-8d68-409a13927efb
{ "language": "C#" }
```c# // Copyright 2013-2020 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/> // // Licensed under the ImageMagick License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // // https://www.imagemagick.org/script/license.php // // Unle...
```c# // Copyright 2013-2020 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/> // // Licensed under the ImageMagick License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // // https://www.imagemagick.org/script/license.php // // Unle...
ee6c891a-7d9d-49aa-96c9-d49e21d69179
{ "language": "C#" }
```c# using System.Collections; using System.Reflection; using UnityEngine; public class CoroutineModComponentSolver : ComponentSolver { public CoroutineModComponentSolver(BombCommander bombCommander, MonoBehaviour bombComponent, IRCConnection ircConnection, CoroutineCanceller canceller, MethodInfo processMethod,...
```c# using System.Collections; using System.Collections.Generic; using System.Reflection; using UnityEngine; public class CoroutineModComponentSolver : ComponentSolver { public CoroutineModComponentSolver(BombCommander bombCommander, MonoBehaviour bombComponent, IRCConnection ircConnection, CoroutineCanceller ca...
09378a9d-6253-4c92-9fcd-804747f7fc33
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; namespace AsyncRewriter { /// <summary> /// </summary> /// <remarks> /// http://stackoverflow.com...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; namespace AsyncRewriter { /// <summary> /// </summary> /// <remarks> /// http://stackoverflow.com...
634742b6-36ca-4167-a2b4-550de7b8d375
{ "language": "C#" }
```c# using System; using System.Diagnostics; using System.Threading; namespace Xamarin.Forms.Controls.Issues { public partial class Bugzilla42069_Page : ContentPage { public const string DestructorMessage = ">>>>>>>>>> Bugzilla42069_Page destructor <<<<<<<<<<"; public Bugzilla42069_Page() { InitializeCom...
```c# using System; using System.Diagnostics; using System.Threading; namespace Xamarin.Forms.Controls.Issues { public partial class Bugzilla42069_Page : ContentPage { public const string DestructorMessage = ">>>>>>>>>> Bugzilla42069_Page destructor <<<<<<<<<<"; public Bugzilla42069_Page() { #if APP In...
f09713b0-e7d1-4e76-ad3a-4d08586d5fb2
{ "language": "C#" }
```c# using System; using Microsoft.Extensions.DependencyInjection; namespace Castle.Windsor.MsDependencyInjection { public class WindsorServiceProviderFactory : IServiceProviderFactory<IWindsorContainer> { public IWindsorContainer CreateBuilder(IServiceCollection services) { var c...
```c# using System; using Microsoft.Extensions.DependencyInjection; namespace Castle.Windsor.MsDependencyInjection { public class WindsorServiceProviderFactory : IServiceProviderFactory<IWindsorContainer> { public IWindsorContainer CreateBuilder(IServiceCollection services) { var c...
58c52018-fdaf-4384-bc52-8b9773415693
{ "language": "C#" }
```c# using NUnit.Framework; namespace Smooth.IoC.Dapper.FastCRUD.Repository.UnitOfWork.Tests.TestHelpers { public class MyDatabaseSettings { public string ConnectionString { get; } = $@"{TestContext.CurrentContext.TestDirectory}\Tests.db"; } } ``` Add interface as resharper forgot
```c# using NUnit.Framework; namespace Smooth.IoC.Dapper.FastCRUD.Repository.UnitOfWork.Tests.TestHelpers { public class MyDatabaseSettings : IMyDatabaseSettings { public string ConnectionString { get; } = $@"Data Source={TestContext.CurrentContext.TestDirectory}\Tests.db;Version=3;New=True;BinaryGUID...
5180d238-c31a-47a9-951e-d18f2c66e95f
{ "language": "C#" }
```c# using System; using System.Collections.Generic; namespace ChamberLib { public interface IModel { object Tag { get; set; } IEnumerable<IMesh> GetMeshes(); void Draw(Matrix world, Matrix view, Matrix projection, IMaterial materialOverride=null, LightingDat...
```c# using System; using System.Collections.Generic; namespace ChamberLib { public interface IModel { object Tag { get; set; } IEnumerable<IMesh> GetMeshes(); void Draw(Matrix world, Matrix view, Matrix projection, IMaterial materialOverride=null, LightingDat...
95fbe905-174b-4fce-95ac-8e4ae2e1e459
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Microsoft.Diagnostics.EventFlow.Configuration { public class ElasticSearchMappingsConfiguration { public Dictionary<string, ElasticSearchMappingsConfigurationPropertyDesc...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Microsoft.Diagnostics.EventFlow.Configuration { public class ElasticSearchMappingsConfiguration { public Dictionary<string, ElasticSearchMappingsConfigurationPropertyDesc...
c92b7616-3da7-4289-9c11-7b1c0a9b8a1d
{ "language": "C#" }
```c# using System.IO; using JetBrains.Annotations; using JetBrains.Application.Settings; using JetBrains.ReSharper.Feature.Services.Daemon; using JetBrains.ReSharper.FeaturesTestFramework.Daemon; using JetBrains.ReSharper.Psi; using XmlDocInspections.Plugin.Highlighting; namespace XmlDocInspections.Plugin.Tests.Inte...
```c# using System.IO; using JetBrains.Annotations; using JetBrains.Application.Settings; using JetBrains.ReSharper.Feature.Services.Daemon; using JetBrains.ReSharper.FeaturesTestFramework.Daemon; using JetBrains.ReSharper.Psi; using JetBrains.ReSharper.TestFramework; using XmlDocInspections.Plugin.Highlighting; name...
4e59df45-752d-4bbb-ba9f-3aa17f99f512
{ "language": "C#" }
```c# using System; using System.Net; using System.Threading.Tasks; using Microsoft.Azure; using Newtonsoft.Json; using NLog; using SFA.DAS.EmployerApprenticeshipsService.Domain; using SFA.DAS.EmployerApprenticeshipsService.Domain.Interfaces; namespace SFA.DAS.EmployerApprenticeshipsService.Infrastructure.Services { ...
```c# using System.Net; using System.Threading.Tasks; using Newtonsoft.Json; using NLog; using SFA.DAS.EmployerApprenticeshipsService.Domain; using SFA.DAS.EmployerApprenticeshipsService.Domain.Configuration; using SFA.DAS.EmployerApprenticeshipsService.Domain.Interfaces; namespace SFA.DAS.EmployerApprenticeshipsServ...
636f5bb2-fe5b-4716-87bf-ebf3afa2e169
{ "language": "C#" }
```c# using AutoMapper; using Esfa.Vacancy.Api.Types; using Esfa.Vacancy.Register.Api; using Esfa.Vacancy.Register.Application.Queries.SearchApprenticeshipVacancies; using FluentAssertions; using NUnit.Framework; namespace Esfa.Vacancy.Register.UnitTests.SearchApprenticeship.Api.GivenSearchApprenticeshipParameters { ...
```c# using AutoMapper; using Esfa.Vacancy.Api.Types; using Esfa.Vacancy.Register.Api; using Esfa.Vacancy.Register.Application.Queries.SearchApprenticeshipVacancies; using FluentAssertions; using NUnit.Framework; namespace Esfa.Vacancy.Register.UnitTests.SearchApprenticeship.Api.GivenSearchApprenticeshipParameters { ...
766e4519-1052-4ee2-aa97-a396b969be36
{ "language": "C#" }
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System.Text; using UnityEngine; namespace HoloToolkit.Unity { public static class TransformExtensions { /// <summary> /// An ext...
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System.Text; using UnityEngine; namespace HoloToolkit.Unity { public static class TransformExtensions { /// <summary> /// An ext...
c1fbb28d-1dc1-4ff1-abbe-5d4d6e856c57
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.Content.PM; using Android.OS; using Android.Runtime; using Android.Views; using Android.Webkit; using Android.Widget; namespace webscripthook_android { [Activity(Label...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.Content.PM; using Android.OS; using Android.Runtime; using Android.Views; using Android.Webkit; using Android.Widget; namespace webscripthook_android { [Activity(Label...
1ac8ba36-e07e-472f-bfa0-b106f77c06c3
{ "language": "C#" }
```c# @model IdentityServer3.Core.ViewModels.AuthorizeResponseViewModel <h1 class="heading-large">Login successful</h1> <form id="mainForm" method="post" action="@Model.ResponseFormUri"> <div id="autoRedirect" style="display: none;">Please wait...</div> @Html.Raw(Model.ResponseFormFields) <div i...
```c# @model IdentityServer3.Core.ViewModels.AuthorizeResponseViewModel @{ ViewBag.PageID = "authorize-response"; ViewBag.Title = "Login Successful"; ViewBag.HideSigninLink = "true"; } <h1 class="heading-xlarge">Login successful</h1> <form id="mainForm" method="post" action="@Model.ResponseFormUri...
f0959e7c-31fe-4ee3-b346-52ae2b4d46ab
{ "language": "C#" }
```c# using System; namespace FbxSharp { public struct FbxTime { public static readonly FbxTime Infinite = new FbxTime(0x7fffffffffffffffL); public static readonly FbxTime Zero = new FbxTime(0); public FbxTime(long time) { Value = time; } public lon...
```c# using System; namespace FbxSharp { public struct FbxTime { public static readonly FbxTime Infinite = new FbxTime(0x7fffffffffffffffL); public static readonly FbxTime Zero = new FbxTime(0); public const long UnitsPerSecond = 46186158000L; public FbxTime(long time) ...
82ccd21a-828a-4878-a386-0c6d73e2ab3d
{ "language": "C#" }
```c# using Kentor.PU_Adapter; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace PU_Stub.Controllers { public class SnodController : ApiController { private static readonly IDictionary<string, string> TestPerson...
```c# using Kentor.PU_Adapter; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace PU_Stub.Controllers { public class SnodController : ApiController { private static readonly IDictionary<string, string> TestPerson...
5b62004c-fb73-4a4f-9b82-1d39e2f5a185
{ "language": "C#" }
```c# using CIV.Ccs; namespace CIV { class Program { static void Main(string[] args) { var text = System.IO.File.ReadAllText(args[0]); var processes = CcsFacade.ParseAll(text); var trace = CcsFacade.RandomTrace(processes["Prison"], 450); foreach (var actio...
```c# using static System.Console; using CIV.Ccs; namespace CIV { class Program { static void Main(string[] args) { var text = System.IO.File.ReadAllText(args[0]); var processes = CcsFacade.ParseAll(text); var trace = CcsFacade.RandomTrace(processes["Prison"], 450); ...
b8f71b51-de44-44a9-b63f-7133256f83c6
{ "language": "C#" }
```c# // Copyright (c) Alexandre Mutel. All rights reserved. // This file is licensed under the BSD-Clause 2 license. // See the license.txt file in the project root for more information. using System; using System.IO; using System.Reflection; using Autofac; using Lunet.Core; using Microsoft.Extensions.Logging; nam...
```c# // Copyright (c) Alexandre Mutel. All rights reserved. // This file is licensed under the BSD-Clause 2 license. // See the license.txt file in the project root for more information. using System; using System.IO; using System.Reflection; using Autofac; using Lunet.Core; using Microsoft.Extensions.Logging; nam...
1064e3a9-dcf6-4d27-a9cd-581932a21b54
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; public class GameStart : MonoBehaviour { static int gameMode = INSTRUCTION; const int INSTRUCTION = -1; const int ONE_PLAYER = 1; const int TWO_PLAYER = 2; /// <summary> /// The game mode of the current game /// </summary> public sta...
```c# using UnityEngine; using System.Collections; public class GameStart : MonoBehaviour { static int gameMode = ONE_PLAYER; const int INSTRUCTION = -1; const int ONE_PLAYER = 1; const int TWO_PLAYER = 2; /// <summary> /// The game mode of the current game /// </summary> public stat...
27bbbf73-12fa-487c-ad48-033007226fe5
{ "language": "C#" }
```c# using Abp.AspNetCore.OData.Controllers; using Abp.Dependency; using Abp.Domain.Repositories; using Abp.Web.Models; using AbpODataDemo.People; using Microsoft.AspNet.OData; using Microsoft.AspNetCore.Mvc; using System.Linq; using System.Threading.Tasks; namespace AbpODataDemo.Controllers { [DontWrapResult] ...
```c# using Abp.AspNetCore.OData.Controllers; using Abp.Dependency; using Abp.Domain.Repositories; using Abp.Web.Models; using AbpODataDemo.People; using Microsoft.AspNet.OData; using Microsoft.AspNetCore.Mvc; using System.Linq; using System.Threading.Tasks; namespace AbpODataDemo.Controllers { [DontWrapResult] ...
2124c3b2-e974-4cd5-aa6d-01cefc8bfd50
{ "language": "C#" }
```c# /** Copyright 2014-2017 Robert McNeel and Associates 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 agreed to...
```c# /** Copyright 2014-2017 Robert McNeel and Associates 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 agreed to...
58899a8f-68ad-4a80-9e81-f55c518e8f10
{ "language": "C#" }
```c# @model SFA.DAS.EmployerApprenticeshipsService.Domain.Entities.Account.Account <h1 class="heading-xlarge" id="company-Name">@Model.Name</h1> <div class="grid-row"> <div class="column-two-thirds"> <div style="max-width: 90%"> <div class="grid-row"> <div class="column-half"> ...
```c# @model SFA.DAS.EmployerApprenticeshipsService.Domain.Entities.Account.Account <h1 class="heading-xlarge" id="company-Name">@Model.Name</h1> <div class="grid-row"> <div class="column-two-thirds"> <div style="max-width: 90%"> <div class="grid-row"> <div class="column-half"> ...
a2a332bd-f091-41bb-a2b4-0bc1b3bea8ad
{ "language": "C#" }
```c# namespace MadeWithLove.Middleware { using Owin; public static class Extensions { public static void MakeWithLove(this IAppBuilder app, string customIngredient) { app.Use<MadeWithLoveMiddleware>(customIngredient); } } } ``` Make custom ingredient optional on e...
```c# namespace MadeWithLove.Middleware { using Owin; public static class Extensions { public static void MakeWithLove(this IAppBuilder app, string customIngredient = null) { app.Use<MadeWithLoveMiddleware>(customIngredient); } } } ```
96a5757c-4dad-46e8-b587-6220b532f76b
{ "language": "C#" }
```c# // Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using osu.Framework.Allocation; using osu.Framework.Input; using osu.Framework.Statistics; namespace osu.Framework.OS { /// <summary> ...
```c# // Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System.Collections.Generic; using osu.Framework.Allocation; using osu.Framework.Input; using osu.Framework.Input.Handlers; using osu.Framew...
7ac8c212-f707-4cfd-a961-d8ee7ee88c3c
{ "language": "C#" }
```c# using System; using System.Reflection; using System.Runtime.InteropServices; //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.225 // // Changes to this file may cause incorrect behav...
```c# using System; using System.Reflection; using System.Runtime.InteropServices; //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.225 // // Changes to this file may cause incorrect behav...
8a18840c-60c2-4938-bc9d-d14dd3f12825
{ "language": "C#" }
```c# using System.Collections.Generic; namespace LiveSplit.Model.Comparisons { public class StandardComparisonGeneratorsFactory : IComparisonGeneratorsFactory { static StandardComparisonGeneratorsFactory() { CompositeComparisons.AddShortComparisonName(BestSegmentsComparisonGenerato...
```c# using System.Collections.Generic; namespace LiveSplit.Model.Comparisons { public class StandardComparisonGeneratorsFactory : IComparisonGeneratorsFactory { static StandardComparisonGeneratorsFactory() { CompositeComparisons.AddShortComparisonName(BestSegmentsComparisonGenerato...
a8978bb9-136d-4d0f-8d00-c905c90cc42a
{ "language": "C#" }
```c# namespace Microsoft.ApplicationInsights.AspNetCore.Tests.ContextInitializers { using System; using System.Globalization; using System.Net; using System.Net.NetworkInformation; using Helpers; using Microsoft.ApplicationInsights.AspNetCore.TelemetryInitializers; using Microsoft.Applicat...
```c# namespace Microsoft.ApplicationInsights.AspNetCore.Tests.ContextInitializers { using System; using System.Globalization; using System.Net; using System.Net.NetworkInformation; using Helpers; using Microsoft.ApplicationInsights.AspNetCore.TelemetryInitializers; using Microsoft.Applicat...
aa44f099-2b6b-4dc8-8c1a-c975987cc6f4
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ElectronicCash { public abstract class BaseActor { public string Name { get; set; } public Guid ActorGuid { get; set; } } } ``` Move more stuff to superclass
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ElectronicCash { /// <summary> /// The base actor abstracts all common properties of our actors (mainly Bank, Merchant, Customer) /// </summary> public abstract class Bas...