doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
3cb6d394-50d3-41f5-90b6-656f34604c1e
{ "language": "C#" }
```c# using System.IO; using System.Xml; namespace VanillaTransformer.PostTransformations.XML { public class ReFormatXMLTransformation:IPostTransformation { public string Name { get { return "ReFormatXML"; } } public string Execute(string configContent) { var settings = new...
```c# using System; using System.IO; using System.Xml; namespace VanillaTransformer.PostTransformations.XML { public class ReFormatXMLTransformation:IPostTransformation { public string Name { get { return "ReFormatXML"; } } public string Execute(string configContent) { var ...
b6008e6e-3444-4047-9cf2-c799f5d916f7
{ "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...
76dd0b57-aeea-47ad-b3c7-e3870d33bd85
{ "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.Platform; using osu.Framework.Testing; namespace osu.Game.Configuration { [ExcludeFromDynamicCompile] public class DevelopmentOsuConfig...
```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.Platform; using osu.Framework.Testing; namespace osu.Game.Configuration { [ExcludeFromDynamicCompile] public class DevelopmentOsuConfig...
0c5d03ab-78b4-449c-a49e-5511530bce1f
{ "language": "C#" }
```c# namespace PcscDotNet { /// <summary> /// Indicates whether other applications may form connections to the card. /// </summary> public enum SCardShare { /// <summary> /// This application demands direct control of the reader, so it is not available to other applications. ...
```c# namespace PcscDotNet { /// <summary> /// Indicates whether other applications may form connections to the card. /// </summary> public enum SCardShare { /// <summary> /// This application demands direct control of the reader, so it is not available to other applications. ...
aa15c2cc-a097-409b-b55a-86e1d4b6744d
{ "language": "C#" }
```c# using System.ComponentModel.DataAnnotations; namespace TM.Shared { public class AuthorBadge { [StringLength(400)] public string ImageSiteUrl { get; set; } [StringLength(100)] public string ImageName { get; set; } [StringLength(400)] public string Link { get; set; } ...
```c# using System.ComponentModel.DataAnnotations; namespace TM.Shared { public class AuthorBadge { [StringLength(400)] public string ImageSiteUrl { get; set; } [StringLength(100)] public string ImageName { get; set; } [StringLength(400)] public string Link { get; set; } ...
128a6936-7510-4b6d-a74e-16a66e6e9827
{ "language": "C#" }
```c# using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace IF.Lastfm.Core.Api.Helpers { public static class ApiExtensions { public static T GetAttribute<T>(this Enum enumValue) where T : Attribute { ...
```c# using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace IF.Lastfm.Core.Api.Helpers { public static class ApiExtensions { public static T GetAttribute<T>(this Enum enumValue) where T : Attribute { ...
fc411ad7-bb14-4e13-a7d1-d11dbab208c2
{ "language": "C#" }
```c# using System; using Xamarin.Forms; using System.Collections.Generic; namespace FreshMvvm { public class FreshTabbedNavigationContainer : TabbedPage, IFreshNavigationService { public FreshTabbedNavigationContainer () { RegisterNavigation (); } protected vo...
```c# using System; using Xamarin.Forms; using System.Collections.Generic; namespace FreshMvvm { public class FreshTabbedNavigationContainer : TabbedPage, IFreshNavigationService { public FreshTabbedNavigationContainer () { RegisterNavigation (); } protected vo...
ce5f9f2c-b4c6-4ce7-99d1-7188afe18f32
{ "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.IdentityModel.Claims; using System.Runtime; using System.Security.Principal; namespace System.ServiceModel { public class SpnEndpointIdentity :...
```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.IdentityModel.Claims; using System.Runtime; using System.Security.Principal; namespace System.ServiceModel { public class SpnEndpointIdentity :...
ee145463-0062-47ae-8908-4e16603c58fc
{ "language": "C#" }
```c# // Copyright (c) Six Labors. // Licensed under the Apache License, Version 2.0. namespace SixLabors.Fonts { /// <summary> /// Extension methods for <see cref="IFontCollection"/>. /// </summary> public static class FontCollectionExtensions { /// <summary> /// Adds the fonts fro...
```c# // Copyright (c) Six Labors. // Licensed under the Apache License, Version 2.0. using System; namespace SixLabors.Fonts { /// <summary> /// Extension methods for <see cref="IFontCollection"/>. /// </summary> public static class FontCollectionExtensions { /// <summary> /// Add...
95564e8f-3438-4d80-bd72-59a687dd4938
{ "language": "C#" }
```c# @model Portal.CMS.Web.Areas.Admin.ViewModels.Settings.EditViewModel @{ Layout = ""; } @using (Html.BeginForm("Edit", "Settings", FormMethod.Post)) { @Html.AntiForgeryToken() @Html.HiddenFor(x => x.SettingId) @Html.ValidationMessage("SettingName") <div class="control-group float-container"...
```c# @model Portal.CMS.Web.Areas.Admin.ViewModels.Settings.EditViewModel @{ Layout = ""; } @using (Html.BeginForm("Edit", "Settings", FormMethod.Post)) { @Html.AntiForgeryToken() @Html.HiddenFor(x => x.SettingId) @Html.ValidationMessage("SettingName") <div class="control-group float-container"...
3408d9cd-4985-481d-8609-a450c02c4b08
{ "language": "C#" }
```c# using System; using System.Collections; using System.Collections.Generic; using TSQLLint.Lib.Rules.RuleViolations; namespace TSQLLint.Tests.Helpers { public class RuleViolationComparer : IComparer, IComparer<RuleViolation> { public int Compare(object x, object y) { if (!(x is ...
```c# using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using TSQLLint.Lib.Rules.RuleViolations; namespace TSQLLint.Tests.Helpers { [ExcludeFromCodeCoverage] public class RuleViolationComparer : IComparer, IComparer<RuleViolation> { pub...
52947723-725c-403f-af89-ff31d545c409
{ "language": "C#" }
```c# using System; using System.Linq; using Abp.Dependency; using Castle.Core; using Castle.MicroKernel; namespace Abp.Auditing { internal class AuditingInterceptorRegistrar { private readonly IAuditingConfiguration _auditingConfiguration; private readonly IIocManager _iocManager; pu...
```c# using System; using System.Linq; using Abp.Dependency; using Castle.Core; using Castle.MicroKernel; namespace Abp.Auditing { internal class AuditingInterceptorRegistrar { private readonly IIocManager _iocManager; private readonly IAuditingConfiguration _auditingConfiguration; pu...
9d0f3a30-d5aa-4a04-8dd3-e2a5a908ef1b
{ "language": "C#" }
```c# // vimage - http://torrunt.net/vimage // Corey Zeke Womack (Torrunt) - me@torrunt.net using System; namespace vimage { class Program { static void Main(string[] args) { string file; if (args.Length == 0) { #if DEBUG //file = @"C:\Users...
```c# // vimage - http://torrunt.net/vimage // Corey Zeke Womack (Torrunt) - me@torrunt.net using System; namespace vimage { class Program { static void Main(string[] args) { string file; if (args.Length == 0) return; else fi...
bb76cdc5-c3d9-4ea5-9d74-7f6a0e2da0e6
{ "language": "C#" }
```c# // Copyright 2013-2021 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/> // // Licensed under the ImageMagick License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // // https://www.imagemagick.org/script/license.php // // Unle...
```c# // Copyright 2013-2021 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/> // // Licensed under the ImageMagick License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // // https://www.imagemagick.org/script/license.php // // Unle...
29cd827d-ac4f-4247-928c-5956f6e9c1f6
{ "language": "C#" }
```c# #region using System.Collections.Generic; #endregion namespace Snooze { public static class ResourceFormatters { static readonly IList<IResourceFormatter> _formatters = new List<IResourceFormatter>(); static ResourceFormatters() { // The order of form...
```c# #region using System.Collections.Generic; #endregion namespace Snooze { public static class ResourceFormatters { static readonly IList<IResourceFormatter> _formatters = new List<IResourceFormatter>(); static ResourceFormatters() { // The order of form...
252611bd-80a0-4007-a0c4-1850f56e42b6
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Griddly.Mvc { public class GriddlyContext { public string Name { get; set; } public bool IsDefaultSkipped { get; set; } public bool IsDeepLink { get; set;...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Griddly.Mvc { public class GriddlyContext { public string Name { get; set; } public bool IsDefaultSkipped { get; set; } public bool IsDeepLink { get; set;...
2452bc46-ef8a-47a1-ab3a-53ae0d4ddddb
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SlackAPI { [RequestPath("conversations.open")] public class ConversationsOpenResponse : Response { public string no_op; public string already_open; pu...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SlackAPI { [RequestPath("conversations.open")] public class ConversationsOpenResponse : Response { public string no_op; public string already_open; pu...
dda9f15f-1338-47cd-b687-94ac27863677
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CefSharp.Wpf.Example.Handlers { public class MenuHandler : IMenuHandler { public bool OnBeforeContextMenu(IWebBrowser browser, IContextMenuParams parameters) { Console.WriteLine...
```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; namespace CefSharp.Wpf.Example.Handlers { public class MenuHandler : IMenuHandler { public bool OnBeforeConte...
14af7759-9b94-41a0-8ec2-794880d2575a
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Fatec.Treinamento.Model.DTO { public class DetalhesCurso { public int Id { get; set; } public string Nome { get; set; } public string Assunto { get; set...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Fatec.Treinamento.Model.DTO { public class DetalhesCurso { public int Id { get; set; } public string Nome { get; set; } public string Assunto { get; set...
c0b8c49f-abbf-4576-968a-3c724abc32ee
{ "language": "C#" }
```c# @{ ViewBag.Title = "Contact"; } <h2>@ViewBag.Title.</h2> <h3>@ViewBag.Message</h3> <address> One Microsoft Way<br /> Redmond, WA 98052-6399<br /> <abbr title="Phone">P:</abbr> 425.555.0100 </address> <address> <strong>Support:</strong> <a href="mailto:Support@example.com">Support@wech...
```c# @{ ViewBag.Title = "Contact"; } <h2>@ViewBag.Title.</h2> <h3>@ViewBag.Message</h3> <address> One Microsoft Way<br /> Redmond, WA 98052-6399<br /> <abbr title="Phone">P:</abbr> 425.555.0100 </address> <address> <strong>Support:</strong> <a href="mailto:Support@example.com">Support@wech...
53f323ae-7c38-4618-bb81-a36176a8e99d
{ "language": "C#" }
```c# // // Image.cs // // Author: // Benito Palacios Sánchez (aka pleonex) <benito356@gmail.com> // // Copyright (c) 2015 Benito Palacios Sánchez (c) 2015 // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // t...
```c# // // Image.cs // // Author: // Benito Palacios Sánchez (aka pleonex) <benito356@gmail.com> // // Copyright (c) 2015 Benito Palacios Sánchez (c) 2015 // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // t...
3af90e00-bf71-4241-b77b-561bbc2e15f7
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace AppStudio.Uwp.Html { public sealed class HtmlText : HtmlFragment { public string Content { get; set; } public HtmlText() ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace AppStudio.Uwp.Html { public sealed class HtmlText : HtmlFragment { private string _content; public string Content { ...
8b187646-cd79-4d39-aca0-e564dedcc5cc
{ "language": "C#" }
```c# namespace Halcyon.HAL { public interface IHALModelConfig { string LinkBase { get; } bool ForceHAL { get; } } }``` Allow model config to be modified
```c# namespace Halcyon.HAL { public interface IHALModelConfig { string LinkBase { get; set; } bool ForceHAL { get; set; } } }```
9002a3e9-d66f-4f17-9fc8-342055bed131
{ "language": "C#" }
```c# using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Serialization; namespace LoveSeat { public interface IObjectSerializer<T> { T Deserialize(string json); string Serialize(object obj); } public class ObjectSerializer<T...
```c# using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Serialization; namespace LoveSeat { public interface IObjectSerializer<T> { T Deserialize(string json); string Serialize(object obj); } public class ObjectSerializer<T...
b3dbbba3-5097-436b-8ddb-b59bf9cf3afb
{ "language": "C#" }
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using VasysRomanNumeralsKata; namespace VasysRomanNumeralsKataTest { [TestClass] public class ToRomanNumeralsTest { [TestMethod] public void WhenRomanNumeralExtensionIsPassedTenItReturnsX() { int ten...
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using VasysRomanNumeralsKata; namespace VasysRomanNumeralsKataTest { [TestClass] public class ToRomanNumeralsTest { [TestMethod] public void WhenRomanNumeralExtensionIsPassedTenItReturnsX() { int ten...
1eef1d80-79ae-4d9c-8f25-74dd04402fd7
{ "language": "C#" }
```c# using System.Web.Mvc; using System.Web.Routing; using SFA.DAS.EAS.Account.Api.Client; using SFA.DAS.EAS.Account.Api.Types; namespace SFA.DAS.EmployerFinance.Web.Filters { public class LevyEmployerTypeOnly : ActionFilterAttribute { public override void OnActionExecuting(ActionExecutingContext fil...
```c# using System; using System.Web.Mvc; using System.Web.Routing; using SFA.DAS.EAS.Account.Api.Client; using SFA.DAS.EmployerFinance.Web.Helpers; namespace SFA.DAS.EmployerFinance.Web.Filters { public class LevyEmployerTypeOnly : ActionFilterAttribute { public override void OnActionExecuting(Action...
a138439c-9537-43c9-8ede-0f8745e23d23
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Globalization; using System.Net.Http; using System.Net.Http.Headers; using System.Threading; using System.Threading.Tasks; namespace GogoKit.Http { public class UserAgentHandler : DelegatingHandler { private readonly IReadOnlyList<Prod...
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Net.Http; using System.Net.Http.Headers; using System.Reflection; using System.Threading; using System.Threading.Tasks; namespace GogoKit.Http { public class UserAgentHandler : DelegatingHandle...
4701d1c2-bc27-499e-be2c-9d8301ba3b05
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Reflection; using System.Reflection.Emit; namespace Harmony { public static class Transpilers { public static IEnumerable<CodeInstruction> MethodReplacer(this IEnumerable<CodeInstruction> instructions, MethodBase from, MethodBase to) { foreach (var instruct...
```c# using System.Collections.Generic; using System.Reflection; using System.Reflection.Emit; namespace Harmony { public static class Transpilers { public static IEnumerable<CodeInstruction> MethodReplacer(this IEnumerable<CodeInstruction> instructions, MethodBase from, MethodBase to, OpCode? callOpcode = null) ...
09fcba79-0c0c-4c55-b935-ab88fa88a679
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FluentValidation; using PlanetWars.Shared; namespace PlanetWars.Validators { public class LogonRequestValidator : AbstractValidator<LogonRequest> { public LogonRequestValidat...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FluentValidation; using PlanetWars.Shared; namespace PlanetWars.Validators { public class LogonRequestValidator : AbstractValidator<LogonRequest> { public LogonRequestValidat...
e347d303-0a90-4f36-9aac-b18fdcb86667
{ "language": "C#" }
```c# using System; using engine.core; namespace engine.rules { public class PercentageDiscount : Rule { private readonly string m_ApplicableItemName; private readonly int m_Percentage; public PercentageDiscount(string applicableItemName, int percentage) { m_Applic...
```c# using System; using engine.core; namespace engine.rules { public class PercentageDiscount : Rule { private readonly string m_ApplicableItemName; private readonly double m_Percentage; public PercentageDiscount(string applicableItemName, int percentage) { m_App...
397e5db5-6bf8-4133-ba4b-718e2c591074
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Threading; namespace Ensconce.Console { /// <summary> /// Retry logic applied from this Stack Overflow thread /// http://stackoverflow.com/questions/1563191/c-sharp-cleanest-way-to-write-retry-logic /// </summary> public static cla...
```c# using System; using System.Collections.Generic; using System.Threading; namespace Ensconce.Console { /// <summary> /// Retry logic applied from this Stack Overflow thread /// http://stackoverflow.com/questions/1563191/c-sharp-cleanest-way-to-write-retry-logic /// </summary> public static cla...
edd1fd26-cfa7-464c-a22c-8b395e73a20c
{ "language": "C#" }
```c# using AxoCover.Models.Extensions; using AxoCover.Properties; using System; using System.Threading.Tasks; using System.Windows; using System.Windows.Threading; namespace AxoCover.Models { public abstract class TelemetryManager : ITelemetryManager { protected IEditorContext _editorContext; public boo...
```c# using AxoCover.Models.Extensions; using AxoCover.Properties; using System; using System.Diagnostics; using System.Threading.Tasks; using System.Windows; using System.Windows.Threading; namespace AxoCover.Models { public abstract class TelemetryManager : ITelemetryManager { protected IEditorContext _edit...
80c9dda8-c318-4f91-9f63-a2a47c0b1f63
{ "language": "C#" }
```c# using MultiMiner.Engine; using MultiMiner.Utility.Serialization; using System.Collections.Generic; using System.IO; namespace MultiMiner.Win.Data.Configuration { public class NetworkDevices { public class NetworkDevice { public string IPAddress { get; set; } publi...
```c# using MultiMiner.Engine; using MultiMiner.Utility.Serialization; using System.Collections.Generic; using System.IO; namespace MultiMiner.Win.Data.Configuration { public class NetworkDevices { public class NetworkDevice { public string IPAddress { get; set; } publi...
ac857ad2-7c3b-4282-8ced-5637127b1b36
{ "language": "C#" }
```c# <!DOCTYPE html> <html lang="en-gb"> <head> <title>@SettingHelper.Get("Website Name"): @ViewBag.Title</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" /> <meta name="description" content="@SettingHelper.Get("Description Meta Tag")"> @Re...
```c# <!DOCTYPE html> <html lang="en-gb"> <head> <title>@SettingHelper.Get("Website Name"): @ViewBag.Title</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" /> <meta name="description" content="@SettingHelper.Get("Description Meta Tag")"> @Re...
eb335412-b243-45a8-91b7-6358f6ebbcf7
{ "language": "C#" }
```c# using static MyOwnSearchEngine.HtmlFactory; namespace MyOwnSearchEngine { public class Hex : IProcessor { public string GetResult(Query query) { var integer = query.TryGetStructure<Integer>(); if (integer != null) { return Ge...
```c# using static MyOwnSearchEngine.HtmlFactory; namespace MyOwnSearchEngine { public class Hex : IProcessor { public string GetResult(Query query) { var integer = query.TryGetStructure<Integer>(); if (integer != null) { return Ge...
38ac5339-7d68-48ac-8296-c57ad195aeb9
{ "language": "C#" }
```c# using System; using DesktopWidgets.Classes; namespace DesktopWidgets.Widgets.CountdownClock { public class Settings : WidgetClockSettingsBase { public DateTime EndDateTime { get; set; } = DateTime.Now; } }``` Change "Countdown" widget default "TimeFormat"
```c# using System; using DesktopWidgets.Classes; namespace DesktopWidgets.Widgets.CountdownClock { public class Settings : WidgetClockSettingsBase { public Settings() { TimeFormat = "dd:hh:mm:ss"; } public DateTime EndDateTime { get; set; } = DateTime.Now; } }...
1aaede98-6c8e-43f9-913a-b31a2e1aa373
{ "language": "C#" }
```c# public class Conditional : DecoratorTask { private ConditionalDelegate conditionalDelegate; public Conditional(string name, ConditionalDelegate conditionalDelegate) : base(name) { this.conditionalDelegate = conditionalDelegate; } public override ReturnCode Update() { var...
```c# public class Conditional : Task { private ConditionalDelegate conditionalDelegate; public Conditional(string name, ConditionalDelegate conditionalDelegate) : base(name) { this.conditionalDelegate = conditionalDelegate; } public override ReturnCode Update() { var value = ...
d5fcc9c9-3462-4392-a760-2771e205d390
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; namespace SharpConfig { public interface ITypeStringConverter { string ConvertToString(object value); object ConvertFromString(string value, Type hint); Type ConvertibleType { get; } } public abstract cla...
```c# using System; using System.Collections.Generic; using System.Text; namespace SharpConfig { /// <summary> /// Defines a type-to-string and string-to-type converter /// that is used for the conversion of setting values. /// </summary> public interface ITypeStringConverter { /// <su...
f5cb247d-5df8-4d95-9c80-8972ea4f3152
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; namespace Camunda.Api.Client.Identity { public class IdentityVerifiedUser { /// <summary> /// The id of the user /// </summary> public string AuthenticatedUser; /// <summary> /// Verificati...
```c# using System; using System.Collections.Generic; using System.Text; namespace Camunda.Api.Client.Identity { public class IdentityVerifiedUser { /// <summary> /// The id of the user /// </summary> public string AuthenticatedUser; /// <summary> /// Verificati...
9358d863-0b88-4b58-9592-68592c0d4fc0
{ "language": "C#" }
```c# using dnlib.DotNet; namespace Confuser.Core.Project.Patterns { /// <summary> /// A function that compare the namespace of definition. /// </summary> public class NamespaceFunction : PatternFunction { internal const string FnName = "namespace"; /// <inheritdoc /> public override string Name { g...
```c# using dnlib.DotNet; namespace Confuser.Core.Project.Patterns { /// <summary> /// A function that compare the namespace of definition. /// </summary> public class NamespaceFunction : PatternFunction { internal const string FnName = "namespace"; /// <inheritdoc /> public override string Name { g...
cc5af6e5-f5de-4ffc-a49d-aad8be76d434
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Text.RegularExpressions; using Rant.Stringes; using Rant.Stringes.Tokens; namespace Rant.Vocabulary { internal static class Dic2Lexer { private const RegexOptions DicRegexOptions = RegexOptions.Compiled; private static readonly LexerRules<D...
```c# using System.Collections.Generic; using System.Text.RegularExpressions; using Rant.Stringes; using Rant.Stringes.Tokens; namespace Rant.Vocabulary { internal static class Dic2Lexer { private const RegexOptions DicRegexOptions = RegexOptions.Compiled; private static readonly LexerRules<D...
9f67f922-4410-4df0-9ba4-29bd069ed6db
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using System.Linq; using NUnit.Framework; using osu.Framework.Testing; using osu.Game.Rulesets; using osu.Game.Rulesets.Osu; using...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using System.Linq; using NUnit.Framework; using osu.Framework.Extensions.IEnumerableExtensions; using osu.Framework.Testing; using...
5a29f057-e831-4951-af49-31704ec41227
{ "language": "C#" }
```c# // Copyright (c) Martin Costello, 2015. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.AdventOfCode.Puzzles.Y2016 { using Xunit; /// <summary> /// A class containing tests for the <see cr...
```c# // Copyright (c) Martin Costello, 2015. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.AdventOfCode.Puzzles.Y2016 { using Xunit; /// <summary> /// A class containing tests for the <see cr...
2bbf8130-0e3b-4fa1-ad24-eb80b0f055fb
{ "language": "C#" }
```c# using System; using System.Linq; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Diploms.Core; using System.Collections.Generic; namespace Diploms.DataLayer { public static class DiplomContentSystemExtensions { public static void EnsureSee...
```c# using System; using System.Linq; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Diploms.Core; using System.Collections.Generic; namespace Diploms.DataLayer { public static class DiplomContentSystemExtensions { public static void EnsureSee...
42df65e9-8bf1-42c9-8f6d-a75643754c35
{ "language": "C#" }
```c# #region using System.Linq; using System.Management; using UlteriusServer.TaskServer.Api.Models; using UlteriusServer.TaskServer.Api.Serialization; using vtortola.WebSockets; #endregion namespace UlteriusServer.TaskServer.Api.Controllers.Impl { internal class GpuController : ApiController { pri...
```c# #region using System.Linq; using System.Management; using UlteriusServer.TaskServer.Api.Models; using UlteriusServer.TaskServer.Api.Serialization; using vtortola.WebSockets; #endregion namespace UlteriusServer.TaskServer.Api.Controllers.Impl { internal class GpuController : ApiController { pri...
d44d5e21-a0cd-4b18-a830-c9b8fb16dac6
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; public class PlateformerManager : MonoBehaviour { public float MoveSpeed; public float JumpForce; public float Gravity; public float TimerForDifficulty; float timeUntilEndGame; public static PlateformerManager Instance; void Awake () { PlateformerManager...
```c# using UnityEngine; using System.Collections; public class PlateformerManager : MonoBehaviour { public float MoveSpeed; public float JumpForce; public float Gravity; public float TimerForDifficulty; float timeUntilEndGame; public static PlateformerManager Instance; void Awake () { PlateformerManager...
1a4cc44a-ed4f-4587-a42f-156886c77a01
{ "language": "C#" }
```c# // Copyright 2006 Alp Toker <alp@atoker.com> // This software is made available under the MIT License // See COPYING for details using System.Reflection; using System.Runtime.CompilerServices; //[assembly: AssemblyVersion("0.0.0.*")] [assembly: AssemblyTitle ("NDesk.DBus")] [assembly: AssemblyDescription ("D-Bu...
```c# // Copyright 2006 Alp Toker <alp@atoker.com> // This software is made available under the MIT License // See COPYING for details using System.Reflection; using System.Runtime.CompilerServices; //[assembly: AssemblyVersion("0.0.0.*")] [assembly: AssemblyTitle ("NDesk.DBus")] [assembly: AssemblyDescription ("D-Bu...
370c9c9d-468b-4585-bd70-18e1f2504ab5
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Security.Cryptography; using Jose; namespace Nexmo.Api { internal class Jwt { internal static string CreateToken(string appId, string privateKeyFile) { var tokenData = new byte[64]; var ...
```c# using System; using System.Collections.Generic; using System.Security.Cryptography; using Jose; namespace Nexmo.Api { internal class Jwt { internal static string CreateToken(string appId, string privateKey) { var tokenData = new byte[64]; var rng = RandomNumberGen...
360cfbdd-07fb-4902-9f05-990ab198824c
{ "language": "C#" }
```c# using System; using System.Xml.Linq; namespace Buildalyzer.Construction { public class PackageReference : IPackageReference { public string Name { get; } public string Version { get; } internal PackageReference(XElement packageReferenceElement) { ...
```c# using System; using System.Xml.Linq; namespace Buildalyzer.Construction { public class PackageReference : IPackageReference { public string Name { get; } public string Version { get; } internal PackageReference(XElement packageReferenceElement) { ...
a189cd91-1fa5-4be0-9b78-6b3a61aba3bc
{ "language": "C#" }
```c# using System; namespace GUtils.IO { public static class FileSizes { public const UInt64 B = 1024; public const UInt64 KiB = 1024 * B; public const UInt64 MiB = 1024 * KiB; public const UInt64 GiB = 1024 * MiB; public const UInt64 TiB = 1024 * GiB; public c...
```c# using System; namespace GUtils.IO { public static class FileSizes { public const UInt64 B = 1024; public const UInt64 KiB = 1024 * B; public const UInt64 MiB = 1024 * KiB; public const UInt64 GiB = 1024 * MiB; public const UInt64 TiB = 1024 * GiB; public c...
1908f02f-e061-4d41-b7d3-04782b0100e7
{ "language": "C#" }
```c# namespace Mapsui; public class MRect2 { public MPoint Max { get; } public MPoint Min { get; } public double MaxX => Max.X; public double MaxY => Max.Y; public double MinX => Min.X; public double MinY => Min.Y; public MPoint Centroid => new MPoint(Max.X - Min.X, Max.Y - Min.Y); ...
```c# using System.Collections.Generic; namespace Mapsui; public class MRect2 { public MPoint Max { get; } public MPoint Min { get; } public double MaxX => Max.X; public double MaxY => Max.Y; public double MinX => Min.X; public double MinY => Min.Y; public MPoint Centroid => new MPoint(...
997289a0-66a7-4f44-88d4-17367c910635
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using twitch_tv_viewer.Models; namespace twitch_tv_viewer.Services { public class TwitchChannelService : ITwitchChannelService { public async Task<string>...
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using twitch_tv_viewer.Models; using twitch_tv_viewer.Repositories; namespace twitch_tv_viewer.Services { public class TwitchChannelService : ITwitchChannelService ...
52d1d1e4-8f98-4cd3-a326-1398f594febb
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using BatteryCommander.Web.Models; using MediatR; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; namespace BatteryCommander.Web.Queries { public class GetSUTARequests : IRequest<I...
```c# using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using BatteryCommander.Web.Models; using MediatR; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; namespace BatteryCommander.Web.Queries { public class GetSUTARequests : IRequest<I...
476b13b8-1760-46b7-8f8d-45c29f8d38f6
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using FizzBuzz.ConsoleApp; using TechTalk.SpecFlow; namespace FizzBuzz.Specification.AutomationLayer { [Binding] public class StepDefinitions { private int currentNumber; private string currentResult; [Given...
```c# using System; using FizzBuzz.ConsoleApp; using NFluent; using TechTalk.SpecFlow; namespace FizzBuzz.Specification.AutomationLayer { [Binding] public class StepDefinitions { private int currentNumber; private string currentResult; [Given(@"the current number is '(.*)'")] public void GivenT...
54953ce1-207d-406e-ae84-2f0cc65d8b07
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; [SelectionBase] [DisallowMultipleComponent] public class Unit : MonoBehaviour { [SerializeField] string faction; [SerializeField] int maxHeath = 100; [SerializeField] int health; // This function is called on Component Placement/Replaceme...
```c# using UnityEngine; using System.Collections; [SelectionBase] [DisallowMultipleComponent] public class Unit : MonoBehaviour { [SerializeField] string faction; [SerializeField] int maxHeath = 100; [SerializeField] int health; // This function is called on Component Placement/Replaceme...
ed3df0bd-3021-4c85-8fae-c89e31a92751
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Serilog; namespace Commencement.Jobs.Common.Logging { public static class LogHelper { private static bool _loggingSetup = false; public static void Conf...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Serilog; using Serilog.Exceptions.Destructurers; namespace Commencement.Jobs.Common.Logging { public static class LogHelper { private static bool _loggingSetup = ...
bd7c04b3-7c15-4294-8c28-5818f38de18a
{ "language": "C#" }
```c# using System; using System.ComponentModel; using System.IO; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; namespace Tgstation.Server.Host.IO { /// <summary> /// <see cref="ISymlinkFactory"/> for windows systems /// </summary> sealed class WindowsSymlinkFactory :...
```c# using System; using System.ComponentModel; using System.IO; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; namespace Tgstation.Server.Host.IO { /// <summary> /// <see cref="ISymlinkFactory"/> for windows systems /// </summary> sealed class WindowsSymlinkFactory :...
806e6bcf-bf0c-4164-996b-d81da6f83893
{ "language": "C#" }
```c# using System; using System.Collections.Generic; namespace FisherYates { public static class FisherYates { /* ** http://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle */ static readonly Random Rand = new Random(); public static IEnumerable<T> Shuffle<T>(this IEnumer...
```c# using System; using System.Collections.Generic; using System.Linq; namespace FisherYates { public static class FisherYates { /* ** http://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle */ static readonly Random Rand = new Random(); public static IEnumerable<T> Shuf...
b0edd03e-fe8f-4db8-bae6-0329031aeb66
{ "language": "C#" }
```c# using NUnit.Framework; using System; using Microsoft.Boogie; using Microsoft.Basetypes; using System.IO; using symbooglix; namespace SymbooglixLibTests { [TestFixture()] public class Literal { public Literal() { SymbooglixTest.setupDebug(); } [Test()] ...
```c# using NUnit.Framework; using System; using Microsoft.Boogie; using Microsoft.Basetypes; using System.IO; using symbooglix; namespace ExprSMTLIBTest { [TestFixture()] public class Literal { public Literal() { SymbooglixLibTests.SymbooglixTest.setupDebug(); } ...
1b2d55ce-daa3-40c3-9220-a6c2ab365d5c
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; using Microsoft.Practices.Unity; using UI.AddComponent; namespace UI { /// <summary> /// Interaction logic fo...
```c# using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; using Microsoft.Practices.Unity; using UI.AddComponent; namespace UI { /// <summary> /// Interaction logic fo...
ea976085-48d0-4c65-bbe4-328b94cc3947
{ "language": "C#" }
```c# using EvoSim; using Microsoft.Xna.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace EvoCommand { class Program { static void Main(string[] args) { Simulation sim = new Simulatio...
```c# using EvoSim; using Microsoft.Xna.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace EvoCommand { class Program { static void Main(string[] args) { Simulation sim = new Simulatio...
d8e233fc-5741-40cd-aff8-46de7d9b268d
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace netcore.Controllers { [Route("api/[controller]")] public class ValuesController : Controller { // GET api/values [HttpGet] public IEnumer...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace netcore.Controllers { [Route("api/[controller]")] public class ValuesController : Controller { // GET api/values [HttpGet] public IEnumer...
113d7b5f-e23b-481f-8339-032ae58c09b9
{ "language": "C#" }
```c# using System; using System.Threading.Tasks; using SoraBot.Data.Repositories.Interfaces; using SoraBot.Services.Cache; namespace SoraBot.Services.Guilds { public class PrefixService : IPrefixService { public const string CACHE_PREFIX = "prfx:"; public const short CACHE_TTL_MINS = 60; ...
```c# using System; using System.Threading.Tasks; using SoraBot.Data.Repositories.Interfaces; using SoraBot.Services.Cache; namespace SoraBot.Services.Guilds { public class PrefixService : IPrefixService { public const string CACHE_PREFIX = "prfx:"; // public const short CACHE_TTL_MINS = 60; ...
6032e2c2-51fa-464e-beaf-8692d68ff1f3
{ "language": "C#" }
```c# using System; using System.Diagnostics; using HandlebarsDotNet.Collections; using HandlebarsDotNet.EqualityComparers; using HandlebarsDotNet.Runtime; namespace HandlebarsDotNet { [DebuggerDisplay("undefined")] public class UndefinedBindingResult : IEquatable<UndefinedBindingResult> { private static r...
```c# using System; using System.Diagnostics; using HandlebarsDotNet.Collections; using HandlebarsDotNet.EqualityComparers; using HandlebarsDotNet.Runtime; namespace HandlebarsDotNet { [DebuggerDisplay("undefined")] public class UndefinedBindingResult : IEquatable<UndefinedBindingResult> { private static r...
26b9b3b1-d961-4445-8430-1292881930f1
{ "language": "C#" }
```c# using System.Threading.Tasks; using Basic.Models; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using MR.AspNetCore.Jobs; namespace Basic { public class Program { public static async Task Main(string[] arg...
```c# using System.Threading.Tasks; using Basic.Models; using Microsoft.AspNetCore.Hosting; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using MR.AspNetCore.Jobs; namespace Basic { public class Program { public static async Task Main(stri...
5d7894b7-43de-47c9-9ce9-45a2e9276589
{ "language": "C#" }
```c# using System; using System.Web; using System.Web.Hosting; using System.Configuration; namespace NuGet.Server.Infrastructure { public class PackageUtility { internal static string PackagePhysicalPath; private static string DefaultPackagePhysicalPath = HostingEnvironment.MapPath...
```c# using System; using System.Web; using System.Web.Hosting; using System.Configuration; using System.IO; namespace NuGet.Server.Infrastructure { public class PackageUtility { internal static string PackagePhysicalPath; private static string DefaultPackagePhysicalPath = HostingE...
1b3fd6b5-afbc-41b4-aad1-470de45d7211
{ "language": "C#" }
```c# namespace NTwitch { public interface IEntity { ITwitchClient Client { get; } uint Id { get; } } } ``` Change id type from uint to ulong
```c# namespace NTwitch { public interface IEntity { ITwitchClient Client { get; } ulong Id { get; } } } ```
238e88be-1ffa-414b-926b-76aea2c754e8
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Booma.Proxy { /// <summary> /// The collection of network players that are known about. /// </summary> public interface INetworkPlayerCollection : IEnumerable<INetworkPlayer> { //...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Booma.Proxy { /// <summary> /// The collection of network players that are known about. /// </summary> public interface INetworkPlayerCollection : IEnumerable<INetworkPlayer> { //...
d28c6970-d236-45e9-bbe4-85c182936d8e
{ "language": "C#" }
```c# // Copyright 2016 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
```c# // Copyright 2016 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
73c42592-861b-46c1-bcc4-b43c03d34d3c
{ "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. namespace osu.Game.Rulesets.Osu.Skinning { public enum OsuSkinConfiguration { HitCirclePrefix, HitCircleOverlap, SliderBorderSize, ...
```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. namespace osu.Game.Rulesets.Osu.Skinning { public enum OsuSkinConfiguration { HitCirclePrefix, HitCircleOverlap, SliderBorderSize, ...
d600b088-99c7-4e9b-91f5-40d7c27aad9f
{ "language": "C#" }
```c# // // Query.cs // // Author: // Roman M. Yagodin <roman.yagodin@gmail.com> // // Copyright (c) 2016 Roman M. Yagodin // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, eith...
```c# // // Query.cs // // Author: // Roman M. Yagodin <roman.yagodin@gmail.com> // // Copyright (c) 2016 Roman M. Yagodin // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, eith...
392b2987-cd7c-4ff5-a415-803daf24a836
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Extensions.Color4Extensions; using osu.Framework.Graphics; using os...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Extensions.Color4Extensions; using osu.Framework.Graphics; using os...
68970d1e-ad03-4df5-8831-fd1553c2e45c
{ "language": "C#" }
```c# using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; namespace Tiesmaster.Dcc { public class Startup { public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) ...
```c# using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Logging; namespace Tiesmaster.Dcc { public class Startup { public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { loggerFactory....
4994039d-04f7-47ed-8994-1207b499edf8
{ "language": "C#" }
```c# namespace BmpListener.Bgp { internal class PathAttributeMultiExitDisc : PathAttribute { public int? Metric { get; private set; } public override void Decode(byte[] data, int offset) { //Array.Reverse(data, offset, 0); //Metric = BitConverter.ToInt32(data, ...
```c# using BmpListener.Utilities; namespace BmpListener.Bgp { internal class PathAttributeMultiExitDisc : PathAttribute { public uint Metric { get; private set; } public override void Decode(byte[] data, int offset) { Metric = EndianBitConverter.Big.ToUInt32(data, offset)...
255dae95-1319-4ca9-8ad9-eebf8c9f799e
{ "language": "C#" }
```c# using System; using System.Data; namespace Gigobyte.Daterpillar.Data { public class MySQLSchemaAggregator : SchemaAggregatorBase { public MySQLSchemaAggregator(IDbConnection connection) : base(connection) { } protected override string GetColumnInfoQuery(string tableName)...
```c# using System; using System.Data; namespace Gigobyte.Daterpillar.Data { public class MySQLSchemaAggregator : SchemaAggregatorBase { public MySQLSchemaAggregator(IDbConnection connection) : base(connection) { } protected override string GetColumnInfoQuery(string tableName)...
fd0e67ef-a672-47ad-9f42-3f061cf9b324
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Xml.Serialization; namespace SevenDigital.Api.Schema.Playlists.Response { [Serializable] public class PlaylistLocation : UserBasedUpdatableItem { [XmlAttribute("id")] public string Id { get; set; } [XmlElement("name")] public ...
```c# using System; using System.Collections.Generic; using System.Xml.Serialization; namespace SevenDigital.Api.Schema.Playlists.Response { [Serializable] public class PlaylistLocation : UserBasedUpdatableItem { [XmlAttribute("id")] public string Id { get; set; } [XmlElement("name")] public ...
61c14c90-55db-480e-887c-768dca09f32d
{ "language": "C#" }
```c# using AvalonStudio.MainMenu; using AvalonStudio.Menus; using System; using System.Collections.Generic; using System.Composition; using System.Text; namespace WalletWasabi.Gui.Shell.MainMenu { internal class ToolsMainMenuItems { private IMenuItemFactory _menuItemFactory; [ImportingConstructor] public To...
```c# using AvalonStudio.MainMenu; using AvalonStudio.Menus; using System; using System.Collections.Generic; using System.Composition; using System.Text; namespace WalletWasabi.Gui.Shell.MainMenu { internal class ToolsMainMenuItems { private IMenuItemFactory _menuItemFactory; [ImportingConstructor] public To...
295972c8-4abe-4ab8-bb8f-d00fe9a184be
{ "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 Android.App; using Android.OS; using Android.Content.PM; using Android.Views; namespace SampleGame.Android { [Activity(Label = "SampleGame", ...
```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 Android.App; using Android.OS; using Android.Content.PM; using Android.Views; namespace SampleGame.Android { [Activity(ConfigurationChanges =...
d519223d-06be-4807-a268-1a46f8732060
{ "language": "C#" }
```c# #if !DEBUG using System; using System.IO; #endif using System.Threading; using YGOSharp.OCGWrapper; namespace YGOSharp { public class Program { public static uint ClientVersion = 0x133D; public static void Main(string[] args) { #if !DEBUG try ...
```c# #if !DEBUG using System; using System.IO; #endif using System.Threading; using YGOSharp.OCGWrapper; namespace YGOSharp { public class Program { public static uint ClientVersion = 0x1343; public static void Main(string[] args) { #if !DEBUG try ...
21b3d86e-ee06-437c-ac14-21cf1dc7465b
{ "language": "C#" }
```c# using System; using NUnit.Framework; using RethinkDb; using System.Net; using System.Linq; using System.Threading.Tasks; using RethinkDb.Configuration; namespace RethinkDb.Test { public class TestBase { protected IConnection connection; [TestFixtureSetUp] public virtual void Test...
```c# using System; using NUnit.Framework; using RethinkDb; using System.Net; using System.Linq; using System.Threading.Tasks; using RethinkDb.Configuration; namespace RethinkDb.Test { public class TestBase { protected IConnection connection; [TestFixtureSetUp] public virtual void Test...
22014cb1-e483-4aaf-a368-45560cad787f
{ "language": "C#" }
```c# using Livet; namespace Anne.Foundation.Mvvm { public class ViewModelBase : ViewModel { public ViewModelBase() { DisposableChecker.Add(this); } protected override void Dispose(bool disposing) { DisposableChecker.Remove(this); b...
```c# using Livet; namespace Anne.Foundation.Mvvm { public class ViewModelBase : ViewModel { public ViewModelBase() { DisposableChecker.Add(this); } protected override void Dispose(bool disposing) { if (disposing) DisposableCheck...
91f19da3-fa8c-4868-b39d-5c7aa29ad3ec
{ "language": "C#" }
```c# using System.Linq; using UniRx; using UniRx.Triggers; using UnityEngine; public class WaveformRenderer : MonoBehaviour { [SerializeField] Color color; void Awake() { var model = NotesEditorModel.Instance; var waveData = new float[500000]; var skipSamples = 50; va...
```c# using System.Linq; using UniRx; using UniRx.Triggers; using UnityEngine; public class WaveformRenderer : MonoBehaviour { [SerializeField] Color color; void Awake() { var model = NotesEditorModel.Instance; var waveData = new float[500000]; var skipSamples = 50; va...
8ead474d-d273-4da5-86bb-f74d5fd7c33c
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using ContractsWindow.Unity.Unity; using UnityEngine; using UnityEngine.UI; namespace ContractsWindow.Unity.Interfaces { public interface ICW_Window { bool HideTooltips { get; set; } bool BlizzyAvailable { get; } bool StockToolbar { get; set; } bool R...
```c# using System; using System.Collections.Generic; using ContractsWindow.Unity.Unity; using UnityEngine; using UnityEngine.UI; namespace ContractsWindow.Unity.Interfaces { public interface ICW_Window { bool HideTooltips { get; set; } bool BlizzyAvailable { get; } bool StockToolbar { get; set; } bool R...
08eeb6de-2acd-4232-b513-ed7598a702a8
{ "language": "C#" }
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(GridPositionComponent))] [RequireComponent(typeof(ResourceSink))] public class GridOutput : MonoBehaviour { private ResourceStorage ItemDestination; private ResourceSink ItemSource; // Use this for ...
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(GridPositionComponent))] [RequireComponent(typeof(ResourceSink))] public class GridOutput : MonoBehaviour { private ResourceStorage ItemDestination; private ResourceSink ItemSource; // Use this for ...
dada2a30-a968-4738-bd9d-d3c0d1b88405
{ "language": "C#" }
```c# // Original Work Copyright (c) Ethan Moffat 2014-2016 // This file is subject to the GPL v2 License // For additional details, see the LICENSE file using EndlessClient.GameExecution; using EndlessClient.Rendering.Factories; using EOLib.IO.Repositories; namespace EndlessClient { //todo: move this to a diffe...
```c# // Original Work Copyright (c) Ethan Moffat 2014-2016 // This file is subject to the GPL v2 License // For additional details, see the LICENSE file using EndlessClient.GameExecution; using EndlessClient.Rendering.Factories; using EOLib.IO.Repositories; namespace EndlessClient { //todo: move this to a diffe...
b0fca065-90ec-4838-b325-ae4b88704206
{ "language": "C#" }
```c# //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.34003 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-ge...
```c# //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18051 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-ge...
0a595ea3-57bb-4fce-b5a0-f48ca19f438f
{ "language": "C#" }
```c# //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18033 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-ge...
```c# //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18033 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-ge...
1b94b4e2-58aa-4874-b096-a6751a01ea42
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ItemCollage { public static class Helper { public static IEnumerable<int> Range(int start, int end, int step = 1) { if (start > end && step > 0 || start < end && st...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ItemCollage { public static class Helper { public static IEnumerable<int> Range(int start, int end, int step = 1) { if (start > end && step > 0 || start < end && st...
c19dd808-aaf9-43e3-a9cc-109580e4d255
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle("ChangeLoadingImage_beta")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfigura...
```c# using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle("ChangeLoadingImage1.0")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfigurati...
0b4279ab-0497-49ff-9173-980c6451ba76
{ "language": "C#" }
```c# using System; using System.Runtime.Serialization; [DataContract] class TellEntry { [DataMember] public readonly string From; [DataMember] public readonly string Message; [DataMember] public readonly DateTimeOffset SentDate; public TimeSpan ElapsedTime { get { ...
```c# using System; using System.Runtime.Serialization; [DataContract] class TellEntry { [DataMember] public readonly string From; [DataMember] public readonly string Message; [DataMember] public readonly DateTime SentDateUtc; public TimeSpan ElapsedTime { get { ...
5ab4c3a7-4681-4ded-800a-4e16f3eee7e7
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.CompilerServices; [assembly: AssemblyTitle("Spring.Core Tests")] [assembly: AssemblyDescription("Unit tests for Spring.Core assembly")] ``` Add 'side by side' support in Framework .NET 4.0
```c# using System.Reflection; using System.Runtime.CompilerServices; #if NET_4_0 [assembly: System.Security.SecurityRules(System.Security.SecurityRuleSet.Level1)] #endif [assembly: AssemblyTitle("Spring.Core Tests")] [assembly: AssemblyDescription("Unit tests for Spring.Core assembly")] ```
5815431b-782c-4ba3-9ee4-e2f829ad48eb
{ "language": "C#" }
```c# using System; using System.IO; using Digipost.Signature.Api.Client.Core.Internal.Asice; using Digipost.Signature.Api.Client.Core.Internal.Extensions; namespace Digipost.Signature.Api.Client.Core { public class Document : IAsiceAttachable { public Document(string title, FileType fileType, string ...
```c# using System; using System.IO; using Digipost.Signature.Api.Client.Core.Internal.Asice; using Digipost.Signature.Api.Client.Core.Internal.Extensions; namespace Digipost.Signature.Api.Client.Core { public class Document : IAsiceAttachable { public Document(string title, FileType fileType, string ...
a287feca-313b-4884-b563-42909cd480fc
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using NuGet.Packaging.Core; using NuGet.Versioning; namespace NuKeeper.RepositoryInspection { public class PackageUpdateSet { public PackageUpdateSet(PackageIdentity newPackage, IEnumerable<PackageInProject> currentPackages) ...
```c# using System; using System.Collections.Generic; using System.Linq; using NuGet.Packaging.Core; using NuGet.Versioning; namespace NuKeeper.RepositoryInspection { public class PackageUpdateSet { public PackageUpdateSet(PackageIdentity newPackage, IEnumerable<PackageInProject> currentPackages) ...
05c4dcfe-8983-454b-8ff6-b687c54cb56b
{ "language": "C#" }
```c# using System; using LandauMedia.Telemetry.Internal; namespace LandauMedia.Telemetry { public class Counter : ITelemeter { readonly Lazy<string> _lazyName; Action<Lazy<string>, int> _decrement; Action<Lazy<string>> _decrementByOne; Action<Lazy<string>, int> _icnremnent; ...
```c# using System; using LandauMedia.Telemetry.Internal; namespace LandauMedia.Telemetry { public class Counter : ITelemeter { readonly Lazy<string> _lazyName; Action<Lazy<string>, int> _decrement; Action<Lazy<string>> _decrementByOne; Action<Lazy<string>, int> _icnre...
0732680b-e748-483b-8c30-7efa480f4b68
{ "language": "C#" }
```c# using System; using CSharpTraining; using MonoBrickFirmware.Movement; namespace XUnitSample.Tests { /// <summary> /// Sample test class /// </summary> /// <remarks> /// It was described below URL how to use XUnit /// https://xunit.github.io/docs/comparisons.html /// </remarks> public class MainClassTest...
```c# using System; using CSharpTraining; using MonoBrickFirmware.Movement; namespace XUnitSample.Tests { /// <summary> /// Sample test class /// </summary> /// <remarks> /// It was described below URL how to use XUnit /// https://xunit.github.io/docs/comparisons.html /// </remarks> public class MainClassTest...
e1e033c6-fd28-4a8e-8111-47cfccba83d0
{ "language": "C#" }
```c# #region Copyright (c) 2016 Atif Aziz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
```c# #region Copyright (c) 2016 Atif Aziz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
a02c50a8-9c9e-408d-8bd3-5ad5e1dbbe21
{ "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.Input; using OpenTK; using OpenTK.Input; namespace osu.Game.Screens.Play { public class KeyCounterMouse : KeyCounter { ...
```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.Input; using OpenTK; using OpenTK.Input; namespace osu.Game.Screens.Play { public class KeyCounterMouse : KeyCounter { ...
ad3ffafa-2da9-4c70-989d-f3b0a68724b0
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; using Windows....
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; using Windows....
a454ec46-d6b7-46f4-b9ff-405889d43372
{ "language": "C#" }
```c# using CK.Glouton.Model.Server.Handlers.Implementation; using CK.Glouton.Model.Services; using Microsoft.AspNetCore.Mvc; namespace CK.Glouton.Web.Controllers { [Route( "api/alert" )] public class AlertController : Controller { private readonly IAlertService _alertService; public Aler...
```c# using CK.Glouton.Model.Server.Handlers.Implementation; using CK.Glouton.Model.Services; using Microsoft.AspNetCore.Mvc; namespace CK.Glouton.Web.Controllers { [Route( "api/alert" )] public class AlertController : Controller { private readonly IAlertService _alertService; public Aler...
69a2a968-259d-4a90-9f56-15ccd2ef31ca
{ "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.ComponentModel.Composition; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CommentSelect...
```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.ComponentModel.Composition; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CommentSelect...