doc_id stringlengths 36 36 | metadata dict | input stringlengths 28 4.3k | output stringlengths 11 5.45k |
|---|---|---|---|
6d5caf42-d146-4247-b6b5-58e6c3c83dc8 | {
"language": "C#"
} | ```c#
using System;
using System.Drawing;
using MonoHaven.Graphics;
using MonoHaven.Utils;
using OpenTK.Input;
namespace MonoHaven.UI
{
public class ImageButton : Widget
{
private bool isPressed;
public ImageButton(Widget parent)
: base(parent)
{
IsFocusable = true;
}
public event EventHandler Clic... | ```c#
using System;
using System.Drawing;
using MonoHaven.Graphics;
using MonoHaven.Utils;
using OpenTK.Input;
namespace MonoHaven.UI
{
public class ImageButton : Widget
{
private bool isPressed;
public ImageButton(Widget parent)
: base(parent)
{
IsFocusable = true;
}
public event EventHandler Clic... |
446e60ab-e999-41ed-8e66-b9aad74f1f58 | {
"language": "C#"
} | ```c#
using System.Threading.Tasks;
using Mntone.NintendoNetworkHelper;
using Mntone.SplatoonClient.Internal;
namespace Mntone.SplatoonClient
{
public static class SplatoonContextFactory
{
public static async Task<SplatoonContext> GetContextAsync(string username, string password)
{
var authorizer = new Ninte... | ```c#
using System.Threading.Tasks;
using Mntone.NintendoNetworkHelper;
using Mntone.SplatoonClient.Internal;
namespace Mntone.SplatoonClient
{
public static class SplatoonContextFactory
{
public static async Task<SplatoonContext> GetContextAsync(string username, string password)
{
var authorizer = new Ninte... |
5ac5c0c8-1f87-440e-b9f3-b5db6653c131 | {
"language": "C#"
} | ```c#
using System;
using NUnit.Framework;
namespace NHibernate.Test.NHSpecificTest.NH1119
{
[TestFixture]
public class Fixture : BugTestCase
{
public override string BugNumber
{
get { return "NH1119"; }
}
[Test]
public void SelectMinFromEmptyTable()
{
using (ISession s = OpenSess... | ```c#
using System;
using NUnit.Framework;
namespace NHibernate.Test.NHSpecificTest.NH1119
{
[TestFixture]
public class Fixture : BugTestCase
{
public override string BugNumber
{
get { return "NH1119"; }
}
[Test]
public void SelectMinFromEmptyTable()
{
using (ISession s = OpenSess... |
76853ab2-83a1-41ce-a5de-0de30f7e5ee6 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.RazorPages;
using BlogTemplate.Models;
using Microsoft.AspNetCore.Mvc;
using System.Xml;
using System.Xml.Linq;
using Microsoft.AspNetCore.Authorization;
namespace BlogTempl... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.RazorPages;
using BlogTemplate.Models;
using Microsoft.AspNetCore.Mvc;
using System.Xml;
using System.Xml.Linq;
using Microsoft.AspNetCore.Authorization;
namespace BlogTempl... |
22123bfa-e167-4fa9-9c18-b4c702233f36 | {
"language": "C#"
} | ```c#
namespace Tvl.VisualStudio.InheritanceMargin
{
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.VisualStudio.Text.Tagging;
using Microsoft.VisualStudio.Utilities;
u... | ```c#
namespace Tvl.VisualStudio.InheritanceMargin
{
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.VisualStudio.Text.Tagging;
using Microsoft.VisualStudio.Utilities;
u... |
c5848e5e-7db8-42bd-960d-e4adf15a2497 | {
"language": "C#"
} | ```c#
using System;
namespace UniProgramGen.Helpers
{
public class TimeSlot
{
public TimeSlot(DayOfWeek day, uint startHour, uint endHour)
{
Day = day;
StartHour = startHour;
EndHour = endHour;
}
public DayOfWeek Day { get; private set; }
... | ```c#
using System;
namespace UniProgramGen.Helpers
{
public class TimeSlot
{
public const uint START_HOUR = 8;
public const uint END_HOUR = 22;
public const uint TOTAL_DAY_HOURS = END_HOUR - START_HOUR;
public TimeSlot(DayOfWeek day, uint startHour, uint endHour)
{
... |
28599058-ade4-4b00-8eb7-f214c8b64121 | {
"language": "C#"
} | ```c#
using System.Linq;
using System.Text;
using NUnit.Framework;
namespace ValveKeyValue.Test
{
class CommentOnEndOfTheLine
{
[Test]
public void CanHandleCommentOnEndOfTheLine()
{
var text = new StringBuilder();
text.AppendLine(@"""test_kv""");
tex... | ```c#
using System.Linq;
using System.Text;
using NUnit.Framework;
namespace ValveKeyValue.Test
{
class CommentOnEndOfTheLine
{
[Test]
public void CanHandleCommentOnEndOfTheLine()
{
var text = new StringBuilder();
text.Append(@"""test_kv""" + "\n");
... |
d28897fe-4614-4b79-9feb-a5c7a3d53b15 | {
"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.Collections.Immutable;
using System.Composition;
using Microsoft.CodeAnalysis.Exte... | ```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.Collections.Immutable;
using System.Composition;
using Microsoft.CodeAnalysis.Exte... |
0f8b6195-305e-4f59-a2c7-49707791873c | {
"language": "C#"
} | ```c#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Composition;
using Microsoft.CodeAnalysis.ErrorReporting;
using Microsoft.VisualStudio.Text;
namespace Microsoft.VisualStud... | ```c#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Composition;
using Microsoft.CodeAnalysis.ErrorReporting;
using Microsoft.VisualStudio.Text;
namespace Microsoft.VisualStud... |
799a9242-e15c-4e21-bff6-e4de87c99c79 | {
"language": "C#"
} | ```c#
using System.Net.Http.Formatting;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using WebApiContrib.Formatting.Jsonp;
using WebContribContrib.Formatting.Jsonp.SampleWebHost.App_Start;
namespace We... | ```c#
using System.Net.Http.Formatting;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using WebApiContrib.Formatting.Jsonp;
using WebContribContrib.Formatting.Jsonp.SampleWebHost.App_Start;
namespace We... |
8f4adaea-c05a-48ce-8987-4476aeb2412c | {
"language": "C#"
} | ```c#
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ConsoleAbstraction.cs" company="Naos Project">
// Copyright (c) Naos Project 2019. All rights reserved.
// </copyright>
// -----------------------------------------------... | ```c#
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ConsoleAbstraction.cs" company="Naos Project">
// Copyright (c) Naos Project 2019. All rights reserved.
// </copyright>
// -----------------------------------------------... |
1f29bc05-81b7-4f6b-b015-9691b1d29b83 | {
"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.ComponentModel.Composition;
using Microsoft.VisualStudio.LiveShare.LanguageServices;
using Microsoft.CodeAnalysis.Editor;
using Microsoft.... | ```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 Microsoft.CodeAnalysis.Editor;
using Microsoft.VisualStudio.LanguageServer.Protocol;
using... |
afb29704-4d50-4bee-97b4-5474b3452e47 | {
"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 Microsoft.VisualStudio.Shell;
using Roslyn.VisualStudio.Setup;
[assembly: ProvideRoslynBindingRedirection("Microsoft.CodeAnalysis.Scripting.dll"... | ```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 Microsoft.VisualStudio.Shell;
using Roslyn.VisualStudio.Setup;
[assembly: ProvideRoslynBindingRedirection("Microsoft.CodeAnalysis.Scripting.dll"... |
54799361-10de-4f97-adab-a4564b1f3bbf | {
"language": "C#"
} | ```c#
namespace Winium.Desktop.Driver.CommandExecutors
{
#region using
using System.Windows.Automation;
using Winium.Cruciatus.Exceptions;
using Winium.Cruciatus.Extensions;
using Winium.StoreApps.Common;
#endregion
internal class IsElementSelectedExecutor : CommandExecutorBase
{
... | ```c#
namespace Winium.Desktop.Driver.CommandExecutors
{
#region using
using System.Windows.Automation;
using Winium.Cruciatus.Exceptions;
using Winium.Cruciatus.Extensions;
using Winium.StoreApps.Common;
#endregion
internal class IsElementSelectedExecutor : CommandExecutorBase
{
... |
38d43066-91ad-4d79-87bb-896e003c4a54 | {
"language": "C#"
} | ```c#
#r "C:\Program Files (x86)\Luminescence Software\Metatogger 5.8\Metatogger.exe"
using System.Collections.Generic;
using Metatogger.Data;
IEnumerable<AudioFile> files = new List<AudioFile>(); // list of checked audio files in the workspace```
Update Metatogger default install path | ```c#
#r "C:\Program Files (x86)\Luminescence Software\Metatogger 5.9\Metatogger.exe"
using System.Collections.Generic;
using Metatogger.Data;
IEnumerable<AudioFile> files = new List<AudioFile>(); // list of checked audio files in the workspace``` |
20fa7c17-128f-4ba9-826c-55fba82adf7b | {
"language": "C#"
} | ```c#
using System;
using System.Linq;
using Microsoft.VisualStudio.ExtensionsExplorer;
namespace NuGet.Dialog.Providers {
internal class PackagesSearchNode : PackagesTreeNodeBase {
private string _searchText;
private readonly PackagesTreeNodeBase _baseNode;
public PackagesTre... | ```c#
using System;
using System.Linq;
using Microsoft.VisualStudio.ExtensionsExplorer;
namespace NuGet.Dialog.Providers {
internal class PackagesSearchNode : PackagesTreeNodeBase {
private string _searchText;
private readonly PackagesTreeNodeBase _baseNode;
public PackagesTre... |
ee078e04-d188-494f-ad5b-f29d996397be | {
"language": "C#"
} | ```c#
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using Microsoft.Azure.WebJobs.Host;
using Microsoft.Extensions.Configuration;
namespace Microsoft.Azure.WebJobs
{
/// <summary>
/// Abstra... | ```c#
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using Microsoft.Azure.WebJobs.Host;
using Microsoft.Extensions.Configuration;
namespace Microsoft.Azure.WebJobs
{
/// <summary>
/// Abstra... |
b04f81f9-8f4e-41c7-8dd2-654dbaf65e51 | {
"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;
using Xunit.Sdk;
namespace Xunit
{
/// <summary>
/// Apply this attribute to your test method to specify this is a platform specific test.... | ```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;
using Xunit.Sdk;
namespace Xunit
{
/// <summary>
/// Apply this attribute to your test method to specify this is a platform specific test.... |
9d7019c6-fdbd-48bb-bee5-63e1743271b7 | {
"language": "C#"
} | ```c#
using UnityEngine;
using UniRx;
namespace Reduxity.Example.PlayerMovementLook {
[RequireComponent(typeof(Camera))]
public class MoveCamera : MonoBehaviour {
private Camera camera_;
private void Awake() {
camera_ = GetComponent<Camera>();
}
void Start() {
... | ```c#
using UnityEngine;
using UniRx;
namespace Reduxity.Example.PlayerMovementLook {
[RequireComponent(typeof(Camera))]
public class MoveCamera : MonoBehaviour {
private Camera camera_;
private void Awake() {
camera_ = GetComponent<Camera>();
}
void Start() {
... |
ad8630f7-f823-4831-a513-0ad470dd38b7 | {
"language": "C#"
} | ```c#
using FaqTemplate.Core.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FaqTemplate.Infrastructure.Services
{
public class SimpleMemoryCacheService<T> : ICacheService<T>
{
public Task AddOrUpdate(string key, T... | ```c#
using FaqTemplate.Core.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FaqTemplate.Infrastructure.Services
{
public class SimpleMemoryCacheService<T> : ICacheService<T>
{
private IDictionary<string, T> _cache... |
7bfd4d9a-95d8-44eb-984c-0acfd8096a5f | {
"language": "C#"
} | ```c#
using System.Linq;
using Sitecore.Mvc.Helpers;
using Sitecore.Mvc.Presentation;
using System.Collections.Generic;
using System.Web;
namespace DynamicPlaceholders.Mvc.Extensions
{
public static class SitecoreHelperExtensions
{
public static List<string> DynamicPlaceholders = new List<string>();
public sta... | ```c#
using Sitecore.Mvc.Helpers;
using Sitecore.Mvc.Presentation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;
namespace DynamicPlaceholders.Mvc.Extensions
{
public static class SitecoreHelperExtensions
{
public static HtmlS... |
fb20ab54-8e13-41a3-95f9-e75339036752 | {
"language": "C#"
} | ```c#
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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://w... | ```c#
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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://w... |
d9a99d3b-4b78-415d-9be9-0c116e06c559 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Mvc.Razor;
using Microsoft.Extensions.Options;
namespace Umbraco.Cms.Web.Website.ViewEngines
{
/// <summary>
/// Configure view engine locations for front-end rendering
/// </summary>
public class Render... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Mvc.Razor;
using Microsoft.Extensions.Options;
namespace Umbraco.Cms.Web.Website.ViewEngines
{
/// <summary>
/// Configure view engine locations for front-end rendering
/// </summary>
public class Render... |
6fbc68dc-64cc-4f9c-883e-99027197ca7b | {
"language": "C#"
} | ```c#
// This script is executed on the server
$MAP_ROOT = "ethernet/maps/eth1/";
$sgLightEditor::lightDBPath = $MAP_ROOT @ "lights/";
$sgLightEditor::filterDBPath = $MAP_ROOT @ "filters/";
sgLoadDataBlocks($sgLightEditor::lightDBPath);
sgLoadDataBlocks($sgLightEditor::filterDBPath);
//exec("./difs/propertymap.cs");... | ```c#
// This script is executed on the server
$MAP_ROOT = "ethernet/maps/eth1/";
$sgLightEditor::lightDBPath = $MAP_ROOT @ "lights/";
$sgLightEditor::filterDBPath = $MAP_ROOT @ "filters/";
sgLoadDataBlocks($sgLightEditor::lightDBPath);
sgLoadDataBlocks($sgLightEditor::filterDBPath);
//---------------------... |
ee7ed325-58f4-4895-9e3d-329b5275966a | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using RightpointLabs.ConferenceRoom.Domain.Models;
using RightpointLabs.ConferenceRoom.Domain.Models.Entities;
using RightpointLabs.ConferenceRoom.Domain.Repositories;
using Rightpoi... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Web.Http;
using RightpointLabs.ConferenceRoom.Domain.Models;
using RightpointLabs.ConferenceRoom.Domain.Models.Entities;
using RightpointLabs.ConferenceRoom.Domain.Repositor... |
e09622d8-00ec-4608-b8a1-60f1004be859 | {
"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.
namespace Microsoft.CodeAnalysis.CodeStyle
{
internal static class NotificationOptionExtensions
{
public static string ToEditorConfigSt... | ```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 Roslyn.Utilities;
namespace Microsoft.CodeAnalysis.CodeStyle
{
internal static class NotificationOptionExtensions
{
public static... |
163fcef9-e006-4ea9-bdac-bf6ac59f7ba7 | {
"language": "C#"
} | ```c#
using System;
using Entitas;
using UnityEditor;
namespace Entitas.Unity.VisualDebugging {
public class EnumTypeDrawer : ITypeDrawer {
public bool HandlesType(Type type) {
return type.IsEnum;
}
public object DrawAndGetNewValue(Type memberType, string memberName, object val... | ```c#
using System;
using Entitas;
using UnityEditor;
namespace Entitas.Unity.VisualDebugging {
public class EnumTypeDrawer : ITypeDrawer {
public bool HandlesType(Type type) {
return type.IsEnum;
}
public object DrawAndGetNewValue(Type memberType, string memberName, object val... |
fdd570dd-d13e-4fcc-9e35-1ce40309e1ca | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using OpenQA.Selenium;
namespace Diskordia.Columbus.Bots.Host.Services.SingaporeAirlines.PageObjects
{
public class FareDealsSectionComponent
{
private readonly IWebDriver driver;
private readonly IWebElement element;
public FareDealsSe... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using OpenQA.Selenium;
namespace Diskordia.Columbus.Bots.Host.Services.SingaporeAirlines.PageObjects
{
public class FareDealsSectionComponent
{
private readonly IWebDriver driver;
private readonly IWebElement element;
public FareDealsSe... |
7cac788d-edba-47ed-9466-118704d78289 | {
"language": "C#"
} | ```c#
#region License
/*********************************************************************************
* RootJsonSyntax.cs
*
* Copyright (c) 2004-2019 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... | ```c#
#region License
/*********************************************************************************
* RootJsonSyntax.cs
*
* Copyright (c) 2004-2019 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... |
7c8fecf6-141f-4b2b-a0f3-f19bc7835bc5 | {
"language": "C#"
} | ```c#
using System;
using System.ComponentModel.DataAnnotations;
using System.Reflection;
namespace CertiPay.Common
{
public static class ExtensionMethods
{
/// <summary>
/// Trims the string of any whitestace and leaves null if there is no content.
/// </summary>
public static... | ```c#
using System;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection;
namespace CertiPay.Common
{
public static class ExtensionMethods
{
/// <summary>
/// Trims the string of any whitestace and leaves null if there is no content.
/// </summary>
... |
09a476c9-e41f-45d7-8960-2574880e46f7 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using global::Nustache.Core;
namespace Dolstagis.Web.Views.Nustache
{
public class NustacheViewEngine : ViewEngineBase
{
private static readonly string[] _extensions = n... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using global::Nustache.Core;
namespace Dolstagis.Web.Views.Nustache
{
public class NustacheViewEngine : ViewEngineBase
{
private static readonly string[] _extensions = n... |
31063f89-6785-4b07-adb8-834da0fec262 | {
"language": "C#"
} | ```c#
// Copyright Matthias Koch 2017.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.IO;
using System.Linq;
using JetBrains.Annotations;
using Nuke.Common.IO;
using Nuke.Core.Execution;
using Nuke.Core.Tooling;
using YamlDotNet.Serialization... | ```c#
// Copyright Matthias Koch 2017.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.IO;
using System.Linq;
using JetBrains.Annotations;
using Nuke.Common.IO;
using Nuke.Core.Execution;
using Nuke.Core.Tooling;
using YamlDotNet.Serialization... |
d82d19c1-9cb9-42a6-8182-96493524d933 | {
"language": "C#"
} | ```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.
namespace Microsoft.DotNet.ProjectJsonMigration
{
internal class ConstantPackageVersions
{
public const string AspNetToolsV... | ```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.
namespace Microsoft.DotNet.ProjectJsonMigration
{
internal class ConstantPackageVersions
{
public const string AspNetToolsV... |
bbe0554d-3143-46da-b371-28e86b0f3d9e | {
"language": "C#"
} | ```c#
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TestHelper;
namespace DebuggerStepThroughRemover.Test
{
[TestClass]
public class AnalyzerTests : DiagnosticVerifier
{
[TestMethod]
public void WithEmptyS... | ```c#
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TestHelper;
namespace DebuggerStepThroughRemover.Test
{
[TestClass]
public class AnalyzerTests : DiagnosticVerifier
{
[TestMethod]
public void WithEmptyS... |
94006011-06e6-4e90-b306-aef655a8ee86 | {
"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 ExpireFundsJob
{
private readonly IMessageSession _messageSessi... | ```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 ExpireFundsJob
{
private readonly IMessageSession _messageSessi... |
4aa905ba-da9c-4d94-89ca-baccd69bfa5a | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using NHibernate.Linq;
using Tellurium.VisualAssertions.Infrastructure;
using Tellurium.VisualAssertions.Screenshots.Domain;
namespace Tellurium.VisualAssertion.Dashboard.Services.TestResults.Queries
{
public class FindTestResultsFromSession... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using NHibernate.Linq;
using Tellurium.VisualAssertions.Infrastructure;
using Tellurium.VisualAssertions.Screenshots.Domain;
namespace Tellurium.VisualAssertion.Dashboard.Services.TestResults.Queries
{
public class FindTestResultsFromSession... |
1eea9752-f464-423c-9c01-60d51441eb64 | {
"language": "C#"
} | ```c#
using System;
using System.Net;
using BmpListener.Bgp;
using System.Linq;
using BmpListener.MiscUtil.Conversion;
namespace BmpListener.Bmp
{
public class PeerUpNotification : BmpMessage
{
public IPAddress LocalAddress { get; private set; }
public int LocalPort { get; private set; }
... | ```c#
using System;
using System.Net;
using BmpListener.Bgp;
using System.Linq;
using BmpListener.MiscUtil.Conversion;
namespace BmpListener.Bmp
{
public class PeerUpNotification : BmpMessage
{
public IPAddress LocalAddress { get; private set; }
public int LocalPort { get; private set; }
... |
86ff12a1-2be9-434f-8747-92a428dbf940 | {
"language": "C#"
} | ```c#
namespace Fixie.Tests.Execution
{
using System;
using Fixie.Cli;
using Fixie.Execution;
public class OptionsTests
{
public void DemandsAssemblyPathProvided()
{
var options = new Options(null);
Action validate = options.Validate;
validate.... | ```c#
namespace Fixie.Tests.Execution
{
using System;
using Fixie.Cli;
using Fixie.Execution;
public class OptionsTests
{
public void DemandsAssemblyPathProvided()
{
var options = new Options(null);
Action validate = options.Validate;
validate.... |
a725441e-8027-4434-8879-a3121acd4fc3 | {
"language": "C#"
} | ```c#
using System.Security.Cryptography;
using DeviceId.Encoders;
using DeviceId.Formatters;
namespace DeviceId
{
/// <summary>
/// Provides access to some of the default formatters.
/// </summary>
public static class DeviceIdFormatters
{
/// <summary>
/// Returns the default form... | ```c#
using System.Security.Cryptography;
using DeviceId.Encoders;
using DeviceId.Formatters;
namespace DeviceId
{
/// <summary>
/// Provides access to some of the default formatters.
/// </summary>
public static class DeviceIdFormatters
{
/// <summary>
/// Returns the default form... |
05631b75-9584-48a2-bcc0-adfd2bf4ab03 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Text;
using GalaSoft.MvvmLight.Views;
using ToxRt.Helpers;
using ToxRt.Model;
using ToxRt.NavigationService;
namespace ToxRt.ViewModel
{
public class LoadProfileViewModel : NavigableViewModelBase
{
#region Fields
#endr... | ```c#
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
using GalaSoft.MvvmLight.Command;
using GalaSoft.MvvmLight.Views;
using ToxRt.Helpers;
using ToxRt.Model;
using ToxRt.NavigationService;
namespace ToxRt.ViewModel
{
public class LoadProfileViewModel : Na... |
ebbd6ceb-49b4-4c18-87df-9455ae00d4ba | {
"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.Specialized;
using System.Linq;
using osu.Framework.Bindables;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
namespace o... | ```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.Specialized;
using System.Linq;
using osu.Framework.Bindables;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
namespace o... |
9fd7bfdd-5105-425d-bb46-78d6a4dc456a | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Reflection;
using JAGBE.Attributes;
namespace JAGBE.Stats
{
internal static class AttributeReflector
{
/// <summary>
/// Gets the methods of <paramref name="type"/> with the <see cref="Attribute"/> of type
/// <paramref... | ```c#
using System;
using System.Collections.Generic;
using System.Reflection;
using JAGBE.Attributes;
namespace JAGBE.Stats
{
internal static class AttributeReflector
{
/// <summary>
/// Gets the methods of <paramref name="type"/> with the <see cref="Attribute"/> of type
/// <paramref... |
df37877d-717e-455f-b64d-d399b7c87b0b | {
"language": "C#"
} | ```c#
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class StretchScript : MonoBehaviour {
public float orthographicSize = 4;
public float aspect = 0.6f;
void Start()
{
Camera.main.projectionMatrix = Matrix4x4.Ortho(
-orthographicSize * ... | ```c#
using UnityEngine;
// Source: http://answers.unity3d.com/questions/464487/windowed-game-to-fullscreen.html
public class StretchScript : MonoBehaviour {
public float orthographicSize = 4;
public float aspect = 0.6f;
void Start()
{
Camera.main.projectionMatrix = Matrix4x4.Ortho(
... |
d6abf4c3-fd6e-4c75-9373-99f3c78320f4 | {
"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... |
c571109d-149b-4f4f-9825-26c474952613 | {
"language": "C#"
} | ```c#
using System;
using System.Web;
namespace VersionOne.SDK.APIClient {
internal class ValueStringizer {
private readonly string valueWrapper;
public ValueStringizer(string valueWrapper = "'") {
this.valueWrapper = valueWrapper;
}
public string Stringize(object val... | ```c#
using System;
using System.Web;
namespace VersionOne.SDK.APIClient {
internal class ValueStringizer {
private readonly string valueWrapper;
public ValueStringizer(string valueWrapper = "'") {
this.valueWrapper = valueWrapper;
}
public string Stringize(object val... |
238ab4dc-a16c-4448-b42a-7e30e80fdf51 | {
"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... |
e8cb49ef-c817-4f0e-b844-cba0d6452efc | {
"language": "C#"
} | ```c#
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
public class Team : MonoBehaviour {
//public List<Drone> team = new List<Drone>();
public ArrayList team = new ArrayList();
public GameObject DronePrefab;
public void addDrone(Drone drone){
team.Add(dr... | ```c#
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
public class Team : MonoBehaviour {
//public List<Drone> team = new List<Drone>();
public ArrayList team = new ArrayList();
public GameObject DronePrefab;
public void addDrone(Drone drone){
team.Add(dr... |
f86ed201-4a41-4a46-89f2-bca5adf1c2ba | {
"language": "C#"
} | ```c#
using UnityEngine;
using System.Collections;
namespace ecorealms.map {
public class MapPresenter : MonoBehaviour {
private int sizeX;
private int sizeY;
private GameObject rootObject;
private Transform root;
public Mesh mesh;
public Material material;
public void Setup(int sizeX, int sizeY) {
... | ```c#
using UnityEngine;
using System.Collections;
namespace ecorealms.map {
public class MapPresenter : MonoBehaviour {
private int sizeX;
private int sizeY;
private GameObject rootObject;
private Transform root;
public Mesh mesh;
public Material material;
private Tile[] tiles;
public void Setup... |
29c59b6d-775b-4ced-a0cd-f582b22dac01 | {
"language": "C#"
} | ```c#
using MyCouch.Extensions;
using Newtonsoft.Json.Serialization;
namespace MyCouch.Serialization
{
public class SerializationContractResolver : DefaultContractResolver
{
public SerializationContractResolver() : base(true) { }
protected override string ResolvePropertyName(string propertyNa... | ```c#
using MyCouch.Extensions;
using Newtonsoft.Json.Serialization;
namespace MyCouch.Serialization
{
public class SerializationContractResolver : DefaultContractResolver
{
protected override string ResolvePropertyName(string propertyName)
{
return base.ResolvePropertyName(propert... |
1047b693-60ab-47d8-b924-fb6371471460 | {
"language": "C#"
} | ```c#
using System.Collections.Generic;
namespace Glimpse.Agent.AspNet.Mvc.Messages
{
public interface IActionViewFoundMessage
{
string ActionId { get; set; }
string ViewName { get; set; }
bool DidFind { get; set; }
ViewResult ViewData { get; set; }
}
}```
Updat... | ```c#
using System.Collections.Generic;
namespace Glimpse.Agent.AspNet.Mvc.Messages
{
public interface IActionViewMessage
{
string ActionId { get; set; }
string ViewName { get; set; }
bool DidFind { get; set; }
ViewResult ViewData { get; set; }
}
}``` |
96014df6-6d59-488d-bc3f-b04e4e65bbb5 | {
"language": "C#"
} | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using System;
using System.IO;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Input.Events;
using osu.Framewo... | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using System;
using System.IO;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Input.Events;
using osu.Framewo... |
70fa3006-4928-42cb-865c-e1672ba16f39 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TextPet.Commands {
/// <summary>
/// A command line interface command that sets the current active game.
/// </summary>
internal class GameCommand : CliCommand {
public override string Name => "game";
public ... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TextPet.Commands {
/// <summary>
/// A command line interface command that sets the current active game.
/// </summary>
internal class GameCommand : CliCommand {
public override string Name => "game";
public ... |
89ac9bd0-3c9f-4ab9-a6bf-5c4321cb18ad | {
"language": "C#"
} | ```c#
using System;
using System.IO;
using System.Xml;
using System.Xml.Linq;
namespace IvionSoft
{
public abstract class XmlConfig
{
public XElement Config { get; private set; }
public XmlConfig(string file)
{
try
{
Config = XElement.Lo... | ```c#
using System;
using System.IO;
using System.Xml;
using System.Xml.Linq;
namespace IvionSoft
{
public abstract class XmlConfig
{
public XElement Config { get; private set; }
public XmlConfig(string file)
{
try
{
Config = XElement.Lo... |
b2f2ce8e-dd0f-4538-8c2f-1ed536201903 | {
"language": "C#"
} | ```c#
using System;
namespace Microsoft.PowerShell.EditorServices.Services.PowerShell.Execution
{
public enum ExecutionPriority
{
Normal,
Next,
}
public record ExecutionOptions
{
public static ExecutionOptions Default = new()
{
Priority = ExecutionPrior... | ```c#
using System;
namespace Microsoft.PowerShell.EditorServices.Services.PowerShell.Execution
{
public enum ExecutionPriority
{
Normal,
Next,
}
// Some of the fields of this class are not orthogonal,
// so it's possible to construct self-contradictory execution options.
// W... |
c36b89e4-78b2-4442-b67b-a1b74ed71978 | {
"language": "C#"
} | ```c#
@model IEnumerable<BatteryCommander.Web.Models.Evaluation>
<h1>Past Due and Upcoming Evaluations</h1>
<table border="1">
<thead>
<tr>
<th>Ratee</th>
<th>Rater</th>
<th>Senior Rater</th>
<th>Due Date</th>
<th>Status</th>
<th>Last... | ```c#
@model IEnumerable<BatteryCommander.Web.Models.Evaluation>
<h1>Past Due and Upcoming Evaluations</h1>
<table border="1">
<thead>
<tr>
<th>Ratee</th>
<th>Rater</th>
<th>Senior Rater</th>
<th>Due Date</th>
<th>Status</th>
<th>Last... |
19f5e20b-904e-4f3f-a479-b72f6aa6c95f | {
"language": "C#"
} | ```c#
using MVVM.HTML.Core.V8JavascriptObject;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MVVM.HTML.Core.Infra;
using MVVM.HTML.Core.Exceptions;
namespace MVVM.HTML.Core.Binding
{
public static class IJavascriptObjectFactory_CreateEnu... | ```c#
using MVVM.HTML.Core.V8JavascriptObject;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MVVM.HTML.Core.Infra;
using MVVM.HTML.Core.Exceptions;
namespace MVVM.HTML.Core.Binding
{
public static class IJavascriptObjectFactory_CreateEnu... |
96ea969d-9c47-4a64-8d07-33bf0b67a00a | {
"language": "C#"
} | ```c#
using Chalmers.ILL.Members;
using Chalmers.ILL.Models.Page;
using Chalmers.ILL.OrderItems;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Mvc;
using Umbraco.Web.Models;
using Umbraco.Web.Mvc;
namespace Chalmers.... | ```c#
using Chalmers.ILL.Members;
using Chalmers.ILL.Models.Page;
using Chalmers.ILL.OrderItems;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Mvc;
using Umbraco.Web.Models;
using Umbraco.Web.Mvc;
namespace Chalmers.... |
9229ea5e-8637-4337-af30-2195b89bbc3d | {
"language": "C#"
} | ```c#
using Chalmers.ILL.Members;
using Chalmers.ILL.Models.Page;
using Chalmers.ILL.OrderItems;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Mvc;
using Umbraco.Web.Models;
using Umbraco.Web.Mvc;
namespace Chalmers.... | ```c#
using Chalmers.ILL.Members;
using Chalmers.ILL.Models.Page;
using Chalmers.ILL.OrderItems;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Mvc;
using Umbraco.Web.Models;
using Umbraco.Web.Mvc;
namespace Chalmers.... |
4f14cffe-ad96-48be-b961-a0de2580108d | {
"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.Diagnostics.Contracts;
using System.Text;
namespace System.Globalization
{
public partial class TextInfo
{
//////////////////////////... | ```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.Diagnostics.Contracts;
using System.Text;
namespace System.Globalization
{
public partial class TextInfo
{
//////////////////////////... |
559a2a69-7208-4c71-a215-8b4ee90c0b85 | {
"language": "C#"
} | ```c#
using System.Collections.Generic;
using System.Linq;
using System.Xml;
using System.Xml.Linq;
using VanillaTransformer.Core.Utility;
namespace VanillaTransformer.Core.ValuesProviders
{
public class XmlInlineConfigurationValuesProvider:IValuesProvider
{
private readonly XElement inlineValues;
... | ```c#
using System.Collections.Generic;
using System.Linq;
using System.Xml;
using System.Xml.Linq;
using VanillaTransformer.Core.Utility;
namespace VanillaTransformer.Core.ValuesProviders
{
public class XmlInlineConfigurationValuesProvider:IValuesProvider
{
private readonly XElement inlineValues;
... |
3f262d98-666c-479a-a641-9ff9f99cf2de | {
"language": "C#"
} | ```c#
namespace NuGet.Lucene.Web.Extension.Controllers
{
#region Usings
using AspNet.WebApi.HtmlMicrodataFormatter;
using NuGet.Lucene.Web.DataServices;
using NuGet.Lucene.Web.Hubs;
#endregion
/// <summary>
/// Provides documentation and semantic information about various
/// ... | ```c#
namespace NuGet.Lucene.Web.Extension.Controllers
{
#region Usings
using AspNet.WebApi.HtmlMicrodataFormatter;
using NuGet.Lucene.Web.DataServices;
using NuGet.Lucene.Web.Hubs;
#endregion
/// <summary>
/// Provides documentation and semantic information about various
/// ... |
4bc3958f-c585-4263-baed-c5373b25a098 | {
"language": "C#"
} | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using osu.Framework.Extensions.IEnumerableExtensions;
using osu.Framework.Screens;
namespace osu.Game.Graphics.UserInterface
{
/// <summary... | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using osu.Framework.Extensions.IEnumerableExtensions;
using osu.Framework.Graphics.UserInterface;
using osu.Framework.Screens;
namespace osu.Ga... |
b63688cb-8020-4258-85c7-7c267166a6d6 | {
"language": "C#"
} | ```c#
using System;
namespace MySql.Data.MySqlClient
{
public enum MySqlDbType
{
Decimal,
Byte,
Int16,
Int24 = 9,
Int32 = 3,
Int64 = 8,
Float = 4,
Double,
Timestamp = 7,
Date = 10,
Time,
DateTime,
[Obsolete("The Datetime enum value is obsolete. Please use DateTime.")]
Datetime = 12,
Ye... | ```c#
using System;
namespace MySql.Data.MySqlClient
{
public enum MySqlDbType
{
Decimal,
Byte,
Int16,
Int32,
Float,
Double,
Timestamp = 7,
Int64,
Int24,
Date,
Time,
DateTime,
[Obsolete("The Datetime enum value is obsolete. Please use DateTime.")]
Datetime = 12,
Year,
Newdate,
VarS... |
0347dae0-6b87-4062-953e-b2fd6f29aa50 | {
"language": "C#"
} | ```c#
using System;
using System.Linq;
using System.Reflection;
using Abp.Dependency;
using Castle.Core;
namespace Abp.EntityHistory
{
internal static class EntityHistoryInterceptorRegistrar
{
public static void Initialize(IIocManager iocManager)
{
iocManager.IocContainer.Kernel.Co... | ```c#
using System;
using System.Linq;
using System.Reflection;
using Abp.Dependency;
using Castle.Core;
namespace Abp.EntityHistory
{
internal static class EntityHistoryInterceptorRegistrar
{
public static void Initialize(IIocManager iocManager)
{
iocManager.IocContainer.Kernel.Co... |
527cb1f4-c3f4-49ec-9e77-a91e6a42c782 | {
"language": "C#"
} | ```c#
using System;
using System.Linq;
using System.Net;
using System.Web.Http;
using VotingApplication.Data.Context;
using VotingApplication.Data.Model;
using VotingApplication.Web.Api.Models.DBViewModels;
namespace VotingApplication.Web.Api.Controllers
{
public class ManagePollTypeController : WebApiController
... | ```c#
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Web.Http;
using VotingApplication.Data.Context;
using VotingApplication.Data.Model;
using VotingApplication.Web.Api.Models.DBViewModels;
namespace VotingApplication.Web.Api.Controllers
{
... |
c5d53c15-d7ac-4d27-b748-18e4c00edc1b | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
namespace Conventional
{
public class TypeScanner : ITypeScanner
{
private readonly ITypeSource _typeSource;
private readonly IList<IConvention> _conventions = new List<IConvention>();
publ... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
namespace Conventional
{
public class TypeScanner : ITypeScanner
{
private readonly ITypeSource _typeSource;
private readonly IList<IConvention> _conventions = new List<IConvention>();
publ... |
ac5b15c3-d183-4371-83b2-3f7107b9b31c | {
"language": "C#"
} | ```c#
using Neptuo.Observables.Commands;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebCamImageCollector.RemoteControl.Services;
using WebCamImageCollector.RemoteControl.Views;
namespace WebCamImageCollector.RemoteControl.ViewMode... | ```c#
using Neptuo.Observables.Commands;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebCamImageCollector.RemoteControl.Services;
using WebCamImageCollector.RemoteControl.Views;
namespace WebCamImageCollector.RemoteControl.ViewMode... |
81fd3c63-4bc6-429b-be0a-4d2236e27560 | {
"language": "C#"
} | ```c#
namespace Sandbox
{
public class Program
{
public static void Main()
{
}
}
}```
Use MainAsync instead of Main | ```c#
using System.Threading.Tasks;
namespace Sandbox
{
public class Program
{
public static void Main() => new Program().MainAsync().GetAwaiter().GetResult();
private async Task MainAsync()
{
}
}
}``` |
1b1bd49e-43df-433f-91cf-fda4a4ead77e | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Windows.Data;
namespace NuPack.Dialog.PackageManagerUI {
public class StringCollectionsToStringConverter : IValueConverter {
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo ... | ```c#
using System;
using System.Collections.Generic;
using System.Windows.Data;
namespace NuPack.Dialog.PackageManagerUI {
public class StringCollectionsToStringConverter : IValueConverter {
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo ... |
bcc678ee-6da2-4d9e-87c1-8af42c4e99b4 | {
"language": "C#"
} | ```c#
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace SharpLayout
{
public class Section
{
public PageSettings PageSettings { get; }
public List<Table> Tables { get; } = new List<Table>();
public Section(PageSettings pageSettings)
{
... | ```c#
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace SharpLayout
{
public class Section
{
public PageSettings PageSettings { get; }
public List<Table> Tables { get; } = new List<Table>();
public Section(PageSettings pageSettings)
{
... |
74632be8-0db0-4a32-8afe-f37524e0c619 | {
"language": "C#"
} | ```c#
using System.Collections.Generic;
using System.IO;
using System.Linq;
using ICSharpCode.SharpZipLib.Tar;
namespace AppHarbor
{
public static class CompressionExtensions
{
public static void ToTar(this DirectoryInfo sourceDirectory, Stream output)
{
var archive = TarArchive.CreateOutputTarArchive(output... | ```c#
using System.Collections.Generic;
using System.IO;
using System.Linq;
using ICSharpCode.SharpZipLib.Tar;
namespace AppHarbor
{
public static class CompressionExtensions
{
public static void ToTar(this DirectoryInfo sourceDirectory, Stream output)
{
var archive = TarArchive.CreateOutputTarArchive(output... |
bad5fa56-cc08-4513-9c56-7e66017fb17e | {
"language": "C#"
} | ```c#
using Windows.UI.Xaml;
using System.Threading.Tasks;
using TraktApiSharp.Example.UWP.Services.SettingsServices;
using Windows.ApplicationModel.Activation;
using Template10.Controls;
using Template10.Common;
using System;
using System.Linq;
using Windows.UI.Xaml.Data;
namespace TraktApiSharp.Example.UWP
{
///... | ```c#
using System.Threading.Tasks;
using Template10.Controls;
using TraktApiSharp.Example.UWP.Services.SettingsServices;
using Windows.ApplicationModel.Activation;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Data;
namespace TraktApiSharp.Example.UWP
{
/// Documentation on APIs used in this page:
/// https://... |
32a2e7ae-3bd1-4dc6-a8b4-b8e398004a3c | {
"language": "C#"
} | ```c#
using CommandLine;
using CommandLine.Text;
namespace Builder
{
public enum OptionBool
{
False,
True
}
public class Options
{
[Option("buildDir", Required = true)]
public string BuildDir { get; set; }
[Option("buildArtifactsCacheDir", Required = false... | ```c#
using CommandLine;
using CommandLine.Text;
namespace Builder
{
public enum OptionBool
{
False,
True
}
public class Options
{
[Option("buildDir", Required = true)]
public string BuildDir { get; set; }
[Option("buildArtifactsCacheDir", Required = false... |
c3dddb9a-c634-46b4-9342-a059a5a8fa15 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
public class ProfileKeys {
public static string login_count = "login_count";
}
public class Profile : DataObject {
public virtual int login_count {
get {
return Get<int>(ProfileKeys.login_count);... | ```c#
using System;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
public class ProfileKeys {
public static string login_count = "login_count";
}
public class Profile : DataObject {
public virtual int login_count {
get {
return Get<int>(ProfileKeys.login_count);... |
0f530e12-efb0-40c4-b67e-4790bc99895e | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using Avalonia.Native.Interop;
using Avalonia.Platform;
namespace Avalonia.Native
{
class ScreenImpl : IScreenImpl, IDisposable
{
private IAvnScreens _native;
public ScreenImpl(IAvnScreens native)
{
_native = native;
... | ```c#
using System;
using System.Collections.Generic;
using Avalonia.Native.Interop;
using Avalonia.Platform;
namespace Avalonia.Native
{
class ScreenImpl : IScreenImpl, IDisposable
{
private IAvnScreens _native;
public ScreenImpl(IAvnScreens native)
{
_native = native;
... |
1d7264f4-5efc-4226-a13a-e0a5e1e2fb55 | {
"language": "C#"
} | ```c#
using System.IO;
using CppSharp.Generators;
namespace CppSharp.Utils
{
public abstract class LibraryTest : ILibrary
{
readonly string name;
readonly LanguageGeneratorKind kind;
public LibraryTest(string name, LanguageGeneratorKind kind)
{
this.name = name;
... | ```c#
using System.IO;
using CppSharp.Generators;
namespace CppSharp.Utils
{
public abstract class LibraryTest : ILibrary
{
readonly string name;
readonly LanguageGeneratorKind kind;
public LibraryTest(string name, LanguageGeneratorKind kind)
{
this.name = name;
... |
35b9d843-53f5-46c2-9cc2-febb923d1282 | {
"language": "C#"
} | ```c#
@using SpaceBlog.Models;
@model IEnumerable<Article>
@{
ViewBag.Title = "Index";
}
<h2>Index</h2>
<table class="table">
<tr>
<th> Title</th>
<th> Author</th>
</tr>
@foreach(var article in Model)
{
<tr>
... | ```c#
@using SpaceBlog.Models;
@model IEnumerable<Article>
@{
ViewBag.Title = "Index";
}
<h2>Index</h2>
<table class="table">
<tr>
<th> Title</th>
<th> Author</th>
</tr>
@foreach(var article in Model)
{
<tr>
... |
36166996-e6bf-4604-b947-795a6679f079 | {
"language": "C#"
} | ```c#
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using ExplicitlyImpl.AspNetCore.Mvc.FluentActions;
namespace SimpleApi
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
... | ```c#
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using ExplicitlyImpl.AspNetCore.Mvc.FluentActions;
using Microsoft.AspNetCore.Mvc;
namespace SimpleApi
{
public class Startup
{
public void ConfigureServices(IServiceCollection... |
3ce97ae1-702b-4237-b24c-0116bc2b452b | {
"language": "C#"
} | ```c#
@model PagedMemberListViewModel
@using GiveCRM.Web.Models.Members
@using PagedList.Mvc
@{
Layout = null;
}
<script src="@Url.Content("~/Scripts/ViewScripts/MemberList.js")" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
MemberList.Initialise();
});
</scrip... | ```c#
@model PagedMemberListViewModel
@using GiveCRM.Web.Models.Members
@using PagedList.Mvc
@{
Layout = null;
}
<script src="@Url.Content("~/Scripts/ViewScripts/MemberList.js")" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
MemberList.Initialise();
});
</scrip... |
9b1bfe1e-f901-48b1-a566-3d5045398aa4 | {
"language": "C#"
} | ```c#
using System;
using Chromium;
using Chromium.WebBrowser;
using Neutronium.Core;
using Neutronium.WebBrowserEngine.ChromiumFx.EngineBinding;
using Neutronium.WebBrowserEngine.ChromiumFx.Session;
using Neutronium.WPF;
using Chromium.Event;
namespace Neutronium.WebBrowserEngine.ChromiumFx
{
public class Chromi... | ```c#
using System;
using Chromium;
using Chromium.WebBrowser;
using Neutronium.Core;
using Neutronium.WebBrowserEngine.ChromiumFx.EngineBinding;
using Neutronium.WebBrowserEngine.ChromiumFx.Session;
using Neutronium.WPF;
using Chromium.Event;
namespace Neutronium.WebBrowserEngine.ChromiumFx
{
public class Chromi... |
365576df-6a92-4fba-98e0-1ff005665093 | {
"language": "C#"
} | ```c#
using Microsoft.Extensions.Configuration;
using Persistence.MongoDB;
using SimpleInjector;
using SO115App.API.Models.Servizi.Infrastruttura.GestioneSoccorso;
using SO115App.Persistence.MongoDB;
namespace SO115App.CompositionRoot
{
internal static class PersistenceServicesConfigurator_MongoDB
{
i... | ```c#
using Microsoft.Extensions.Configuration;
using Persistence.MongoDB;
using SimpleInjector;
using SO115App.API.Models.Servizi.Infrastruttura.GestioneSoccorso;
using SO115App.Models.Servizi.Infrastruttura.GestioneSoccorso;
using SO115App.Persistence.MongoDB;
namespace SO115App.CompositionRoot
{
internal stati... |
69ef4b07-77b3-4d42-9459-6d8be11c5bb2 | {
"language": "C#"
} | ```c#
using System;
using System.IO;
namespace Conduit
{
class Program
{
public static string APP_NAME = "Mimic Conduit";
public static string VERSION = "2.0.0";
public static string HUB_WS = "ws://127.0.0.1:51001/conduit";
public static string HUB = "http://127.0.0... | ```c#
using System;
using System.IO;
namespace Conduit
{
class Program
{
public static string APP_NAME = "Mimic Conduit";
public static string VERSION = "2.0.0";
public static string HUB_WS = "ws://rift.mimic.lol/conduit";
public static string HUB = "https://rift.mi... |
5273779d-67da-4cb2-97ff-13c1d126262e | {
"language": "C#"
} | ```c#
namespace TraktApiSharp.Requests.WithoutOAuth.Movies.Common
{
using Base.Get;
using Enums;
using Objects.Basic;
using Objects.Get.Movies.Common;
using System.Collections.Generic;
internal class TraktMoviesMostWatchedRequest : TraktGetRequest<TraktPaginationListResult<TraktMostWatchedMovi... | ```c#
namespace TraktApiSharp.Requests.WithoutOAuth.Movies.Common
{
using Base;
using Base.Get;
using Enums;
using Objects.Basic;
using Objects.Get.Movies.Common;
using System.Collections.Generic;
internal class TraktMoviesMostWatchedRequest : TraktGetRequest<TraktPaginationListResult<Trak... |
c3cc2471-f9a8-4daa-b95d-560fc4ffc3be | {
"language": "C#"
} | ```c#
using Topshelf;
using Topshelf.HostConfigurators;
namespace Cogito.Components.Server
{
public static class Program
{
/// <summary>
/// Main application entry point.
/// </summary>
/// <param name="args"></param>
/// <returns></returns>
public static int ... | ```c#
using Topshelf;
using Topshelf.HostConfigurators;
namespace Cogito.Components.Server
{
public static class Program
{
/// <summary>
/// Main application entry point.
/// </summary>
/// <param name="args"></param>
/// <returns></returns>
public static int ... |
1b3426d0-2155-493a-b817-93bfa3ab717a | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UKParliData.BPTweets
{
public class TweetLog : ITweetLog
{
private string filename;
public TweetLog(string filename)
{
this.... | ```c#
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UKParliData.BPTweets
{
public class TweetLog : ITweetLog
{
private string filename;
public TweetLog(string filename)
{
this.... |
00fd6b0f-d234-41f7-a891-ee1bc087323b | {
"language": "C#"
} | ```c#
using System;
using System.Linq;
using CommandLine;
using Ninject;
using P2E.ExtensionMethods;
using P2E.Interfaces.AppLogic;
using P2E.Interfaces.CommandLine;
namespace P2EApp
{
internal static class Program
{
static void Main(string[] args)
{
try
{
... | ```c#
using System;
using System.Linq;
using CommandLine;
using Ninject;
using P2E.ExtensionMethods;
using P2E.Interfaces.AppLogic;
using P2E.Interfaces.CommandLine;
namespace P2EApp
{
internal static class Program
{
static void Main(string[] args)
{
try
{
... |
1d7ad2dd-effd-4cfb-ad43-05a35f219ad8 | {
"language": "C#"
} | ```c#
using EPiServer.Framework.Localization;
using EPiServer.ServiceLocation;
using EPiServer.Web;
namespace AlloyDemoKit.Business.Channels
{
/// <summary>
/// Base class for all resolution definitions
/// </summary>
public abstract class DisplayResolutionBase : IDisplayResolution
{
privat... | ```c#
using System;
using EPiServer.Framework.Localization;
using EPiServer.ServiceLocation;
using EPiServer.Web;
namespace AlloyDemoKit.Business.Channels
{
/// <summary>
/// Base class for all resolution definitions
/// </summary>
public abstract class DisplayResolutionBase : IDisplayResolution
{
... |
36edbe59-ed0b-47e2-b2e4-a32732ac1161 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace ModGL.Numerics
{
public static class MatrixExtensions
{
public static Matrix4f Translate(this Matrix4f mat, Vector3f offset)
{
... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace ModGL.Numerics
{
public static class MatrixExtensions
{
public static Matrix4f Translate(this Matrix4f mat, Vector3f offset)
{
... |
445326cb-e30b-4d0c-afd6-dd03915df423 | {
"language": "C#"
} | ```c#
namespace Sitecore.Courier.Runner
{
using Sitecore.Update;
using Sitecore.Update.Engine;
using System;
/// <summary>
/// Defines the program class.
/// </summary>
internal class Program
{
/// <summary>
/// Mains the specified args.
/// </summary>
/... | ```c#
namespace Sitecore.Courier.Runner
{
using Sitecore.Update;
using Sitecore.Update.Engine;
using System;
/// <summary>
/// Defines the program class.
/// </summary>
internal class Program
{
/// <summary>
/// Mains the specified args.
/// </summary>
/... |
b54cc3e0-ecfb-40bc-870d-130951d1baa9 | {
"language": "C#"
} | ```c#
using System;
using System.IO.Ports;
using MYCroes.ATCommands;
using MYCroes.ATCommands.Forwarding;
namespace SupportManager.Control
{
public class ATHelper : IDisposable
{
private readonly SerialPort serialPort;
public ATHelper(string port)
{
serialPort = new SerialP... | ```c#
using System;
using System.IO.Ports;
using MYCroes.ATCommands;
using MYCroes.ATCommands.Forwarding;
namespace SupportManager.Control
{
public class ATHelper : IDisposable
{
private readonly SerialPort serialPort;
public ATHelper(string port)
{
serialPort = new SerialP... |
84c570f6-1396-4e70-9ff7-5dd1c107a452 | {
"language": "C#"
} | ```c#
using Bugsnag.Payload;
using Xunit;
namespace Bugsnag.Tests
{
public class ReportTests
{
[Fact]
public void BasicTest()
{
System.Exception exception = null;
var configuration = new Configuration("123456");
try
{
throw new System.Exception("test");
}
ca... | ```c#
using Bugsnag.Payload;
using Xunit;
namespace Bugsnag.Tests
{
public class ReportTests
{
[Fact]
public void BasicTest()
{
System.Exception exception = null;
var configuration = new Configuration("123456");
try
{
throw new System.Exception("test");
}
ca... |
8eebe762-b634-473e-b8cd-0715db52ea9f | {
"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 ILCompiler.DependencyAnalysisFramework;
using Internal.TypeSystem;
namespace ILCompiler.... | ```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 ILCompiler.DependencyAnalysisFramework;
using Internal.TypeSystem;
namespace ILCompiler.... |
dac1a60f-5e3f-4b05-9549-5fc896ea44a5 | {
"language": "C#"
} | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Threading;
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;
using osuTK;
namespace osu.Framework.Tests.Visual... | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Threading;
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;
using osuTK;
namespace osu.Framework.Tests.Visual... |
d5bba9dd-5c8b-4410-b075-a9c87d46cbb7 | {
"language": "C#"
} | ```c#
//
// Copyright 2017 the original author or authors.
//
// 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 appli... | ```c#
//
// Copyright 2017 the original author or authors.
//
// 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 appli... |
978a8435-4e3a-4b80-acd5-1eef4a2e739c | {
"language": "C#"
} | ```c#
// // //-------------------------------------------------------------------------------------------------
// // // <copyright file="ModelFormats.cs" company="Microsoft Corporation">
// // // Copyright (c) Microsoft Corporation. All rights reserved.
// // // </copyright>
// // //---------------------------------... | ```c#
// // //-------------------------------------------------------------------------------------------------
// // // <copyright file="ModelFormats.cs" company="Microsoft Corporation">
// // // Copyright (c) Microsoft Corporation. All rights reserved.
// // // </copyright>
// // //---------------------------------... |
cb5ce14f-072f-404d-8c5b-bd7131ee9f97 | {
"language": "C#"
} | ```c#
using System;
using System.Deployment.Application;
using System.Globalization;
using System.Windows;
using System.Windows.Documents;
using StringResources = PackageExplorer.Resources.Resources;
namespace PackageExplorer
{
/// <summary>
/// Interaction logic for AboutWindow.xaml
/// </summary>
pu... | ```c#
using System;
using System.Deployment.Application;
using System.Globalization;
using System.Reflection;
using System.Windows;
using System.Windows.Documents;
using StringResources = PackageExplorer.Resources.Resources;
namespace PackageExplorer
{
/// <summary>
/// Interaction logic for AboutWindow.xaml
... |
2edd5abd-7966-409e-8465-ada6ef5dfef5 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace NativeWiFiApi_TestWinForm
{
public partial class Form1 : Form
{
public Form1()
{... | ```c#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace NativeWiFiApi_TestWinForm
{
public partial class Form1 : Form
{
public Form1()
{... |
6133b2f0-107b-432c-bc58-79633cff5170 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.SqlServer.Dts.Runtime;
namespace NBi.Core.Etl.IntegrationService
{
abstract class EtlRunner: IEtlRunner
{
public IEtl Etl { get; private set; }
public EtlRunner(IEtl etl)
{
... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.SqlServer.Dts.Runtime;
namespace NBi.Core.Etl.IntegrationService
{
abstract class EtlRunner: IEtlRunner
{
public IEtl Etl { get; private set; }
public EtlRunner(IEtl etl)
{
... |
75eb208f-6a48-4027-b4c7-899e1ee653df | {
"language": "C#"
} | ```c#
using ShopifySharp.Filters;
using ShopifySharp.Infrastructure;
using System.Collections.Generic;
using System.Linq;
namespace ShopifySharp.Lists
{
public class ListResult<T>
{
public IEnumerable<T> Items { get; }
public LinkHeaderParseResult<T> LinkHeader { get; }
public bool Ha... | ```c#
using ShopifySharp.Filters;
using ShopifySharp.Infrastructure;
using System.Collections.Generic;
using System.Linq;
namespace ShopifySharp.Lists
{
public class ListResult<T>
{
public IEnumerable<T> Items { get; }
public LinkHeaderParseResult<T> LinkHeader { get; }
public bool Ha... |
e7c30780-70c3-4336-a006-c5ecf993e223 | {
"language": "C#"
} | ```c#
using UnityEngine;
using UnityEditor;
using System.Collections;
using DialoguerEditor;
public class DialogueEditorAssetModificationProcessor : UnityEditor.AssetModificationProcessor {
public static string[] OnWillSaveAssets(string[] paths){
//DialogueEditorWindow window = (DialogueEditorWindow)EditorWindow.G... | ```c#
using UnityEngine;
using UnityEditor;
using System.Collections;
using DialoguerEditor;
public class DialogueEditorAssetModificationProcessor : UnityEditor.AssetModificationProcessor {
public static string[] OnWillSaveAssets(string[] paths){
//DialogueEditorWindow window = (DialogueEditorWindow)EditorWindow.G... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.