doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
e2d161a5-55cc-4748-919f-b78c1245d6db
{ "language": "C#" }
```c# /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); y...
```c# /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); y...
4c738989-aa96-4629-a1f7-e62c89c25bec
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Core.CrossDomainImagesWeb { public partial class Default : System.Web.UI.Page { protected void Page_PreInit(object sender, EventArgs e) { ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Core.CrossDomainImagesWeb { public partial class Default : System.Web.UI.Page { protected void Page_PreInit(object sender, EventArgs e) { ...
08f789fd-7d6d-42e1-bff0-ef7b494c5650
{ "language": "C#" }
```c# // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Threading; namespace Microsoft.VisualStudio.IntegrationTest.Utilities.OutOfProcess { public class Dialog_OutOfProc : Ou...
```c# // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Threading; namespace Microsoft.VisualStudio.IntegrationTest.Utilities.OutOfProcess { public class Dialog_OutOfProc : Ou...
850e38bd-f47c-40a8-86f1-77e4da77f371
{ "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 System.Linq; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Game.Online.Rooms; using osuTK...
```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 System.Linq; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Game.Online.Rooms; using osuTK...
3ca189cd-e6d1-4250-a863-6756189311ee
{ "language": "C#" }
```c# using System; using System.Data; using NHibernate.Engine; namespace NHibernate.Impl { /// <summary> /// Summary description for BatchingBatcher. /// </summary> internal class BatchingBatcher : BatcherImpl { private int batchSize; private int[] expectedRowCounts; /// <summary> /// /// </summary> ...
```c# using System; using System.Data; using NHibernate.Engine; namespace NHibernate.Impl { /// <summary> /// Summary description for BatchingBatcher. /// </summary> internal class BatchingBatcher : BatcherImpl { //private int batchSize; private int[] expectedRowCounts; /// <summary> /// /// </summary...
3cf88777-d8cd-4587-b63b-8b5a1c5b593f
{ "language": "C#" }
```c# using Microsoft.AspNet.Http; using Microsoft.AspNet.Mvc; using MvcSample.Web.Models; namespace MvcSample.Web.RandomNameSpace { public class Home2Controller { private User _user = new User() { Name = "User Name", Address = "Home Address" }; [Activate] public HttpResponse Response ...
```c# using System.Threading.Tasks; using Microsoft.AspNet.Http; using Microsoft.AspNet.Mvc; using MvcSample.Web.Models; namespace MvcSample.Web.RandomNameSpace { public class Home2Controller { private User _user = new User() { Name = "User Name", Address = "Home Address" }; [Activate] ...
f9d6d937-5b76-477e-88d0-0ca847b05d7e
{ "language": "C#" }
```c# using System; using System.Linq; using Nest; using Tests.Framework.ManagedElasticsearch.Nodes; using Tests.Framework.ManagedElasticsearch.Plugins; namespace Tests.Framework.ManagedElasticsearch.Tasks.ValidationTasks { public class ValidatePluginsTask : NodeValidationTaskBase { public override void Validate(I...
```c# using System; using System.Linq; using Nest; using Tests.Document.Multiple.UpdateByQuery; using Tests.Framework.ManagedElasticsearch.Nodes; using Tests.Framework.ManagedElasticsearch.Plugins; namespace Tests.Framework.ManagedElasticsearch.Tasks.ValidationTasks { public class ValidatePluginsTask : NodeValidation...
216b81cb-0363-4f16-8e1d-e370096bc651
{ "language": "C#" }
```c# using System.Reflection; using P2E.Interfaces.DataObjects; namespace P2E.DataObjects { public class ApplicationInformation : IApplicationInformation { public string Name { get; } public string Version { get; } public ApplicationInformation() { Name = Assembly...
```c# using System.Reflection; using P2E.Interfaces.DataObjects; namespace P2E.DataObjects { public class ApplicationInformation : IApplicationInformation { public string Name => Assembly.GetEntryAssembly().GetName().Name; public string Version => Assembly.GetEntryAssembly().GetName().Version....
583bcd7b-b4c8-4fe6-a4ec-510364d90f5d
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; namespace BitDiffer.Common.Misc { public class Constants { public const string ProductName = "BitDiffer"; public const string ProductSubTitle = "Assembly Comparison Tool"; public const string HelpUrl = "https://github.com/grennis/bi...
```c# using System; using System.Collections.Generic; using System.Text; namespace BitDiffer.Common.Misc { public class Constants { public const string ProductName = "BitDiffer"; public const string ProductSubTitle = "Assembly Comparison Tool"; public const string HelpUrl = "https://github.com/bitdiffer...
951fdbb4-3f68-42f6-bd83-fd7dd01df77e
{ "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...
204513b4-a3c0-4235-9d73-855aac5889b4
{ "language": "C#" }
```c# using ZobShop.Data.Contracts; using ZobShop.Factories; using ZobShop.Models; using ZobShop.Services.Contracts; namespace ZobShop.Services { public class ProductRatingService : IProductRatingService { private readonly IRepository<User> userRepository; private readonly IRepository<ProductR...
```c# using System; using ZobShop.Data.Contracts; using ZobShop.Factories; using ZobShop.Models; using ZobShop.Services.Contracts; namespace ZobShop.Services { public class ProductRatingService : IProductRatingService { private readonly IRepository<User> userRepository; private readonly IRepos...
1d0ddda6-7f51-4362-8be5-c9c8e8bf923a
{ "language": "C#" }
```c# using System; using ValveResourceFormat.Serialization; namespace GUI.Types.ParticleRenderer { public interface INumberProvider { double NextNumber(); } public class LiteralNumberProvider : INumberProvider { private readonly double value; public LiteralNumberProvider(...
```c# using System; using ValveResourceFormat.Serialization; namespace GUI.Types.ParticleRenderer { public interface INumberProvider { double NextNumber(); } public class LiteralNumberProvider : INumberProvider { private readonly double value; public LiteralNumberProvider(...
1b80d5b7-0ded-4220-b7cb-87d7f862b066
{ "language": "C#" }
```c#  namespace LINQToTreeHelpers { public static class Utils { /// <summary> /// Write out an object. Eventually, with ROOTNET improvements this will work better and perahps /// won't be needed! /// </summary> /// <param name="obj"></param> /// <param...
```c#  namespace LINQToTreeHelpers { public static class Utils { /// <summary> /// Write out an object. Eventually, with ROOTNET improvements this will work better and perahps /// won't be needed! /// </summary> /// <param name="obj"></param> /// <param...
b8fc028e-a7ba-4922-b7c2-dca9d6b4b7f2
{ "language": "C#" }
```c# using System.Diagnostics; using System.Windows; using System.Windows.Input; using DesktopWidgets.Classes; using DesktopWidgets.Helpers; using DesktopWidgets.ViewModelBase; using GalaSoft.MvvmLight.Command; namespace DesktopWidgets.Widgets.Search { public class ViewModel : WidgetViewModelBase { p...
```c# using System.Diagnostics; using System.Windows.Input; using DesktopWidgets.Classes; using DesktopWidgets.Helpers; using DesktopWidgets.ViewModelBase; using GalaSoft.MvvmLight.Command; namespace DesktopWidgets.Widgets.Search { public class ViewModel : WidgetViewModelBase { private string _searchT...
92d87fd8-e73e-45d2-b9d5-478586fc5a9b
{ "language": "C#" }
```c# // #[license] // SmartsheetClient SDK for C# // %% // Copyright (C) 2014 SmartsheetClient // %% // 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 // // ...
```c# // #[license] // SmartsheetClient SDK for C# // %% // Copyright (C) 2014 SmartsheetClient // %% // 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 // // ...
3b6d0a16-5d8a-4965-8992-5d949d329454
{ "language": "C#" }
```c# using System; namespace FilterLists.Agent.Entities { public class ListInfo { public int Id { get; } public Uri ViewUrl { get; } } }``` Revert "remove unused private setters"
```c# using System; namespace FilterLists.Agent.Entities { public class ListInfo { public int Id { get; private set; } public Uri ViewUrl { get; private set; } } }```
ac78eb4a-22ee-49fa-b5e8-83d9576ac5d9
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; public class Bullet : MonoBehaviour { public int bulletSpeed = 715; void Start () { GetComponent<Rigidbody>().AddRelativeForce(Vector3.forward * bulletSpeed); } } ``` Destroy bullets on trigger event
```c# using UnityEngine; using System.Collections; public class Bullet : MonoBehaviour { public int bulletSpeed = 715; void Start() { GetComponent<Rigidbody>().AddRelativeForce(Vector3.forward * bulletSpeed); } void OnTriggerEnter(Collider other) { Destroy(gameObject); } } ```
90752ed9-99a4-4dc7-a8eb-54c23a8c78d4
{ "language": "C#" }
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class DropdownLanguageFontUpdater : MonoBehaviour { [SerializeField] private Text textComponent; void Start () { Font overrideFont = LocalizationManager.instance.getAllLanguages()[tr...
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class DropdownLanguageFontUpdater : MonoBehaviour { [SerializeField] private Text textComponent; void Start () { var language = LocalizationManager.instance.getAllLanguages()[transfo...
8e159c92-e3fd-421d-871e-d889835eed55
{ "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.IO; using System.Reflection; using System.Runtime.Loader; using Microsoft.AspNetCore.Mvc.ApplicationParts; namespace ...
```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.IO; using System.Reflection; using System.Runtime.Loader; using Microsoft.AspNetCore.Mvc.ApplicationParts; namespace ...
21f3bc08-6fba-4c77-8f46-b8060f191108
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using Elasticsearch.Net; using FluentAssertions; using Nest; using Nest.Tests.MockData.Domain; using NUnit.Framework; namespace Nest.Tests.Unit.ObjectInitializer.Index { [TestFixture] public class In...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using Elasticsearch.Net; using FluentAssertions; using Nest; using Nest.Tests.MockData.Domain; using NUnit.Framework; namespace Nest.Tests.Unit.ObjectInitializer.Index { [TestFixture] public class In...
064c4780-9062-49d9-afa7-9149f2418926
{ "language": "C#" }
```c# // Copyright 2017 by PeopleWare n.v.. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
```c# // Copyright 2017 by PeopleWare n.v.. // // 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...
a2928106-8260-42a3-96d4-3002e69cdeea
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using System.Collections.Generic; using System.Linq; using NUnit.Framework; using osu.Framework.Testing; using osu.Game.Rulesets.Mods; namespace ...
```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 System.Linq; using NUnit.Framework; using osu.Framework.Testing; using osu.Game.Rulesets.Mods; namespace osu.Game.Tests.Vis...
0f79e3c2-7fa8-4ea4-ad31-b2626b574cb0
{ "language": "C#" }
```c# // ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // 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://w...
```c# // ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // 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://w...
e5f141c0-ecd0-4776-affe-07aec65f2dff
{ "language": "C#" }
```c# <?xml version="1.0"?> <!-- RSS generated by Trac v<?cs var:trac.version ?> on <?cs var:trac.time ?> --> <rss version="2.0"> <channel><?cs if:project.name_encoded ?> <title><?cs var:project.name_encoded ?>: Revisions of <?cs var:log.path ?></title><?cs else ?> <title>Revisions of <?cs var:log.path ?><...
```c# <?xml version="1.0"?> <!-- RSS generated by Trac v<?cs var:trac.version ?> on <?cs var:trac.time ?> --> <rss version="2.0"> <channel><?cs if:project.name_encoded ?> <title><?cs var:project.name_encoded ?>: Revisions of <?cs var:log.path ?></title><?cs else ?> <title>Revisions of <?cs var:log.path ?><...
d8b8b956-ac35-4e29-b5b6-95dd9eb0f4e8
{ "language": "C#" }
```c# using System.ComponentModel; namespace SFA.DAS.EAS.Account.Api.Types { public enum EmployerAgreementStatus { [Description("Not signed")] Pending = 1, [Description("Signed")] Signed = 2, [Description("Expired")] Expired = 3, [Description(...
```c# using System.ComponentModel; namespace SFA.DAS.EAS.Account.Api.Types { public enum EmployerAgreementStatus { [Description("Not signed")] Pending = 1, [Description("Signed")] Signed = 2, [Description("Expired")] Expired = 3, [Description(...
ccb46cf3-6824-4bee-a10c-7bbcbb7d3c0f
{ "language": "C#" }
```c# using System; using System.Windows; using System.Windows.Controls; using System.Windows.Threading; namespace Countdown.Views { internal class ScrollTo { public static void SetItem(UIElement element, object value) { element.SetValue(ItemProperty, value); } pub...
```c# using System; using System.Windows; using System.Windows.Controls; using System.Windows.Threading; namespace Countdown.Views { internal class ScrollTo { public static void SetItem(UIElement element, object value) { element.SetValue(ItemProperty, value); } pub...
5c715ca9-3bdb-489e-81f2-a14bfa0ee651
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; namespace BatteryCommander.Web.Models { public class EvaluationListViewModel { public IEnumerable<Evaluation> Evaluations { get; set; } = Enumerable.Empty<Evaluation>(); [Disp...
```c# using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; namespace BatteryCommander.Web.Models { public class EvaluationListViewModel { public IEnumerable<Evaluation> Evaluations { get; set; } = Enumerable.Empty<Evaluation>(); [Disp...
4a1f26fa-aadb-4e4c-855b-1032b2354557
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Luval.Common; namespace Luval.Orm { public class SqlServerLanguageProvider : AnsiSqlLanguageProvider { public SqlServerLanguageProvider() : this(DbConfiguration.Get<ISqlExpre...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Luval.Common; namespace Luval.Orm { public class SqlServerLanguageProvider : AnsiSqlLanguageProvider { public SqlServerLanguageProvider() : this(DbConfiguration.Get<ISqlExpre...
26a16229-0fcd-4d29-aa74-fa018b662197
{ "language": "C#" }
```c# @model IEnumerable<Discord.WebSocket.SocketGuild> <table class="table"> <thead> <tr> <th> @Html.DisplayName("GuildId") </th> <th> @Html.DisplayName("GuildName") </th> <th></th> </tr> </thead> <tbody> @foreach(var guild in Model) { <tr> <td> @Html.DisplayFor(modelItem ...
```c# @model IEnumerable<Discord.WebSocket.SocketGuild> <div class="list-group"> @foreach(var guild in Model) { <a class="list-group-item list-group-item-action" asp-area="Guild" asp-controller="Stats" asp-action="Index" asp-route-guildId="@guild.Id">@guild.Name</a> } </div>```
237893a9-4469-45dd-9652-f4a986d68e01
{ "language": "C#" }
```c# using System; using System.Web.Mvc; using System.Web.Routing; using Castle.MicroKernel; namespace SnittListan.IoC { public class WindsorControllerFactory : DefaultControllerFactory { private readonly IKernel kernel; public WindsorControllerFactory(IKernel kernel) { this.kernel = kernel;...
```c# using System; using System.Web.Mvc; using System.Web.Routing; using Castle.MicroKernel; using System.Web; namespace SnittListan.IoC { public class WindsorControllerFactory : DefaultControllerFactory { private readonly IKernel kernel; public WindsorControllerFactory(IKernel kernel) { th...
220a41f9-ed95-4689-b5fd-64c9490c06e2
{ "language": "C#" }
```c# using System.Security.Cryptography.X509Certificates; using PeNet.Structures; namespace PeNet.Parser { internal class PKCS7Parser : SafeParser<X509Certificate2> { private readonly WIN_CERTIFICATE _winCertificate; internal PKCS7Parser(WIN_CERTIFICATE winCertificate) : base(nul...
```c# using System.Security.Cryptography.X509Certificates; using PeNet.Structures; namespace PeNet.Parser { internal class PKCS7Parser : SafeParser<X509Certificate2> { private readonly WIN_CERTIFICATE _winCertificate; internal PKCS7Parser(WIN_CERTIFICATE winCertificate) : base(nul...
59e18c10-6eb2-4fb2-8ac2-d07bae001d4f
{ "language": "C#" }
```c# using System; using Microsoft.CodeAnalysis.Scripting; using Microsoft.CodeAnalysis.CSharp.Scripting; namespace ScriptSharp.ScriptEngine { public class CSharpScriptEngine { private static ScriptState<object> scriptState = null; public static object Execute(string code) {...
```c# using System; using Microsoft.CodeAnalysis.Scripting; using Microsoft.CodeAnalysis.CSharp.Scripting; namespace ScriptSharp.ScriptEngine { public class CSharpScriptEngine { private static ScriptState<object> scriptState = null; public static object Execute(string code) {...
8f58b70a-62bc-4118-a9ca-663b31bda2de
{ "language": "C#" }
```c# using Starcounter; using System; namespace RealEstateAgencyFranchise.Controllers { internal class OfficeController { public Json Get(long officeObjectNo) { throw new NotImplementedException(); } } } ``` Implement getting data for office details
```c# using RealEstateAgencyFranchise.Database; using Starcounter; using System.Linq; namespace RealEstateAgencyFranchise.Controllers { internal class OfficeController { public Json Get(ulong officeObjectNo) { return Db.Scope(() => { var offices = Db.SQL...
78916559-3648-4abf-a903-d0085734a98b
{ "language": "C#" }
```c# using System; namespace Criteo.Profiling.Tracing.Utils { internal static class TimeUtils { private static readonly DateTime Epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); public static DateTime UtcNow { get { return HighReso...
```c# using System; namespace Criteo.Profiling.Tracing.Utils { public static class TimeUtils { private static readonly DateTime Epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); public static DateTime UtcNow { get { return HighResolu...
82f72131-72ea-4fd8-aee5-6aa576193b7a
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using SharpGraphEditor.Graph.Core.Elements; namespace SharpGraphEditor.Graph.Core.Algorithms { public class DepthFirstSearchAlgorithm : IAlgorithm { public string Name => "Depth first search"; public ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using SharpGraphEditor.Graph.Core.Elements; namespace SharpGraphEditor.Graph.Core.Algorithms { public class DepthFirstSearchAlgorithm : IAlgorithm { public string Name => "Depth first search"; public ...
8766f7f3-4ac9-4806-bbc8-acb363eb7d2f
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Autofac.Extras.AggregateService")] [assembly: AssemblyDescription("Autofac Aggregate Service Module")] [assembly: ComVisible(false)]``` Build script now writes the package name and version into the AssemblyDescription...
```c# using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Autofac.Extras.AggregateService")] [assembly: ComVisible(false)]```
32007987-12da-42c6-8b74-e6af9669dd2f
{ "language": "C#" }
```c# using System; using System.Net.Http; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using NLog; using SFA.DAS.EmployerApprenticeshipsService.Domain.Configuration; using SFA.DAS.EmployerApprenticeshipsService.Domain.Interfaces; namespace SFA.DAS.EmployerApprenticeshipsService.Infrastructu...
```c# using System; using System.Net.Http; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using NLog; using SFA.DAS.EmployerApprenticeshipsService.Domain.Configuration; using SFA.DAS.EmployerApprenticeshipsService.Domain.Interfaces; namespace SFA.DAS.EmployerApprenticeshipsService.Infrastructu...
c57d47f3-ce84-4298-adde-669d12fd0186
{ "language": "C#" }
```c# using System; using RestSharp; using Newtonsoft.Json; using RestSharp.Portable; using RestSharp.Portable.Authenticators; using RestSharp.Portable.HttpClient; namespace AsterNET.ARI.Middleware.Default { public class Command : IRestCommand { internal RestClient Client; internal RestRequest ...
```c# using System; using RestSharp.Portable; using RestSharp.Portable.Authenticators; using RestSharp.Portable.HttpClient; namespace AsterNET.ARI.Middleware.Default { public class Command : IRestCommand { internal RestClient Client; internal RestRequest Request; public Command(StasisE...
e48d0284-69be-476b-9cd2-c73f8d40645c
{ "language": "C#" }
```c# using System; using System.Linq; using System.Collections; using System.Collections.Generic; using UnityEngine; using Random = UnityEngine.Random; using Object = UnityEngine.Object; [CreateAssetMenu(fileName = "Example.asset", menuName = "New Example ScriptableObject")] public class ScriptableObjectExample : Sc...
```c# using UnityEngine; [CreateAssetMenu(fileName = "Example.asset", menuName = "New Example ScriptableObject")] public class ScriptableObjectExample : ScriptableObject { [EasyButtons.Button] public void SayHello() { Debug.Log("Hello"); } } ```
d635e72b-4f2f-4e02-ba21-04942269a202
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; using ExpressionToCodeLib; using Xunit; namespace ExpressionToCodeTest { public class ValueTupleTests { [Fact] public void Expression...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; using ExpressionToCodeLib; using Xunit; namespace ExpressionToCodeTest { public class ValueTupleTests { [Fact] public void Expression...
9748d496-36d3-4d89-a5d0-eb56fa0a34fa
{ "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 osu.Game.Rulesets.Objects.Types; using osu.Game.Database; using osu.Game.Beatmaps.ControlPoints; namespace osu.Game.Rulesets.Osu.Objects { pub...
```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 osu.Game.Rulesets.Objects.Types; using osu.Game.Database; using osu.Game.Beatmaps.ControlPoints; namespace osu.Game.Rulesets.Osu.Objects { pub...
b8e51d35-505a-4d56-88e5-6631bffb2ca3
{ "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 Microsoft.VisualStudio.Editor.Razor; using Microsoft.VisualStudio.Text.Editor; using MonoDevelop.Ide.CodeCompletion; namespa...
```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 Microsoft.VisualStudio.Editor.Razor; using Microsoft.VisualStudio.Text.Editor; using MonoDevelop.Ide.CodeCompletion; namespa...
05da0872-c303-4dc8-ab34-6ac9aafcb4dc
{ "language": "C#" }
```c# using Contentful.Core.Configuration; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Text; namespace Contentful.Core.Models.Management { [JsonConverter(typeof(EditorInterfaceControlJsonConverter))] public class EditorInterfaceControl { public string FieldI...
```c# using Contentful.Core.Configuration; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Text; namespace Contentful.Core.Models.Management { [JsonConverter(typeof(EditorInterfaceControlJsonConverter))] public class EditorInterfaceControl { public string FieldI...
1a1751c9-1997-4999-8581-0e6cc946a37b
{ "language": "C#" }
```c# // AssemblyInfo.cs // Script#/Libraries/CoreLib // This source code is subject to terms and conditions of the Apache License, Version 2.0. // using System; using System.Reflection; using System.Runtime.CompilerServices; [assembly: AssemblyTitle("mscorlib")] [assembly: AssemblyDescription("Script# Core Assembly...
```c# // AssemblyInfo.cs // Script#/Libraries/CoreLib // This source code is subject to terms and conditions of the Apache License, Version 2.0. // using System; using System.Reflection; using System.Runtime.CompilerServices; [assembly: AssemblyTitle("mscorlib")] [assembly: AssemblyDescription("Script# Core Assembly...
b62a5449-14f4-4642-baa0-379ce34d3203
{ "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 Microsoft.VisualStudio.Shell; // Add binding redirects for each assembly we ship in VS. This is required so that these assemblies show // ...
```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 Microsoft.VisualStudio.Shell; // Add binding redirects for each assembly we ship in VS. This is required so that these assemblies show // ...
165146b5-4853-4517-80a9-0d4fff468dbc
{ "language": "C#" }
```c# using System; using NUnit.Framework; namespace Atata.Tests { public class AtataContextBuilderTests : UITestFixtureBase { [Test] public void AtataContextBuilder_Build_WithoutDriver() { InvalidOperationException exception = Assert.Throws<InvalidOperationException>(() =>...
```c# using System; using NUnit.Framework; namespace Atata.Tests { public class AtataContextBuilderTests : UITestFixtureBase { [Test] public void AtataContextBuilder_Build_WithoutDriver() { InvalidOperationException exception = Assert.Throws<InvalidOperationException>(() =>...
fa71e264-03ce-42c3-9a89-0cdd61a3e192
{ "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 Microsoft.AspNet.Identity.EntityFramework; using Microsoft.Framework.Configuration; using Microsoft.Framework.DependencyInject...
```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 Microsoft.AspNet.Identity.EntityFramework; using Microsoft.Framework.Configuration; using Microsoft.Framework.DependencyInject...
d7bfb2a5-1ab6-4b9c-91a7-e0065afe9882
{ "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.Extensions; using osu.Framework.Graphics; using osu.Framework.Graphics.Cursor; using osu.Framework.Graphics.UserInterface; using o...
```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.Extensions; using osu.Framework.Graphics; using osu.Framework.Graphics.Cursor; using osu.Framework.Graphics.UserInterface; using o...
da2973c3-d96e-497f-a080-6a4d3fe13f19
{ "language": "C#" }
```c# using System.IO; using System.Linq; namespace ELFinder.Connector.Drivers.FileSystem.Extensions { /// <summary> /// File system info extensions /// </summary> public static class FIleSystemInfoExtensions { #region Extension methods /// <summary> /// Get visible file...
```c# using System.IO; using System.Linq; namespace ELFinder.Connector.Drivers.FileSystem.Extensions { /// <summary> /// File system info extensions /// </summary> public static class FIleSystemInfoExtensions { #region Extension methods /// <summary> /// Get visible file...
70a9cb01-1891-4f58-93a2-1138e70dc7cd
{ "language": "C#" }
```c# // MvxPhoneCallTask.cs // (c) Copyright Cirrious Ltd. http://www.cirrious.com // MvvmCross is licensed using Microsoft Public License (Ms-PL) // Contributions and inspirations noted in readme.md and license.txt // // Project Lead - Stuart Lodge, @slodge, me@slodge.com using System; using Windows.System; namesp...
```c# // MvxPhoneCallTask.cs // (c) Copyright Cirrious Ltd. http://www.cirrious.com // MvvmCross is licensed using Microsoft Public License (Ms-PL) // Contributions and inspirations noted in readme.md and license.txt // // Project Lead - Stuart Lodge, @slodge, me@slodge.com using System; using Windows.System; namesp...
b4a8af78-7dbc-46a0-a846-0ba5bf936d23
{ "language": "C#" }
```c# using System; using System.Linq; using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; namespace HealthNet.AspNetCore { public static class HealthNetMiddlewareExtensions { private static readonly Type VersionProviderType = typeof(IVersionProvider); private static readon...
```c# using System; using System.Linq; using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; namespace HealthNet.AspNetCore { public static class HealthNetMiddlewareExtensions { private static readonly Type VersionProviderType = typeof(IVersionProvider); private static readon...
8bcb7f54-464a-427b-a9a9-b3d7e962f6f6
{ "language": "C#" }
```c# using Newtonsoft.Json; using Telegram.Bot.Types.ReplyMarkups; using Xunit; namespace Telegram.Bot.Tests.Unit.Serialization { public class ReplyMarkupSerializationTests { [Theory(DisplayName = "Should serialize request poll keyboard button")] [InlineData(null)] [InlineData("regular...
```c# using Newtonsoft.Json; using Telegram.Bot.Types.ReplyMarkups; using Xunit; namespace Telegram.Bot.Tests.Unit.Serialization { public class ReplyMarkupSerializationTests { [Theory(DisplayName = "Should serialize request poll keyboard button")] [InlineData(null)] [InlineData("regular...
740fc848-7506-4748-9063-3d9ca825671c
{ "language": "C#" }
```c# using Halforbit.DataStores.FileStores.Implementation; using Halforbit.DataStores.FileStores.LocalStorage.Implementation; using Halforbit.Facets.Attributes; using System; namespace HalfOrbit.DataStores.FileStores.LocalStorage.Attributes { public class RootPathAttribute : FacetParameterAttribute {...
```c# using Halforbit.DataStores.FileStores.Implementation; using Halforbit.DataStores.FileStores.LocalStorage.Implementation; using Halforbit.Facets.Attributes; using System; namespace Halforbit.DataStores.FileStores.LocalStorage.Attributes { public class RootPathAttribute : FacetParameterAttribute {...
64ee7bba-8dea-490a-a944-7d0b8059fb91
{ "language": "C#" }
```c# using System; using Platform.Data.Core.Pairs; namespace Platform.Data.Core.Sequences { public struct SequencesOptions // TODO: To use type parameter <TLink> the ILinks<TLink> must contain GetConstants function. { public ulong SequenceMarkerLink; public bool UseCascadeUpdate; publ...
```c# using System; using Platform.Data.Core.Pairs; namespace Platform.Data.Core.Sequences { public struct SequencesOptions // TODO: To use type parameter <TLink> the ILinks<TLink> must contain GetConstants function. { public ulong SequenceMarkerLink; public bool UseCascadeUpdate; publ...
b4a9b7b1-2790-4257-a012-0c36a80f8bba
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Mios.Payment { [Serializable] public class VerificationProviderException : Exception { public VerificationProviderException() { } public VerificationProviderException(str...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Mios.Payment { [Serializable] public class VerificationProviderException : Exception { public string ResponseContent { get { return Data["Response"] as string; } set...
15b78eba-1feb-4ad8-b740-f168b474e12e
{ "language": "C#" }
```c# using System.Collections; using System.Linq; using System.Text.RegularExpressions; public class BlockbustersComponentSolver : ComponentSolver { public BlockbustersComponentSolver(TwitchModule module) : base(module) { selectables = Module.BombComponent.GetComponent<KMSelectable>().Children; ModInfo = Com...
```c# using System.Collections; using System.Linq; using System.Text.RegularExpressions; public class BlockbustersComponentSolver : ComponentSolver { public BlockbustersComponentSolver(TwitchModule module) : base(module) { selectables = Module.BombComponent.GetComponent<KMSelectable>().Children; ModInfo = Com...
f61879e2-e81b-4a9a-836a-253298d42d54
{ "language": "C#" }
```c#  using Xunit; [assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly)] ``` Set DOTNET_HOST_PATH so Roslyn tasks will use the right host
```c#  using System; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Xml.Linq; using Xunit; [assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly)] // Register test framework for assembly fixture [assembly: TestFramework("Xunit.NetCore.Extensions.XunitTestFram...
ccc5d93e-d42e-4609-b4f6-83b90eb3331b
{ "language": "C#" }
```c# namespace TraktApiSharp.Utils { using Newtonsoft.Json; using System.Threading.Tasks; internal static class Json { internal static readonly JsonSerializerSettings DEFAULT_JSON_SETTINGS = new JsonSerializerSettings { Formatting = Formatting.None, ...
```c# namespace TraktApiSharp.Utils { using Newtonsoft.Json; internal static class Json { internal static readonly JsonSerializerSettings DEFAULT_JSON_SETTINGS = new JsonSerializerSettings { Formatting = Formatting.None, NullValueHandling = N...
6c65d082-840c-4134-91ef-588cc3732d49
{ "language": "C#" }
```c# using System; namespace UDIR.PAS2.OAuth.Client { internal class AuthorizationServer { public AuthorizationServer(Uri baseAddress) { BaseAddress = baseAddress; TokenEndpoint = new Uri(baseAddress, "/connect/token").ToString(); } public AuthorizationServer(string baseAddress) : this(new Uri(baseA...
```c# using System; namespace UDIR.PAS2.OAuth.Client { internal class AuthorizationServer { public AuthorizationServer(Uri baseAddress) { BaseAddress = baseAddress; TokenEndpoint = new Uri(baseAddress, "/connect/token").ToString(); } public AuthorizationServer(string baseAddress) : this(new Uri(baseA...
1ac92fd6-0f76-4d09-bdf0-710de9a24714
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Threading.Tasks; using MongoDB.Driver; using MongoDB.Bson; using MongoDB.Bson.Serialization; using Newtonsoft.Json; namespace M101DotNet { public class Program { public static void Main(string[] args) { MainAsync(...
```c# using System; using System.Collections.Generic; using System.Threading.Tasks; using MongoDB.Driver; using MongoDB.Bson; using MongoDB.Bson.Serialization; using MongoDB.Bson.IO; namespace M101DotNet { public class Program { public static void Main(string[] args) { MainAsync(...
7b4bd7bd-a111-4d45-bcb0-82396b577b34
{ "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 ThreadsCommand : ICommand { public string Name { get { return "Threads"; } } public string Descript...
```c# using System.Collections.Generic; using Mono.Debugger.Cli.Debugging; using Mono.Debugger.Cli.Logging; namespace Mono.Debugger.Cli.Commands { public sealed class ThreadsCommand : ICommand { public string Name { get { return "Threads"; } } public string Descript...
6f93afa9-47e8-49d3-b6a0-2dbcbf7088e8
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; namespace Assent.Reporters.DiffPrograms { public class BeyondCompareDiffProgram : DiffProgramBase { static BeyondCompareDiffProgram() { var paths = new List<string>(); if (DiffReporter.IsWindows) ...
```c# using System; using System.Collections.Generic; using System.Linq; namespace Assent.Reporters.DiffPrograms { public class BeyondCompareDiffProgram : DiffProgramBase { static BeyondCompareDiffProgram() { var paths = new List<string>(); if (DiffReporter.IsWindows) ...
286075dd-d839-4621-a22e-e5a87a719107
{ "language": "C#" }
```c# using System; using elbsms_core; namespace elbsms_console { class Program { static void Main(string[] args) { if (args.Length != 1) { Console.WriteLine("Usage: elbsms_console <path to rom>"); return; } strin...
```c# using System; using System.Diagnostics; using elbsms_core; namespace elbsms_console { class Program { static void Main(string[] args) { if (args.Length != 1) { Console.WriteLine("Usage: elbsms_console <path to rom>"); return; ...
390a27a3-01de-473f-a85a-69957e05befb
{ "language": "C#" }
```c# using System.Reflection; [assembly: AssemblyProduct("SqlStreamStore")] [assembly: AssemblyCopyright("Copyright Damian Hickey & Contributors 2015 - 2016")] [assembly: AssemblyVersion("0.2.0.0")] [assembly: AssemblyFileVersion("0.2.0.0")] ``` Make the next release version 0.1.1 (bug fixes)
```c# using System.Reflection; [assembly: AssemblyProduct("SqlStreamStore")] [assembly: AssemblyCopyright("Copyright Damian Hickey & Contributors 2015 - 2016")] [assembly: AssemblyVersion("0.1.1.0")] [assembly: AssemblyFileVersion("0.1.1.0")] ```
737f86d3-c316-473c-a623-bb1a971650c5
{ "language": "C#" }
```c# namespace Cash_Flow_Projection { using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using Serilog; using Serilog.Core; public class Program { public static LoggingLevelSwitch...
```c# namespace Cash_Flow_Projection { using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using Serilog; using Serilog.Core; public class Program { public static LoggingLevelSwitch...
454adced-b78d-480e-bcae-f996eb7c1685
{ "language": "C#" }
```c# using ARSoft.Tools.Net.Dns; using System; using System.Net; using System.Net.Sockets; namespace DNSRootServerResolver { public class Program { public static void Main(string[] args) { using (var server = new DnsServer(IPAddress.Any, 25, 25, DnsServerHandler)) { ...
```c# using ARSoft.Tools.Net.Dns; using System; using System.Net; using System.Net.Sockets; namespace DNSRootServerResolver { public class Program { public static void Main(string[] args) { using (var server = new DnsServer(IPAddress.Any, 25, 25, DnsServerHandler)) { ...
22c543ba-c944-473d-8d81-bbc88a07052f
{ "language": "C#" }
```c# using Microsoft.MixedReality.Toolkit.Input; using Microsoft.MixedReality.Toolkit.UI; using System.Collections; using System.Collections.Generic; using UnityEngine; public class TouchHandler : MonoBehaviour, IMixedRealityTouchHandler { #region Event handlers public TouchEvent OnTouchStarted = new TouchE...
```c# using Microsoft.MixedReality.Toolkit.Input; using Microsoft.MixedReality.Toolkit.UI; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Microsoft.MixedReality.Toolkit.Input { public class TouchHandler : MonoBehaviour, IMixedRealityTouchHandler { #region Eve...
b5c03d74-4b00-4eb5-9213-c443a1f65f9e
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Hatfield.EnviroData.DataAcquisition.ESDAT.Test.Converters { class ESDATDataConverterTest { } } ``` Implement ESDATModel test for OSM2.Actions
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using NUnit.Framework; using Moq; using Hatfield.EnviroData.Core; using Hatfield.EnviroData.DataAcquisition.ESDAT; using Hatfield.EnviroData.DataAcquisition.ESDAT.Converters; namespace Hatfield.EnviroData.DataAcquisition.ESDAT...
3a2f19db-b730-4215-bd00-f1cd16011e7e
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using Bonobo.Git.Server.Data; using Bonobo.Git.Server.Models; using Microsoft.Practices.Unity; namespace Bonobo.Git.Server.Security { public class ADRepositoryPermissionService : IRepositoryPermissionService { ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using Bonobo.Git.Server.Data; using Bonobo.Git.Server.Models; using Microsoft.Practices.Unity; namespace Bonobo.Git.Server.Security { public class ADRepositoryPermissionService : IRepositoryPermissionService { ...
6c3553c2-f354-42d8-99c6-10fdd96aed07
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ExpressionToCodeLib; using Xunit; namespace ExpressionToCodeTest { public class AnonymousObjectFormattingTest { [Fact] public void AnonymousObjectsRender...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ExpressionToCodeLib; using Xunit; namespace ExpressionToCodeTest { public class AnonymousObjectFormattingTest { [Fact] public void AnonymousObjectsRender...
5668ce4f-4258-4fda-9ff1-715e2842dd0f
{ "language": "C#" }
```c# using System; using System.ComponentModel; using System.Diagnostics; using TweetDuck.Configuration; using TweetLib.Core; using TweetLib.Utils.Static; namespace TweetDuck.Updates { sealed class UpdateInstaller { private string Path { get; } public UpdateInstaller(string path) { this.Path = path; } ...
```c# using System; using System.ComponentModel; using System.Diagnostics; using TweetDuck.Configuration; using TweetLib.Core; using TweetLib.Utils.Static; namespace TweetDuck.Updates { sealed class UpdateInstaller { private string Path { get; } public UpdateInstaller(string path) { this.Path = path; } ...
31962831-3ab3-4440-9898-f9c0555b630a
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Hqub.Lastfm { public static class Configure { /// <summary> /// Set value delay between requests. /// </summary> public static int Delay { get; set; } ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Hqub.Lastfm { public static class Configure { static Configure() { Delay = 1000; } /// <summary> /// Set value delay between request...
d7b18073-d639-4045-8789-fb198602b499
{ "language": "C#" }
```c# namespace Stripe { using System.Collections.Generic; using Newtonsoft.Json; public class SubscriptionItemPriceDataRecurringOptions : INestedOptions { /// <summary> /// Specifies a usage aggregation strategy for prices where <see cref="UsageType"/> is /// <c>metered</c>. Allowed va...
```c# namespace Stripe { using System.Collections.Generic; using Newtonsoft.Json; public class SubscriptionItemPriceDataRecurringOptions : INestedOptions { /// <summary> /// he frequency at which a subscription is billed. One of <c>day</c>, <c>week</c>, /// <c>month</c> or <c>ye...
0bf8bd9f-9ab6-4ea7-98ce-5d4cdda34cdd
{ "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. namespace Microsoft.VisualStudio.LanguageServices.ExternalAccess.VSTypeScript.Api { interface IVsTypeScri...
```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 Microsoft.CodeAnalysis; namespace Microsoft.VisualStudio.LanguageServices.ExternalAccess.VSTypeScript....
1c21232e-5965-4ab3-befa-bfdf983dc4c8
{ "language": "C#" }
```c# using JetBrains.Application; using JetBrains.Application.Components; using JetBrains.Collections.Viewable; using JetBrains.ProjectModel; using JetBrains.ReSharper.Host.Features; using JetBrains.ReSharper.Host.Features.UnitTesting; using JetBrains.ReSharper.Plugins.Unity.ProjectModel; using JetBrains.ReSharper.Uni...
```c# using System; using JetBrains.Application; using JetBrains.Application.Components; using JetBrains.Collections.Viewable; using JetBrains.ProjectModel; using JetBrains.ReSharper.Host.Features; using JetBrains.ReSharper.Host.Features.UnitTesting; using JetBrains.ReSharper.Plugins.Unity.ProjectModel; using JetBrains...
b1bea006-061b-4c28-8c24-0006acbcbec1
{ "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("Appleseed.UrlRewriting")] [assembly...
```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("Appleseed.UrlRewriting")] [assembly...
7256b2c5-f015-4f8c-8e99-f314d7bee4e2
{ "language": "C#" }
```c# namespace TraktApiSharp.Objects.Get.People { using Basic; using Newtonsoft.Json; public class TraktPersonImages { [JsonProperty(PropertyName = "headshot")] public TraktImageSet Headshot { get; set; } [JsonProperty(PropertyName = "fanart")] public TraktImageSet Fa...
```c# namespace TraktApiSharp.Objects.Get.People { using Basic; using Newtonsoft.Json; /// <summary>A collection of images and image sets for a Trakt person.</summary> public class TraktPersonImages { /// <summary>Gets or sets the headshot image set.</summary> [JsonProperty(Propert...
d763c3dc-94dc-451d-8062-71c7ec1c5f16
{ "language": "C#" }
```c# // Copyright (C) by Housemarque, Inc. namespace Hopac.Core { using System.Threading; /// <summary>Provides a low overhead, single shot waitable event.</summary> internal static class Condition { internal static bool warned; internal static void Pulse(object o, ref int v) { var w = v; ...
```c# // Copyright (C) by Housemarque, Inc. namespace Hopac.Core { using System.Threading; /// <summary>Provides a low overhead, single shot waitable event.</summary> internal static class Condition { internal static bool warned; internal static void Pulse(object o, ref int v) { var w = v; ...
5a1efcf6-6fe4-4c35-a75b-9d357a36133c
{ "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.MarkdownLite { public class MarkdownParagraphBlockToken : IMarkdownToken, IMarkdownRewritable<MarkdownParagraphBlockToken> ...
```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.MarkdownLite { public class MarkdownParagraphBlockToken : IMarkdownToken, IMarkdownRewritable<MarkdownParagraphBlockToken> ...
3107912d-ba03-4812-ac79-647afee51654
{ "language": "C#" }
```c# using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Mitternacht; using System.Threading.Tasks; namespace MitternachtWeb { public class Program { public static MitternachtBot MitternachtBot; public static async Task Main(string[] args) { ...
```c# using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Mitternacht; using System; using System.IO; using System.Threading.Tasks; namespace MitternachtWeb { public class Program { public static MitternachtBot MitternachtBot; public static asyn...
38286b9d-dbc6-43f0-a1b5-08506901d7dd
{ "language": "C#" }
```c# using System; using System.Windows; using System.Windows.Media.Imaging; using Hardcodet.Wpf.TaskbarNotification; using SteamAccountSwitcher.Properties; namespace SteamAccountSwitcher { internal class TrayIconHelper { public static void ShowRunningInTrayBalloon() { ShowTrayBal...
```c# using System; using System.Windows; using System.Windows.Media.Imaging; using Hardcodet.Wpf.TaskbarNotification; using SteamAccountSwitcher.Properties; namespace SteamAccountSwitcher { internal class TrayIconHelper { public static void ShowRunningInTrayBalloon() { ShowTrayBal...
ae512339-7f09-4a24-85e3-063a2591901b
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; namespace ExcelMediaConsole { class Program { static void Main(string[] args) { var excelFilePath = "Book1.xlsx"; var outputDirPath = "Media"; ...
```c# using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; namespace ExcelMediaConsole { class Program { static void Main(string[] args) { var excelFilePath = "Book1.xlsx"; var outputDirPath = "Media"; ...
18b7730b-64b7-4685-8bee-ef24a570d388
{ "language": "C#" }
```c# using System; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Autofac.Integration.Web")] [assembly: AssemblyDescription("Autofac ASP.NET Integration")] [assembly: InternalsVisibleTo("Autofac.Tests.Integration.Web, PublicKey=0...
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Autofac.Integration.Web")] [assembly: InternalsVisibleTo("Autofac.Tests.Integration.Web, PublicKey=00240000048000009400000006020000002400005253413100040000010001008728425885ef385e...
091e06d9-40be-46ed-8b1c-389f2a1d0f59
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Commons; [assembly: AssemblyTitle("TickTack")] [assembly: AssemblyDescription("Delayed reminder!")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Rafael Teixeira")] [assembly: Assembly...
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Commons; [assembly: AssemblyTitle("TickTack")] [assembly: AssemblyDescription("Delayed reminder!")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Rafael Teixeira")] [assembly: Assembly...
74f9c8f3-de1b-4705-8587-d3641a377a07
{ "language": "C#" }
```c# namespace Pagination.ReleaseActions { class Tag : ReleaseAction { public override void Work() { var tag = Context.Version.StagedVersion; Process("git", "commit", "-a", "-m", $"\"(Auto-)Commit version '{tag}'.\""); Process("git", "tag", "-a", tag, "-m", $"\"(Auto-)T...
```c# namespace Pagination.ReleaseActions { class Tag : ReleaseAction { public override void Work() { var tag = Context.Version.StagedVersion; Process("git", "status"); Process("git", "commit", "-a", "-m", $"\"(Auto-)Commit version '{tag}'.\""); Process("git"...
a4463922-4792-4fa1-b0ab-dc5abb249b11
{ "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 NUnit.Framework; using osu.Framework.Bindables; using osu.Framework.Testing; using osu.Game.Beatmaps; using osu.Game.Beatmaps.ControlPoints...
```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 System.Linq; using NUnit.Framework; using osu.Framework.Bindables; using osu.Framework.Testing; using osu.Game.Beatmaps; usi...
b9f8fc21-4c51-49b9-a8de-347c55e61615
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Rulesets.Scoring; namespace osu.Game.Rulesets.Mania.Judgements { public class HoldNoteTickJudgement : ManiaJudgement { public overri...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Rulesets.Scoring; namespace osu.Game.Rulesets.Mania.Judgements { public class HoldNoteTickJudgement : ManiaJudgement { protected ove...
81630ef2-3955-4227-b5c6-8113ece67f5a
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Snowflake.Events { public partial class SnowflakeEventSource { public static SnowflakeEventSource SnowflakeEventSource; SnowflakeEventSource() { }...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Snowflake.Events { public partial class SnowflakeEventSource { public static SnowflakeEventSource EventSource; SnowflakeEventSource() { } ...
6258bccc-5fbf-4721-8c6a-34746ab09ed1
{ "language": "C#" }
```c# using System; namespace Glimpse.Agent { public class RemoteStreamMessagePublisher : BaseMessagePublisher { public override void PublishMessage(IMessage message) { var newMessage = ConvertMessage(message); // TODO: Use SignalR to publish message } } }`...
```c# using Glimpse.Agent.Connection.Stream.Connection; using System; namespace Glimpse.Agent { public class RemoteStreamMessagePublisher : BaseMessagePublisher { private readonly IStreamProxy _messagePublisherHub; public RemoteStreamMessagePublisher(IStreamProxy messagePublisherHub) ...
837e6e50-c11c-4772-98f4-5318a3276f94
{ "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 Xunit; namespace System.Runtime.InteropServices.Tests { #pragma warning disable 0618 // DispatchWrapper...
```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 Xunit; namespace System.Runtime.InteropServices.Tests { #pragma warning disable 0618 // DispatchWrapper...
5537c93c-5c28-44f4-a030-654fa21b9b68
{ "language": "C#" }
```c# using System; using static System.Math; namespace MyDriving.Utils { public static class DistanceUtils { /// <summary> /// Calculates the distance in miles /// </summary> /// <returns>The distance.</returns> /// <param name="latitudeStart">Latitude start.</param> ...
```c# using System; using static System.Math; namespace MyDriving.Utils { public static class DistanceUtils { /// <summary> /// Calculates the distance in miles /// </summary> /// <returns>The distance.</returns> /// <param name="latitudeStart">Latitude start.</param> ...
06735506-3e27-4b17-8bb4-2fe59291449e
{ "language": "C#" }
```c# using System.Windows.Forms; namespace Bloom.WebLibraryIntegration { public partial class OverwriteWarningDialog : Form { public OverwriteWarningDialog() { InitializeComponent(); } } } ``` Fix a dialog display glitch on Linux (20190725)
```c# using System.Windows.Forms; namespace Bloom.WebLibraryIntegration { public partial class OverwriteWarningDialog : Form { public OverwriteWarningDialog() { InitializeComponent(); } protected override void OnLoad(System.EventArgs e) { base.OnLoad(e); // Fix a display glitch on Linux with the...
ad49c6cc-fc3e-4704-bd77-47664904eb34
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Web.Mvc; using AutoMapper; using StudentFollowingSystem.Data.Repositories; using StudentFollowingSystem.Filters; using StudentFollowingSystem.Models; using StudentFollowingSystem.ViewModels; using Validatr.Filters; namespace StudentFollowingSystem.Controllers { ...
```c# using System.Collections.Generic; using System.Web.Helpers; using System.Web.Mvc; using AutoMapper; using StudentFollowingSystem.Data.Repositories; using StudentFollowingSystem.Filters; using StudentFollowingSystem.Models; using StudentFollowingSystem.ViewModels; namespace StudentFollowingSystem.Controllers { ...
c10d06a4-dd71-43f5-acc5-e8626a08b3eb
{ "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...
3c025a78-9469-482e-bdf7-5497e9c04dc0
{ "language": "C#" }
```c# using System.Collections.Generic; namespace UniProgramGen.Data { public class Teacher { public Requirements requirements { get; internal set; } public string name { get; internal set; } public Teacher(Requirements requirements, string name) { this.requirement...
```c# using System.Collections.Generic; namespace UniProgramGen.Data { public class Teacher { public Requirements requirements { get; internal set; } public string name { get; internal set; } public string Name { get { return name; } } public Teach...
3074c7df-a8d0-4b2a-8285-e136b6a686b9
{ "language": "C#" }
```c# // Note.cs // <copyright file="Note.cs"> This code is protected under the MIT License. </copyright> using System.Collections.Generic; namespace Todo_List { /// <summary> /// A data representation of a note. /// </summary> public class Note { /// <summary> /// Initializes a ne...
```c# // Note.cs // <copyright file="Note.cs"> This code is protected under the MIT License. </copyright> using System.Collections.Generic; namespace Todo_List { /// <summary> /// A data representation of a note. /// </summary> public class Note { /// <summary> /// Initializes a ne...
f3f6876b-9521-4b68-91ad-8fa00fffdd52
{ "language": "C#" }
```c# #if __MonoCS__ using System; using System.Diagnostics; using System.Runtime.InteropServices; using IBusDotNet; using NDesk.DBus; namespace Palaso.UI.WindowsForms.Keyboarding.Linux { /// <summary> /// a global cache used only to reduce traffic with ibus via dbus. /// </summary> internal static class GlobalCac...
```c# #if __MonoCS__ using System; using System.Diagnostics; using System.Runtime.InteropServices; using IBusDotNet; using NDesk.DBus; namespace Palaso.UI.WindowsForms.Keyboarding.Linux { /// <summary> /// a global cache used only to reduce traffic with ibus via dbus. /// </summary> internal static class GlobalCac...
766124ba-d611-457f-af1d-146de9588d88
{ "language": "C#" }
```c# using System; using System.IO; using System.Runtime.Serialization; using ProtoBuf; using ProtoBuf.Meta; namespace Dx.Runtime { public class DefaultObjectWithTypeSerializer : IObjectWithTypeSerializer { private readonly ILocalNode m_LocalNode; public DefaultObjectWithTypeSerializer(ILoca...
```c# using System; using System.IO; using System.Runtime.Serialization; using ProtoBuf; using ProtoBuf.Meta; namespace Dx.Runtime { public class DefaultObjectWithTypeSerializer : IObjectWithTypeSerializer { private readonly ILocalNode m_LocalNode; public DefaultObjectWithTypeSerializer(ILoca...
360829df-ef4d-46e2-9178-c22d1d7671fb
{ "language": "C#" }
```c# namespace TheCollection.Domain.Contracts.Repository { using System.Collections.Generic; using System.Threading.Tasks; public interface ILinqSearchRepository<T> where T : class { Task<IEnumerable<T>> SearchItemsAsync(System.Linq.Expressions.Expression<System.Func<T, bool>> predicate = null, in...
```c# namespace TheCollection.Domain.Contracts.Repository { using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Threading.Tasks; public interface ILinqSearchRepository<T> where T : class { Task<IEnumerable<T>> SearchItemsAsync(Expression<Func<T, bool>...
80e5f971-b868-449a-a21d-d2930e6e2bcc
{ "language": "C#" }
```c# using Microsoft.AspNet.Identity.EntityFramework; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; namespace AllReady.Models { // Add profile data for application users by adding properties to the ApplicationUser class public class ApplicationUser : Identi...
```c# using Microsoft.AspNet.Identity.EntityFramework; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; namespace AllReady.Models { // Add profile data for application users by adding properties to the ApplicationUser class public class ApplicationUser : Identi...