doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
e9d336a7-091e-4083-b369-006f7e31bf83
{ "language": "C#" }
```c# using System.Linq; using Microsoft.Extensions.Configuration; using Slp.Evi.Storage.Database; using Slp.Evi.Storage.Database.Vendor.MsSql; using Xunit; namespace Slp.Evi.Test.System.Sparql.Vendor { public sealed class MsSqlSparqlFixture : SparqlFixture { public MsSqlSparqlFixture() ...
```c# using System.Linq; using Microsoft.Extensions.Configuration; using Slp.Evi.Storage.Database; using Slp.Evi.Storage.Database.Vendor.MsSql; using Xunit; namespace Slp.Evi.Test.System.Sparql.Vendor { public sealed class MsSqlSparqlFixture : SparqlFixture { public MsSqlSparqlFixture() ...
94c9a0bc-91bb-40db-9836-c66887bbbdd5
{ "language": "C#" }
```c# using System; using UnityEngine; namespace Alensia.Core.UI.Legacy { [Serializable] public class CursorDefinition { public bool Visible; public CursorLockMode LockMode; public Vector2 Hotspot; public Texture2D Image; public void Apply() { ...
```c# using System; using UnityEngine; namespace Alensia.Core.UI.Legacy { [Serializable] public class CursorDefinition { public bool Visible; public CursorLockMode LockMode; public Vector2 Hotspot; public Texture2D Image; public void Apply() { ...
76523be0-b8a7-4023-b080-6c878105f1a8
{ "language": "C#" }
```c# using AsmResolver.PE.Debug.CodeView; namespace AsmResolver.PE.Debug { /// <summary> /// Provides a default implementation of the <see cref="IDebugDataReader"/> interface. /// </summary> public class DefaultDebugDataReader : IDebugDataReader { /// <inheritdoc /> public IDebugDa...
```c# using AsmResolver.PE.Debug.CodeView; namespace AsmResolver.PE.Debug { /// <summary> /// Provides a default implementation of the <see cref="IDebugDataReader"/> interface. /// </summary> public class DefaultDebugDataReader : IDebugDataReader { /// <inheritdoc /> public IDebugDa...
275f7ff5-f801-4b0b-908f-a9ae8402abed
{ "language": "C#" }
```c# using System.IO; using System.Runtime.Serialization.Formatters.Binary; namespace SimpSim.NET { public class StateSaver { public virtual void SaveMemory(Memory memory, FileInfo file) { Save(memory, file); } public virtual Memory LoadMemory(FileInfo file) ...
```c# using System.IO; using System.Text.Json; namespace SimpSim.NET { public class StateSaver { public virtual void SaveMemory(Memory memory, FileInfo file) { Save(memory, file); } public virtual Memory LoadMemory(FileInfo file) { return Load<M...
a0fc5ac0-10fd-4b4a-9f24-476566e974cd
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; public class DeskLampPuzzle : Puzzle { private bool isLampOn = false; private bool hasLampBeenTurnedOn = false; private InteractableSwitch lampSwitch; // Use this for initialization public override void Start () { base.Start(); lampSwitch = GetComponent<...
```c# using UnityEngine; using System.Collections; public class DeskLampPuzzle : Puzzle { private bool isLampOn = false; private bool hasLampBeenTurnedOn = false; private InteractableSwitch lampSwitch; // Use this for initialization public override void Start () { base.Start(); lampSwitch = GetComponent<...
869bbb27-09c3-4167-aede-745446faf32b
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Linq; namespace EloWeb.Models { public class Games { public enum GamesSortOrder { MostRecentFirst = 1, MostRecentLast = 2 } private static List<Game> _games = new List<Game>(); public static ...
```c# using System.Collections.Generic; using System.Linq; namespace EloWeb.Models { public class Games { public enum GamesSortOrder { MostRecentFirst = 1, MostRecentLast = 2 } private static List<Game> _games = new List<Game>(); public static ...
e773ed62-2197-4572-b5d9-7f4ac3a73df2
{ "language": "C#" }
```c# @using System.Globalization @using Microsoft.AspNetCore.Builder @using Microsoft.AspNetCore.Http @using Microsoft.AspNetCore.Localization @using Microsoft.Extensions.Options @inject IViewLocalizer Localizer @inject IOptions<RequestLocalizationOptions> LocOptions @{ var cultureItems = new SelectList(LocOpti...
```c# @using System.Globalization @using Microsoft.AspNetCore.Builder @using Microsoft.AspNetCore.Http @using Microsoft.AspNetCore.Localization @using Microsoft.Extensions.Options @inject IViewLocalizer Localizer @inject IOptions<RequestLocalizationOptions> LocOptions @{ var cultureItems = new SelectList(LocOpti...
82d17d8f-605f-4035-9bf1-91f4acc2f6ba
{ "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: AssemblyConf...
```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: AssemblyConf...
3dcd2eff-eb30-4988-b92d-9dd06fab2f46
{ "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...
c191373c-95e8-484e-bffe-3c487f575c75
{ "language": "C#" }
```c# using Arkivverket.Arkade.Core.Base.Addml.Processes; using Arkivverket.Arkade.Core.Resources; using Arkivverket.Arkade.Core.Util; namespace Arkivverket.Arkade.Core.Base { public static class ArkadeTestNameProvider { public static string GetDisplayName(IArkadeTest arkadeTest) { ...
```c# using Arkivverket.Arkade.Core.Resources; using Arkivverket.Arkade.Core.Util; namespace Arkivverket.Arkade.Core.Base { public static class ArkadeTestNameProvider { public static string GetDisplayName(IArkadeTest arkadeTest) { TestId testId = arkadeTest.GetId(); str...
42a0d8c9-60ab-426e-a135-91150a4c3935
{ "language": "C#" }
```c# <!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width" /> <title>@ViewBag.Title</title> </head> <body> <div> @RenderBody() </div> </body> </html> ``` Add Scripts section and Bootstrap styling.
```c# <!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width" /> <title>@ViewBag.Title</title> @Styles.Render("~/Content/bootstrap.min.css") </head> <body> <div> @RenderBody() </div> @RenderSection("Scripts", false) ...
5872ef42-6b22-46a2-92ca-6929f3524763
{ "language": "C#" }
```c# using System; using System.IO; using Mango; // // This the default StaticContentModule that comes with all Mango apps // if you do not wish to serve any static content with Mango you can // remove its route handler from <YourApp>.cs's constructor and delete // this file. // // All Content placed on the ...
```c# using System; using System.IO; using Mango; // // This the default StaticContentModule that comes with all Mango apps // if you do not wish to serve any static content with Mango you can // remove its route handler from <YourApp>.cs's constructor and delete // this file. // // All Content placed on the ...
4ae10e0c-f314-4774-94bf-b9d18052ea50
{ "language": "C#" }
```c# using System; using System.Collections.Generic; namespace GridDomain.CQRS.Messaging.MessageRouting { public class ProjectionGroup: IProjectionGroup { private readonly IServiceLocator _locator; readonly Dictionary<Type, List<Action<object>>> _handlers = new Dictionary<Type, List<Action<obj...
```c# using System; using System.Collections.Generic; using System.Linq; namespace GridDomain.CQRS.Messaging.MessageRouting { public class ProjectionGroup: IProjectionGroup { private readonly IServiceLocator _locator; readonly Dictionary<Type, List<Action<object>>> _handlers = new Dictionary<Ty...
f5a95ff0-a32d-4ed1-8089-91db23eca282
{ "language": "C#" }
```c# using Lime.Protocol; using NSubstitute; using NUnit.Framework; using Shouldly; using System; using System.Threading; using System.Threading.Tasks; namespace Takenet.MessagingHub.Client.Test { [TestFixture] internal class MessagingHubClientTests_SendCommand : MessagingHubClientTestBase { [Set...
```c# using Lime.Protocol; using NSubstitute; using NUnit.Framework; using Shouldly; using System; using System.Threading; using System.Threading.Tasks; namespace Takenet.MessagingHub.Client.Test { [TestFixture] internal class MessagingHubClientTests_SendCommand : MessagingHubClientTestBase { [Set...
95297159-6ea2-41ec-94bb-a285fb82888e
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Allocation; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Osu; using osu.Game.Rulesets.Osu.Beatmaps; using osu.Ga...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Allocation; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Osu; using osu.Game.Screens.Edit; using osu.Game.Screen...
4ffea42a-35cc-40a1-93d8-c4d308e2010b
{ "language": "C#" }
```c# using BatteryCommander.Web.Controllers; using BatteryCommander.Web.Services; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace BatteryCommander.Web.Models { public class NavigationViewComponent : ViewComponent { private readon...
```c# using BatteryCommander.Web.Controllers; using BatteryCommander.Web.Services; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace BatteryCommander.Web.Models { public class NavigationViewComponent : ViewComponent { ...
2015707c-51e1-4b2b-b13a-38f442a5d283
{ "language": "C#" }
```c# using System.Text; using Confluent.Kafka; using Jasper.Transports; namespace Jasper.ConfluentKafka { public class KafkaTransportProtocol<TKey, TVal> : ITransportProtocol<Message<TKey, TVal>> { public Message<TKey, TVal> WriteFromEnvelope(Envelope envelope) => new Message<TKey, TVal> ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using Confluent.Kafka; using Jasper.Transports; namespace Jasper.ConfluentKafka { public class KafkaTransportProtocol<TKey, TVal> : ITransportProtocol<Message<TKey, TVal>> { private const string JasperMessageIdH...
13cd8647-3d6c-4c24-a7e7-87c8a8e2c17e
{ "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.Sprites; using osu.Game.Online.API.Requests.Responses; namespace osu.Game.Beatmaps.Drawables.Cards.Buttons { public class Download...
```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.Sprites; using osu.Game.Online.API.Requests.Responses; namespace osu.Game.Beatmaps.Drawables.Cards.Buttons { public class Download...
666a6187-6e3b-458f-9aad-ddeaf3b44d9a
{ "language": "C#" }
```c# using Orchard.ContentManagement.MetaData; using Orchard.Core.Contents.Extensions; using Orchard.Data.Migration; namespace Orchard.Lists { public class Migrations : DataMigrationImpl { public int Create() { ContentDefinitionManager.AlterTypeDefinition("List", cfg=...
```c# using Orchard.ContentManagement.MetaData; using Orchard.Core.Contents.Extensions; using Orchard.Data.Migration; namespace Orchard.Lists { public class Migrations : DataMigrationImpl { public int Create() { ContentDefinitionManager.AlterTypeDefinition("List", cfg=...
6503a74f-909f-492d-aecc-0001d6cb7010
{ "language": "C#" }
```c# using HalKit.Json; using HalKit.Models.Response; using System.Collections.Generic; using System.Runtime.Serialization; namespace GogoKit.Models.Response { /// <summary> /// A carrier (e.g. UPS) that will collect tickets that are to be delivered. /// </summary> /// <remarks>See http://developer.v...
```c# using HalKit.Json; using HalKit.Models.Response; using System.Collections.Generic; using System.Runtime.Serialization; namespace GogoKit.Models.Response { /// <summary> /// A carrier (e.g. UPS) that will collect tickets that are to be delivered. /// </summary> /// <remarks>See http://developer.v...
b58831d3-5768-4a30-863e-78a2699b0867
{ "language": "C#" }
```c# using System.Collections.Generic; using Promact.Trappist.DomainModel.Models.Question; using System.Linq; using Promact.Trappist.DomainModel.DbContext; namespace Promact.Trappist.Repository.Questions { public class QuestionRepository : IQuestionRepository { private readonly TrappistDbContext _dbC...
```c# using System.Collections.Generic; using Promact.Trappist.DomainModel.Models.Question; using System.Linq; using Promact.Trappist.DomainModel.DbContext; namespace Promact.Trappist.Repository.Questions { public class QuestionRepository : IQuestionRepository { private readonly TrappistDbContext _dbC...
04b1f7b2-1dbd-429d-aeaf-042b54759112
{ "language": "C#" }
```c# namespace Line.Messaging { /// <summary> /// Rich menu response object. /// https://developers.line.me/en/docs/messaging-api/reference/#rich-menu-response-object /// </summary> public class ResponseRichMenu : RichMenu { /// <summary> /// Rich menu ID /// </summary>...
```c# namespace Line.Messaging { /// <summary> /// Rich menu response object. /// https://developers.line.me/en/docs/messaging-api/reference/#rich-menu-response-object /// </summary> public class ResponseRichMenu : RichMenu { /// <summary> /// Rich menu ID /// </summary>...
476ce850-60d2-478d-8edf-1686ac8b1324
{ "language": "C#" }
```c# using System; namespace Staxel.Trace { public struct TraceScope : IDisposable { public TraceKey Key; public TraceScope(TraceKey key) { Key = key; TraceRecorder.Enter(Key); } public void Dispose() { TraceRecorder.Leave(Key); } ...
```c# using System; using System.Diagnostics; using System.Runtime; using System.Runtime.CompilerServices; namespace Staxel.Trace { public struct TraceScope : IDisposable { public TraceKey Key; [TargetedPatchingOptOut("")] [MethodImpl(MethodImplOptions.AggressiveInlining)] public ...
aba443c7-2a30-4539-be18-96f73dccb933
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using System; using NUnit.Framework; using osu.Framework.Graphics.Containers; namespace osu.Framework.Tests.Visual.Containers { public clas...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using System; using NUnit.Framework; using osu.Framework.Graphics.Containers; namespace osu.Framework.Tests.Visual.Containers { public clas...
743bf8bb-7a13-462b-8651-16972f907b13
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using Veil; using Veil.Helper; namespace NitroNet.ViewEngine.TemplateHandler { internal class ComponentHelperHandler : IHelperHandler { private readonly INitroTemplateHandler _handler; public ComponentHelperHandler(INitro...
```c# using System; using System.Collections.Generic; using System.Linq; using Veil; using Veil.Helper; namespace NitroNet.ViewEngine.TemplateHandler { internal class ComponentHelperHandler : IHelperHandler { private readonly INitroTemplateHandler _handler; public ComponentHelperHandler(INitro...
b7601c26-298a-4afc-b66b-c6b7a5141465
{ "language": "C#" }
```c# using System; namespace NHibernate.Sessions.Operations { public abstract class AbstractCachedDatabaseQuery<T> : DatabaseOperation { protected abstract void ConfigureCache(CacheConfig cacheConfig); protected abstract T QueryDatabase(ISessionManager sessionManager); public virtual string CacheK...
```c# using System; namespace NHibernate.Sessions.Operations { public abstract class AbstractCachedDatabaseQuery<T> : DatabaseOperation { protected abstract void ConfigureCache(CacheConfig cacheConfig); protected abstract T QueryDatabase(ISessionManager sessionManager); protected virtual string Cac...
3da0d6bf-691e-49e9-be65-38863df4342b
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Collections.Specialized; using Newtonsoft.Json; using System.IO; namespace Snowflake.Core.EventDelegate { pu...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Collections.Specialized; using Newtonsoft.Json; using System.IO; namespace Snowflake.Core.EventDelegate { pu...
39364cd7-a564-4664-9437-5e3601cc7647
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using System.Windows.Navigation; namespace Postolego { public class PostolegoMapper : UriMapperBase { public override Uri MapUri(Uri uri) { var tempUri = ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using System.Windows.Navigation; namespace Postolego { public class PostolegoMapper : UriMapperBase { public override Uri MapUri(Uri uri) { var tempUri = ...
f1e30d57-e166-4a62-9dd2-de7d5233a284
{ "language": "C#" }
```c# using System; using Humanizer; namespace Repack { internal class Program { public static void Main(string[] args) { Console.WriteLine("Usage: repack [date]"); Console.WriteLine("Prints how long it is until your birthday."); Console.WriteLine("If you ...
```c# using System; using Humanizer; namespace Repack { internal class Program { public static void Main(string[] args) { Console.WriteLine("Usage: repack [date]"); Console.WriteLine("Prints how long it is until your birthday."); Console.WriteLine("If you ...
d00fadff-9b90-49a9-a3ed-a8c064b06b6b
{ "language": "C#" }
```c# namespace MyCouch.IntegrationTests { internal static class TestClientFactory { internal static IClient CreateDefault() { return new Client("http://mycouchtester:1q2w3e4r@localhost:5984/" + TestConstants.TestDbName); } } }``` Use at least a password that h...
```c# using System; namespace MyCouch.IntegrationTests { internal static class TestClientFactory { internal static IClient CreateDefault() { return new Client("http://mycouchtester:" + Uri.EscapeDataString("p@ssword") + "@localhost:5984/" + TestConstants.TestDbName); ...
f0716252-239d-4ef7-b294-e545b9ede342
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyCompany("Yevgeniy Shunevych")] [assembly: AssemblyProduct("Atata Framework")] [assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2017")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: As...
```c# using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyCompany("Yevgeniy Shunevych")] [assembly: AssemblyProduct("Atata Framework")] [assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2017")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: As...
9fe5a901-3542-48c2-a5d3-9d4bb9230bce
{ "language": "C#" }
```c# using System.Collections.Generic; using Argentum.Core; namespace SilverScreen.Domain { public class Cinema : AggregateBase<CinemaState> { public Cinema(CinemaState state) : base(state) { } private Cinema(string name) { Apply(new CinemaAdded(name)); } public static Cinema Ad...
```c# using System; using System.Collections.Generic; using Argentum.Core; namespace SilverScreen.Domain { public class Cinema : AggregateBase<CinemaState> { public Cinema(CinemaState state) : base(state) { } private Cinema(Guid id, string name) { Apply(new CinemaAdded(id, name)); }...
4ce1533c-359d-48be-a8bb-b15614ac5d0d
{ "language": "C#" }
```c# using System; using System.Linq; using System.Threading.Tasks; using System.Web; using SignalR.Abstractions; namespace SignalR.AspNet { public class AspNetHost : HttpTaskAsyncHandler { private readonly PersistentConnection _connection; private static readonly Lazy<bool> _hasAcceptWebSoc...
```c# using System; using System.Linq; using System.Threading.Tasks; using System.Web; using SignalR.Abstractions; namespace SignalR.AspNet { public class AspNetHost : HttpTaskAsyncHandler { private readonly PersistentConnection _connection; private static readonly Lazy<bool> _hasAcceptWebSoc...
c986c513-686f-4843-9903-1c37d265c07f
{ "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.Threading.Tasks; namespace osu.Game.Online.RealtimeMultiplayer { /// <summary> /// An interface defining the spectator server instance. //...
```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.Threading.Tasks; namespace osu.Game.Online.RealtimeMultiplayer { /// <summary> /// An interface defining the spectator server instance. //...
c9feeb18-5af4-42a4-af1f-5e6edc526d3a
{ "language": "C#" }
```c# ############################################################################### # Copyright Lewis Baker # Licenced under MIT license. See LICENSE.txt for details. ############################################################################### import cake.path from cake.tools import compiler, script, env, projec...
```c# ############################################################################### # Copyright Lewis Baker # Licenced under MIT license. See LICENSE.txt for details. ############################################################################### import cake.path from cake.tools import compiler, script, env, projec...
b363e611-0d85-4427-b895-811dd990e6c7
{ "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.Utils; namespace osu.Game.Overlays.BeatmapListing { [HasOrderedElements] public enum SearchLanguage { [Order(0)] Any, ...
```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.Utils; namespace osu.Game.Overlays.BeatmapListing { [HasOrderedElements] public enum SearchLanguage { [Order(0)] Any, ...
d86a5669-17d3-48e7-852d-ac024098ff0b
{ "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.Game.Beatmaps; using osu.Game.Rulesets.Mods; using osu.Game.Rulesets.Osu.UI; using osu.Game.Rulesets.UI; using osuTK; n...
```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.Game.Beatmaps; using osu.Game.Rulesets.Mods; using osu.Game.Rulesets.Ob...
72976332-f043-42d0-833e-772d5edbbb9a
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ecologylab.semantics.metadata.scalar { abstract public class MetadataScalarBase<T> { public T value; public static String VALUE_FIELD_NAME = "value"; public Metadata...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ecologylab.semantics.metadata.scalar { abstract public class MetadataScalarBase<T> { public T value; public static String VALUE_FIELD_NAME = "value"; public Metadata...
a3f59233-b838-4ead-a0f2-c23fe2b6eafd
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration.Install; using System.ServiceProcess; using System.Configuration; namespace SuperSocket.SocketService { [RunInstaller(true)] public partial class SocketServiceInstaller : Installer { private S...
```c# using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration.Install; using System.ServiceProcess; using System.Configuration; namespace SuperSocket.SocketService { [RunInstaller(true)] public partial class SocketServiceInstaller : Installer { private S...
1675bded-ade0-4025-937b-f5a8c0c28179
{ "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.Allocation; using osu.Game.Graphics; using osu.Game.Online.Chat; namespace osu.Game.Overlays.Chat.Tabs { public class ChannelSelectorTabIt...
```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; using osu.Game.Online.Chat; namespace osu.Game.Overlays.Chat.Tabs { public class ChannelSelectorTabIt...
c2409576-0518-4709-93c4-0dfd90b24fd5
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Data.SqlClient; using Nohros.Configuration; namespace Nohros.Data.Providers { public partial class SqlConnectionProvider : IConnectionProviderFactory { #region .ctor /// <summary> /// Constructor implied by the interface ...
```c# using System; using System.Collections.Generic; using System.Data.SqlClient; using Nohros.Configuration; namespace Nohros.Data.Providers { public partial class SqlConnectionProvider : IConnectionProviderFactory { #region .ctor /// <summary> /// Constructor implied by the interface ...
37ba0eb8-9b63-4a52-a223-b6ad6d96b80b
{ "language": "C#" }
```c# using System.Linq; using NHibernate.Linq; using NUnit.Framework; namespace NHibernate.Test.NHSpecificTest.NH3408 { public class Fixture : BugTestCase { [Test] public void ProjectAnonymousTypeWithArrayProperty() { using (var session = OpenSession()) using (session.BeginTransaction()) ...
```c# using System.Collections.Generic; using System.Linq; using NHibernate.Linq; using NUnit.Framework; namespace NHibernate.Test.NHSpecificTest.NH3408 { public class Fixture : BugTestCase { [Test] public void ProjectAnonymousTypeWithArrayProperty() { using (var session = OpenSession()) usi...
ca75c041-b02f-4c45-a3bb-a0da9bccb8dc
{ "language": "C#" }
```c# using System; using System.Linq; using System.Reflection; using WampSharp.Core.Serialization; using WampSharp.Core.Utilities; namespace WampSharp.V2.Core { public class WampObjectFormatter : IWampFormatter<object> { public static readonly IWampFormatter<object> Value = new WampObjectFormatter();...
```c# using System; using System.Linq; using System.Reflection; using WampSharp.Core.Serialization; using WampSharp.Core.Utilities; namespace WampSharp.V2.Core { public class WampObjectFormatter : IWampFormatter<object> { public static readonly IWampFormatter<object> Value = new WampObjectFormatter();...
f7567f1a-679d-49b2-a99f-1d4098b65f8d
{ "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.Audio; using osu.Framework.Bindables; using osu.Game.Rulesets.Osu.Judgements; using osu.Game.Rulesets.Scoring; namespace osu.Game.Rulesets.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.Audio; using osu.Framework.Bindables; using osu.Game.Rulesets.Osu.Judgements; using osu.Game.Rulesets.Scoring; namespace osu.Game.Rulesets.Osu....
c01b8b05-721b-4a88-a1fb-ba6158ba2747
{ "language": "C#" }
```c# using Sakuno.Collections; using System.Collections.ObjectModel; using Xunit; namespace Sakuno.Base.Tests { public static class ProjectionCollectionTests { [Fact] public static void SimpleProjection() { var source = new ObservableCollection<int>(); var proj...
```c# using Sakuno.Collections; using System.Collections.ObjectModel; using Xunit; namespace Sakuno.Base.Tests { public static class ProjectionCollectionTests { [Fact] public static void SimpleProjection() { var source = new ObservableCollection<int>(); var proj...
203414bd-37fa-4181-bdac-934b87fa2d59
{ "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.Graphics; using osu.Framework.Graphics.Containers; using osuTK; namespace osu.Game.Beatmaps.Drawables { /// <summary> //...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osuTK; namespace osu.Game.Beatmaps.Drawables { /// <summary> /// A difficulty...
3d79d08d-e537-497c-b58e-7c6ad2d4fcc5
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace XamarinFormsExtendedSplashPage { public partial class RootPage : ContentPage { public RootPage() { InitializeComponent(); ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace XamarinFormsExtendedSplashPage { public partial class RootPage : ContentPage { public RootPage() { InitializeComponent(); ...
e5cbcd81-5b96-4d1c-ac92-8df060cf434f
{ "language": "C#" }
```c# @model Unit <div>@Html.ActionLink(Model.Name, "Index", "Soldiers", new { unit = Model.Id })</div>``` Make sure unit isn't null
```c# @model Unit @if (Model != null) { <div>@Html.ActionLink(Model.Name, "Index", "Soldiers", new { unit = Model.Id })</div> }```
3b4eae3f-2f0f-4f41-bcb8-a4b1b2f7c1c1
{ "language": "C#" }
```c# //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18033 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-ge...
```c# //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18033 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-ge...
ca2d5d97-b94c-4b34-8f72-abe68a64deea
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Linq; namespace NuGet.VisualStudio { public static class AggregatePackageSource { public static readonly PackageSource Instance = new PackageSource("(Aggregate source)", Resources.VsResources.AggregateSourceName); public static boo...
```c# using System.Collections.Generic; using System.Linq; namespace NuGet.VisualStudio { public static class AggregatePackageSource { public static readonly PackageSource Instance = new PackageSource("(Aggregate source)", Resources.VsResources.AggregateSourceName); public static boo...
5e0df7d9-af7a-47ba-aed4-9d4d364662f4
{ "language": "C#" }
```c# using System; using System.Runtime.Serialization; using SadConsole.UI.Controls; using SadRogue.Primitives; namespace SadConsole.UI.Themes { /// <summary> /// A basic theme for a drawing surface that simply fills the surface based on the state. /// </summary> [DataContract] public class Drawi...
```c# using System; using System.Runtime.Serialization; using SadConsole.UI.Controls; using SadRogue.Primitives; namespace SadConsole.UI.Themes { /// <summary> /// A basic theme for a drawing surface that simply fills the surface based on the state. /// </summary> [DataContract] public class Drawi...
69a619ac-f52a-4148-a4d2-611a1f2b7b8b
{ "language": "C#" }
```c# using System; using NUnit.Framework; using TagLib.IFD; using TagLib.IFD.Entries; using TagLib.IFD.Tags; using TagLib.Xmp; using TagLib.Tests.Images.Validators; namespace TagLib.Tests.Images { [TestFixture] public class JpegNoMetadataTest { [Test] public void Test () { ImageTest.Run ("sample_no_metada...
```c# using System; using NUnit.Framework; using TagLib.IFD; using TagLib.IFD.Entries; using TagLib.IFD.Tags; using TagLib.Xmp; using TagLib.Tests.Images.Validators; namespace TagLib.Tests.Images { [TestFixture] public class JpegNoMetadataTest { [Test] public void Test () { ImageTest.Run ("sample_no_metada...
f492abf2-3b9a-48b9-a211-92e6b2488d02
{ "language": "C#" }
```c# using Azure.Test.PerfStress; using CommandLine; namespace Azure.Storage.Blobs.PerfStress.Core { public class SizeOptions : PerfStressOptions { [Option('s', "size", Default = 10 * 1024, HelpText = "Size of message (in bytes)")] public int Size { get; set; } } } ``` Convert size param...
```c# using Azure.Test.PerfStress; using CommandLine; namespace Azure.Storage.Blobs.PerfStress.Core { public class SizeOptions : PerfStressOptions { [Option('s', "size", Default = 10 * 1024, HelpText = "Size of message (in bytes)")] public long Size { get; set; } } } ```
4bbb8c08-c5fb-479e-bc0c-b62c4852f73a
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Reflection; using System.Linq; using Agiil.Web.Services.DataPackages; using Autofac; using Agiil.Web.Services; namespace Agiil.Web.Bootstrap { public class DataPackagesModule : Autofac.Module { static readonly Type NamespaceMarker = type...
```c# using System; using System.Collections.Generic; using System.Reflection; using System.Linq; using Agiil.Web.Services.DataPackages; using Autofac; using Agiil.Web.Services; namespace Agiil.Web.Bootstrap { public class DataPackagesModule : Autofac.Module { static readonly Type NamespaceMarker = type...
9ecf5492-0b1a-4c13-8e03-3d838cedd2a0
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Web; namespace Bonobo.Git.Server.Configuration { public class AuthenticationSettings { public static string MembershipService { get; private set; } public static string RoleProvide...
```c# using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Web; namespace Bonobo.Git.Server.Configuration { public class AuthenticationSettings { public static string MembershipService { get; private set; } static AuthenticationSettings()...
b8f78bb6-c7ca-4604-a6bf-fe4ef4e72710
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using SuperSocket.SocketServiceCore.Command; using System.Diagnostics; namespace RemoteProcessService.Command { public class LIST : ICommand<RemotePrcessSession> { #region ICommand<RemotePrcessSessio...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using SuperSocket.SocketServiceCore.Command; using System.Diagnostics; namespace RemoteProcessService.Command { public class LIST : ICommand<RemotePrcessSession> { #region ICommand<RemotePrcessSessio...
46931df7-5b01-4fa7-bd83-2f702498462a
{ "language": "C#" }
```c# namespace GeneratorAPI { /// <summary> /// Represents a generic generator which can generate any ammount of elements. /// </summary> /// <typeparam name="T"></typeparam> public interface IGenerator<out T> : IGenerator { /// <summary> /// Generate next element. ...
```c# namespace GeneratorAPI { /// <summary> /// Represents a generic generator which can generate any ammount of elements. /// </summary> /// <typeparam name="T"></typeparam> public interface IGenerator<out T> : IGenerator { /// <summary> /// Generate next element. ...
dba5826c-d9d2-4925-b558-38471c0f8ad2
{ "language": "C#" }
```c# using System; using System.Threading.Tasks; using System.Web.Mvc; using GPSTracker.Common; using GPSTracker.GrainInterface; namespace GPSTracker.Web.Controllers { public class HomeController : Controller { public ActionResult Index() { return View(); } public ...
```c# using System; using System.Threading.Tasks; using System.Web.Mvc; using GPSTracker.Common; using GPSTracker.GrainInterface; using Orleans; namespace GPSTracker.Web.Controllers { public class HomeController : Controller { public ActionResult Index() { return View(); } ...
60adcd12-ce72-4c96-9a84-f466cb65052c
{ "language": "C#" }
```c# using System.Reflection; [assembly: AssemblyTitle("Autofac.Extras.Tests.DomainServices")] [assembly: AssemblyDescription("")] ``` Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion wit...
```c# using System.Reflection; [assembly: AssemblyTitle("Autofac.Extras.Tests.DomainServices")] ```
f196ee4f-38a7-4ee4-b5cc-1e0fcab65ac3
{ "language": "C#" }
```c# using UnityEngine; using MsgPack; [RequireComponent(typeof (AgentController))] [RequireComponent(typeof (AgentSensor))] public class AgentBehaviour : MonoBehaviour { private LISClient client = new LISClient("myagent"); private AgentController controller; private AgentSensor sensor; private Msg...
```c# using UnityEngine; using MsgPack; [RequireComponent(typeof (AgentController))] [RequireComponent(typeof (AgentSensor))] public class AgentBehaviour : MonoBehaviour { private LISClient client = new LISClient("myagent"); private AgentController controller; private AgentSensor sensor; private Msg...
c5325f37-67ae-4c39-a962-0c8701e5a3bb
{ "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.Catch.Judgements; using osu.Game.Rulesets.Catch.Objects; using osu.Game.Rulesets.Scoring; using osu.Game.Rulesets.UI; namespace o...
```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.Catch.Judgements; using osu.Game.Rulesets.Catch.Objects; using osu.Game.Rulesets.Scoring; using osu.Game.Rulesets.UI; namespace o...
52ad96de-674c-4912-8a60-6d57d12fe62b
{ "language": "C#" }
```c# // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Runtime.InteropServices; internal partial class Interop { // These are error c...
```c# // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Runtime.InteropServices; internal partial class Interop { // These are error c...
9e163c38-a0f6-4e63-ac77-bc742b75e113
{ "language": "C#" }
```c# using System.Collections.Generic; using CommandLine; using CommandLine.Text; namespace Arkivverket.Arkade.CLI.Options { [Verb("generate", HelpText = "Generate a specified file. Run this command followed by '--help' for more detailed info.")] public class GenerateOptions : OutputOptions { [Opt...
```c# using System.Collections.Generic; using CommandLine; using CommandLine.Text; namespace Arkivverket.Arkade.CLI.Options { [Verb("generate", HelpText = "Generate a specified file. Run this command followed by '--help' for more detailed info.")] public class GenerateOptions : OutputOptions { [Opt...
265f2b69-e4ac-46a2-a3ce-2a9b4d297ffb
{ "language": "C#" }
```c# using System.Reflection; using System.Resources; [assembly: AssemblyCompany( "AvantiPoint, LLC" )] [assembly: AssemblyCopyright( "Copyright © Dan Siegel 2016" )] [assembly: NeutralResourcesLanguage( "en" )] [assembly: AssemblyVersion( "1.1.0.0" )] [assembly: AssemblyFileVersion( "1.1.0.0" )] [assembly: Assembl...
```c# using System.Reflection; using System.Resources; [assembly: AssemblyCompany( "AvantiPoint, LLC" )] [assembly: AssemblyCopyright( "Copyright © Dan Siegel 2016" )] [assembly: NeutralResourcesLanguage( "en" )] [assembly: AssemblyVersion( "1.1.0.0" )] [assembly: AssemblyFileVersion( "1.1.0.0" )] [assembly: Assembl...
778e6716-15b8-47b8-9a85-14b6f367c298
{ "language": "C#" }
```c# using System.Windows.Controls; using System.Windows.Forms; namespace food_tracker { public class FoodBoxItem : ListBoxItem { public int calories { get; set; } public int fats { get; set; } public int saturatedFat { get; set; } public int carbohydrates { get; set; } public int sugar { get; set; } p...
```c# using System.Windows.Controls; using System.Windows.Forms; namespace food_tracker { public class FoodBoxItem : ListBoxItem { public int calories { get; set; } public int fats { get; set; } public int saturatedFat { get; set; } public int carbohydrates { get; set; } public int sugar { get; set; } p...
4699f8b6-f9ab-4fae-a506-ddda489693c1
{ "language": "C#" }
```c# using System; // ReSharper disable InconsistentNaming namespace Ductus.FluentDocker.Model.Containers { public sealed class ContainerState { public string Status { get; set; } public bool Running { get; set; } public bool Paused { get; set; } public bool Restarting { get; set; } public b...
```c# using System; // ReSharper disable InconsistentNaming namespace Ductus.FluentDocker.Model.Containers { public sealed class ContainerState { public string Status { get; set; } public bool Running { get; set; } public bool Paused { get; set; } public bool Restarting { get; set; } public b...
83f111c6-67a5-4e31-9467-e6412e5fbcf7
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; using WalletWasabi.Gui.Controls.WalletExplorer; using WalletWasabi.Wallets; namespace WalletWasabi.Gui.ViewModels { public abstract class WasabiWalletDocumentTabViewModel : WasabiDocumentTabViewModel { protected WasabiWalletDocumentTabViewMod...
```c# using ReactiveUI; using Splat; using System; using System.Reactive.Linq; using WalletWasabi.Gui.Controls.WalletExplorer; using WalletWasabi.Wallets; namespace WalletWasabi.Gui.ViewModels { public abstract class WasabiWalletDocumentTabViewModel : WasabiDocumentTabViewModel { protected WasabiWalletDocumentTabV...
a6a6691d-b472-4e81-bf7e-15a15f209068
{ "language": "C#" }
```c# using System; namespace Microsoft.TeamFoundation.Authentication { public interface ITokenStore { /// <summary> /// Deletes a <see cref="Token"/> from the underlying storage. /// </summary> /// <param name="targetUri">The key identifying which token is being deleted.</para...
```c# using System; namespace Microsoft.TeamFoundation.Authentication { public interface ITokenStore { /// <summary> /// Deletes a <see cref="Token"/> from the underlying storage. /// </summary> /// <param name="targetUri">The key identifying which token is being deleted.</para...
935385ff-16c9-4855-9ff4-8b2e697da19c
{ "language": "C#" }
```c#  @{ ViewBag.Title = "Reporting API - Introduction"; } <article class="article"> <h1>Introduction to the Reporting API</h1> <p> The Reporting API is based on standard web technologies, web services and XML. Use the Reporting API to extract from TimeLog into intranets, extra...
```c#  @{ ViewBag.Title = "Reporting API - Introduction"; } <article class="article"> <h1>Introduction to the Reporting API</h1> <p> The Reporting API is based on standard web technologies, web services and XML. Use the Reporting API to extract from TimeLog into intranets, extra...
0d0d9163-79c9-4fb9-bcaf-29c3f8bd1d49
{ "language": "C#" }
```c# using System.Net; namespace LtiLibrary.NetCore.Profiles { public class ToolConsumerProfileResponse { public HttpStatusCode StatusCode { get; set; } public ToolConsumerProfile ToolConsumerProfile { get; set; } } } ``` Add ContentType of the response.
```c# using System.Net; namespace LtiLibrary.NetCore.Profiles { public class ToolConsumerProfileResponse { public string ContentType { get; set; } public HttpStatusCode StatusCode { get; set; } public ToolConsumerProfile ToolConsumerProfile { get; set; } } } ```
885d069a-75a5-42f1-af72-688f98e588a1
{ "language": "C#" }
```c# namespace VSYard.BraceMatching { using System; using System.Collections.Generic; using System.ComponentModel.Composition; using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.Classification; using Microsoft.VisualStudio.Text.Editor; using Microsoft.VisualStudio.Text.Ta...
```c# namespace VSYard.BraceMatching { using System; using System.Collections.Generic; using System.ComponentModel.Composition; using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.Classification; using Microsoft.VisualStudio.Text.Editor; using Microsoft.VisualStudio...
5e7d4c5b-1c2b-4658-a1e0-a666e40b1987
{ "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...
7ddec124-8d35-4301-9d39-6c9ac0a91259
{ "language": "C#" }
```c# using System; using System.IO; using System.Threading.Tasks; namespace Ylp.GitDb.Core { public interface ILogger { Task Log(string message); } public class Logger : ILogger { public readonly string FileName; public Logger(string fileName) { FileN...
```c# using System; using System.Diagnostics; using System.IO; using System.Threading.Tasks; namespace Ylp.GitDb.Core { public interface ILogger { Task Log(string message); } public class Logger : ILogger { public readonly string FileName; static readonly object LockObj = ...
b9c79d96-0819-4627-8621-fd177ed4db23
{ "language": "C#" }
```c# //------------------------------------------------------------------------------ // This code was generated by a tool. // // Tool : Bond Compiler 0.4.1.0 // File : ExceptionDetails_types.cs // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. // <auto-gene...
```c# //------------------------------------------------------------------------------ // This code was generated by a tool. // // Tool : Bond Compiler 0.4.1.0 // File : ExceptionDetails_types.cs // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. // <auto-gene...
81b33f2c-811a-4775-babf-0a8fa8966d5b
{ "language": "C#" }
```c# using NUnit.Framework; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace Qowaiv.UnitTests.TestTools { public static class DebuggerDisplayAssert { public static void HasAttribute(Typ...
```c# using NUnit.Framework; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace Qowaiv.UnitTests.TestTools { public static class DebuggerDisplayAssert { public static void HasAttribute(Typ...
f7907317-73f1-4b90-9e8a-a231e8806833
{ "language": "C#" }
```c# // Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace StyleCop.Analyzers.Test.CSharp8.LayoutRules { using System.Threading; using System.Threading.Tasks; using Micro...
```c# // Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace StyleCop.Analyzers.Test.CSharp8.LayoutRules { using System.Threading; using System.Threading.Tasks; using Micro...
a2fe2e9a-4df6-45e5-a9d5-21fb0efef8a9
{ "language": "C#" }
```c# using System; using Marten.Testing.Harness; using Xunit; namespace DocumentDbTests.Bugs { public class Bug_673_multiple_version_assertions: IntegrationContext { [Fact] public void replaces_the_max_version_assertion() { var streamId = Guid.NewGuid(); using ...
```c# using System; using Marten.Events; using Marten.Testing.Harness; using Xunit; namespace DocumentDbTests.Bugs { public class Bug_673_multiple_version_assertions: IntegrationContext { [Fact] public void replaces_the_max_version_assertion() { var streamId = Guid.NewGuid()...
0e871456-a85c-4749-8694-66b7db0f795d
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; namespace NQuery.Authoring.CodeActions { public abstract class CodeRefactoringProvider<T> : ICodeRefactoringProvider where T : SyntaxNode { public IEnumerable<ICodeAction> GetRefactorings(SemanticModel semanticModel, int ...
```c# using System; using System.Collections.Generic; using System.Linq; namespace NQuery.Authoring.CodeActions { public abstract class CodeRefactoringProvider<T> : ICodeRefactoringProvider where T : SyntaxNode { public IEnumerable<ICodeAction> GetRefactorings(SemanticModel semanticModel, int ...
d29381e0-0c13-46c0-b0e5-98de14dd11de
{ "language": "C#" }
```c# using System; using Newtonsoft.Json; namespace Archetype.Models { public class ArchetypePreValueProperty { [JsonProperty("alias")] public string Alias { get; set; } [JsonProperty("remove")] public bool Remove { get; set; } [JsonProperty("collapse")] publ...
```c# using System; using Newtonsoft.Json; namespace Archetype.Models { public class ArchetypePreValueProperty { [JsonProperty("alias")] public string Alias { get; set; } [JsonProperty("remove")] public bool Remove { get; set; } [JsonProperty("collapse")] publ...
7883adc9-c035-492c-9a90-b505d7681d11
{ "language": "C#" }
```c# using System.Configuration; using System.IO; using System.Linq; using System.Web.Helpers; using System.Web.Mvc; using Topppro.WebSite.Areas.Humanist.Models; namespace Topppro.WebSite.Areas.Humanist.Controllers { [Authorize] public class DashboardController : Controller { private ...
```c# using System.IO; using System.Linq; using System.Web.Helpers; using System.Web.Mvc; using Topppro.WebSite.Areas.Humanist.Models; using Topppro.WebSite.Settings; namespace Topppro.WebSite.Areas.Humanist.Controllers { [Authorize] public class DashboardController : Controller { publ...
7ba6eb58-1b29-4213-88ba-d62e05e5c05d
{ "language": "C#" }
```c# using System; using Caliburn.Micro; using NDC.Build.Core.Services; using static System.String; namespace NDC.Build.Core.ViewModels { public class LoginViewModel : Screen { private readonly ICredentialsService credentials; private readonly IAuthenticationService authentication; pr...
```c# using System; using Caliburn.Micro; using NDC.Build.Core.Services; using PropertyChanged; using static System.String; namespace NDC.Build.Core.ViewModels { public class LoginViewModel : Screen { private readonly ICredentialsService credentials; private readonly IAuthenticationService aut...
37f7328b-09ae-47ae-9ead-5a58805afe6e
{ "language": "C#" }
```c# #load "00_constants.csx" using DotvvmAcademy.Validation.Dothtml.Unit; using DotvvmAcademy.Validation.Unit; public DothtmlUnit Unit { get; set; } = new DothtmlUnit(); Unit.GetDirective("/@viewModel") .RequireTypeArgument(ViewModelName); var repeater = Unit.GetControl("/html/body/dot:Repeater"); { repea...
```c# #load "00_constants.csx" using DotvvmAcademy.Validation.Dothtml.Unit; using DotvvmAcademy.Validation.Unit; public DothtmlUnit Unit { get; set; } = new DothtmlUnit(); Unit.GetDirective("/@viewModel") .RequireTypeArgument(ViewModelName); var repeater = Unit.GetControl("/html/body/dot:Repeater"); { repea...
85d90172-097e-4fea-8683-fda56988d9ef
{ "language": "C#" }
```c# using System; namespace EasyButtons { /// <summary> /// Attribute to create a button in the inspector for calling the method it is attached to. /// The method must have no arguments. /// </summary> /// <example> /// [<see cref="ButtonAttribute"/>] /// void MyMethod() /// { //...
```c# using System; namespace EasyButtons { /// <summary> /// Attribute to create a button in the inspector for calling the method it is attached to. /// The method must be public and have no arguments. /// </summary> /// <example> /// [<see cref="ButtonAttribute"/>] /// public void MyMeth...
17832bce-7c36-4054-b434-3ee8bd54d93c
{ "language": "C#" }
```c# #region using using System.ComponentModel.Composition; using Microsoft.VisualStudio.Text.Editor; using Microsoft.VisualStudio.Utilities; #endregion namespace GitDiffMargin { [Export(typeof (IWpfTextViewMarginProvider))] [Name(EditorDiffMargin.MarginNameConst)] [Order(Before = PredefinedMarginNames...
```c# #region using using System.ComponentModel.Composition; using Microsoft.VisualStudio.Text.Editor; using Microsoft.VisualStudio.Utilities; #endregion namespace GitDiffMargin { [Export(typeof (IWpfTextViewMarginProvider))] [Name(EditorDiffMargin.MarginNameConst)] [Order(After = PredefinedMarginNames....
b212f990-46e1-4d19-9912-0b779bf85d38
{ "language": "C#" }
```c# using System; using System.Runtime.InteropServices; namespace LibGPhoto2 { public class Context : Object { [DllImport ("libgphoto2.so")] internal static extern IntPtr gp_context_new (); public Context () { this.handle = new HandleRef (this, gp_context_new ()); } [DllImport ("libgphoto2.so")]...
```c# using System; using System.Runtime.InteropServices; namespace LibGPhoto2 { public class Context : Object { [DllImport ("libgphoto2.so")] internal static extern IntPtr gp_context_new (); public Context () { this.handle = new HandleRef (this, gp_context_new ()); } [DllImport ("libgphoto2.so")]...
9df39e58-8077-4e0b-977d-33adecbddccb
{ "language": "C#" }
```c# namespace Stripe { using Newtonsoft.Json; public class AccountBusinessProfileOptions : INestedOptions { [JsonProperty("mcc")] public string Mcc { get; set; } [JsonProperty("name")] public string Name { get; set; } [JsonProperty("primary_color")] publi...
```c# namespace Stripe { using System; using Newtonsoft.Json; public class AccountBusinessProfileOptions : INestedOptions { /// <summary> /// The merchant category code for the account. MCCs are used to classify businesses based /// on the goods or services they provide. ...
ba0375d5-675b-4dbd-ac47-8ee215e2f8f0
{ "language": "C#" }
```c# // // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol; namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer { public clas...
```c# // // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol; namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer { public clas...
fabbf085-3b55-417b-85b5-e1e10de5dff9
{ "language": "C#" }
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="ChannelState.cs" company="Dan Barua"> // (C) Dan Barua and contributors. Licensed under the Mozilla Public License. // </copyright> // ------------------------------------...
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="ChannelState.cs" company="Dan Barua"> // (C) Dan Barua and contributors. Licensed under the Mozilla Public License. // </copyright> // ------------------------------------...
03a41fb8-dd5e-4207-9245-29bc7ffd7af2
{ "language": "C#" }
```c# using BatteryCommander.Web.Controllers; using BatteryCommander.Web.Services; using Microsoft.AspNetCore.Mvc; using System; using System.Threading.Tasks; namespace BatteryCommander.Web.Models { public class NavigationViewComponent : ViewComponent { private readonly Database db; public So...
```c# using BatteryCommander.Web.Controllers; using BatteryCommander.Web.Services; using Microsoft.AspNetCore.Mvc; using System; using System.Threading.Tasks; namespace BatteryCommander.Web.Models { public class NavigationViewComponent : ViewComponent { private readonly Database db; public So...
3591bc22-9ec8-4076-9783-0aca90614f29
{ "language": "C#" }
```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...
```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...
f8cd874c-c25b-49da-9fe0-a05513f3270d
{ "language": "C#" }
```c# using System; using System.Net; using System.Text; using YaR.MailRuCloud.Api.Base.Requests.Repo; namespace YaR.MailRuCloud.Api.Base.Requests.WebM1 { class MoveRequest : BaseRequestJson<WebV2.CopyRequest.Result> { private readonly string _sourceFullPath; private readonly string _destinati...
```c# using System; using System.Net; using System.Text; using YaR.MailRuCloud.Api.Base.Requests.Repo; namespace YaR.MailRuCloud.Api.Base.Requests.WebM1 { class MoveRequest : BaseRequestJson<WebV2.CopyRequest.Result> { private readonly string _sourceFullPath; private readonly string _destinati...
b1984a5c-7f02-4c19-97b0-f72d687a8335
{ "language": "C#" }
```c# @using Mollie.WebApplicationCoreExample.Framework.Extensions @model CreatePaymentModel @{ ViewData["Title"] = "Create payment"; } <div class="container"> <h2>Create new payment</h2> <form method="post"> <div asp-validation-summary="All"></div> <div class="row"> ...
```c# @using Mollie.WebApplicationCoreExample.Framework.Extensions @model CreatePaymentModel @{ ViewData["Title"] = "Create payment"; } <div class="container"> <h2>Create new payment</h2> <form method="post"> <div asp-validation-summary="All"></div> <div class="row"> ...
294b5e40-3efc-49d1-98b4-096f49bbb9b0
{ "language": "C#" }
```c# namespace Fixie.Console { public class Options { public Options( string configuration, bool noBuild, string framework, string report) { Configuration = configuration ?? "Debug"; NoBuild = noBuild; Framewor...
```c# namespace Fixie.Console { public class Options { public Options( string? configuration, bool noBuild, string? framework, string? report) { Configuration = configuration ?? "Debug"; NoBuild = noBuild; Frame...
ebd33047-dfcf-49bd-b2cb-7f91ec24e029
{ "language": "C#" }
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="CanvasMock.cs" company="Helix Toolkit"> // Copyright (c) 2014 Helix Toolkit contributors // </copyright> // ---------------------------------------------------------------...
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="CanvasMock.cs" company="Helix Toolkit"> // Copyright (c) 2014 Helix Toolkit contributors // </copyright> // ---------------------------------------------------------------...
7a7816db-7a15-4166-9429-b0b3f65bd3a4
{ "language": "C#" }
```c# using CefSharp; using CefSharp.Wpf; using Playnite.Common; using Playnite.Settings; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Playnite { public class CefTools { public static bool ...
```c# using CefSharp; using CefSharp.Wpf; using Playnite.Common; using Playnite.Settings; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Playnite { public class CefTools { public static bool ...
0173f32d-096c-4432-abe4-731348411c0f
{ "language": "C#" }
```c# /* * ****************************************************************************** * Copyright 2014 Spectra Logic Corporation. 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. A copy of the License ...
```c# /* * ****************************************************************************** * Copyright 2014 Spectra Logic Corporation. 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. A copy of the License ...
8d88222e-4e92-484d-a838-c83b52d7fa71
{ "language": "C#" }
```c# using System.IO; using SoftwareThresher.Settings.Search; using SoftwareThresher.Utilities; namespace SoftwareThresher.Observations { public abstract class Observation { readonly Search search; protected Observation(Search search) { this.search = search; } public virtu...
```c# using System.IO; using SoftwareThresher.Settings.Search; using SoftwareThresher.Utilities; namespace SoftwareThresher.Observations { public abstract class Observation { readonly Search search; protected Observation(Search search) { this.search = search; } public virtu...
9a374cbc-f9ee-43f0-afd7-a8b6c5cd3cb4
{ "language": "C#" }
```c# // ReSharper disable UnusedMember.Local namespace Gu.State.Benchmarks { using System; using System.Collections.Generic; using System.IO; using System.Linq; using BenchmarkDotNet.Reports; using BenchmarkDotNet.Running; public static class Program { public static void Main(...
```c# // ReSharper disable UnusedMember.Local namespace Gu.State.Benchmarks { using System; using System.Collections.Generic; using System.IO; using System.Linq; using BenchmarkDotNet.Reports; using BenchmarkDotNet.Running; public static class Program { public static void Main(...
a37e6c03-3fb9-477e-9287-92616b1b3f63
{ "language": "C#" }
```c# using System; namespace Blog.Data { public class Post { public int Id { get; set; } public string Url { get; set; } public string Title { get; set; } public string Description { get; set; } public string ComputedDescription { get ...
```c# using System; using System.Linq.Expressions; namespace Blog.Data { public class Post { public int Id { get; set; } public string Url { get; set; } public string Title { get; set; } public string Description { get; set; } public string ComputedDescription ...
9fe4e952-407c-4893-97c8-38ee9b7babf8
{ "language": "C#" }
```c# using log4net; using RightpointLabs.ConferenceRoom.Services.Attributes; using System.Net.Http; using System.ServiceModel.Channels; using System.Web; using System.Web.Http; namespace RightpointLabs.ConferenceRoom.Services.Controllers { /// <summary> /// Operations dealing with client log messages ///...
```c# using log4net; using RightpointLabs.ConferenceRoom.Services.Attributes; using System.Net.Http; using System.ServiceModel.Channels; using System.Web; using System.Web.Http; namespace RightpointLabs.ConferenceRoom.Services.Controllers { /// <summary> /// Operations dealing with client log messages ///...