doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
31de7e93-3a66-489d-b5ae-4f017fd4b58a
{ "language": "C#" }
```c# using System.Runtime.Remoting.Messaging; namespace Criteo.Profiling.Tracing { internal static class TraceContext { private const string TraceCallContextKey = "crto_trace"; public static Trace Get() { return CallContext.LogicalGetData(TraceCallContextKey) as Trace; ...
```c# using System; using System.Runtime.Remoting.Messaging; namespace Criteo.Profiling.Tracing { internal static class TraceContext { private const string TraceCallContextKey = "crto_trace"; private static readonly bool IsRunningOnMono = (Type.GetType("Mono.Runtime") != null); publi...
08023bf8-0661-4c53-b708-26affd7184b9
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Collections.Immutable; using Octokit; using NSubstitute; using NUnit.Framework; using GitHub.Extensions; public class ApiExceptionExtensionsTests { public class TheIsGitHubApiExceptionMethod { [TestCase("Not-GitHub-Request-Id", false)] [Test...
```c# using System.Collections.Generic; using System.Collections.Immutable; using Octokit; using NSubstitute; using NUnit.Framework; using GitHub.Extensions; public class ApiExceptionExtensionsTests { public class TheIsGitHubApiExceptionMethod { [TestCase("Not-GitHub-Request-Id", false)] [Test...
84e64b44-759e-4f2e-a22a-b7320ae3a6dc
{ "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 Android.App; using Android.Content.PM; using Android.OS; using Android.Views; using osu.Framework.Android; namespace osu.Android { [Activity(Theme = "@a...
```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 Android.App; using Android.Content.PM; using Android.OS; using Android.Views; using osu.Framework.Android; namespace osu.Android { [Activity(Theme = "@a...
c38c4a7d-a3f9-4c78-875e-a29cfbaf8540
{ "language": "C#" }
```c# using Gtk; using Mono.Addins; using MonoDevelop.Ide.Gui; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.AddinMaker.AddinBrowser { class AddinBrowserWidget : VBox { ExtensibleTreeView treeView; public AddinBrowserWidget (AddinRegistry registry) { Registry = registry; Bu...
```c# using Gtk; using Mono.Addins; using MonoDevelop.Ide.Gui; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.AddinMaker.AddinBrowser { class AddinBrowserWidget : HPaned { ExtensibleTreeView treeView; public AddinBrowserWidget (AddinRegistry registry) { Registry = registry; ...
e0863198-29b5-4837-a5bc-4ee93b0b336c
{ "language": "C#" }
```c# using System; using System.Net; using System.Threading; using System.Threading.Tasks; using TirkxDownloader.Framework; namespace TirkxDownloader.Models { public class DetailProvider { public async Task GetFileDetail(DownloadInfo detail, CancellationToken ct) { try ...
```c# using System; using System.IO; using System.Net; using System.Text; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using TirkxDownloader.Framework; using TirkxDownloader.Models; namespace TirkxDownloader.Models { public class DetailProvider { private ...
ddbbe4ff-1774-4d3c-a95c-ae6867eea138
{ "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.Extensions.IEnumerableExtensions; using osu.Framework.Graphics.Containers; using osu.Framework.Screens...
```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.Extensions.IEnumerableExtensions; using osu.Framework.Graphics.Containers; using osu.Framework.Screens...
547ca63c-277c-4221-b4b8-d17dc1ec0891
{ "language": "C#" }
```c# <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script> <script> var data = (function ($) { var getData = (function() { $.ajax({ method: "GET", url: "GetMammals", dataType: "json", ...
```c# <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script> <script> var data = (function ($) { var getData = (function() { $.ajax({ method: "GET", url: "@Url.Action("GetMammals", "Home")", ...
f07366af-c2b5-4b7e-afd4-8ffc3fd9fe1b
{ "language": "C#" }
```c# using ServiceStack.ServiceHost; namespace License.Manager.Core.Model { [Route("/customers", "POST")] [Route("/customers/{Id}", "PUT, DELETE")] [Route("/customers/{Id}", "GET, OPTIONS")] public class Customer : EntityBase { public string Name { get; set; } public string Compan...
```c# using ServiceStack.ServiceHost; namespace License.Manager.Core.Model { [Route("/customers", "POST")] [Route("/customers/{Id}", "PUT, DELETE")] [Route("/customers/{Id}", "GET, OPTIONS")] public class Customer : EntityBase, IReturn<Customer> { public string Name { get; set; } p...
d7c22e20-d90c-40dd-b276-2d0f62351b71
{ "language": "C#" }
```c# /***************************************************************************** * * ReoGrid - .NET Spreadsheet Control * * https://reogrid.net/ * * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * IMPLIED WARRAN...
```c# /***************************************************************************** * * ReoGrid - .NET Spreadsheet Control * * https://reogrid.net/ * * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * IMPLIED WARRAN...
9b9a354d-fcfb-4917-abb2-129c139f899c
{ "language": "C#" }
```c# namespace TraktApiSharp.Objects.Get.Shows { using Newtonsoft.Json; /// <summary> /// The air time of a Trakt show. /// </summary> public class TraktShowAirs { /// <summary> /// The day of week on which the show airs. /// </summary> [JsonProperty(PropertyNa...
```c# namespace TraktApiSharp.Objects.Get.Shows { using Newtonsoft.Json; /// <summary>The air time of a Trakt show.</summary> public class TraktShowAirs { /// <summary>Gets or sets the day of week on which the show airs.</summary> [JsonProperty(PropertyName = "day")] public str...
a26730af-bb00-4737-8f66-b771fefba61b
{ "language": "C#" }
```c# using LanguageExt; using static LanguageExt.Prelude; using System; using System.Reactive.Linq; using System.Threading; using Xunit; namespace LanguageExtTests { public class DelayTests { [Fact] public void DelayTest1() { var span = TimeSpan.FromMilliseconds(500); ...
```c# using LanguageExt; using static LanguageExt.Prelude; using System; using System.Reactive.Linq; using System.Threading; using Xunit; namespace LanguageExtTests { public class DelayTests { #if !CI [Fact] public void DelayTest1() { var span = TimeSpan.FromMilliseconds(...
9f56bc58-b63e-4ff0-9f61-b7aa6880ef98
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace OS2Indberetning { public class WebApiApplication : ...
```c# using System.Web.Http; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; using System.Web.Http.ExceptionHandling; using System.Web.Http.Controllers; using System.Net.Http.Headers; using System.Diagnostics; using ActionFilterAttribute = System.Web.Http.Filters.ActionFilterAttribute; ...
82ded0eb-9cb9-4b4f-a7ee-86ea04b58888
{ "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.Diagnostics; using System.Threading; #nullable enable namespace osu.Framework.Threading { /// <summary> /// A synchronisation context which p...
```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.Diagnostics; using System.Threading; #nullable enable namespace osu.Framework.Threading { /// <summary> /// A synchronisation context which p...
0d898845-539e-4fc0-b2dd-d41464a3312c
{ "language": "C#" }
```c# using System; namespace MultiMiner.Xgminer.Api { public class DeviceInformation { public DeviceInformation() { Status = String.Empty; } public string Kind { get; set; } public string Name { get; set; } public int Index { get; set; } pub...
```c# using System; namespace MultiMiner.Xgminer.Api { public class DeviceInformation { public DeviceInformation() { Status = String.Empty; Name = String.Empty; //cgminer may / does not return this } public string Kind { get; set; } public string...
33fddf8e-b305-4db4-a597-08520a36d980
{ "language": "C#" }
```c# using System; using Newtonsoft.Json.Linq; namespace Saule.Serialization { internal class ResourceDeserializer { private readonly JToken _object; private readonly Type _target; public ResourceDeserializer(JToken @object, Type target) { _object = @o...
```c# using System; using Newtonsoft.Json.Linq; namespace Saule.Serialization { internal class ResourceDeserializer { private readonly JToken _object; private readonly Type _target; public ResourceDeserializer(JToken @object, Type target) { _object = @o...
7debafdf-89b4-4b41-bc7f-74adc8b41ea5
{ "language": "C#" }
```c# using UnityEngine; namespace UnityTouchRecorder { public class TouchRecorderController : MonoBehaviour { UnityTouchRecorderPlugin plugin = new UnityTouchRecorderPlugin(); [SerializeField] TouchRecorderView view; void Awake() { Object.DontDestroyOnLoa...
```c# using UnityEngine; namespace UnityTouchRecorder { public class TouchRecorderController : MonoBehaviour { UnityTouchRecorderPlugin plugin = new UnityTouchRecorderPlugin(); [SerializeField] TouchRecorderView view; void Awake() { Object.DontDestroyOnLoa...
4158d08f-ce40-4357-90f0-1f034004b42a
{ "language": "C#" }
```c# using UnityEngine; using UnityEditor; using System; using System.IO; using System.Collections; public class CaptureWindow : EditorWindow{ private string saveFileName = string.Empty; private string saveDirPath = string.Empty; [MenuItem("Window/Capture Editor")] private static void Capture() { ...
```c# using UnityEngine; using UnityEditor; using System; public class CaptureWindow : EditorWindow { private string saveFileName = string.Empty; private string saveDirPath = string.Empty; [MenuItem("Window/Screenshot Capture")] private static void Capture() { EditorWindow.GetWindow(typeo...
30749b34-bcf9-4d61-97bc-8252944c8ee3
{ "language": "C#" }
```c# // Copyright © 2010-2015 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. namespace CefSharp { public interface IKeyboardHandler { bool OnKeyEvent(IWebBrowser browser, KeyType type, int code, CefEve...
```c# // Copyright © 2010-2015 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. namespace CefSharp { public interface IKeyboardHandler { bool OnKeyEvent(IWebBrowser browser, KeyType type, int code, CefEve...
9defe451-59bb-4cfd-94d1-a26335d0f178
{ "language": "C#" }
```c# /** * Language Patches Framework * Translates the game into different Languages * Copyright (c) 2016 Thomas P. * Licensed under the terms of the MIT License */ using System; namespace LanguagePatches { /// <summary> /// A class that represents a text translation /// </summary> public cla...
```c# /** * Language Patches Framework * Translates the game into different Languages * Copyright (c) 2016 Thomas P. * Licensed under the terms of the MIT License */ using System; using System.Text.RegularExpressions; namespace LanguagePatches { /// <summary> /// A class that represents a text transla...
66ecca2e-6fc8-4bb0-9de8-89865ed4fa56
{ "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...
eaea4b49-890d-4f0f-b43a-f1fc4a9ec456
{ "language": "C#" }
```c# namespace Bakery.Configuration.Properties { using System; public class PropertyNotFoundException : Exception { private readonly String propertyName; public PropertyNotFoundException(String propertyName) { this.propertyName = propertyName; } public override String Message { ...
```c# namespace Bakery.Configuration.Properties { using System; public class PropertyNotFoundException : Exception { private readonly String propertyName; public PropertyNotFoundException(String propertyName) { this.propertyName = propertyName; } public override String Message { ...
337a3f58-33bd-4f8e-b2b1-b27c2430130b
{ "language": "C#" }
```c# using System.ComponentModel; using System.Windows; using DesktopWidgets.WidgetBase.Settings; namespace DesktopWidgets.Widgets.Search { public class Settings : WidgetSettingsBase { public Settings() { Style.Width = 150; Style.FramePadding = new Thickness(0); ...
```c# using System.ComponentModel; using System.Windows; using DesktopWidgets.WidgetBase.Settings; namespace DesktopWidgets.Widgets.Search { public class Settings : WidgetSettingsBase { public Settings() { Style.Width = 150; Style.FramePadding = new Thickness(0); ...
d1de5458-7914-48da-8c2d-e75cc5ea0b28
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; namespace Exceptionless.Core.Extensions { public static class UriExtensions { public static string ToQueryString(this NameValueCollection collection) { return collection.AsKeyValuePai...
```c# using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; namespace Exceptionless.Core.Extensions { public static class UriExtensions { public static string ToQueryString(this NameValueCollection collection) { return collection.AsKeyValuePai...
83f34ed9-c5fa-4a30-bb8d-8e2793c05d23
{ "language": "C#" }
```c# // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. using IdentityServer4.Extensions; using IdentityServer4.Models; using IdentityServer4.Services; using Microsoft.Extensions.Logging; usi...
```c# // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. using IdentityServer4.Extensions; using IdentityServer4.Models; using IdentityServer4.Services; using Microsoft.Extensions.Logging; usi...
38b1f42e-fbf7-4a44-8d4d-15bdad547bfc
{ "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.Framework.Graphics; using osu.Game.Graphics.UserInterfaceV2; using osu.Game.Screens.Edit.Setup; namespace osu.Game.Rulese...
```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.Framework.Graphics; using osu.Game.Graphics.UserInterfaceV2; using osu.Game.Screens.Edit.Setup; namespace osu.Game.Rulese...
0ddb41a6-a630-4ed8-ac4b-c9fb899c3237
{ "language": "C#" }
```c# namespace dotless.Core.Plugins { using System; using Parser.Infrastructure.Nodes; using Parser.Tree; using Utils; using System.ComponentModel; [Description("Automatically spins all colors in a less file"), DisplayName("ColorSpin")] public class ColorSpinPlugin : VisitorPlugin { ...
```c# namespace dotless.Core.Plugins { using Parser.Infrastructure.Nodes; using Parser.Tree; using Utils; using System.ComponentModel; [Description("Automatically spins all colors in a less file"), DisplayName("ColorSpin")] public class ColorSpinPlugin : VisitorPlugin { public doub...
e58ff4ab-d16b-4d57-b9e8-c422b732f275
{ "language": "C#" }
```c# namespace SIM.Tool.Windows.MainWindowComponents { using System.IO; using System.Windows; using Sitecore.Diagnostics.Base; using Sitecore.Diagnostics.Base.Annotations; using SIM.Core; using SIM.Instances; using SIM.Tool.Base; using SIM.Tool.Base.Plugins; [UsedImplicitly] public class CreateSu...
```c# namespace SIM.Tool.Windows.MainWindowComponents { using System; using System.IO; using System.Windows; using Sitecore.Diagnostics.Base; using Sitecore.Diagnostics.Base.Annotations; using SIM.Core; using SIM.Instances; using SIM.Tool.Base; using SIM.Tool.Base.Plugins; [UsedImplicitly] publi...
9d60ae57-fa34-42c4-ace6-83115d877457
{ "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 NUnit.Framework; using osu.Framework.Graphics; using osu.Game.Screens.Select; using osuTK; namespace osu.Game.Tests.Visual.SongSelect { ...
```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 NUnit.Framework; using osu.Framework.Graphics; using osu.Game.Screens.Select; using osuTK; namespace osu.Game.Tests.Visual.SongSelect { ...
b594bf2c-39f9-4fd3-bd62-487295a006e0
{ "language": "C#" }
```c# // // DnxProjectConfiguration.cs // // Author: // Matt Ward <ward.matt@gmail.com> // // Copyright (c) 2015 Matthew Ward // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software with...
```c# // // DnxProjectConfiguration.cs // // Author: // Matt Ward <ward.matt@gmail.com> // // Copyright (c) 2015 Matthew Ward // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software with...
24d74725-7f99-4b10-bcb6-536668643f05
{ "language": "C#" }
```c# @model IEnumerable<APFT> <div class="page-header"> <h1>APFT @Html.ActionLink("Add New", "New", "APFT", null, new { @class = "btn btn-default" })</h1> </div> <table class="table table-striped" id="dt"> <thead> <tr> <th>Soldier</th> <th>Date</th> <th>Score</th>...
```c# @model IEnumerable<APFT> <div class="page-header"> <h1>APFT @Html.ActionLink("Add New", "New", "APFT", null, new { @class = "btn btn-default" })</h1> </div> <table class="table table-striped" id="dt"> <thead> <tr> <th>Soldier</th> <th>Date</th> <th>Score</th>...
0046ccaa-599f-4857-aa52-b73511a842c9
{ "language": "C#" }
```c# using System; using System.Linq; using System.Reflection; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace BudgetAnalyser.UnitTest { [TestClass] public class MetaTest { private const int ExpectedMinimumTests = 836; [TestMethod] public void ListAllTe...
```c# using System; using System.Linq; using System.Reflection; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace BudgetAnalyser.UnitTest { [TestClass] public class MetaTest { private const int ExpectedMinimumTests = 868; [TestMethod] public void ListAllTe...
32bd0c87-78dc-48aa-b076-00c7f95d0b08
{ "language": "C#" }
```c# using System; using Agiil.Data; using Agiil.Domain.Data; using Autofac; using CSF.Data; using CSF.Data.Entities; using CSF.Data.NHibernate; namespace Agiil.Bootstrap.Data { public class DataModule : Module { protected override void Load(ContainerBuilder builder) { builder .RegisterType...
```c# using System; using Agiil.Data; using Agiil.Domain.Data; using Autofac; using CSF.Data; using CSF.Data.Entities; using CSF.Data.NHibernate; namespace Agiil.Bootstrap.Data { public class DataModule : Module { protected override void Load(ContainerBuilder builder) { builder .RegisterType...
2955bb10-1c5a-4515-bb94-005550175646
{ "language": "C#" }
```c# using System; using System.IO; using System.Runtime.InteropServices; using Windows.Storage; namespace Urho.UWP { public static class UwpUrhoInitializer { internal static void OnInited() { var folder = ApplicationData.Current.LocalFolder.Path; } } } ``` Add warning for UWP that it works only in x86 ...
```c# using System; using System.IO; using System.Runtime.InteropServices; using Windows.Storage; namespace Urho.UWP { public static class UwpUrhoInitializer { internal static void OnInited() { var folder = ApplicationData.Current.LocalFolder.Path; if (IntPtr.Size == 8) { throw new NotSupportedExce...
7fff1345-68cd-4862-984b-801a0ced5351
{ "language": "C#" }
```c# @inherits UmbracoViewPage<MenuViewModel> <a href="#menu" id="menu-link"> <i class="fa fa-bars" aria-hidden="true"></i> <i class="fa fa-times" aria-hidden="true"></i> </a> <div id="menu"> <div class="pure-menu"> <span class="pure-menu-heading">@Model.SiteName</span> <ul class="pure-me...
```c# @model MenuViewModel <a href="#menu" id="menu-link"> <i class="fa fa-bars" aria-hidden="true"></i> <i class="fa fa-times" aria-hidden="true"></i> </a> <div id="menu"> <div class="pure-menu"> <span class="pure-menu-heading">@Model.SiteName</span> <ul class="pure-menu-list"> ...
789201b7-3754-495f-ace2-02160d103fe0
{ "language": "C#" }
```c# using System; using System.Runtime.InteropServices; using UnityEngine; namespace com.adjust.sdk.oaid { #if UNITY_ANDROID public class AdjustOaidAndroid { private static AndroidJavaClass ajcAdjustOaid = new AndroidJavaClass("com.adjust.sdk.oaid.AdjustOaid"); public static void ReadOaid() ...
```c# using System; using System.Runtime.InteropServices; using UnityEngine; namespace com.adjust.sdk.oaid { #if UNITY_ANDROID public class AdjustOaidAndroid { private static AndroidJavaClass ajcAdjustOaid = new AndroidJavaClass("com.adjust.sdk.oaid.AdjustOaid"); private static AndroidJavaObject ajoC...
17e74cac-06fd-4002-8253-7e63115cbb58
{ "language": "C#" }
```c# using System; using System.Reflection; using System.Resources; using System.Runtime.InteropServices; [assembly: AssemblyProduct("Python for .NET")] [assembly: AssemblyVersion("4.0.0.1")] [assembly: AssemblyDefaultAlias("Python.Runtime.dll")] [assembly: CLSCompliant(true)] [assembly: ComVisible(false)] [assembly:...
```c# using System; using System.Reflection; using System.Resources; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; [assembly: AssemblyProduct("Python for .NET")] [assembly: AssemblyVersion("4.0.0.1")] [assembly: AssemblyDefaultAlias("Python.Runtime.dll")] [assembly: CLSCompliant(true)] [...
7a667670-630b-416e-932c-67e847d48df7
{ "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 System.Runtime.CompilerServices { // Custom attribute to indicating a TypeDef is a discardable a...
```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 System.Runtime.CompilerServices { // Custom attribute to indicating a TypeDef is a discardable a...
67c0edaf-770d-41cf-bb7e-136a2be5002f
{ "language": "C#" }
```c# using System.Diagnostics.CodeAnalysis; namespace Parsley; public static class ParserExtensions { public static bool TryParse<TItem, TValue>( this Parser<TItem, TValue> parse, ReadOnlySpan<TItem> input, [NotNullWhen(true)] out TValue? value, [NotNullWhen(false)] out ParseError...
```c# using System.Diagnostics.CodeAnalysis; namespace Parsley; public static class ParserExtensions { public static bool TryParse<TItem, TValue>( this Parser<TItem, TValue> parse, ReadOnlySpan<TItem> input, [NotNullWhen(true)] out TValue? value, [NotNullWhen(false)] out ParseError...
f07a0b1b-d6a0-45cd-886a-7d5b4b3ed1a3
{ "language": "C#" }
```c# using System.ComponentModel; namespace StackExchange.Opserver.Views.Dashboard { public enum CurrentStatusTypes { [Description("None")] None = 0, Stats = 1, Interfaces = 2, [Description("VM Info")] VMHost = 3, [Description("Elastic")] Elasti...
```c# using System.ComponentModel; namespace StackExchange.Opserver.Views.Dashboard { public enum CurrentStatusTypes { [Description("None")] None = 0, [Description("Stats")] Stats = 1, [Description("Interfaces")] Interfaces = 2, [Description("VM Info")] ...
9e8a305b-a353-46f2-9b5b-3ebb95423dae
{ "language": "C#" }
```c# @model ReviewOrderViewModel <section id="notes" class="ui-corner-all display-form"> <header class="ui-corner-top ui-widget-header"> <div class="col1 showInNav">Order Notes</div> <div class="col2"> <a href="#" class="button" id="add-note">Add Note</a> </div> </header>...
```c# @model ReviewOrderViewModel <section id="notes" class="ui-corner-all display-form"> <header class="ui-corner-top ui-widget-header"> <div class="col1 showInNav">Order Notes</div> <div class="col2"> <a href="#" class="button" id="add-note">Add Note</a> </div> </header>...
d3e97184-551f-47e7-b2ca-f2ef678d57b7
{ "language": "C#" }
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using osu.Framework.Testing; namespace osu.Framework.Tests { public class AutomatedVisualTestGame : Game { public AutomatedVis...
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using osu.Framework.Allocation; using osu.Framework.IO.Stores; using osu.Framework.Testing; namespace osu.Framework.Tests { public class A...
33d77f27-6032-4a59-becd-60beaf56ee8c
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("XeroApi")] [assembly: AssemblyDescr...
```c# using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("XeroApi")] [assembly: AssemblyDescr...
7e547801-7406-48ca-893a-910644e94886
{ "language": "C#" }
```c# using Xunit; namespace Humanizer.Tests { public class NumberToWordsTests { [Fact] public void ToWords() { Assert.Equal("one", 1.ToWords()); Assert.Equal("ten", 10.ToWords()); Assert.Equal("eleven", 11.ToWords()); Assert.Equal("one h...
```c# using Xunit; using Xunit.Extensions; namespace Humanizer.Tests { public class NumberToWordsTests { [InlineData(1, "one")] [InlineData(10, "ten")] [InlineData(11, "eleven")] [InlineData(122, "one hundred and twenty-two")] [InlineData(3501, "three thousand five hund...
0d15952b-c863-415e-a02a-0e9387ca4a9f
{ "language": "C#" }
```c# using System; using Business.Core.Profile; namespace Version { class MainClass { public static void Main(string[] args) { Console.WriteLine("Hello World!"); var profile = new Profile(); var sqlitedatabase = new Business.Core.SQLite.Database(profile); ...
```c# using System; using Business.Core; using Business.Core.Profile; namespace Version { class MainClass { public static void Main(string[] args) { Console.WriteLine("Hello World!"); var profile = new Profile(); IDatabase database; database = new Busi...
ce6a3479-cb2d-426b-8fc0-75119f5ace96
{ "language": "C#" }
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.Reflection; using System.Resources; using System.Runtime.InteropServices; #if !BUILD_GENERATED_VERSION [assembly: AssemblyCom...
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.Reflection; using System.Resources; using System.Runtime.InteropServices; #if !BUILD_GENERATED_VERSION [assembly: AssemblyCom...
d1a76dc5-7ec9-4fe7-9433-ddea04b6b7cc
{ "language": "C#" }
```c# using System; using Xwt.Backends; using Xwt.Drawing; #if MONOMAC using nint = System.Int32; using nfloat = System.Single; using MonoMac.Foundation; using MonoMac.AppKit; using MonoMac.ObjCRuntime; #else using Foundation; using AppKit; using ObjCRuntime; #endif namespace Xwt.Mac { public class EmbedNativeWidget...
```c# using System; using Xwt.Backends; using Xwt.Drawing; #if MONOMAC using nint = System.Int32; using nfloat = System.Single; using MonoMac.Foundation; using MonoMac.AppKit; using MonoMac.ObjCRuntime; #else using Foundation; using AppKit; using ObjCRuntime; #endif namespace Xwt.Mac { public class EmbedNativeWidget...
f874d793-cade-41fc-a067-f25645463165
{ "language": "C#" }
```c# using SO115App.API.Models.Servizi.Infrastruttura.GestioneSoccorso; using SO115App.FakePersistenceJSon.GestioneIntervento; using SO115App.Models.Servizi.Infrastruttura.GestioneSoccorso.GenerazioneCodiciRichiesta; using System; namespace SO115App.FakePersistence.JSon.Utility { public class GeneraCodiceRichies...
```c# using SO115App.API.Models.Servizi.Infrastruttura.GestioneSoccorso; using SO115App.FakePersistenceJSon.GestioneIntervento; using SO115App.Models.Servizi.Infrastruttura.GestioneSoccorso.GenerazioneCodiciRichiesta; using System; namespace SO115App.FakePersistence.JSon.Utility { public class GeneraCodiceRichies...
4b2b6a10-0d89-4f4c-865f-b38734722c82
{ "language": "C#" }
```c# using System.Web.Script.Serialization; namespace JsonConfig { public static class JsonConfigManager { #region Fields private static readonly IConfigFileLoader ConfigFileLoader = new ConfigFileLoader(); private static dynamic _defaultConfig; #endregion #region P...
```c# using System.Web.Script.Serialization; namespace JsonConfig { public static class JsonConfigManager { #region Fields private static readonly IConfigFileLoader ConfigFileLoader = new ConfigFileLoader(); private static dynamic _defaultConfig; #endregion #region P...
ae2b0dc8-3b24-4520-ba39-16d3b33fe262
{ "language": "C#" }
```c# @{ if (Layout.IsCartPage != true) { Script.Require("jQuery"); Script.Include("shoppingcart.js", "shoppingcart.min.js"); <div class="shopping-cart-container minicart" data-load="@Url.Action("NakedCart", "ShoppingCart", new {area="Nwazet.Commerce"})" data...
```c# @{ if (Layout.IsCartPage != true) { Script.Require("jQuery"); Script.Include("shoppingcart.js", "shoppingcart.min.js"); <div class="shopping-cart-container minicart" data-load="@Url.Action("NakedCart", "ShoppingCart", new {area="Nwazet.Commerce"})" data...
fe2db5bc-9879-4573-801d-003071d40d97
{ "language": "C#" }
```c# using System.Threading.Tasks; using Microsoft.Azure.WebJobs; using Microsoft.Extensions.Logging; using NServiceBus; using SFA.DAS.EmployerFinance.Messages.Commands; namespace SFA.DAS.EmployerFinance.Jobs.ScheduledJobs { public class ImportLevyDeclarationsJob { private readonly IMessageSession _m...
```c# using System.Threading.Tasks; using Microsoft.Azure.WebJobs; using Microsoft.Extensions.Logging; using NServiceBus; using SFA.DAS.EmployerFinance.Messages.Commands; namespace SFA.DAS.EmployerFinance.Jobs.ScheduledJobs { public class ImportLevyDeclarationsJob { private readonly IMessageSession _m...
997ddf3e-8afc-4002-ba8f-1447e36ac62d
{ "language": "C#" }
```c# // Copyright (c) Martin Costello, 2017. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.LondonTravel.Site.Integration { using Microsoft.ApplicationInsights.DependencyCollector; using Microsoft.A...
```c# // Copyright (c) Martin Costello, 2017. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.LondonTravel.Site.Integration { using Microsoft.ApplicationInsights.DependencyCollector; using Microsoft.A...
60aee0da-2504-4a3a-8fa2-7138b11d7f42
{ "language": "C#" }
```c# // ------------------------------------------------------------------------- // Managed wrapper for QSize // Generated from qt-gui.xml on 07/24/2011 11:57:03 // // This file was auto generated. Do not edit. // ------------------------------------------------------------------------- using System; using System...
```c# using System; using System.Runtime.InteropServices; using Mono.Cxxi; namespace Qt.Gui { [StructLayout (LayoutKind.Sequential)] public struct QSize { public int wd; public int ht; public QSize (int w, int h) { wd = w; ht = h; } } } ```
b8421a17-6746-484b-821e-a37d3b10f6bb
{ "language": "C#" }
```c# using Ninject; using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FunWithNinject.OpenGenerics { [TestFixture] public class OpenGenericsTests { public interface ILogger<T> { ...
```c# using Ninject; using NUnit.Framework; using System; namespace FunWithNinject.OpenGenerics { [TestFixture] public class OpenGenericsTests { [Test] public void OpenGenericBinding() { using (var k = new StandardKernel()) { // Assemble ...
b46f18f6-ac55-45bd-9b08-145f54101948
{ "language": "C#" }
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Sogeti.Capstone.CQS.Integration.Tests { [TestClass] public class EventCommands { [TestMethod] public void CreateEventCommand() { } } } ``` Set up references for event command unit tests
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Sogeti.Capstone.CQS.Integration.Tests { [TestClass] public class EventCommands { [TestMethod] public void CreateEventCommand() { } } } ```
af82f663-aa8a-4ab0-a5c6-5bbaed08e002
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Configuration; using System.Globalization; using System.Linq; using System.Net; using System.Text; using System.Web; namespace SimpleWAWS.Authentication { public class GoogleAuthProvider : BaseOpenIdConnectAuthProvider { public overrid...
```c# using System; using System.Collections.Generic; using System.Configuration; using System.Globalization; using System.Linq; using System.Net; using System.Text; using System.Web; namespace SimpleWAWS.Authentication { public class GoogleAuthProvider : BaseOpenIdConnectAuthProvider { public overrid...
d8bd0647-2451-4453-a201-7d9281b0b7b5
{ "language": "C#" }
```c# // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Collections.Generic; using Nether.Data.Leaderboard; namespace Nether.Web.Features.Leaderboard { public class LeaderboardGetResponseModel { ...
```c# // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Collections.Generic; using Nether.Data.Leaderboard; namespace Nether.Web.Features.Leaderboard { public class LeaderboardGetResponseModel { ...
1e342cc4-8349-472f-a080-e363004a6369
{ "language": "C#" }
```c# using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Text; namespace Alexa.NET.Management.Api { public class CustomApiEndpoint { [JsonProperty("uri")] public string Uri { get; set; } [JsonProperty("sslCertificateType")] public SslCertificat...
```c# using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System; using System.Collections.Generic; using System.Text; namespace Alexa.NET.Management.Api { public class CustomApiEndpoint { [JsonProperty("uri")] public string Uri { get; set; } [JsonProperty("sslCertificateTy...
3fe892e9-1aca-47f0-bc50-1479a3cdcf3d
{ "language": "C#" }
```c# using System; using System.Linq; namespace Stripe.Tests { static class Constants { public const string ApiKey = @"8GSx9IL9MA0iJ3zcitnGCHonrXWiuhMf"; } } ``` Update Stripe test API key from their docs
```c# using System; using System.Linq; namespace Stripe.Tests { static class Constants { public const string ApiKey = @"sk_test_BQokikJOvBiI2HlWgH4olfQ2"; } } ```
56bbf7cc-1c07-4949-8369-90a699c13fc1
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; namespace Senparc.Weixin.MP.CoreSample { public clas...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; namespace Senparc.Weixin.MP.CoreSample { public clas...
753ce12a-8ad4-4b63-88e3-4d50bc443a31
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Diagnostics; namespace Basics.Structures.Graphs { [DebuggerDisplay("{Source}->{Target}")] public class Edge<T> : IEquatable<Edge<T>> where T : IEquatable<T> { private readonly Lazy<int> _hashCode; public Edge(T source, T t...
```c# using System; using System.Collections.Generic; using System.Diagnostics; namespace Basics.Structures.Graphs { [DebuggerDisplay("{Source}->{Target}")] public class Edge<T> : IEquatable<Edge<T>> where T : IEquatable<T> { public Edge(T source, T target) { Source = source; ...
bd4a820b-cf96-4703-8f10-e378d48b904d
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using System.Xml; using System.Xml.Linq; namespace BlogTemplate.Models { public class BlogDataStore { const string StorageFolder = "BlogFiles"; public void SavePost(...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using System.Xml; using System.Xml.Linq; namespace BlogTemplate.Models { public class BlogDataStore { const string StorageFolder = "BlogFiles"; public void SavePost(...
f234dcab-9789-40c7-bd2e-247d1ed09d69
{ "language": "C#" }
```c# namespace MassTransit { using AspNetCoreIntegration; using AspNetCoreIntegration.HealthChecks; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Diagnostics.HealthChecks; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Options; using Monitoring.H...
```c# namespace MassTransit { using AspNetCoreIntegration; using AspNetCoreIntegration.HealthChecks; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Diagnostics.HealthChecks; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Options; using Monitoring.H...
d5719511-0f07-460c-9083-f4907115c5b2
{ "language": "C#" }
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; namespace osu.Game.Graphics.Containers { /// <summary> /// A container that adds t...
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; namespace osu.Game.Graphics.Containers { /// <summary> /// A container that adds t...
72c1a914-6295-4d8b-9acf-312ce8dfa850
{ "language": "C#" }
```c# // Copyright © 2010-2014 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; using System.Windows; using System.Windows.Input; namespace CefSharp.Wpf { internal class DelegateCommand : ICommand ...
```c# // Copyright © 2010-2014 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; using System.Windows.Input; namespace CefSharp.Wpf { internal class DelegateCommand : ICommand { private read...
e8805af2-a521-4219-8450-4ab020db077a
{ "language": "C#" }
```c# @inherits Umbraco.Web.Mvc.UmbracoViewPage<FormEditor.Fields.IFieldWithValidation> @if (Model.Invalid) { <div class="text-danger validation-error"> @Model.ErrorMessage </div> } ``` Comment for validation error rendering
```c# @inherits Umbraco.Web.Mvc.UmbracoViewPage<FormEditor.Fields.IFieldWithValidation> @* for the NoScript rendering, this is solely rendered server side *@ @if (Model.Invalid) { <div class="text-danger validation-error"> @Model.ErrorMessage </div> } ```
adb0d3ab-5405-4f7f-989e-60edff031880
{ "language": "C#" }
```c# // Copyright © 2010-2015 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. namespace CefSharp { public interface IDownloadHandler { /// <summary> /// Called before a download begins. ...
```c# // Copyright © 2010-2015 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. namespace CefSharp { public interface IDownloadHandler { /// <summary> /// Called before a download begins. ...
01f8b389-18bc-4525-a732-4fad60f8bdc8
{ "language": "C#" }
```c# // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore...
```c# // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore...
cc91e84b-3b8a-4d3a-a3a1-4e4cf2697115
{ "language": "C#" }
```c# using System; using System.Threading; using NLog; using NLogConfig = NLog.Config; namespace BrowserLog.NLog.Demo { class Program { static void Main(string[] args) { LogManager.Configuration = new NLogConfig.XmlLoggingConfiguration("NLog.config", true); var logger...
```c# using System; using System.Threading; using NLog; using NLogConfig = NLog.Config; namespace BrowserLog.NLog.Demo { class Program { static void Main(string[] args) { LogManager.Configuration = new NLogConfig.XmlLoggingConfiguration("NLog.config", true); var logger...
8daa9530-24f3-451f-8bbf-9dba366a6b19
{ "language": "C#" }
```c# using System; using System.ComponentModel.DataAnnotations; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; namespace food_tracker.DAL { public class WholeDay { [Key] [DatabaseGenerated(DatabaseGeneratedOption.None)] public string WholeDayId { ge...
```c# using System; using System.ComponentModel.DataAnnotations; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; namespace food_tracker.DAL { public class WholeDay { [Key] [DatabaseGenerated(DatabaseGeneratedOption.None)] public string WholeDayId { ge...
baa29c52-2415-4163-b7c0-7856ad0ebb23
{ "language": "C#" }
```c# using System; using System.Collections.Specialized; using System.Text.RegularExpressions; namespace Winston.Net { static class Extensions { public static NameValueCollection ParseQueryString(this Uri uri) { var result = new NameValueCollection(); var query = uri.Q...
```c# using System; using System.Collections.Specialized; using System.Text.RegularExpressions; namespace Winston.Net { static class Extensions { public static NameValueCollection ParseQueryString(this Uri uri) { var result = new NameValueCollection(); var query = uri.Q...
d19a280a-a260-4757-9b27-a3efeefe9e8f
{ "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.Composition; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis...
```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.Composition; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis...
cc8d9743-becb-4a3c-bc96-6a19297cd886
{ "language": "C#" }
```c# using System; using System.Text.RegularExpressions; namespace clipr.Core { internal static class ArgumentValidation { public static bool IsAllowedShortName(char c) { return Char.IsLetter(c); } internal const string IsAllowedShortNameExplanation = ...
```c# using System; using System.Text.RegularExpressions; namespace clipr.Core { internal static class ArgumentValidation { public static bool IsAllowedShortName(char c) { return Char.IsLetter(c); } internal const string IsAllowedShortNameExplanation = ...
e6484437-c30b-4e8f-ae66-5e7aa7c8ef97
{ "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.Skinning; #nullable enable namespace osu.Game.Screens.Edit { /// <summary> /// A <see cref="SkinProvidingContainer"/> that fires <see cref=...
```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.Skinning; #nullable enable namespace osu.Game.Screens.Edit { /// <summary> /// A <see cref="SkinProvidingContainer"/> that fires <see cref=...
37702e95-d3ad-46c9-82c1-da29df3dacdc
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; using strange.extensions.context.impl; using strange.extensions.context.api; public class RootContext : MVCSContext, IRootContext { public RootContext(MonoBehaviour view) : base(view) { } public RootContext(MonoBehaviour view, ContextStartupFlags f...
```c# using UnityEngine; using System.Collections; using strange.extensions.context.impl; using strange.extensions.context.api; public class RootContext : MVCSContext, IRootContext { public RootContext(MonoBehaviour view) : base(view) { } public RootContext(MonoBehaviour view, ContextStartupFlags f...
c50f857f-f944-4439-8a89-32fce15d5154
{ "language": "C#" }
```c# using System; using System.Web.Mvc; using System.Web.Routing; namespace SimplestMvc5Auth { public class Global : System.Web.HttpApplication { private static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapM...
```c# using System; using System.Security.Claims; using System.Web.Helpers; using System.Web.Mvc; using System.Web.Routing; namespace SimplestMvc5Auth { public class Global : System.Web.HttpApplication { private static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRout...
5cb59113-a7cf-4ea7-af10-c118f40f46ff
{ "language": "C#" }
```c# // Copyright (c) on/off it-solutions gmbh. All rights reserved. // Licensed under the MIT license. See license.txt file in the project root for license information. #pragma warning disable SA1402 // FileMayOnlyContainASingleType #pragma warning disable SA1649 // FileNameMustMatchTypeName namespace InfoCarrierS...
```c# // Copyright (c) on/off it-solutions gmbh. All rights reserved. // Licensed under the MIT license. See license.txt file in the project root for license information. #pragma warning disable SA1402 // FileMayOnlyContainASingleType #pragma warning disable SA1649 // FileNameMustMatchTypeName namespace InfoCarrierS...
5e72845e-bce3-4839-9c08-94291d15851c
{ "language": "C#" }
```c# using System; namespace HappyFunTimes { public class HFTRuntimeOptions : HFTArgsDirect { public HFTRuntimeOptions(string prefix) : base(prefix) { } public string dataPath = ""; public string url = ""; public string id = ""; public string name = ""...
```c# using System; namespace HappyFunTimes { public class HFTRuntimeOptions { public string dataPath = ""; public string url = ""; public string id = ""; public string name = ""; public string gameId = "HFTUnity"; // this is kind of left over from when one server supp...
adc934be-4fca-42bf-81f9-96e3b295de74
{ "language": "C#" }
```c# namespace Fixie.Internal { using System; using System.Text; using System.Text.Json; static class Serialization { public static string Serialize<TMessage>(TMessage message) => Encoding.UTF8.GetString(JsonSerializer.SerializeToUtf8Bytes(message)); public static TMe...
```c# namespace Fixie.Internal { using System.Text; using System.Text.Json; static class Serialization { public static string Serialize<TMessage>(TMessage message) => Encoding.UTF8.GetString(JsonSerializer.SerializeToUtf8Bytes(message)); public static TMessage Deserialize<...
1e749e75-5d40-4387-9b40-9574e48c95eb
{ "language": "C#" }
```c# namespace Microsoft.AspNetCore.Builder { using Routing; using System; public static class RouteBuilderExtensions { /// <summary> /// Allows using typed expression based link generation in ASP.NET Core MVC application. /// </summary> [Obsolete("UseTypedRouting is n...
```c# namespace Microsoft.AspNetCore.Builder { using Routing; using System; public static class RouteBuilderExtensions { } } ```
37bd9be2-1700-4678-9433-6296ff16ceb1
{ "language": "C#" }
```c# namespace Fixie.Samples.Skipped { using System; using System.Reflection; public class CustomConvention : Convention { public CustomConvention() { Classes .InTheSameNamespaceAs(typeof(CustomConvention)) .NameEndsWith("Tests"); ...
```c# namespace Fixie.Samples.Skipped { using System; public class CustomConvention : Convention { public CustomConvention() { Classes .InTheSameNamespaceAs(typeof(CustomConvention)) .NameEndsWith("Tests"); Methods .O...
b5c1fbc1-ac74-4844-993c-b5610c8a50ac
{ "language": "C#" }
```c# using DeveImageOptimizer.State.StoringProcessedDirectories; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace DeveImageOptimizer.Helpers { public static class FileHelperMethods { public static void SafeDeleteTempFile(string path) ...
```c# using DeveImageOptimizer.State.StoringProcessedDirectories; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace DeveImageOptimizer.Helpers { public static class FileHelperMethods { public static void SafeDeleteTempFile(string path) ...
20e5da54-f2b4-4083-a8ea-8f559842db80
{ "language": "C#" }
```c# using System; using System.CodeDom; using Mono.Cecil; namespace PublicApiGenerator { public static class PropertyNameBuilder { public static string AugmentPropertyNameWithPropertyModifierMarkerTemplate(PropertyDefinition propertyDefinition, MemberAttributes getAccessorAttributes, Memb...
```c# using System; using System.CodeDom; using Mono.Cecil; namespace PublicApiGenerator { public static class PropertyNameBuilder { public static string AugmentPropertyNameWithPropertyModifierMarkerTemplate(PropertyDefinition propertyDefinition, MemberAttributes getAccessorAttributes, Memb...
5ff4d05d-481c-4793-a9a9-198b9772ec07
{ "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 Xunit; namespace Microsoft.AspNet.Mvc { public class MvcOptionsTest { [Fact] public void MaxValidatio...
```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 Xunit; namespace Microsoft.AspNet.Mvc { public class MvcOptionsTest { [Fact] public void MaxValidatio...
b33b0387-6621-41ba-9077-0eb50bbe22c2
{ "language": "C#" }
```c# using Microsoft.AspNetCore.Mvc; using Promact.Trappist.DomainModel.Models.Question; using Promact.Trappist.Repository.Questions; using System; namespace Promact.Trappist.Core.Controllers { [Route("api/question")] public class QuestionsController : Controller { private readonly IQuestionRepos...
```c# using Microsoft.AspNetCore.Mvc; using Promact.Trappist.DomainModel.Models.Question; using Promact.Trappist.Repository.Questions; using System; namespace Promact.Trappist.Core.Controllers { [Route("api/question")] public class QuestionsController : Controller { private readonly IQuestionRepos...
c72c1d1e-e406-4c2b-af86-0c16ec2f0d50
{ "language": "C#" }
```c# using System; using CommandLine; namespace InEngine.Core.Queue.Commands { public class Length : AbstractCommand { public override void Run() { var broker = Broker.Make(); var leftPadding = 15; Warning("Primary Queue:"); InfoText("Pending".P...
```c# using System; using CommandLine; namespace InEngine.Core.Queue.Commands { public class Length : AbstractCommand { public override void Run() { var broker = Broker.Make(); var leftPadding = 15; Warning("Primary Queue:"); InfoText("Pending".P...
a3648543-11fc-4a57-9e26-d4d1c6d16771
{ "language": "C#" }
```c# @{ // odd formatting in this file is to cause more attractive results in the output. var items = Enumerable.Cast<dynamic>((System.Collections.IEnumerable)Model); } @{ if (!HasText(Model.Text)) { @DisplayChildren(Model) } else { if ((bool)Model.Selected) { ...
```c# @{ // odd formatting in this file is to cause more attractive results in the output. var items = Enumerable.Cast<dynamic>((System.Collections.IEnumerable)Model); } @{ if (!HasText(Model.Text)) { @DisplayChildren(Model) } else { if ((bool)Model.Selected) { ...
fbf28168-4d4e-4029-8e71-009ec9042987
{ "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.Graphics; using osu.Framework.Graphics.Sprites; using osu.Framework.Utils; using osu.Game.Graphics.Sprites; using osu.Gam...
```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.Graphics; using osu.Framework.Utils; using osu.Game.Graphics.Sprites; using osu.Game.Graphics.UserInterface; using osuTK;...
29939ab4-779f-4645-bc98-f3192fa6f223
{ "language": "C#" }
```c# using Xunit; // This is a work-around for #11. // https://github.com/CXuesong/WikiClientLibrary/issues/11 // We are using Bot Password on CI, which may naturally evade the issue. #if !ENV_CI_BUILD [assembly: CollectionBehavior(DisableTestParallelization = true)] #endif ``` Enable test parallelization on local.
```c# using Xunit; // This is a work-around for #11. // https://github.com/CXuesong/WikiClientLibrary/issues/11 // We are using Bot Password on CI, which may naturally evade the issue. // [assembly: CollectionBehavior(DisableTestParallelization = true)] ```
58cf4bcf-7820-49ac-b54c-1878aec8b93e
{ "language": "C#" }
```c# using System; namespace ProtoCore.Utils { public class Validity { public static void Assert(bool cond) { if (!cond) throw new Exceptions.CompilerInternalException(""); } public static void Assert(bool cond, string message) {...
```c# using System; namespace ProtoCore.Utils { public class Validity { public static void Assert(bool cond) { if (!cond) throw new Exceptions.CompilerInternalException(""); } public static void Assert(bool cond, string message) {...
ef8784d9-794e-4671-95d8-a1b2eecc0c1f
{ "language": "C#" }
```c# using System; using System.Dynamic; using System.IO; using System.Net; using Newtonsoft.Json; namespace Rackspace.CloudOffice { public class ApiException : Exception { public dynamic Response { get; private set; } public ApiException(WebException ex) : base(GetErrorMessage(ex), ex) ...
```c# using System; using System.Dynamic; using System.IO; using System.Net; using Newtonsoft.Json; namespace Rackspace.CloudOffice { public class ApiException : Exception { public dynamic Response { get; private set; } public HttpStatusCode? HttpCode { get; private set; } public ApiE...
9b702cc9-bdd5-4718-bba8-efd779cd4cd3
{ "language": "C#" }
```c# using System; using System.Collections.Generic; namespace MeidoCommon { public interface IMeidoHook { string Name { get; } string Version { get; } Dictionary<string, string> Help { get; } string Prefix { set; } } public interface IIrcMessage { string ...
```c# using System; using System.Collections.Generic; namespace MeidoCommon { public interface IMeidoHook { // Things the plugin provides us with. string Name { get; } string Version { get; } Dictionary<string, string> Help { get; } // Things we provide to the plugin. ...
566f76ed-baf6-419c-9bf4-d22319353359
{ "language": "C#" }
```c# using System; using System.Linq; using System.Web.Http; using System.Web.Http.Controllers; using System.Web.Http.Description; namespace AspNet.WebApi.HtmlMicrodataFormatter { public class DocumentationController : ApiController { public IDocumentationProviderEx DocumentationProvider { get; set; ...
```c# using System; using System.Web.Http; using System.Web.Http.Controllers; using System.Web.Http.Description; namespace AspNet.WebApi.HtmlMicrodataFormatter { public class DocumentationController : ApiController { public IDocumentationProviderEx DocumentationProvider { get; set; } protecte...
525447e0-be8b-4d02-97e3-7111bd97e833
{ "language": "C#" }
```c# using System.IO; using Arkivverket.Arkade.Core.Base; using Arkivverket.Arkade.GUI.Properties; namespace Arkivverket.Arkade.GUI.Util { public static class ArkadeProcessingAreaLocationSetting { public static string Get() { Settings.Default.Reload(); retu...
```c# using System.IO; using Arkivverket.Arkade.Core.Base; using Arkivverket.Arkade.GUI.Properties; namespace Arkivverket.Arkade.GUI.Util { public static class ArkadeProcessingAreaLocationSetting { public static string Get() { Settings.Default.Reload(); retu...
79358dd8-c72b-48e1-a155-5644a9423089
{ "language": "C#" }
```c# using Pear.InteractionEngine.Utils; using System; using UnityEditor; using UnityEngine; namespace Pear.InteractionEngine.Controllers { [CustomEditor(typeof(ControllerBehaviorBase), true)] [CanEditMultipleObjects] public class ControllerBehaviorEditor : Editor { // The controller property SerializedPrope...
```c# using Pear.InteractionEngine.Utils; using System; using UnityEditor; using UnityEngine; namespace Pear.InteractionEngine.Controllers { [CustomEditor(typeof(ControllerBehaviorBase), true)] [CanEditMultipleObjects] public class ControllerBehaviorEditor : Editor { // The controller property SerializedPrope...
5c01bec8-7db4-4399-8c0f-9aca88bb4893
{ "language": "C#" }
```c# using System; using System.Linq; using Android.Content; using Android.OS; using Rg.Plugins.Popup.Droid.Impl; using Rg.Plugins.Popup.Droid.Renderers; using Rg.Plugins.Popup.Services; using Xamarin.Forms; namespace Rg.Plugins.Popup { public static class Popup { internal static event EventHandler O...
```c# using System; using System.Linq; using Android.Content; using Android.OS; using Rg.Plugins.Popup.Droid.Impl; using Rg.Plugins.Popup.Droid.Renderers; using Rg.Plugins.Popup.Services; using Xamarin.Forms; namespace Rg.Plugins.Popup { public static class Popup { internal static event EventHandler O...
ad5a3e5a-d0bf-4450-9acf-122fa495573a
{ "language": "C#" }
```c# using System.ComponentModel; using System.Runtime.CompilerServices; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; // The User Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234236 namespace OfflineWorkflowSample { public sealed partial class CustomAppTitleBar : User...
```c# using System.ComponentModel; using System.Runtime.CompilerServices; using Windows.UI; using Windows.UI.ViewManagement; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; // The User Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234236 namespace OfflineWorkflowSample { p...
1e29b896-42be-40b3-ae3e-2c4ce61b0306
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Espera.Core { /// <summary> /// This class contains the used keys for Akavache /// </summary> public static class BlobCacheKeys { /// <summary> /// Th...
```c# namespace Espera.Core { /// <summary> /// This class contains the used keys for Akavache /// </summary> public static class BlobCacheKeys { /// <summary> /// This is the key prefix for song artworks. After the hyphen, the MD5 hash of the artwork /// is attached. ...
ae011a50-c349-4462-b157-1a82df00af0f
{ "language": "C#" }
```c# using System.Collections.Generic; using Glimpse.Core2.Extensibility; using Glimpse.Core2.Framework; namespace Glimpse.Core2.SerializationConverter { public class GlimpseMetadataConverter:SerializationConverter<GlimpseRequest> { public override IDictionary<string, object> Convert(GlimpseRequest r...
```c# using System.Collections.Generic; using Glimpse.Core2.Extensibility; using Glimpse.Core2.Framework; namespace Glimpse.Core2.SerializationConverter { public class GlimpseMetadataConverter:SerializationConverter<GlimpseRequest> { public override IDictionary<string, object> Convert(GlimpseRequest r...
737778a1-39ec-4f9b-9a03-6c9484a0f0fe
{ "language": "C#" }
```c# using System; namespace XeroApi.Model { public class Contact : ModelBase { [ItemId] public Guid ContactID { get; set; } [ItemNumber] public string ContactNumber { get; set; } [ItemUpdatedDate] public DateTime? UpdatedDateUTC { get; set; } ...
```c# using System; namespace XeroApi.Model { public class Contact : ModelBase { [ItemId] public Guid ContactID { get; set; } [ItemNumber] public string ContactNumber { get; set; } [ItemUpdatedDate] public DateTime? UpdatedDateUTC { get; set; } ...
1a1539d5-618d-46a0-8011-2586c01e73e3
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; namespace Codestellation.Pulsar.Cron { public class CronCalendar { private readonly List<DateTime> _days; public CronCalendar(IEnumerable<DateTime> scheduledDays) { _days = scheduledDays.ToList(); ...
```c# using System; using System.Collections.Generic; using System.Linq; namespace Codestellation.Pulsar.Cron { public class CronCalendar { private readonly List<DateTime> _days; private readonly HashSet<DateTime> _dayIndex; public CronCalendar(IEnumerable<DateTime> scheduledDays) ...