doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
6c963028-0183-4f78-83a0-a764fabef0e8
{ "language": "C#" }
```c# using Oxide.Core.Libraries; using Oxide.Core.Logging; namespace Oxide.Ext.Lua.Libraries { /// <summary> /// A global library containing game-agnostic Lua utilities /// </summary> public class LuaGlobal : Library { /// <summary> /// Returns if this library should be loaded int...
```c# using Oxide.Core.Libraries; using Oxide.Core.Logging; namespace Oxide.Ext.Lua.Libraries { /// <summary> /// A global library containing game-agnostic Lua utilities /// </summary> public class LuaGlobal : Library { /// <summary> /// Returns if this library should be loaded int...
f43c1c17-50ff-49f3-a26c-057d68a4fcff
{ "language": "C#" }
```c# using System.Diagnostics; using System.Windows.Input; using DesktopWidgets.Helpers; using DesktopWidgets.WidgetBase; using DesktopWidgets.WidgetBase.ViewModel; using GalaSoft.MvvmLight.Command; namespace DesktopWidgets.Widgets.Search { public class ViewModel : WidgetViewModelBase { private strin...
```c# using System.Diagnostics; using System.Windows.Input; using DesktopWidgets.Helpers; using DesktopWidgets.WidgetBase; using DesktopWidgets.WidgetBase.ViewModel; using GalaSoft.MvvmLight.Command; namespace DesktopWidgets.Widgets.Search { public class ViewModel : WidgetViewModelBase { private strin...
19ff567e-08df-4e1c-8d96-7d0d01ca87d5
{ "language": "C#" }
```c# using System.Data.Entity; namespace RWXViewer.Models { public class ObjectPathContext : DbContext { public ObjectPathContext() : base("ObjectPathContext") { } public DbSet<World> Worlds { get; set; } public DbSet<ObjectPathItem> ObjectPathItem { get;...
```c# using System.Data.Entity; namespace RWXViewer.Models { public class ObjectPathContext : DbContext { public ObjectPathContext() : base("ObjectPathDb") { } public DbSet<World> Worlds { get; set; } public DbSet<ObjectPathItem> ObjectPathItem { get; set;...
0b193ebb-8849-42dd-b060-d1a77ba98178
{ "language": "C#" }
```c# namespace HtmlLogger.Model { public enum LogCategory { Info, Warning, Error } }``` Rename Error category to Danger
```c# namespace HtmlLogger.Model { public enum LogCategory { Info, Warning, Danger } }```
a28dae81-31f2-4047-afec-988468e63d41
{ "language": "C#" }
```c# @inherits UmbracoViewPage<BlockListModel> @using ContentModels = Umbraco.Web.PublishedModels; @using Umbraco.Core.Models.Blocks @{ if (Model?.Layout == null || !Model.Layout.Any()) { return; } } <div class="umb-block-list"> @foreach (var layout in Model.Layout) { if (layout?.Udi == n...
```c# @inherits UmbracoViewPage<BlockListModel> @using Umbraco.Core.Models.Blocks @{ if (Model?.Layout == null || !Model.Layout.Any()) { return; } } <div class="umb-block-list"> @foreach (var layout in Model.Layout) { if (layout?.Udi == null) { continue; } var data = layout.Data; ...
a9989a57-69ec-4cf1-bd42-843f32353609
{ "language": "C#" }
```c# using Microsoft.ApplicationInsights; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace unBand { public static class Telemetry { public static TelemetryClient Client {get; private set;} static Telemetry() ...
```c# using Microsoft.ApplicationInsights; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace unBand { public static class Telemetry { public static TelemetryClient Client {get; private set;} static Telemetry() ...
de3797f7-bdce-4425-a291-55611e6bc8e2
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Threading.Tasks; using Flurl.Http; using ProGet.Net.Common; using ProGet.Net.PackagePromotion.Models; // ReSharper disable CheckNamespace namespace ProGet.Net { public partial class ProGetClient { private IFlurlClient GetPackagePromotionApiClient(s...
```c# using System.Collections.Generic; using System.Threading.Tasks; using Flurl.Http; using ProGet.Net.Common; using ProGet.Net.PackagePromotion.Models; // ReSharper disable CheckNamespace namespace ProGet.Net { public partial class ProGetClient { private IFlurlClient GetPackagePromotionApiClient(s...
b9c7d100-f614-4aea-99d3-712f4b356a19
{ "language": "C#" }
```c# using System; using System.Linq; using System.Reflection; namespace Scrutor { public class MissingTypeRegistrationException : InvalidOperationException { public MissingTypeRegistrationException(Type serviceType) : base($"Could not find any registered services for type '{GetFriendlyNam...
```c# using System; using Microsoft.Extensions.Internal; namespace Scrutor { public class MissingTypeRegistrationException : InvalidOperationException { public MissingTypeRegistrationException(Type serviceType) : base($"Could not find any registered services for type '{TypeNameHelper.GetTyp...
8bc305cc-1075-4070-b867-8e826d1688d9
{ "language": "C#" }
```c# using NUnit.Framework; using Umbraco.Tests.TestHelpers; using Umbraco.Web.Routing; using umbraco.BusinessLogic; using umbraco.cms.businesslogic.template; namespace Umbraco.Tests.Routing { [TestFixture] public class LookupByAliasTests : BaseRoutingTest { public override void Initialize() { ...
```c# using NUnit.Framework; using Umbraco.Tests.TestHelpers; using Umbraco.Web.Routing; using umbraco.BusinessLogic; using umbraco.cms.businesslogic.template; namespace Umbraco.Tests.Routing { [TestFixture] public class LookupByAliasTests : BaseRoutingTest { public override void Initialize() { ...
1c9bd0c4-4a7d-4cba-8439-374bcea8dff2
{ "language": "C#" }
```c# namespace SupermarketChain.Client.Console { using System; using System.Linq; using SupermarketChain.Data.SqlServer; using SupermarketChain.Model; using SupermarketChain.Data.SqlServer.Repositories; class Program { static void Main(string[] args) { // Test...
```c# namespace SupermarketChain.Client.Console { using System; using System.Linq; using SupermarketChain.Data.SqlServer; using SupermarketChain.Model; using SupermarketChain.Data.SqlServer.Repositories; class Program { static void Main(string[] args) { // Test...
2482a142-54d3-446d-9ee6-36ee0d8efb4b
{ "language": "C#" }
```c# using System; using System.Threading; namespace Depends { public delegate void ProgressBarIncrementer(); public class Progress { private long _total = 0; private ProgressBarIncrementer _progBarIncr; private long _workMultiplier = 1; public static Progress NOPProgres...
```c# using System; using System.Threading; namespace Depends { public delegate void ProgressBarIncrementer(); public class Progress { private bool _cancelled = false; private long _total = 0; private ProgressBarIncrementer _progBarIncr; private long _workMultiplier = 1; ...
fde0b18b-6ce8-4190-879c-02b334d205a4
{ "language": "C#" }
```c# using System; using System.Globalization; namespace MultiMiner.Win.Extensions { static class DateTimeExtensions { public static string ToReallyShortDateString(this DateTime dateTime) { //short date no year string shortDateValue = dateTime.ToShortDateString(); ...
```c# using System; using System.Globalization; namespace MultiMiner.Win.Extensions { public static class DateTimeExtensions { public static string ToReallyShortDateString(this DateTime dateTime) { //short date no year string shortDateString = dateTime.ToShortDateString...
9566831d-f1f7-4f41-a3fd-b6dcf1ba3f59
{ "language": "C#" }
```c# using System; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; namespace Talagozis.Website.Controllers { public abstract class BaseController : Controller { public override void OnActionExecuting(ActionExecutingContext context) { this.ViewBag.startTime ...
```c# using System; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; namespace Talagozis.Website.Controllers { public abstract class BaseController : Controller { public override void OnActionExecuting(ActionExecutingContext context) { this.ViewBag.startTime ...
fbd50006-a30f-4c9b-91df-4d8b413e8f52
{ "language": "C#" }
```c# namespace Parsley { public sealed class CharLexer : Lexer { public CharLexer(string source) : this(new Text(source)) { } public CharLexer(Text text) : base(text, new TokenMatcher(typeof(char), @".")) { } } }``` Simplify AbstractGrammarSpec by replacing deprec...
```c# namespace Parsley { public sealed class CharLexer : Lexer { public CharLexer(string source) : base(new Text(source), new TokenMatcher(typeof(char), @".")) { } } }```
ea210792-0d4c-4470-97db-495ef0cdc3ed
{ "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.Collections.Generic; using System.IO; using System.Linq; using Microsoft.DotNet.ProjectModel.Graph; namespace Microsoft.DotNet.Watc...
```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.Collections.Generic; using System.IO; using System.Linq; using Microsoft.DotNet.ProjectModel.Graph; namespace Microsoft.DotNet.Watc...
78bf071e-6ed2-4c02-8e41-15e10caa1f58
{ "language": "C#" }
```c# using System; using System.IO; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Serilog; using Serilog.Formatting.Json; namespace Experimentation.Api { public class Program { public static void Main(string[] args) { ...
```c# using System; using System.IO; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Serilog; using Serilog.Formatting.Json; namespace Experimentation.Api { public class Program { public static void Main(string[] args) { ...
0bc278dc-2cc5-4a42-a379-c0b5a2d8b4f4
{ "language": "C#" }
```c# using Autofac; using System.Management.Automation; namespace PoshGit2.Cmdlets { public class DICmdlet : Cmdlet { protected override void BeginProcessing() { base.BeginProcessing(); PoshGit2Container.Instance.InjectUnsetProperties(this); } ...
```c# using Autofac; using System; using System.Management.Automation; namespace PoshGit2.Cmdlets { public class DICmdlet : PSCmdlet, IDisposable { private readonly ILifetimeScope _lifetimeScope; public DICmdlet() { _lifetimeScope = PoshGit2Container.Instance.B...
2f54952e-37f6-41a8-bfcb-6ebbed61cb32
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PixelPet.Commands { internal class DeserializeTilemapCmd : CliCommand { public DeserializeTilemapCmd() : base("Deserialize-Tilemap") { } public override void Run(Workbench workbench, Cli cli) { cli.Log("D...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PixelPet.Commands { internal class DeserializeTilemapCmd : CliCommand { public DeserializeTilemapCmd() : base("Deserialize-Tilemap") { } public override void Run(Workbench workbench, Cli cli) { cli.Log("D...
67f4fdee-cab1-4ea0-8663-333415de111c
{ "language": "C#" }
```c# using System; using System.IO; using Newtonsoft.Json; using SmartMeter.Business.Extractor; using SmartMeter.Business.Interface; using SmartMeter.Business.Interface.Extractor; using SmartMeter.Business.Interface.Translator; namespace SmartMeter.Business.Translator { public class TranslatorService { ...
```c# using System; using System.IO; using Newtonsoft.Json; using SmartMeter.Business.Extractor; using SmartMeter.Business.Interface; using SmartMeter.Business.Interface.Extractor; using SmartMeter.Business.Interface.Translator; namespace SmartMeter.Business.Translator { public class TranslatorService { ...
aa008b37-4c35-4e6d-a918-f1d24e5d3290
{ "language": "C#" }
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using Microsoft.MixedReality.Toolkit.Utilities; namespace Microsoft.MixedReality.Toolkit.Input { public static class HandJointUtils { /// <sum...
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using Microsoft.MixedReality.Toolkit.Utilities; namespace Microsoft.MixedReality.Toolkit.Input { public static class HandJointUtils { /// <sum...
05a1f03f-39b3-417d-b771-6a9ddefccd8f
{ "language": "C#" }
```c# #region License // // Copyright (c) 2013, Kooboo team // // Licensed under the BSD License // See the file LICENSE.txt for details. // #endregion using Kooboo.CMS.Sites.Extension.ModuleArea; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.Mvc; using Koobo...
```c# #region License // // Copyright (c) 2013, Kooboo team // // Licensed under the BSD License // See the file LICENSE.txt for details. // #endregion using Kooboo.CMS.Sites.Extension.ModuleArea; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.Mvc; using Koobo...
8d0ab066-14b4-437e-abf3-3f8ab024fc62
{ "language": "C#" }
```c# using ExoWeb; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using ExoWeb.Templates; using System.IO; using System.Linq; namespace ExoWeb.UnitTests.Server { /// <summary> ///This is a test class for ExoWebTest and is intended ///to contain all ExoWebTest U...
```c# using System; using System.IO; using System.Linq; using ExoWeb.Templates.MicrosoftAjax; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace ExoWeb.UnitTests.Server { /// <summary> ///This is a test class for ExoWebTest and is intended ///to contain all ExoWebTest Unit Tests ///</summary> [TestCla...
c06a4520-c2d5-4655-9916-96ff7767fad6
{ "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.Framework.Allocation; using osu.Framework.Graphics; using osu.Game.Screens.Menu; using OpenTK; namespace osu.Game.Screens { public class ...
```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.Framework.Allocation; using osu.Framework.Graphics; using osu.Game.Screens.Menu; using OpenTK; using osu.Framework.Screens; namespace osu.Game...
ff7e3f2c-4005-4172-8c6e-f849a4b47bf0
{ "language": "C#" }
```c# using Mono.Addins; using Mono.Addins.Description; [assembly: Addin( "JustEnoughVi", Namespace = "JustEnoughVi", Version = "0.10" )] [assembly: AddinName("Just Enough Vi")] [assembly: AddinCategory("IDE extensions")] [assembly: AddinDescription("Simplified Vi/Vim mode for MonoDevelop/Xamarin Studio....
```c# using Mono.Addins; using Mono.Addins.Description; [assembly: Addin( "JustEnoughVi", Namespace = "JustEnoughVi", Version = "0.11" )] [assembly: AddinName("Just Enough Vi")] [assembly: AddinCategory("IDE extensions")] [assembly: AddinDescription("Simplified Vi/Vim mode for MonoDevelop/Xamarin Studio....
13b15420-a4cf-41e1-93d6-c2ea1775f71f
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.IO; using System.Xml.Linq; namespace SocketLabs.OnDemand.Api { internal class Program { private static void Main(string[] args) { int accountId = 1000; // YOUR-ACCOUNT-ID string userN...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.IO; using System.Xml.Linq; namespace SocketLabs.OnDemand.Api { internal class Program { private static void Main(string[] args) { int accountId = 1000; // YOUR-ACCOUNT-ID string userN...
962c71bb-489a-440f-bc42-2c9dd8292bc5
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Data.SqlClient; namespace Dirtybase.App.Options.Validators { class SqlOptionsValidator : IOptionsValidator { public Errors Errors(DirtyOptions options) { var errors = new Errors(); if(string.IsNullOrWhite...
```c# using System; using System.Collections.Generic; using System.Data.Common; using System.Data.SqlClient; namespace Dirtybase.App.Options.Validators { class SqlOptionsValidator : IOptionsValidator { public Errors Errors(DirtyOptions options) { var errors = new Errors(); ...
1ee62a5a-578a-4832-ba3e-cda53c394838
{ "language": "C#" }
```c# namespace BatteryCommander.Web { using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Serilog; using Serilog.Core; public class Program { public static LoggingLevelSwitch LogLevel { get; } = new LoggingLevelSwi...
```c# namespace BatteryCommander.Web { using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Serilog; using Serilog.Core; public class Program { public static LoggingLevelSwitch LogLevel { get; } = new LoggingLevelSwi...
80a8f5db-8dc8-496c-bef2-7fd128aee6f4
{ "language": "C#" }
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System.Runtime.InteropServices; namespace osu.Framework.Platform.Linux.Sdl { public class SdlClipboard : Clipboard { private const...
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; using System.Runtime.InteropServices; namespace osu.Framework.Platform.Linux.Sdl { public class SdlClipboard : Clipboard { ...
4151698c-cf17-4935-8687-abe0e3b2d68e
{ "language": "C#" }
```c# //----------------------------------------------------------------------- // <copyright file="BackgroundUpload.cs" company="Fubar Development Junker"> // Copyright (c) Fubar Development Junker. All rights reserved. // </copyright> // <author>Mark Junker</author> //--------------------------------------------...
```c# //----------------------------------------------------------------------- // <copyright file="BackgroundUpload.cs" company="Fubar Development Junker"> // Copyright (c) Fubar Development Junker. All rights reserved. // </copyright> // <author>Mark Junker</author> //--------------------------------------------...
601ca67a-d37d-4228-bfcf-5453063e30eb
{ "language": "C#" }
```c# using System.Collections.Generic; using Newtonsoft.Json; namespace PrintNode.Net { public class PrintNodePrinterCapabilities { [JsonProperty("bins")] public IEnumerable<string> Bins { get; set; } [JsonProperty("collate")] public bool Collate { get; set; } ...
```c# using System.Collections.Generic; using Newtonsoft.Json; namespace PrintNode.Net { public class PrintNodePrinterCapabilities { [JsonProperty("bins")] public IEnumerable<string> Bins { get; set; } [JsonProperty("collate")] public bool Collate { get; set; } ...
d88dcad2-b368-4080-bb40-5f7952855ede
{ "language": "C#" }
```c# using System.IO; namespace Gigobyte.Mockaroo.Serialization { public interface ISerializable { Stream Serialize(); void Deserialize(Stream stream); } }``` Add new overload to the Deserialize method
```c# using System.IO; namespace Gigobyte.Mockaroo.Serialization { public interface ISerializable { Stream Serialize(); void Deserialize(byte[] bytes); void Deserialize(Stream stream); } }```
6e3f3062-97dc-4d25-ba6a-c5c8b45ecde5
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; using NUnit.Framework; using MonoTorrent.Client; using System.Net; using System.Net.Sockets; namespace MonoTorrent.Client.Tests { [TestFixture] public class ConnectionListenerTests { private SocketListener listener; pr...
```c# using System; using System.Collections.Generic; using System.Text; using NUnit.Framework; using MonoTorrent.Client; using System.Net; using System.Net.Sockets; namespace MonoTorrent.Client.Tests { [TestFixture] public class ConnectionListenerTests { //static void Main(string[] args) /...
9216d5e0-29d4-426a-bfa8-0deab52d02b1
{ "language": "C#" }
```c# using System; namespace RawRabbit.Context { public class AdvancedMessageContext : IAdvancedMessageContext { public Guid GlobalRequestId { get; set; } public Action Nack { get; set; } } } ``` Make Advanced context inherit from normal context
```c# using System; namespace RawRabbit.Context { public class AdvancedMessageContext : MessageContext, IAdvancedMessageContext { public Action Nack { get; set; } } } ```
35bffee6-1276-4491-82f1-7229be81a68d
{ "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.Game.Beatmaps; using osu.Game.Rulesets.Objects.Types; using osu.Game.Beatmaps.ControlPoints; namespace osu.Game.Rulesets.Osu.Objects { pub...
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using osu.Game.Beatmaps; using osu.Game.Rulesets.Objects.Types; using osu.Game.Beatmaps.ControlPoints; namespace osu.Game.Rulesets.Osu.Obje...
aeb0aafa-bf88-48e8-8b33-d566b28139c5
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using CodeMash.Interfaces; namespace CodeMash.Notifications.Email { public class EmailService : IEmailService { public ICodeMashSettings CodeMashSettings { get; set; } public bool SendMail(string[] recipients, string templateName, ...
```c# using System; using System.Collections.Generic; using CodeMash.Interfaces; namespace CodeMash.Notifications.Email { public class EmailService : IEmailService { public ICodeMashSettings CodeMashSettings { get; set; } public bool SendMail(string[] recipients, string templateName, ...
d6b4fd52-8f13-40ae-b29e-16a630df5a37
{ "language": "C#" }
```c# using Quartz; using System; using System.Threading.Tasks; using Discord; using Microsoft.Extensions.DependencyInjection; using NLog; namespace NoAdsHere.Services.Penalties { public static class JobQueue { private static IScheduler _scheduler; public static Task Install(IServiceProvider ...
```c# using Quartz; using System; using System.Threading.Tasks; using Discord; using Microsoft.Extensions.DependencyInjection; using NLog; namespace NoAdsHere.Services.Penalties { public static class JobQueue { private static IScheduler _scheduler; public static Task Install(IServiceProvider ...
ab74bcc2-1721-4632-aab3-90420dc0804c
{ "language": "C#" }
```c# // Needed for NET40 using System; using System.Collections; using System.Collections.Generic; using Theraot.Core; namespace Theraot.Collections.Specialized { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification = "By Design")] ...
```c# // Needed for NET40 using System; using System.Collections; using System.Collections.Generic; using Theraot.Core; namespace Theraot.Collections.Specialized { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification = "By Design")] ...
7ccbca78-abf1-4107-9365-d22985c67116
{ "language": "C#" }
```c# using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace EDDiscovery.EliteDangerous.JournalEvents { public class JournalFileHeader : JournalEntry { public JournalFileHeader(JObject evt ) : base(evt, JournalTypeEnum.FileHeader) ...
```c# using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace EDDiscovery.EliteDangerous.JournalEvents { public class JournalFileHeader : JournalEntry { public JournalFileHeader(JObject evt ) : base(evt, JournalTypeEnum.FileHeader) ...
3afe1aa3-9378-4f78-9f96-54d094ff9edd
{ "language": "C#" }
```c# using Cielo.Requests; using Cielo.Responses; namespace Cielo { public interface ICieloService { CreateTransactionResponse CreateTransaction(CreateTransactionRequest request); CheckTransactionResponse CheckTransaction(CheckTransactionRequest request); } }``` Add method CancelTransact...
```c# using Cielo.Requests; using Cielo.Responses; namespace Cielo { public interface ICieloService { CreateTransactionResponse CreateTransaction(CreateTransactionRequest request); CheckTransactionResponse CheckTransaction(CheckTransactionRequest request); CancelTransactionResponse Can...
29a70183-5b68-4f8c-b68e-a5e1379ca3b0
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; using Firehose.Web.Infrastructure; namespace Firehose.Web.Authors { public class MikeFRobbins : IAmAMicrosoftMVP, IFilterMyBlogPosts { public string FirstName => "T...
```c# using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; using Firehose.Web.Infrastructure; namespace Firehose.Web.Authors { public class TommyMaynard : IAmACommunityMember { public string FirstName => "Tommy"; p...
6f8f08f4-5c70-4ab2-9c5b-95c278c1dc65
{ "language": "C#" }
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; [RequireComponent(typeof(ObjectPool))] public class AudioController : MonoBehaviour { #region Serialized Data [SerializeField] private GameObject _defaultPrefab; #endregion #region Private fi...
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; [RequireComponent(typeof(ObjectPool))] public class AudioController : MonoBehaviour { #region Serialized Data [SerializeField] private GameObject _defaultPrefab; #endregion #region Private fi...
d9952182-4ef0-42cd-b6a1-7d048fb52fed
{ "language": "C#" }
```c# using System; using System.Data.SqlClient; namespace tSQLt.Client.Net.Gateways { public interface ISqlServerGateway { string RunWithXmlResult(string query); void RunWithNoResult(string query); } public class SqlServerGateway : ISqlServerGateway { ...
```c# using System; using System.Data.SqlClient; namespace tSQLt.Client.Net.Gateways { public interface ISqlServerGateway { string RunWithXmlResult(string query); void RunWithNoResult(string query); } public class SqlServerGateway : ISqlServerGateway { ...
ecbf8104-7e0e-414d-9f65-b30ea330bd88
{ "language": "C#" }
```c# using System; namespace Kudu.TestHarness { public static class ApplicationManagerExtensions { public static GitDeploymentResult GitDeploy(this ApplicationManager appManager, string localRepoPath, string localBranchName = "master", string remoteBranchName = "master") { GitDepl...
```c# using System; namespace Kudu.TestHarness { public static class ApplicationManagerExtensions { public static GitDeploymentResult GitDeploy(this ApplicationManager appManager, string localRepoPath, string localBranchName = "master", string remoteBranchName = "master") { GitDepl...
fa6144e6-ef71-4949-a441-f6ca153d295b
{ "language": "C#" }
```c# using System; using System.Configuration; namespace librato4net { public class AppSettingsLibratoSettings : ILibratoSettings { // ReSharper disable once InconsistentNaming private static readonly AppSettingsLibratoSettings settings = new AppSettingsLibratoSettings(); private con...
```c# using System; using System.Configuration; namespace librato4net { public class AppSettingsLibratoSettings : ILibratoSettings { private const string DefaultApiEndPoint = "https://metrics-api.librato.com/v1/"; public AppSettingsLibratoSettings() { var _ = Username; ...
89959e9a-b95c-44ce-abdc-5d9fe12d0115
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.ComponentModel; using osu.Game.Graphics.UserInterface; namespace osu.Game.Tests.Visual.UserInterface { [Description("mostly back button")] pu...
```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.Extensions.Color4Extensions; using osu.Framework.Graphics.Sprites; using osu.Game.Graphics.UserInterface; using osuTK; using osuTK.Graphics; n...
c9c6a266-b715-4072-89ac-93c389cc4cde
{ "language": "C#" }
```c# using System; using Android.App; using Android.Content; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; using Eto.Forms; namespace Eto.Test.Android { [Activity(Label = "Eto.Test.Android", MainLauncher = true)] public class MainActivity : Activity { public class SimpleApp...
```c# using System; using Android.App; using Android.Content; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; using Eto.Forms; namespace Eto.Test.Android { [Activity(Label = "Eto.Test.Android", MainLauncher = true)] public class MainActivity : Activity { public class SimpleAppl...
f1207205-0151-41bc-ba77-519d8686ecc5
{ "language": "C#" }
```c# using Infusion.Commands; using Infusion.LegacyApi.Injection; using InjectionScript.Runtime; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Infusion.Injection.Avalonia.Scripts { public class ScriptServices : IScriptServices { private readonly Injec...
```c# using Infusion.Commands; using Infusion.LegacyApi.Injection; using InjectionScript.Runtime; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Infusion.Injection.Avalonia.Scripts { public class ScriptServices : IScriptServices { private readonly Injec...
d303395b-03ba-45e6-89f8-f94bcdb02068
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace rx { class Program { static void Main(string[] args) { var subject = new Subject<string>(); using (subject.Subscribe(res...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace rx { class Program { static void Main(string[] args) { var subject = new Subject<string>(); using (subject.Subscribe(res...
bb358d6f-5a5b-43de-9068-ffee1dca4407
{ "language": "C#" }
```c# using System; using System.ComponentModel; using System.IO; using System.Reflection; using System.Windows.Forms; using CefSharp; using CefSharp.WinForms; using Knockout.Binding.ExtensionMethods; namespace Knockout.Binding.Sample { public partial class MainForm : Form { private reado...
```c# using System; using System.ComponentModel; using System.IO; using System.Reflection; using System.Windows.Forms; using CefSharp; using CefSharp.WinForms; using Knockout.Binding.ExtensionMethods; namespace Knockout.Binding.Sample { public partial class MainForm : Form { private reado...
f2e296d8-c8c8-44eb-87ad-355c1881660d
{ "language": "C#" }
```c# // This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. Project-level // suppressions either have no target or are given a specific target // and scoped to a namespace, type, member, etc. // // To add a suppression to this file, right-click the messag...
```c# // This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. Project-level // suppressions either have no target or are given a specific target // and scoped to a namespace, type, member, etc. // // To add a suppression to this file, right-click the messag...
f9064961-eb54-40c4-878e-ea4d90dbc81f
{ "language": "C#" }
```c# using System; using System.Data.SqlClient; using TeamTracker; public partial class SettingsLogin : System.Web.UI.Page { //--------------------------------------------------------------------------- public static readonly string SES_SETTINGS_LOGGED_IN = "SesSettingsLoggedIn"; protected string DbConnectio...
```c# using System; using System.Data.SqlClient; using TeamTracker; public partial class SettingsLogin : System.Web.UI.Page { //--------------------------------------------------------------------------- public static readonly string SES_SETTINGS_LOGGED_IN = "SesSettingsLoggedIn"; protected string DbConnectio...
081740db-7704-4b70-b3f0-7f980b032560
{ "language": "C#" }
```c# using jwldnr.VisualLinter.Linting; using Microsoft.VisualStudio.Text.Adornments; using Microsoft.VisualStudio.Text.Tagging; namespace jwldnr.VisualLinter.Tagging { internal class LinterTag : IErrorTag { public string ErrorType { get; } public object ToolTipContent { get; } inte...
```c# using jwldnr.VisualLinter.Linting; using Microsoft.VisualStudio.Text.Adornments; using Microsoft.VisualStudio.Text.Tagging; namespace jwldnr.VisualLinter.Tagging { internal class LinterTag : IErrorTag { public string ErrorType { get; } public object ToolTipContent { get; } inte...
03312f90-cb59-4cb3-b4de-596fdfb71912
{ "language": "C#" }
```c# using LordJZ.WinAPI; namespace WindowPositions { public class WindowPosition { public string Title { get; set; } public string ClassName { get; set; } public WindowPlacement Placement { get; set; } public bool Matches(WindowDTO dto) { if (this.Title...
```c# using LordJZ.WinAPI; namespace WindowPositions { public class WindowPosition { public string Title { get; set; } public string ClassName { get; set; } public WindowPlacement Placement { get; set; } public bool Matches(WindowDTO dto) { if (this.Title...
3d8ec0c0-1a1a-4b02-affd-8d2beae1eff4
{ "language": "C#" }
```c# #region Copyright © 2014 Ricardo Amaral /* * Use of this source code is governed by an MIT-style license that can be found in the LICENSE file. */ #endregion using CefSharp; namespace SlackUI { internal class BrowserMenuHandler : IMenuHandler { #region Internal Methods /* * ...
```c# #region Copyright © 2014 Ricardo Amaral /* * Use of this source code is governed by an MIT-style license that can be found in the LICENSE file. */ #endregion using CefSharp; namespace SlackUI { internal class BrowserMenuHandler : IMenuHandler { #region Public Methods /* * Ha...
c4e42ff1-0013-4d60-82b9-137a324a31bb
{ "language": "C#" }
```c# using AvalonStudio.Documents; using AvalonStudio.Extensibility; using AvalonStudio.Shell; using Dock.Model; using ReactiveUI; using System; namespace WalletWasabi.Gui.ViewModels { public abstract class WasabiDocumentTabViewModel : ViewModelBase, IDocumentTabViewModel { public WasabiDocumentTabViewModel(strin...
```c# using AvalonStudio.Documents; using AvalonStudio.Extensibility; using AvalonStudio.Shell; using Dock.Model; using ReactiveUI; using System; using System.Threading.Tasks; namespace WalletWasabi.Gui.ViewModels { public abstract class WasabiDocumentTabViewModel : ViewModelBase, IDocumentTabViewModel { public Wa...
962b16c6-be07-4862-a042-8d073a51c3ec
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Web.Http; namespace Swashbuckle.Dummy.Controllers { public class AnnotatedTypesController : ApiController { public int Create(Payment payment) { throw new NotImplementedE...
```c# using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Web.Http; using System.Net.Http; using System.Net; namespace Swashbuckle.Dummy.Controllers { public class AnnotatedTypesController : ApiController { public int Create(Payment payment) ...
7009ffbe-b5df-4968-a95a-24134a3a1082
{ "language": "C#" }
```c# <div class="user-display"> @if (!User.Identity.IsAuthenticated) { string returnUrl = ViewData.ContainsKey(Constants.ReturnUrlViewDataKey) ? (string)ViewData[Constants.ReturnUrlViewDataKey] : Request.RawUrl; <span class="welcome"> <a href="@Url.LogOn(returnUrl)">Sign in / Regis...
```c# <div class="user-display"> @if (!User.Identity.IsAuthenticated) { string returnUrl = ViewData.ContainsKey(Constants.ReturnUrlViewDataKey) ? (string)ViewData[Constants.ReturnUrlViewDataKey] : Request.RawUrl; <span class="welcome"> <a href="@Url.LogOn(returnUrl)">Sign in</a> ...
24614428-2a7c-4c77-9351-f45b70346ce5
{ "language": "C#" }
```c# using System; using System.Linq; using System.Management.Automation; using System.Management.Automation.Runspaces; namespace PowerBridge.Internal { internal interface IPowerShellCommandParameterProvider { string[] GetDefaultParameterSetParameterNames(string command); } inter...
```c# using System; using System.Linq; using System.Management.Automation; using System.Management.Automation.Runspaces; namespace PowerBridge.Internal { internal interface IPowerShellCommandParameterProvider { string[] GetDefaultParameterSetParameterNames(string command); } inter...
50040270-af1b-48ea-9241-8ef36a2277d0
{ "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 NUnit.Framework; namespace osu.Game.Tests { /// <summary> /// An attribute to mark any flaky tests. /// Will add a retry count unle...
```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 NUnit.Framework; namespace osu.Game.Tests { /// <summary> /// An attribute to mark any flaky tests. /// Will add a retry count unle...
a57c2034-0e1b-408a-b2b8-c6a40312a1f3
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using LinkedData.Helpers; using Sitecore.Links; using VDS.RDF; namespace LinkedData.Formatters { public class UriToDynamicUrlFormatter : ITripleFormatter { public Triple FormatTrip...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using LinkedData.Helpers; using Sitecore.Links; using VDS.RDF; namespace LinkedData.Formatters { public class UriToDynamicUrlFormatter : ITripleFormatter { public Triple FormatTrip...
0461831b-6122-420c-87bd-439ab7fcb405
{ "language": "C#" }
```c# // Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. namespace PInvoke { using System; using System.Collections.Generic; using Sy...
```c# // Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. namespace PInvoke { using System; using System.Collections.Generic; using Sy...
1f7bb25f-44fa-429e-9219-b2269422824c
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; using Fukami.Helpers; public class Seed : MonoBehaviour { public string Dna; void Start(){ var dnaAsset = Resources.Load<TextAsset>("dna"); Dna = dnaAsset.text.Replace("\n","*"); } void OnSeedDnaStringRequested (Wrap<string> dna) { dna.Value = Dna;...
```c# using UnityEngine; using System.Collections; using Fukami.Helpers; public class Seed : MonoBehaviour { public string Dna; void Start(){ var dnaAsset = Resources.Load<TextAsset>("dna"); Dna = dnaAsset.text.Replace("\r\n","*"); } void OnSeedDnaStringRequested (Wrap<string> dna) { dna.Value = Dn...
5e5124bc-0185-41b4-947c-4f613a10c375
{ "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("Microsoft.Bot.Connector")] [assembl...
```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("Microsoft.Bot.Connector")] [assembl...
1f4aa00e-975e-41ec-b984-896b8579a422
{ "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.Runtime.InteropServices; namespace Microsoft.Diagnostics.Runtime.Interop { [StructLayout(La...
```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.Runtime.InteropServices; namespace Microsoft.Diagnostics.Runtime.Interop { [StructLayout(La...
8ebf16fb-8747-4cef-bca1-6fb89770b36b
{ "language": "C#" }
```c# namespace Espera.Network { public enum PushAction { UpdateAccessPermission = 0, UpdateCurrentPlaylist = 1, UpdatePlaybackState = 2, UpdateRemainingVotes = 3, UpdateCurrentPlaybackTime = 4 } }``` Add the guest system info as push action
```c# namespace Espera.Network { public enum PushAction { UpdateAccessPermission = 0, UpdateCurrentPlaylist = 1, UpdatePlaybackState = 2, UpdateRemainingVotes = 3, UpdateCurrentPlaybackTime = 4, UpdateGuestSystemInfo = 5 } }```
e3d741b7-8f15-4b8b-8d02-412471575e1e
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using NUnit.Framework; using Palaso.UI.WindowsForms.WritingSystems; using Palaso.WritingSystems; namespace PalasoUIWindowsForms.Tests.WritingSystems { [TestFixture] public class WritingSystemTreeItemTests { [Test, Ignor...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using NUnit.Framework; using Palaso.UI.WindowsForms.WritingSystems; using Palaso.WritingSystems; namespace PalasoUIWindowsForms.Tests.WritingSystems { [TestFixture, Ignore("Not Yet")] public class WritingSystemTreeItemTests ...
4a4306df-8d3e-4be5-ba93-83f49bc83c38
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; namespace EvilDICOM.Core.Helpers { public static class Constants { public static string EVIL_DICOM_IMP_UID = "1.2.598.0.1.2851334.2.1865.1"; public static string EVIL...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; namespace EvilDICOM.Core.Helpers { public static class Constants { public static string EVIL_DICOM_IMP_UID = "1.2.598.0.1.2851334.2.1865.1"; public static string EVIL...
8f4aa0bb-619b-4c18-973c-d832a4c8c9ec
{ "language": "C#" }
```c# using UnityEngine; using System; using System.Collections; using UniRx; /* 3) Manage players (network: connect/disconnect, game creation, etc.) */ public class GameMasterController : MonoBehaviour { public IntReactiveProperty PlayerOneScore { get; protected set; } public IntReactiveProperty PlayerTwoScore ...
```c# using UnityEngine; using UnityEngine.UI; using System; using System.Collections; using UniRx; /* 3) Manage players (network: connect/disconnect, game creation, etc.) */ public class GameMasterController : MonoBehaviour { private int _startTime = 0; public IntReactiveProperty PlayerOneScore { get; protect...
f0aad90a-c41d-4af5-97c5-f971b2f90683
{ "language": "C#" }
```c# using System.Linq; using EPiServer.Core; namespace Meridium.EPiServer.Migration.Support { public class SourcePage { public string TypeName { get; set; } public PropertyDataCollection Properties { get; set; } public TValue GetValue<TValue>(string propertyName, TValue @default = defaul...
```c# using System.Linq; using EPiServer.Core; namespace Meridium.EPiServer.Migration.Support { public class SourcePage { public string TypeName { get; set; } public PropertyDataCollection Properties { get; set; } public TValue GetValue<TValue>(string propertyName, TValue @default = defaul...
930bccde-76b8-4d88-a55d-f1f52459ab6d
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using Magecrawl.Utilities; namespace Magecrawl.GameEngine.Actors { internal class SprinterMonster : Monster { public SprinterMonster(string name, Point p, int maxHP, int vision, DiceRoll damage, double defense, double evade, double ctIncrea...
```c# using System; using System.Collections.Generic; using Magecrawl.Utilities; namespace Magecrawl.GameEngine.Actors { internal class SprinterMonster : Monster { public SprinterMonster(string name, Point p, int maxHP, int vision, DiceRoll damage, double defense, double evade, double ctIncrea...
ecae55cd-590b-4461-8085-9abac028cc9e
{ "language": "C#" }
```c# using System; using Hellang.Authentication.JwtBearer.Google; using Microsoft.AspNetCore.Authentication.JwtBearer; // ReSharper disable once CheckNamespace namespace Microsoft.Extensions.DependencyInjection { public static class JwtBearerOptionsExtensions { public static JwtBearerOptions UseGoogl...
```c# using System; using Hellang.Authentication.JwtBearer.Google; using Microsoft.AspNetCore.Authentication.JwtBearer; // ReSharper disable once CheckNamespace namespace Microsoft.Extensions.DependencyInjection { public static class JwtBearerOptionsExtensions { public static JwtBearerOptions ...
bddc929f-10bb-4b13-bf9a-a823dbcb6972
{ "language": "C#" }
```c# using System.Collections.Generic; namespace CertiPay.Payroll.Common { /// <summary> /// Identifies the method to calculate the result /// </summary> public enum CalculationType { /// <summary> /// Deduction is taken as a percentage of the gross pay /// </summary> ...
```c# using System.Collections.Generic; namespace CertiPay.Payroll.Common { /// <summary> /// Identifies the method to calculate the result /// </summary> public enum CalculationType { // TODO: We might implement some other calculation methods as needed? // Percent of Special Earni...
16d1c1d7-e31f-44c6-a993-232cf7d230c6
{ "language": "C#" }
```c# using System; using AlgorithmsAndDataStructures.LinkedList; namespace AlgorithmsAndDataStructures { class Program { static void Main(string[] args) { // +-----+------+ // | 3 | null + // +-----+------+ Node first = new Node ...
```c# using System; using AlgorithmsAndDataStructures.LinkedList; namespace AlgorithmsAndDataStructures { class Program { static void Main(string[] args) { // AT FIRST USE THE .NET FRAMEWORK LINKEDLIST CLASS System.Collections.Generic.LinkedList<int> list = new System.C...
915b4300-9678-4cea-8d53-b83d087471c9
{ "language": "C#" }
```c# @model IEnumerable<ABCP> <h2>ABCP @Html.ActionLink("Add New", "New", "ABCP", null, new { @class = "btn btn-default" })</h2> <table class="table table-striped"> <thead> <tr> <th></th> </tr> </thead> <tbody> @foreach (var model in Model) { <tr>...
```c# @model IEnumerable<ABCP> <h2>ABCP @Html.ActionLink("Add New", "New", "ABCP", null, new { @class = "btn btn-default" })</h2> <table class="table table-striped"> <thead> <tr> <th></th> </tr> </thead> <tbody> @foreach (var model in Model) { <tr>...
53c68536-c519-4246-8e59-e798e1caf2ab
{ "language": "C#" }
```c# using Newtonsoft.Json; using ReactiveUI; using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Reflection; using WalletWasabi.Gui.ViewModels.Validation; using WalletWasabi.Models; namespace WalletWasabi.Gui.ViewModels { public clas...
```c# using Newtonsoft.Json; using ReactiveUI; using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Reflection; using WalletWasabi.Gui.ViewModels.Validation; using WalletWasabi.Models; namespace WalletWasabi.Gui.ViewModels { public clas...
dee85a0a-7945-48ab-be02-b834eb1ab18b
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using osu_StreamCompanion.Code.Core; using osu_StreamCompanion.Code.Misc; namespace osu_StreamCompanion.Code.Modules.MapDataGett...
```c# using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using osu_StreamCompanion.Code.Core; using osu_StreamCompanion.Code.Misc; namespace osu_StreamCompanion.Code.Modules.MapDataGett...
273693a5-c85e-4bdd-ae64-4f9321e72df7
{ "language": "C#" }
```c# using Oxide.Core; using Oxide.Core.Plugins; using Oxide.Game.HideHoldOut.Libraries; namespace Oxide.Plugins { public abstract class HideHoldOutPlugin : CSharpPlugin { protected Command cmd; protected HideHoldOut h2o; public override void SetPluginInfo(string name, string path) ...
```c# using System.Reflection; using Oxide.Core; using Oxide.Core.Plugins; using Oxide.Game.HideHoldOut.Libraries; namespace Oxide.Plugins { public abstract class HideHoldOutPlugin : CSharpPlugin { protected Command cmd; protected HideHoldOut h2o; public override void SetPluginInfo(st...
a5e201bd-329b-4210-bbaf-e3a0b853f669
{ "language": "C#" }
```c# using CommandLine; using CommandLine.Text; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tailor { public class Options { [Option('a', "appDir", DefaultValue = "app", HelpText = "Directory app is placed in")] ...
```c# using CommandLine; using CommandLine.Text; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tailor { public class Options { [Option('a', "appDir", Required = true, HelpText = "Directory app is placed in")] publi...
80d5b638-ef14-41a8-9a74-fc4d6222626c
{ "language": "C#" }
```c# namespace TraktApiSharp.Objects.Get.Users { using Newtonsoft.Json; using System; public class TraktUser { [JsonProperty(PropertyName = "username")] public string Username { get; set; } [JsonProperty(PropertyName = "private")] public bool? Private { get; set; } ...
```c# namespace TraktApiSharp.Objects.Get.Users { using Newtonsoft.Json; using System; /// <summary>A Trakt user.</summary> public class TraktUser { /// <summary>Gets or sets the user's username.</summary> [JsonProperty(PropertyName = "username")] public string Username { g...
aa3aa43d-4f2f-422a-8129-7c9337d025b5
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; namespace Ocelog { public enum LogLevel { Info, Warn, Error } public class LogEvent { private List<string> _tags = new List<string>(); private List<object> _fields= new List<object>();...
```c# using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; namespace Ocelog { public enum LogLevel { Info, Warn, Error } public class LogEvent { private ConcurrentQueue<string> _tags = new ConcurrentQueue<string>()...
587ab20c-5f57-4bfb-b7f3-f5bf0cd31402
{ "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.Localisation; using osu.Game.Rulesets; namespace osu.Game.Screens.Edit.Setup { public abstract class RulesetSetupSection : SetupSection ...
```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.Localisation; using osu.Game.Rulesets; namespace osu.Game.Screens.Edit.Setup { public abstract class RulesetSetupSection : SetupSection ...
bf1b29e8-5f73-42a2-8f3d-98ff516bb7ff
{ "language": "C#" }
```c# using System; using Xunit; namespace ControlFlow.Test { public class TryTest { [Fact] public void Fail() { throw new Exception(); } } } ``` Switch failing test to passing tests (AppVeyor now successfully running xunit tests and failing the build on failin...
```c# using System; using Xunit; namespace ControlFlow.Test { public class TryTest { [Fact] public void Pass() { } } } ```
15ea3662-9f2a-4064-a9fe-1b563174611b
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace Bugsnag.Common { public class StacktraceLineParser { public string ParseFile(string line) { throw new NotImpleme...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace Bugsnag.Common { public class StacktraceLineParser { Regex _fileRegex = new Regex("\\) [^ ]+ (.+):"); public string ParseFil...
d4b1650a-4f9c-4061-8507-41e47c1d0e6e
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using Xamarin; namespace Espera.Core.Analytics { internal class XamarinAnalyticsEndpoint : IAnalyticsEndpoint { private bool isInitialized; public void Dispose() { // Xamarin Insights can only be terminated if it has be...
```c# using System; using System.Collections.Generic; using Xamarin; namespace Espera.Core.Analytics { internal class XamarinAnalyticsEndpoint : IAnalyticsEndpoint { private bool isInitialized; public void Dispose() { // Xamarin Insights can only be terminated if it has be...
d1724ea7-bfb7-47ce-8ee0-f318e3604fd3
{ "language": "C#" }
```c# using PrepareLanding.Presets; namespace PrepareLanding.GameData { public class GameData { /// <summary> /// Holds definitions (see <see cref="Verse.Def"/>) from game. /// </summary> public DefData DefData { get; } /// <summary> /// Data specific t...
```c# using PrepareLanding.Presets; namespace PrepareLanding.GameData { public class GameData { /// <summary> /// Holds definitions (see <see cref="Verse.Def"/>) from game. /// </summary> public DefData DefData { get; } /// <summary> /// Data specific t...
4b7742ac-908a-4587-8209-be99c274a4c6
{ "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: AssemblyTitle...
```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: AssemblyTitle...
5d06175b-3dab-4795-9cac-eb9eb620a00d
{ "language": "C#" }
```c# using System; using TechTalk.SpecFlow; using Xunit; namespace Web.UI.Tests { [Binding] public class SimpleSteps { private static int MarblesCount; [Given(@"I have (.*) marbles")] public void GivenIHaveMarbles(int count) { MarblesCount = count; } ...
```c# using System; using TechTalk.SpecFlow; using Xunit; namespace Web.UI.Tests { [Binding] public class SimpleSteps { private static int MarblesCount; [Given(@"I have (.*) marbles")] public void GivenIHaveMarbles(int count) { MarblesCount = count; } ...
497b95f0-9ba0-4534-ad2f-0c7cdfc66a8d
{ "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.Containers; using osu.Game.Screens.OnlinePlay; namespace osu.Game.Tests.Visual.Multiplayer { public class T...
```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.Graphics.Containers; using osu.Framework.Testing; using osu.Game.Overlays.Mods; using osu.Game.Screens...
ed4b6ffc-0ede-4973-9d90-d170e151d5bc
{ "language": "C#" }
```c# using System; using Abc.Zebus.Util; namespace Abc.Zebus.Transport { public class ZmqSocketOptions { public ZmqSocketOptions() { ReadTimeout = 300.Milliseconds(); SendHighWaterMark = 20000; SendTimeout = 100.Milliseconds(); SendRetriesBefore...
```c# using System; using Abc.Zebus.Util; namespace Abc.Zebus.Transport { public class ZmqSocketOptions { public ZmqSocketOptions() { ReadTimeout = 300.Milliseconds(); SendHighWaterMark = 20000; SendTimeout = 100.Milliseconds(); SendRetriesBefore...
b778fe93-2627-4c50-bcac-efa37ca90e32
{ "language": "C#" }
```c# using Xunit; using Xunit.Extensions; namespace DotNext.RockAndRoll.UnitTests { public class MusicianTestCase { [Theory] [InlineData("foo", "bar", "foo bar")] [InlineData("bar", "baz", "bar baz")] [InlineData("baz", "qux", "baz qux")] public void FullName_Always_Sh...
```c# using Xunit; using Xunit.Extensions; namespace DotNext.RockAndRoll.UnitTests { public class MusicianTestCase { [Theory] [InlineData("foo", "bar")] [InlineData("bar", "baz")] [InlineData("baz", "qux")] public void FullName_Always_ShouldReturnConcatenationOfNames( ...
c7f95d8a-ff12-447f-b308-992ead3351c4
{ "language": "C#" }
```c# // ----------------------------------------------------------------------- // <copyright file="Configuration.cs" company=""> // Copyright 2014 Alexander Soffronow Pagonidis // </copyright> // ----------------------------------------------------------------------- using System.Data.Entity.Migrations; using System...
```c# // ----------------------------------------------------------------------- // <copyright file="Configuration.cs" company=""> // Copyright 2014 Alexander Soffronow Pagonidis // </copyright> // ----------------------------------------------------------------------- using System.Data.Entity.Migrations; using System...
b91f2462-4806-48a4-8368-eb4a71960561
{ "language": "C#" }
```c# using Calendar_Converter.ViewModel; using MVVMObjectLibrary; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; namespace ITATools.ViewModel { public class MainWindowViewModel :...
```c# using Calendar_Converter.ViewModel; using MVVMObjectLibrary; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; namespace ITATools.ViewModel { public class MainWindowViewModel :...
23260c46-4d55-4ba9-9e57-ec69c9a5b952
{ "language": "C#" }
```c# // Copyright © Dominic Beger 2017 using System; namespace nUpdate.UpdateEventArgs { /// <summary> /// Provides data for the <see cref="UpdateManager.UpdateSearchFinished" />-event. /// </summary> public class UpdateSearchFinishedEventArgs : EventArgs { /// <summary> /// ...
```c# // Copyright © Dominic Beger 2017 using System; using nUpdate.Updating; namespace nUpdate.UpdateEventArgs { /// <summary> /// Provides data for the <see cref="UpdateManager.UpdateSearchFinished" />-event. /// </summary> public class UpdateSearchFinishedEventArgs : EventArgs { //...
dc9f1e20-bd26-46da-a4eb-fb2e886c3345
{ "language": "C#" }
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using UnityEngine; namespace HoloToolkit.Unity { /// <summary> /// The purpose of this class is to provide a cached reference to the main camera. Call...
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using UnityEngine; namespace HoloToolkit.Unity { /// <summary> /// The purpose of this class is to provide a cached reference to the main camera. Call...
b763f945-42e3-4aee-b976-f60e135bb489
{ "language": "C#" }
```c# using System; using System.ComponentModel; using DesktopWidgets.WidgetBase.Settings; namespace DesktopWidgets.Widgets.PictureSlideshow { public class Settings : WidgetSettingsBase { public Settings() { Style.Width = 384; Style.Height = 216; } [Cat...
```c# using System; using System.ComponentModel; using DesktopWidgets.WidgetBase.Settings; namespace DesktopWidgets.Widgets.PictureSlideshow { public class Settings : WidgetSettingsBase { public Settings() { Style.Width = 384; Style.Height = 216; } [Cat...
8b6d8b55-2e88-4d0a-9db4-a2eb15ad2fb6
{ "language": "C#" }
```c# using System; using NHibernate.Type; namespace NHibernate.Engine { /// <summary> /// Defines operations common to "compiled" mappings (ie. <c>SessionFactory</c>) and /// "uncompiled" mappings (ie <c>Configuration</c> that are used by implementors of <c>IType</c> /// </summary> public interface Mapping { I...
```c# using System; using NHibernate.Type; namespace NHibernate.Engine { /// <summary> /// Defines operations common to "compiled" mappings (ie. <c>SessionFactory</c>) and /// "uncompiled" mappings (ie <c>Configuration</c> that are used by implementors of <c>IType</c> /// </summary> public interface IMapping { ...
c7e2f65b-782d-42f1-8e12-03bd7e424261
{ "language": "C#" }
```c# <section class="sign-up-alert"> <form action="/subscribe?EmailAlertsTopicId=@ViewData["SignUpAlertsTopicIdTopicId"]" method="POST"> <label for="emailAddress">Sign up to receive our news and email alerts in your inbox</label> <input type="email" name="emailAddress" id="emailAddress" placeholde...
```c# <section class="sign-up-alert"> <form action="/subscribe?EmailAlertsTopicId=@ViewData["SignUpAlertsTopicIdTopicId"]" method="POST"> <label for="emailAddress">Sign up to receive our news and email alerts in your inbox</label> <input type="email" name="emailAddress" id="emailAddress" placeholde...
1c3980ec-391d-4701-aca7-91e9e34c24a5
{ "language": "C#" }
```c# using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Net; namespace MultiMiner.Coinchoose.Api { public static class ApiContext { public static List<CoinInformation> GetCoinInformation() { WebClient client = new WebClient(); stri...
```c# using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Net; namespace MultiMiner.Coinchoose.Api { public static class ApiContext { public static List<CoinInformation> GetCoinInformation() { WebClient client = new WebClient(); cons...
91062429-f590-453f-b986-d99bfab27a33
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using Xunit; using Xunit.Extensions; namespace AppHarbor.Tests { public class TypeNameMatcherTest { interface IFoo { } class Foo : IFoo { } [Fact] public void ShouldThrowIfInitializedWithUnnasignableType() { var exception = Assert.Throws<Argum...
```c# using System; using System.Collections.Generic; using Xunit; using Xunit.Extensions; namespace AppHarbor.Tests { public class TypeNameMatcherTest { interface IFoo { } class Foo : IFoo { } private static Type FooType = typeof(Foo); [Fact] public void ShouldThrowIfInitializedWithUnnasignableTyp...
74924dde-f0bd-4bb0-94c4-0b89fddc160c
{ "language": "C#" }
```c# @using Kendo.Mvc.UI @using VotingSystem.Web.ViewModels.Polls @model List<PublicActivePollsViewModel> @{ ViewBag.Title = "All Public Polls"; } <h1>@ViewBag.Title</h1> @(Html.Kendo().Grid(Model) .Name("pollGrid") .Columns(col => { col.Bound(poll => poll.Id).Hidden(); ...
```c# @using Kendo.Mvc.UI @using VotingSystem.Web.ViewModels.Polls @model List<PublicActivePollsViewModel> @{ ViewBag.Title = "All Public Polls"; } <h1>@ViewBag.Title</h1> @(Html.Kendo().Grid(Model) .Name("pollGrid") .Columns(col => { col.Bound(poll => poll.Id).Hidden(); ...