doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
ad5ba93a-65f7-443d-8951-9f90bb5850bb
{ "language": "C#" }
```c# using MultiMiner.Engine.Data; using MultiMiner.Utility.Forms; using MultiMiner.Xgminer.Data; using MultiMiner.Win.Extensions; using System; using MultiMiner.Engine; namespace MultiMiner.Win.Forms { public partial class CoinEditForm : MessageBoxFontForm { private readonly CryptoCoin cryptoCoin; ...
```c# using MultiMiner.Engine.Data; using MultiMiner.Utility.Forms; using MultiMiner.Xgminer.Data; using MultiMiner.Win.Extensions; using System; using MultiMiner.Engine; namespace MultiMiner.Win.Forms { public partial class CoinEditForm : MessageBoxFontForm { private readonly CryptoCoin cryptoCoin; ...
eeaf2d8b-23d9-4a4e-94c5-3546e2db9873
{ "language": "C#" }
```c# using System; using wallabag.Common; using wallabag.ViewModel; using Windows.ApplicationModel.DataTransfer; using Windows.System; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Navigation; namespace wallabag.Views { public sealed partial class ItemPage : basicPage { public ItemPage() ...
```c# using System; using wallabag.Common; using wallabag.ViewModel; using Windows.ApplicationModel.DataTransfer; using Windows.System; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Navigation; namespace wallabag.Views { public sealed partial class ItemPage : basicPage { public ItemPage() ...
e9d1974a-71e7-47d1-b01d-5f0990e7ee56
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Diploms.WebUI.Configuration; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.SpaServices.Webpack; using Microsoft.Extensions.Configuration; using Microsoft.Exte...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Diploms.DataLayer; using Diploms.WebUI.Configuration; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.SpaServices.Webpack; using Microsoft.Extensions.Configurat...
bcdfef7d-b7ef-4a56-9696-42506fe74641
{ "language": "C#" }
```c# using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; namespace HelloWorldApp { public class HelloWorldDbContext : DbContext, IHelloWorldDbContext { public HelloWorldDbContext(DbContextOptions<HelloWorldDbContext> options) : base(options) { } public DbSet...
```c# using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; namespace HelloWorldApp { public class HelloWorldDbContext : DbContext, IHelloWorldDbContext { public HelloWorldDbContext() { } public HelloWorldDbContext(DbContextOptions<HelloWorldDbContext> options) ...
46cc2203-fe43-4af6-9cae-3ce83c9b71cf
{ "language": "C#" }
```c# using System.Collections.Generic; using NetTopologySuite.Geometries; using NUnit.Framework; using Mapsui.Nts.Extensions; using System; namespace Mapsui.Nts.Tests; [TestFixture] public class CoordinateExtensionsTests { [Test] public void CoordinateExtensionsShouldThrow() { // Arrange ...
```c# using System.Collections.Generic; using NetTopologySuite.Geometries; using NUnit.Framework; using Mapsui.Nts.Extensions; using System; namespace Mapsui.Nts.Tests; [TestFixture] public class CoordinateExtensionsTests { [Test] public void ToLineStringShouldNotThrowWhenCoordinatesIsEmpty() { /...
e16080bb-e1cb-402b-b46f-a2d046aef28b
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTit...
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTit...
759f4592-8064-44a1-a447-54718a51ec26
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; using System.Text; using System.Threading.Tasks; using Dragon.Mail.Interfaces; namespace Dragon.Mail.Impl { public class DefaultReceiverMapper : IReceiverMapper { public void Map(dynamic receiver, Models.Mai...
```c# using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; using System.Text; using System.Threading.Tasks; using Dragon.Mail.Interfaces; namespace Dragon.Mail.Impl { public class DefaultReceiverMapper : IReceiverMapper { public void Map(dynamic receiver, Models.Mai...
8dbd31d4-88b8-44cd-84c7-dfb4c90485f2
{ "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.Graphics; using osu.Game.Graphics.Containers; using OpenTK; namespace osu.Ga...
```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.Graphics; using osu.Game.Graphics.Containers; using OpenTK; namespace osu.Ga...
89ca77dd-b08c-4444-9998-d9518d1236be
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.WindowsAzure.Storage.Table; using Newtonsoft.Json; namespace SlashTodo.Infrastructure.AzureTables { public abstract class ComplexTableEntity<T> : TableEntity { publ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.WindowsAzure.Storage.Table; using Newtonsoft.Json; namespace SlashTodo.Infrastructure.AzureTables { public abstract class ComplexTableEntity<T> : TableEntity { priv...
8fae3edc-9963-42ca-90a8-c3b99a4de4ad
{ "language": "C#" }
```c# using NUnit.Framework; namespace engine.tests { [TestFixture] public class SupermarketAcceptanceTests { [Test] public void EmptyBasket() { var till = new Till(); var basket = new Basket(); var total = till.CalculatePrice(basket); ...
```c# using NUnit.Framework; namespace engine.tests { [TestFixture] public class SupermarketAcceptanceTests { [Test] public void EmptyBasket() { var till = new Till(); var basket = new Basket(); var total = till.CalculatePrice(basket); ...
1feb7890-8384-4f5b-bdc0-3c73693ef537
{ "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.Rulesets.Objects.Types; namespace osu.Game.Rulesets.Objects.Legacy.Catch { /// <summary> /// Legacy osu!catch Spinner-type, used for parsi...
```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.Rulesets.Objects.Types; namespace osu.Game.Rulesets.Objects.Legacy.Catch { /// <summary> /// Legacy osu!catch Spinner-type, used for parsi...
ad326aa6-7172-4249-ab46-892422219f94
{ "language": "C#" }
```c# using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // http://stackoverflow.com/questions/62353/what-are-the-best-practices-for-using-assembly-attributes [assembly: AssemblyCompany("Mario Guggenberger / protyposis.net")] [assembl...
```c# using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // http://stackoverflow.com/questions/62353/what-are-the-best-practices-for-using-assembly-attributes [assembly: AssemblyCompany("Mario Guggenberger / protyposis.net")] [assembl...
ece143e4-9961-4124-9940-5f05e4fb5042
{ "language": "C#" }
```c# namespace Stripe { using Newtonsoft.Json; public class SourceAuBecsDebit : StripeEntity { [JsonProperty("account_number")] public string AccountNumber { get; set; } [JsonProperty("bsb_number")] public string BsbNumber { get; set; } [JsonProperty("fingerprint"...
```c# namespace Stripe { using System; using Newtonsoft.Json; public class SourceAuBecsDebit : StripeEntity { [JsonProperty("account_number")] public string AccountNumber { get; set; } [JsonProperty("bsb_number")] public string BsbNumber { get; set; } [JsonProp...
3f51a798-c7cc-415b-ac0d-6d1e2ce94d02
{ "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; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis { /// <summary> /// Specifies t...
```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; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis { /// <summary> /// Specifies t...
99d844e5-9d16-4a6c-bba9-4e40f09c4c24
{ "language": "C#" }
```c# #region Copyright 2014 Exceptionless // This program is free software: you can redistribute it and/or modify it // under the terms of the GNU Affero General Public License as published // by the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // ht...
```c# #region Copyright 2014 Exceptionless // This program is free software: you can redistribute it and/or modify it // under the terms of the GNU Affero General Public License as published // by the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // ht...
5aa10108-8773-41ba-99f4-7d3795f2fa01
{ "language": "C#" }
```c# using System; using Nybus.Configuration; using Nybus.Logging; namespace Nybus.MassTransit { public class MassTransitOptions { public IQueueStrategy CommandQueueStrategy { get; set; } = new AutoGeneratedNameQueueStrategy(); public IErrorStrategy CommandErrorStrategy { get; set; } = new R...
```c# using System; using Nybus.Configuration; using Nybus.Logging; namespace Nybus.MassTransit { public class MassTransitOptions { public IQueueStrategy CommandQueueStrategy { get; set; } = new AutoGeneratedNameQueueStrategy(); public IErrorStrategy CommandErrorStrategy { get; set; } = new R...
27e3f4b3-fda1-4f1b-9faf-34c69292dc76
{ "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 osuTK.Graphics; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Shapes; using osu.Framework.Extensions.Co...
```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 osuTK.Graphics; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Shapes; using osu.Framework.Extensions.Co...
8bbc4300-cbe8-4492-a24c-9c96e5c4c435
{ "language": "C#" }
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using UnityEngine; namespace Microsoft.MixedReality.Toolkit.Utilities { /// <summary> /// A helper class to provide hooks into the Unity camera exclusive Lifecycle events /// </summary> ...
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using UnityEngine; namespace Microsoft.MixedReality.Toolkit.Utilities { /// <summary> /// A helper class to provide hooks into the Unity camera exclusive Lifecycle events /// </summary> ...
f23ee31b-50c5-49a9-8299-9e14cb8a885e
{ "language": "C#" }
```c# using System; class PhotoGallery { static void Main() { } }``` Add problem 4. Photo Gallery
```c# using System; class PhotoGallery { static void Main() { int photosNumber = int.Parse(Console.ReadLine()); int day = int.Parse(Console.ReadLine()); int month = int.Parse(Console.ReadLine()); int year = int.Parse(Console.ReadLine()); int hours = int.Parse(Console.Re...
6e99f493-358a-4d62-9c7e-a1a98bb88e47
{ "language": "C#" }
```c# @model StaticWidget <div class="rich-text @Model.HtmlClasses" @Html.DxaEntityMarkup()> @if (Model.TridionDocsItems != null) { foreach (TridionDocsItem item in Model.TridionDocsItems) { if (Model.DisplayContentAs.ToLower() == "embedded content") { ...
```c# @model StaticWidget <div class="rich-text @Model.HtmlClasses" @Html.DxaEntityMarkup()> @if (Model.TridionDocsItems != null && Model.TridionDocsItems.Any()) { foreach (TridionDocsItem item in Model.TridionDocsItems) { if (Model.DisplayContentAs.ToLower() == "embedded content"...
e75bf0fb-f873-44e1-b7f9-c30a06e3c38e
{ "language": "C#" }
```c# using DemoDataAccess; using DemoDataAccess.Entity; using NHibernate.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DemoQueryUtil { class Program { static void Main(string[] args) { // Works, but Area is null var cou...
```c# using DemoDataAccess; using DemoDataAccess.Entity; using NHibernate.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DemoQueryUtil { class Program { static void Main(string[] args) { FluentConfiguration.Configure(); ...
91d4d76d-340c-40ec-8cdb-df36daa1b316
{ "language": "C#" }
```c# using System; using System.Diagnostics.CodeAnalysis; using System.Windows; using Microsoft.VisualStudio.TestTools.UnitTesting; using ThScoreFileConverter.Actions; using ThScoreFileConverterTests.Models; namespace ThScoreFileConverterTests.Actions { [TestClass] public class Win32WindowTests { ...
```c# using System; using System.Diagnostics.CodeAnalysis; using System.Windows; using System.Windows.Interop; using Microsoft.VisualStudio.TestTools.UnitTesting; using ThScoreFileConverter.Actions; using ThScoreFileConverterTests.Models; namespace ThScoreFileConverterTests.Actions { [TestClass] public class ...
d8ea495a-4f67-4877-8501-29e0b0046e73
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.Infrastructure.Annotations; using System.Data.Entity.ModelConfiguration.Configuration; using System.Linq; namespace TOTD.EntityFramework { public static class ConfigurationExtensions ...
```c# using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.Infrastructure.Annotations; using System.Data.Entity.ModelConfiguration.Configuration; using System.Linq; namespace TOTD.EntityFramework { public static class ConfigurationExtensions ...
50864b2e-6a4b-47dc-8533-ff3025c554fa
{ "language": "C#" }
```c# using Newtonsoft.Json; using System.Collections.Generic; namespace Alexa.NET.Response { public class ResponseBody { [JsonProperty("outputSpeech", NullValueHandling = NullValueHandling.Ignore)] public IOutputSpeech OutputSpeech { get; set; } [JsonProperty("card", NullValueHandlin...
```c# using Newtonsoft.Json; using System.Collections.Generic; namespace Alexa.NET.Response { public class ResponseBody { [JsonProperty("outputSpeech", NullValueHandling = NullValueHandling.Ignore)] public IOutputSpeech OutputSpeech { get; set; } [JsonProperty("card", NullValueHandlin...
f10478d6-3629-451d-911c-0f6e1f0897b0
{ "language": "C#" }
```c# // NetGameExtension.cs // <copyright file="NetGameExtension.cs"> This code is protected under the MIT License. </copyright> using Tron; namespace Networking.Extensions { /// <summary> /// An extension class for the game containing useful tools for a networked game of tron. /// </summary> public ...
```c# // NetGameExtension.cs // <copyright file="NetGameExtension.cs"> This code is protected under the MIT License. </copyright> using Tron; namespace Networking.Extensions { /// <summary> /// An extension class for the game containing useful tools for a networked game of tron. /// </summary> public ...
4bf59456-0272-463f-89f4-95d635bac5c8
{ "language": "C#" }
```c# using System.Web.Http.ExceptionHandling; using Umbraco.Core; using Umbraco.Core.Composing; using Umbraco.Core.Logging; namespace Umbraco.Web.WebApi { /// <summary> /// Used to log unhandled exceptions in webapi controllers /// </summary> public class UnhandledExceptionLogger : ExceptionLogger ...
```c# using System.Web.Http.ExceptionHandling; using Umbraco.Core; using Umbraco.Core.Composing; using Umbraco.Core.Logging; namespace Umbraco.Web.WebApi { /// <summary> /// Used to log unhandled exceptions in webapi controllers /// </summary> public class UnhandledExceptionLogger : ExceptionLogger ...
ad8f77de-515e-4471-8462-585588fab97f
{ "language": "C#" }
```c# using System; using dotless.Core.Parser; using dotless.Core.Parser.Infrastructure; namespace dotless.Test.Specs.Compression { using NUnit.Framework; public class ColorsFixture : CompressedSpecFixtureBase { [Test] public void Colors() { AssertExpression("#fea", "#f...
```c# using System; using dotless.Core.Parser; using dotless.Core.Parser.Infrastructure; namespace dotless.Test.Specs.Compression { using NUnit.Framework; public class ColorsFixture : CompressedSpecFixtureBase { [Test] public void Colors() { AssertExpression("#fea", "#f...
3219966c-c7e5-469b-9eef-c84dc467d18e
{ "language": "C#" }
```c# // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Linq; using System.Collections.Concurrent; using Microsoft.CodeAnalysis.Options; u...
```c# // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Linq; using System.Collections.Concurrent; using Microsoft.CodeAnalysis.Options; u...
fe6f699f-58e2-4c59-a8cb-7324ce022582
{ "language": "C#" }
```c# namespace Winium.Desktop.Driver.CommandExecutors { #region using using Winium.StoreApps.Common; #endregion internal class IsComboBoxExpandedExecutor : CommandExecutorBase { #region Methods protected override string DoImpl() { var registeredKey = this.Ex...
```c# namespace Winium.Desktop.Driver.CommandExecutors { #region using using Winium.Cruciatus.Extensions; using Winium.StoreApps.Common; #endregion internal class IsComboBoxExpandedExecutor : CommandExecutorBase { #region Methods protected override string DoImpl() { ...
7d2b5bea-a60c-44a5-9e41-1cbc5afe30ee
{ "language": "C#" }
```c# namespace Moya.Runner.Console { using System; using Extensions; class Program { private static void Main(string[] args) { try { new Startup().Run(args); } catch(Exception e) { Console.Erro...
```c# namespace Moya.Runner.Console { using System; using Extensions; class Program { private static void Main(string[] args) { try { new Startup.Startup().Run(args); } catch(Exception e) { Cons...
67945b1e-0dcd-4d02-8f89-30b292a7f504
{ "language": "C#" }
```c# // SSH Handler // // Douglas Thrift // // ssh-handler using System.Diagnostics; using System.Text; public class SshHandler { public static void Main(string[] args) { foreach (string arg in args) Ssh(arg); } private static void Ssh(string arg) { System.Uri uri = ...
```c# // SSH Handler // // Douglas Thrift // // ssh-handler.cs /* Copyright 2013 Douglas Thrift * * 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/lice...
f5109af4-6a00-4b0f-a6d1-35f11ba85354
{ "language": "C#" }
```c# using Microsoft.AspNet.Http; using Microsoft.AspNet.Http.Features; namespace Glimpse.Server.Web { public class RequestAuthorizerAllowRemote : IRequestAuthorizer { private readonly IAllowRemoteProvider _allowRemoteProvider; public RequestAuthorizerAllowRemote(IAllowRemoteProvider allowRe...
```c# using Microsoft.AspNet.Http; using Microsoft.AspNet.Http.Features; namespace Glimpse.Server.Web { public class RequestAuthorizerAllowRemote : IRequestAuthorizer { private readonly IAllowRemoteProvider _allowRemoteProvider; public RequestAuthorizerAllowRemote(IAllowRemoteProvider allowRe...
a8386076-06ad-45f3-8b7f-0a6648bc4b59
{ "language": "C#" }
```c# using System.Linq; using ZBuildLights.Core.Models; namespace ZBuildLights.Core.Services { public class UnassignedLightService : IUnassignedLightService { private readonly IZWaveNetwork _network; public UnassignedLightService(IZWaveNetwork network) { _network = networ...
```c# using System.Linq; using ZBuildLights.Core.Models; namespace ZBuildLights.Core.Services { public class UnassignedLightService : IUnassignedLightService { private readonly IZWaveNetwork _network; public UnassignedLightService(IZWaveNetwork network) { _network = networ...
98e0adf3-3675-4400-9e3c-047f4ed770e8
{ "language": "C#" }
```c# namespace ValveResourceFormat { public enum VTexFormat { #pragma warning disable 1591 UNKNOWN = 0, DXT1 = 1, DXT5 = 2, I8 = 3, // TODO: Not used in dota RGBA8888 = 4, R16 = 5, // TODO: Not used in dota RG1616 = 6, // TODO: Not used in dota R...
```c# using System; namespace ValveResourceFormat { public enum VTexFormat { #pragma warning disable 1591 UNKNOWN = 0, DXT1 = 1, DXT5 = 2, I8 = 3, // TODO: Not used in dota RGBA8888 = 4, R16 = 5, // TODO: Not used in dota RG1616 = 6, // TODO: Not used in ...
78c8d319-0a7e-4577-bc2b-ced2b8292f12
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTit...
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTit...
5fa53e0d-bb0f-469d-8717-6e69d9803c30
{ "language": "C#" }
```c# using Lidgren.Network; using LmpCommon.Message.Types; namespace LmpCommon.Message.Data.Vessel { public class VesselProtoMsgData : VesselBaseMsgData { internal VesselProtoMsgData() { } public int NumBytes; public byte[] Data = new byte[0]; public override VesselMessageTy...
```c# using Lidgren.Network; using LmpCommon.Message.Types; namespace LmpCommon.Message.Data.Vessel { public class VesselProtoMsgData : VesselBaseMsgData { internal VesselProtoMsgData() { } public override bool CompressCondition => true; public int NumBytes; public byte[] Data...
5e631b59-bc81-43bc-ba93-528cb7ecb8a6
{ "language": "C#" }
```c# using System; namespace Xamarin.Forms.Xaml { [ContentProperty("TypeName")] public class TypeExtension : IMarkupExtension<Type> { public string TypeName { get; set; } public Type ProvideValue(IServiceProvider serviceProvider) { if (serviceProvider == null) throw new ArgumentNullException("service...
```c# using System; namespace Xamarin.Forms.Xaml { [ContentProperty("TypeName")] public class TypeExtension : IMarkupExtension<Type> { public string TypeName { get; set; } public Type ProvideValue(IServiceProvider serviceProvider) { if (serviceProvider == null) throw new ArgumentNullException("service...
04277b34-5c82-4fd6-9845-6e3bda861d70
{ "language": "C#" }
```c# using System; using NUnit.Framework; using Toggl.Phoebe.Data.NewModels; namespace Toggl.Phoebe.Tests.Data.Models { [TestFixture] public class ProjectModelTest : ModelTest<ProjectModel> { } } ``` Test project model color enforcing.
```c# using System; using NUnit.Framework; using Toggl.Phoebe.Data.DataObjects; using Toggl.Phoebe.Data.NewModels; namespace Toggl.Phoebe.Tests.Data.Models { [TestFixture] public class ProjectModelTest : ModelTest<ProjectModel> { [Test] public void TestColorEnforcing () { ...
4fb59654-586c-4e53-b5b8-5b2f91c6cc7a
{ "language": "C#" }
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="BenchmarkBase.cs" company="Catel development team"> // Copyright (c) 2008 - 2017 Catel development team. All rights reserved. // </copyright> // --------------------------...
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="BenchmarkBase.cs" company="Catel development team"> // Copyright (c) 2008 - 2017 Catel development team. All rights reserved. // </copyright> // --------------------------...
fff7a42f-4fd5-4f93-b454-11464468aaf3
{ "language": "C#" }
```c# using AvalonStudio.Extensibility; using ReactiveUI; using Splat; using System; using System.Linq; using System.Reactive; using System.Reactive.Linq; using System.Threading; using WalletWasabi.Gui.Helpers; using WalletWasabi.Logging; using WalletWasabi.Wallets; namespace WalletWasabi.Gui.Controls.WalletExplorer {...
```c# using AvalonStudio.Extensibility; using ReactiveUI; using Splat; using System; using System.Linq; using System.Reactive; using System.Reactive.Linq; using System.Threading; using WalletWasabi.Gui.Helpers; using WalletWasabi.Logging; using WalletWasabi.Wallets; namespace WalletWasabi.Gui.Controls.WalletExplorer {...
9ebce2b4-686d-47e5-97ee-e57c2d6311c6
{ "language": "C#" }
```c# using System; using System.IO; using Wasm.Binary; namespace Wasm.Dump { public static class Program { public static int Main(string[] args) { if (args.Length != 1) { Console.Error.WriteLine("usage: wasm-dump file.wasm"); return 1; ...
```c# using System; using System.IO; using Wasm.Binary; namespace Wasm.Dump { public static class Program { private static MemoryStream ReadStdinToEnd() { // Based on Marc Gravell's answer to this StackOverflow question: // https://stackoverflow.com/questions/1562417/re...
6040734c-f242-46dd-a771-431462ba55e0
{ "language": "C#" }
```c# using DemoParser_Core; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DemoParser_Console { class Program { static void Main(string[] args) { Console.WriteLine(DateTime.Now); Stream inputStream = new FileS...
```c# using DemoParser_Core; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DemoParser_Console { class Program { static void Main(string[] args) { DateTime begin; DateTime end; Stream inputStream = new F...
d2010b90-90a2-45dd-bb7f-4fd9547c7412
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web.Mvc; using NUnit.Framework; using Oogstplanner.Services; using Oogstplanner.Controllers; using Oogstplanner.Models; using Oogstplanner.Repositories; namespace Oogstplanner.Tests { [TestFixture] public class CropControll...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web.Mvc; using NUnit.Framework; using Oogstplanner.Services; using Oogstplanner.Controllers; using Oogstplanner.Models; using Oogstplanner.Repositories; namespace Oogstplanner.Tests { [TestFixture] public class CropControll...
2d3ffcb7-42b9-46a4-9534-80fbdc3601c7
{ "language": "C#" }
```c# @{ ViewBag.Title = "Registreer je vandaag bij de Oogstplanner"; } <div class="flowtype-area"> <!-- START RESPONSIVE RECTANGLE LAYOUT --> <!-- Top bar --> <div id="top"> </div> <!-- Fixed main screen --> <div id="login" class="bg imglogin"> <div class="row"> <div class="mainbox col-md-12 col-sm-12 col-...
```c# @{ ViewBag.Title = "Registreer je vandaag bij de Oogstplanner"; } <div class="flowtype-area"> <!-- START RESPONSIVE RECTANGLE LAYOUT --> <!-- Top bar --> <div id="top"> </div> <!-- Fixed main screen --> <div id="login" class="bg imglogin"> <div class="row"> <div class="mainbox col-md-12 col-sm-12 col-...
7032ace1-bf88-469d-a0c6-3fe116b990a6
{ "language": "C#" }
```c# using System.Text; namespace SoxSharp { /// <summary> /// Format options to be applied to the output file. For any property not set here, SoX will infer the value from the input file. /// </summary> public class OutputFormatOptions : FormatOptions { /// <summary> /// Compression factor for ou...
```c# using System.Text; namespace SoxSharp { /// <summary> /// Format options to be applied to the output file. For any property not set here, SoX will infer the value from the input file. /// </summary> public class OutputFormatOptions : FormatOptions { /// <summary> /// Compression factor for ou...
4300984d-08d9-4bfb-b5a0-5982470670a6
{ "language": "C#" }
```c# using sdmap.Runtime; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Xunit; namespace sdmap.test.IntegratedTest { public class NamespaceTest { [Fact] public void CanReferenceOtherInOneNamespace() { var code = "nam...
```c# using sdmap.Runtime; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Xunit; namespace sdmap.test.IntegratedTest { public class NamespaceTest { [Fact] public void CanReferenceOtherInOneNamespace() { var code = "nam...
9d7bd4a2-9065-40a9-bcb5-6d147524834b
{ "language": "C#" }
```c# namespace JAGBE.GB.Computation { internal sealed class Apu { private byte NR50; private byte NR51; private byte NR52; internal void Clear() { this.NR50 = 0; this.NR51 = 0; } internal byte GetRegister(byte num) { ...
```c# using System; namespace JAGBE.GB.Computation { internal sealed class Apu { private byte NR50; private byte NR51; private byte NR52; internal void Clear() { this.NR50 = 0; this.NR51 = 0; } internal byte GetRegister(byte num...
17747a88-22e5-46ff-b4c4-fb40eceaf022
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; using MonoTorrent.Client; using MonoTorrent.Common; namespace MonoTorrent.Tracker { public class RequestMonitor { #region Member Variables private SpeedMonitor announces; private SpeedMonitor scrapes;...
```c# using System; using System.Collections.Generic; using System.Text; using MonoTorrent.Client; using MonoTorrent.Common; namespace MonoTorrent.Tracker { public class RequestMonitor { #region Member Variables private SpeedMonitor announces; private SpeedMonitor scrapes;...
583abe53-5b60-426e-9245-0246535fbff3
{ "language": "C#" }
```c# using NUnit.Framework; using TeamCityBuildChanges.Output; using TeamCityBuildChanges.Testing; namespace TeamCityBuildChanges.Tests { [TestFixture] public class HtmlOutputTests { [Test] public void CanRenderSimpleTemplate() { var result = new RazorOutputRenderer(@"...
```c# using System.Globalization; using NUnit.Framework; using TeamCityBuildChanges.Output; using TeamCityBuildChanges.Testing; namespace TeamCityBuildChanges.Tests { [TestFixture] public class HtmlOutputTests { [Test] public void CanRenderSimpleTemplate() { var result ...
92ebf802-2b10-474e-baae-abaa5e51543e
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTit...
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTit...
a7c0b16f-17a3-47eb-b3d9-d2ffb49d77be
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq.Expressions; namespace LiteNetLibManager.Utils { public class Reflection { private static readonly Dictionary<string, ObjectActivator> objectActivators = new Dictionary<string, ObjectActivator>(); private static string tem...
```c# using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Reflection.Emit; namespace LiteNetLibManager.Utils { public class Reflection { private static readonly Dictionary<string, Func<object>> expressionActivators = new Dictionary<string, Func<object>>(); ...
bc93241d-3a5a-40c8-8b19-6883e35c7950
{ "language": "C#" }
```c# using System.Net.Sockets; using System.Threading.Tasks; using Version = Msg.Core.Versioning.Version; using System.Linq; namespace Msg.Infrastructure.Server { class ClientRequestProcessor { readonly AmqpSettings settings; public ClientRequestProcessor (AmqpSettings settings) { this.settings = settings...
```c# using System.Net.Sockets; using System.Threading.Tasks; using Version = Msg.Core.Versioning.Version; using System.Linq; namespace Msg.Infrastructure.Server { class ClientRequestProcessor { readonly AmqpSettings settings; public ClientRequestProcessor (AmqpSettings settings) { this.settings = settings...
13a21d5a-6a2e-4da3-92d4-6d0a46a3545a
{ "language": "C#" }
```c# using System.Collections.Generic; using Mindscape.Raygun4Net.Messages; namespace Mindscape.Raygun4Net.Storage { public interface IRaygunOfflineStorage { /// <summary> /// Persist the <paramref name="message"/>> to local storage. /// </summary> /// <param name="message">The error report to sto...
```c# using System.Collections.Generic; using Mindscape.Raygun4Net.Messages; namespace Mindscape.Raygun4Net.Storage { public interface IRaygunOfflineStorage { /// <summary> /// Persist the <paramref name="message"/>> to local storage. /// </summary> /// <param name="message">The serialized error re...
116fbb89-ee2b-43c4-b748-be92e33849cb
{ "language": "C#" }
```c#  namespace LinqToTTreeInterfacesLib { /// <summary> /// Interface for implementing an object that will contain a complete single query /// </summary> public interface IGeneratedCode { /// <summary> /// Add a new statement to the current spot where the "writing" currso...
```c#  namespace LinqToTTreeInterfacesLib { /// <summary> /// Interface for implementing an object that will contain a complete single query /// </summary> public interface IGeneratedCode { /// <summary> /// Add a new statement to the current spot where the "writing" currso...
9de44f5d-fbd4-4b57-aca3-ed05ee977c0f
{ "language": "C#" }
```c# using UnityEngine; using UnityEditor; using System.IO; using System.Collections; namespace Fungus { public class FlowchartMenuItems { [MenuItem("Tools/Fungus/Create/Flowchart", false, 0)] static void CreateFlowchart() { GameObject go = SpawnPrefab("Flowchart"); go.transform.position = Vector3.zer...
```c# using UnityEngine; using UnityEditor; using System.IO; using System.Collections; namespace Fungus { public class FlowchartMenuItems { [MenuItem("Tools/Fungus/Create/Flowchart", false, 0)] static void CreateFlowchart() { GameObject go = SpawnPrefab("Flowchart"); go.transform.position = Vector3.zer...
450b0187-e14d-4b12-ad06-5cfe7a7e7e91
{ "language": "C#" }
```c# using System; class Solution { static void Main() { int b; double c, s = 0.0; string line; while ((line = Console.ReadLine()) != null) { string[] numbers = line.Split(' '); b = Convert.ToInt16(numbers[1]); c = Convert.ToDouble(numbers[2]); ...
```c# using System; class Solution { static void Main() { int b; double c, s = 0.0; string line; string[] numbers; while ((line = Console.ReadLine()) != null) { numbers = line.Split(' '); b = Convert.ToInt16(numbers[1]); c = Convert.ToDou...
4857f3f3-c2b1-4662-bbff-ecabde027bf7
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Markup; [assembly: AssemblyTitle("GitHub.UI.Recative")] [assembly: AssemblyDescription("GitHub flavored WPF styles and controls that require Rx and RxUI")] [assembly: Guid("885a491c-1d13-49e7-baa6-d61f424be...
```c# using System.Reflection; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Markup; [assembly: AssemblyTitle("GitHub.UI.Reactive")] [assembly: AssemblyDescription("GitHub flavored WPF styles and controls that require Rx and RxUI")] [assembly: Guid("885a491c-1d13-49e7-baa6-d61f424be...
f88fdd9a-b22e-4bd9-8b39-2bd4081ecd50
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Neblina.Api.Core; using Neblina.Api.Models.TransferViewModels; using Neblina.Api.Core.Models; namespace Neblina.Api.Controllers { [Route("transfers")] public...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Neblina.Api.Core; using Neblina.Api.Models.TransferViewModels; using Neblina.Api.Core.Models; namespace Neblina.Api.Controllers { [Route("transfers")] public...
0f8e5785-ef70-4aea-92c7-3370beedf231
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Grabacr07.KanColleWrapper; using Grabacr07.KanColleWrapper.Models; using Livet; using Livet.EventListeners; namespace Grabacr07.KanColleViewer.ViewModels { public class AdmiralViewModel : V...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Grabacr07.KanColleWrapper; using Grabacr07.KanColleWrapper.Models; using Livet; using Livet.EventListeners; namespace Grabacr07.KanColleViewer.ViewModels { public class AdmiralV...
90c69434-8129-4edf-b572-3edefabb4584
{ "language": "C#" }
```c# namespace TraktApiSharp.Objects.Basic { using System.Collections.Generic; /// <summary> /// Represents results of requests supporting pagination.<para /> /// Contains the current page, the item limitation per page, the total page count, the total item count /// and can also contain the total...
```c# namespace TraktApiSharp.Objects.Basic { using System.Collections; using System.Collections.Generic; /// <summary> /// Represents results of requests supporting pagination.<para /> /// Contains the current page, the item limitation per page, the total page count, the total item count /// ...
9e5507ac-cfbc-4a09-b94f-0e217aacf927
{ "language": "C#" }
```c# @model PhotoLife.ViewModels.News.NewsDetailsViewModel @{ ViewBag.Title = "NewsDetails"; Layout = "~/Views/Shared/_Layout.cshtml"; } <h2>NewsDetails</h2> <div> <h4>NewsDetailsViewModel</h4> <hr /> <dl class="dl-horizontal"> <dt> @Html.DisplayNameFor(model => model.Title)...
```c# @model PhotoLife.ViewModels.News.NewsDetailsViewModel @{ ViewBag.Title = "NewsDetails"; Layout = "~/Views/Shared/_Layout.cshtml"; } <h2>NewsDetails</h2> <div> <h4>NewsDetailsViewModel</h4> <hr /> <dl class="dl-horizontal"> <dt> @Html.DisplayNameFor(model => model.Title)...
e8a55caf-484f-4b40-8801-e568f5429ff1
{ "language": "C#" }
```c# using System; using System.Diagnostics; using System.Threading; namespace RedGate.AppHost.Server { internal class StartProcessWithTimeout : IProcessStartOperation { private readonly IProcessStartOperation m_WrappedProcessStarter; private static readonly TimeSpan s_TimeOut = Ti...
```c# using System; using System.Diagnostics; using System.Threading; namespace RedGate.AppHost.Server { internal class StartProcessWithTimeout : IProcessStartOperation { private readonly IProcessStartOperation m_WrappedProcessStarter; private static readonly TimeSpan s_TimeOut = Ti...
e7ed40a1-461f-4fc3-987f-954505dcbebb
{ "language": "C#" }
```c# using System; using Ninject; using Ninject.Parameters; namespace Prism.Ninject { public static class NinjectExtensions { public static bool IsRegistered<TService>(this IKernel kernel) { return kernel.IsRegistered(typeof(TService)); } public static bool IsRegi...
```c# using System; using Ninject; using Ninject.Modules; using Ninject.Parameters; namespace Prism.Ninject { public static class NinjectExtensions { public static bool IsRegistered<TService>(this IKernel kernel) { return kernel.IsRegistered(typeof(TService)); } pu...
60dbe2a6-a754-4078-b8e9-6182c47e32c9
{ "language": "C#" }
```c# namespace ImGuiNET { public unsafe delegate int ImGuiInputTextCallback(ImGuiInputTextCallbackData* data); } ``` Change calling convention of ImGuiInputTextCallback
```c# using System.Runtime.InteropServices; namespace ImGuiNET { [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate int ImGuiInputTextCallback(ImGuiInputTextCallbackData* data); } ```
cb3b23a3-ab3d-49a6-aac7-fbe741263ff1
{ "language": "C#" }
```c# <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Test relying party</title> </head> <body> <div> @if (User.Identity.IsAuthenticated) { <span><a href="https://localhost:44334/...
```c# <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Test relying party</title> </head> <body> <div> @if (User.Identity.IsAuthenticated) { <span><a href="https://localhost:44334/...
7ab13738-b8fd-4956-b43d-7c2dd941362a
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTit...
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTit...
ea733e27-f482-4420-a2e6-a94191113f91
{ "language": "C#" }
```c# using System.Text; namespace Miningcore.Blockchain.Ergo; public partial class ErgoClient { public Dictionary<string, string> RequestHeaders { get; } = new(); private Task PrepareRequestAsync(HttpClient client, HttpRequestMessage request, StringBuilder url, CancellationToken ct) { foreach(va...
```c# using System.Text; namespace Miningcore.Blockchain.Ergo; public partial class ErgoClient { public Dictionary<string, string> RequestHeaders { get; } = new(); private Task PrepareRequestAsync(HttpClient client, HttpRequestMessage request, StringBuilder url, CancellationToken ct) { foreach(va...
b28b4940-ccea-4035-b313-57ea8ed714d1
{ "language": "C#" }
```c# // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using Microsoft.AspNetCore.Razor.Evolution.Legacy; namespace Microsoft.AspNetCore.Razor.Evolutio...
```c# // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using Microsoft.AspNetCore.Razor.Evolution.Legacy; namespace Microsoft.AspNetCore.Razor.Evolutio...
549a7ed8-812e-4ed2-a0b2-5ae02e29c281
{ "language": "C#" }
```c# using OmniSharp.Services; using TestUtility; using Xunit; using Xunit.Abstractions; namespace OmniSharp.Tests { public class DotNetCliServiceFacts : AbstractTestFixture { public DotNetCliServiceFacts(ITestOutputHelper output) : base(output) { } [Fact] ...
```c# using OmniSharp.Services; using TestUtility; using Xunit; using Xunit.Abstractions; namespace OmniSharp.Tests { public class DotNetCliServiceFacts : AbstractTestFixture { public DotNetCliServiceFacts(ITestOutputHelper output) : base(output) { } [Fact] ...
25989652-1082-4dec-9e8d-5d4eb4361cc5
{ "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; namespace Microsoft.AspNetCore.Mvc.ApplicationParts { /// <summary> /// A provider for a given <typepar...
```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; namespace Microsoft.AspNetCore.Mvc.ApplicationParts { /// <summary> /// A provider for a given <typepar...
f52347b0-d27c-464b-9d9e-623d3617f0de
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Game.Graphics.UserInterface; using osu.Game.Tournament.IO; namespace osu.Game.Tournament.Sc...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Game.Graphics.UserInterface; using osu.Game.Tournament.IO; namespace osu.Game.Tournament.Sc...
bb2436cf-1c8b-4ef6-95cb-0e05cdfae529
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics; using osu.Framework.Graphics.Cursor; #nullable enable namespace osu.Framework.Extensions { public static class PopoverExtensions...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Framework.Graphics; using osu.Framework.Graphics.Cursor; #nullable enable namespace osu.Framework.Extensions { public static class Pop...
08b0f896-f4ef-4ac0-a44a-ce54964c7c6d
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; namespace Silverpop.Core.Performance { internal class Program { private static void Main(string[] args) { var tagValue = new string( Enumerable.Repeat("ABC", 1000) .SelectMa...
```c# using System; using System.Collections.Generic; using System.Linq; namespace Silverpop.Core.Performance { internal class Program { private static void Main(string[] args) { var tagValue = new string( Enumerable.Repeat("ABC", 1000) .SelectMa...
aabd007a-5a44-4fa2-af5a-1151828fc3a4
{ "language": "C#" }
```c# using BTCPayServer.Services.Mails; using Microsoft.AspNetCore.Mvc.Rendering; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace BTCPayServer.Models.ServerViewModels { public class EmailsViewModel { ...
```c# using BTCPayServer.Services.Mails; using Microsoft.AspNetCore.Mvc.Rendering; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace BTCPayServer.Models.ServerViewModels { public class EmailsViewModel { ...
a5e97816-9a7e-4fd2-8c82-01992b5982da
{ "language": "C#" }
```c# using System; using System.IO; using System.Linq; using NUnit.Framework; namespace photo.exif.unit.test { [TestFixture("Images/Canon PowerShot SX500 IS.JPG")] [TestFixture("Images/Nikon COOLPIX P510.JPG")] [TestFixture("Images/Panasonic Lumix DMC-FZ200.JPG")] [TestFixture("Images/Samsu...
```c# using System; using System.IO; using System.Linq; using NUnit.Framework; namespace photo.exif.unit.test { public class ParserTest { public ParserTest() { _parser = new Parser(); } private readonly Parser _parser; static string[] paths...
06aae921-ed23-421c-9b6f-101495a1a964
{ "language": "C#" }
```c# namespace Miruken.Callback { using System; public abstract class HandlerDecorator : Handler, IDecorator { protected HandlerDecorator(IHandler decoratee) { if (decoratee == null) throw new ArgumentNullException(nameof(decoratee)); Decoratee = d...
```c# namespace Miruken.Callback { using System; public abstract class HandlerDecorator : Handler, IDecorator { protected HandlerDecorator(IHandler decoratee) { if (decoratee == null) throw new ArgumentNullException(nameof(decoratee)); Decoratee = d...
a318f414-de63-459c-88b8-97124795b02e
{ "language": "C#" }
```c# using System; using AzureStorage.Queue; using Common.Log; using CompetitionPlatform.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; namespace CompetitionPlatform.Exceptions { public class GlobalExceptionFilter : IExceptionFilter, IDisposable { private readonly ILo...
```c# using System; using AzureStorage.Queue; using Common.Log; using CompetitionPlatform.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; namespace CompetitionPlatform.Exceptions { public class GlobalExceptionFilter : IExceptionFilter, IDisposable { private readonly ILo...
3c64a906-8c61-4204-a86d-71697c16216a
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Framework.Graphics; using osu.Game.Graphics.UserInterface; namespace osu.Game.Overlays.Settings { public class SettingsEnumDropdown<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; using osu.Framework.Graphics; using osu.Game.Graphics.UserInterface; namespace osu.Game.Overlays.Settings { public class SettingsEnumDropdown<T>...
1e648eb6-0951-472d-a1b5-fa92a4b15617
{ "language": "C#" }
```c# using System; using System.Reflection; namespace EE.Internal { internal class FirebaseAnalyticsImpl : IFirebaseAnalyticsImpl { private readonly MethodInfo _methodSetCurrentScreen; public FirebaseAnalyticsImpl() { var type = Type.GetType("Firebase.Analytics.FirebaseAnalytics, Fire...
```c# using System; using System.Reflection; namespace EE.Internal { internal class FirebaseAnalyticsImpl : IFirebaseAnalyticsImpl { private readonly MethodInfo _methodSetCurrentScreen; public FirebaseAnalyticsImpl() { var type = Type.GetType("Firebase.Analytics.FirebaseAnalytics, Fire...
5ed4c0f3-d73a-46bf-b835-7a00688e8e58
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Builder; namespace RedCard.API { public class Program { public static void Main(string[] args) { va...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Builder; using RedCard.API.Contexts; using Microsoft.EntityFrameworkCore; namespace RedCard.API { public class Program { ...
3130d0ec-e5f9-4ace-ac35-e530d7ddbdae
{ "language": "C#" }
```c# using System.Collections.Generic; namespace WalletWasabi.Fluent.ViewModels { public class TestLineChartViewModel { public double XAxisCurrentValue { get; set; } = 36; public double XAxisMinValue { get; set; } = 2; public double XAxisMaxValue { get; set; } = 864; public List<string> XAxisLabels => ne...
```c# using System.Collections.Generic; namespace WalletWasabi.Fluent.ViewModels { public class TestLineChartViewModel { public double XAxisCurrentValue { get; set; } = 36; public double XAxisMinValue { get; set; } = 1; public double XAxisMaxValue { get; set; } = 1008; public List<string> XAxisLabels => n...
865ae483-250b-487b-b484-0b2ee4c4ae4e
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; namespace StatoBot.Analytics { public class Statistics : Dictionary<string, decimal> { private readonly Encoding encoder; private readonly object mutationLock; public Statistics() { encoder = Encoding.GetEncoding( "UTF-8", n...
```c# using System; using System.Text; using System.Collections.Concurrent; namespace StatoBot.Analytics { public class Statistics : ConcurrentDictionary<string, decimal> { private readonly Encoding encoder; public Statistics() { encoder = Encoding.GetEncoding( ...
d7070226-221c-4502-bddd-5ca98997805d
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Interactivity; using MahApps.Metro.Controls; namespace MahApps.Metro.Behaviours { public class GlowWindowBehavior : Behavior<Window> { private GlowWindow left, right, ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Interactivity; using MahApps.Metro.Controls; namespace MahApps.Metro.Behaviours { public class GlowWindowBehavior : Behavior<Window> { private GlowWindow left, right, ...
7d03f961-6654-42d0-bd16-4c91ca660d9a
{ "language": "C#" }
```c#  namespace NakedObjects.Web.UnitTests.Selenium { public static class TestConfig { //public const string BaseUrl = "http://localhost:49998/"; public const string BaseUrl = "http://nakedobjectstest.azurewebsites.net/"; } } ``` Correct compile error in tests
```c#  namespace NakedObjects.Selenium { public static class TestConfig { //public const string BaseUrl = "http://localhost:49998/"; public const string BaseUrl = "http://nakedobjectstest.azurewebsites.net/"; } } ```
337125e3-0cde-434b-9225-ea10b103cbdc
{ "language": "C#" }
```c# using System; using System.Windows.Forms; namespace MultiMiner.Win.Notifications { public partial class NotificationsControl : UserControl { //events //delegate declarations public delegate void NotificationsChangedHandler(object sender); //event declarations ...
```c# using System; using System.Windows.Forms; namespace MultiMiner.Win.Notifications { public partial class NotificationsControl : UserControl { //events //delegate declarations public delegate void NotificationsChangedHandler(object sender); //event declarations ...
23b8dd92-a768-46bd-bb48-dd1f40e591a3
{ "language": "C#" }
```c# using System; using TrueCraft.API; using TrueCraft.API.Logic; namespace TrueCraft.Core.Logic.Blocks { public class AirBlock : BlockProvider { public static readonly byte BlockID = 0x00; public override byte ID { get { return 0x00; } } public override double BlastResista...
```c# using System; using TrueCraft.API; using TrueCraft.API.Logic; namespace TrueCraft.Core.Logic.Blocks { public class AirBlock : BlockProvider { public static readonly byte BlockID = 0x00; public override byte ID { get { return 0x00; } } public override double BlastResista...
89fbaa28-2981-4219-9db6-a769d6d5fad5
{ "language": "C#" }
```c# // Copyright(c) 2016 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
```c# // Copyright(c) 2016 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
c76b45e2-0e34-4cc3-ae74-31bc7e91c518
{ "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.Online.API.Requests; using osu.Game.Overlays.Profile.Sections.Beatmaps; using osu.Game.Resources.Localisation.Web;...
```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.Online.API.Requests; using osu.Game.Overlays.Profile.Sections.Beatmaps; using osu.Game.Resources.Localisation.Web;...
8a02518f-e5ef-4b01-9bd6-b0444e13b039
{ "language": "C#" }
```c# #tool "nuget:?package=GitVersion.CommandLine" #addin "Cake.Yaml" public class ContextInfo { public string NugetVersion { get; set; } public string AssemblyVersion { get; set; } public GitVersion Git { get; set; } public string BuildVersion { get { return NugetVersion + "-" + Git.Sha;...
```c# #tool "nuget:?package=GitVersion.CommandLine" #addin "Cake.Yaml" public class ContextInfo { public string NugetVersion { get; set; } public string AssemblyVersion { get; set; } public GitVersion Git { get; set; } public string BuildVersion { get { return NugetVersion + "-" + Git.Sha;...
468ab13b-df4f-4ce8-9abc-e883b19977bc
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Windows.Interop; using WindowsDesktop.Interop; namespace WindowsDesktop.Internal { internal abstract class RawWindow { public string Name { get; set; } public HwndSource Source { get; private set; } public IntPtr Handle =>...
```c# using System; using System.Windows.Interop; using System.Windows.Threading; using WindowsDesktop.Interop; namespace WindowsDesktop.Internal { internal abstract class RawWindow { public string Name { get; set; } public HwndSource Source { get; private set; } public IntPtr Handle => this.Source?.Handle ...
e3a8bc70-afb3-4411-ae5c-ec8136784d58
{ "language": "C#" }
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Threading.Tasks; using Certify.Models; namespace Certify.Service.Tests.Integration { [TestClass] public class ManagedCertificateTests : ServiceTestBase { [TestMethod] public async Task TestGetManagedCertif...
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Threading.Tasks; using Certify.Models; using System.Collections.Generic; namespace Certify.Service.Tests.Integration { [TestClass] public class ManagedCertificateTests : ServiceTestBase { [TestMethod] publ...
780fbc53-eb8f-4ba4-938a-1956b9851a64
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; public class Bullet : MonoBehaviour { private float velocity = 35f; // Use this for initialization void Start () { } // Update is called once per frame void Update () { this.transform.Translate(0, Time.deltaTime * this.veloc...
```c# using UnityEngine; using System.Collections; public class Bullet : MonoBehaviour { private float velocity = 35f; // Use this for initialization void Start () { } // Update is called once per frame void Update () { this.transform.Translate(0, Time.deltaTime * this.veloc...
c5327ba7-f412-43af-a518-3dbe78936aa6
{ "language": "C#" }
```c# using FluentAssertions; using Microsoft.DotNet.Cli.Utils; using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; using Microsoft.NET.TestFramework.Assertions; namespace Microsoft.NET.TestFramework { public static class CommandExtensions { public ...
```c# // Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using FluentAssertions; using Microsoft.DotNet.Cli.Utils; using System; using System.Collections.Generic; using System.Runtime.InteropServ...
e42b7b0f-2164-4fcf-a74b-87139cc292cd
{ "language": "C#" }
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; public class YoumuSlashTimingController : MonoBehaviour { public delegate void BeatDelegate(int beat); public static BeatDelegate onBeat; [SerializeField] private YoumuSlashTimingData timingData; [SerializeField]...
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; public class YoumuSlashTimingController : MonoBehaviour { public delegate void BeatDelegate(int beat); public static BeatDelegate onBeat; [SerializeField] private YoumuSlashTimingData timingData; [SerializeField]...
40e26611-708a-4948-b98b-9872a3a2f433
{ "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 Microsoft.Extensions.Configuration; namespace Microsoft.AspNet.Hosting { public class WebHostConfigu...
```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 Microsoft.Extensions.Configuration; namespace Microsoft.AspNet.Hosting { public class WebHostConfigu...
0a591aa6-6ff6-4773-be80-1f54e5a61c78
{ "language": "C#" }
```c# using System; using MessageBird.Exceptions; using MessageBird.Objects; using Newtonsoft.Json; namespace MessageBird.Resources { public abstract class Resource { public string Id { get { if (HasId) { return Object....
```c# using System; using MessageBird.Exceptions; using MessageBird.Objects; using Newtonsoft.Json; namespace MessageBird.Resources { public abstract class Resource { public string Id { get { if (HasId) { return Object....
002e3b94-f512-47dc-bc89-0040e922fa53
{ "language": "C#" }
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Collections.Generic; using System.Net; namespace MultiMiner.Xgminer.Discovery.Tests { [TestClass] public class MinerFinderTests { [TestMethod] public void MinerFinder_FindsMiners() { co...
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Collections.Generic; using System.Net; namespace MultiMiner.Xgminer.Discovery.Tests { [TestClass] public class MinerFinderTests { [TestMethod] public void MinerFinder_FindsMiners() { co...
fb3f569e-f861-41c7-b8a1-5c03b8ea3290
{ "language": "C#" }
```c# // Copyright 2020 Maintainers of NUKE. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE using System; using System.Linq; using System.Reflection; using JetBrains.Annotations; using Nuke.Common.IO; using Nuke.Common.Utilities; using Nuke.Common.ValueInjection; name...
```c# // Copyright 2020 Maintainers of NUKE. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE using System; using System.Linq; using System.Reflection; using JetBrains.Annotations; using Nuke.Common.IO; using Nuke.Common.Utilities; using Nuke.Common.ValueInjection; name...
6b27b53d-fc31-4a63-aa24-7cfc8c886e94
{ "language": "C#" }
```c# @model CodeEditorSettings @if (Model.TextArea) { <textarea name="@Model.EditorName" style="display: none"></textarea> } <div id="wrapper-@Model.EditorName"></div> <script> function createEditor(text) { $('#wrapper-@Model.EditorName').html('<pre id="@Model.EditorName">' + (text != null ? tex...
```c# @model CodeEditorSettings @if (Model.TextArea) { <textarea name="@Model.EditorName" style="display: none"></textarea> } <div id="wrapper-@Model.EditorName"></div> <script> function createEditor(text) { $('#wrapper-@Model.EditorName').html('<pre id="@Model.EditorName"></pre>'); $('#@Mode...
eb8e8562-7a59-4983-8266-03ab43abf511
{ "language": "C#" }
```c# using System; namespace Amazon.S3 { public readonly struct GetPresignedUrlRequest { public GetPresignedUrlRequest( string host, AwsRegion region, string bucketName, string objectKey, TimeSpan expiresIn) { ...
```c# using System; namespace Amazon.S3 { public class GetPresignedUrlRequest { public GetPresignedUrlRequest( string method, string host, AwsRegion region, string bucketName, string objectKey, TimeSpan expiresIn) ...