doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
fe89d640-c7b2-48e9-bad5-79b86e47ac67
{ "language": "C#" }
```c# using System; using System.Collections.ObjectModel; using System.Windows.Input; using GalaSoft.MvvmLight; using GalaSoft.MvvmLight.Command; using twitch_tv_viewer.Repositories; namespace twitch_tv_viewer.ViewModels { internal class SettingsViewModel : ViewModelBase { private ObservableCollection...
```c# using System; using System.Collections.ObjectModel; using System.Windows.Input; using GalaSoft.MvvmLight; using GalaSoft.MvvmLight.Command; using twitch_tv_viewer.Repositories; namespace twitch_tv_viewer.ViewModels { internal class SettingsViewModel : ViewModelBase { private ObservableCollection...
9c8c0837-31f4-45a4-9473-2cd61048da06
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Utils; using osu.Game.Beatmaps; using osu.Game.Scr...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Utils; using osu.Game.Beatmaps; using osu.Game.Scr...
b4786aa6-9572-4dc4-b242-6ca09be5faa8
{ "language": "C#" }
```c# @using Microsoft.AspNetCore.Builder @using Microsoft.Extensions.Options @model IEnumerable<Category> @inject IOptions<RequestLocalizationOptions> LocOptions @{ var cultures = LocOptions.Value.SupportedUICultures .Skip(1) .Select(culture => new { Culture = culture.Name, Name = culture.English...
```c# @using Microsoft.AspNetCore.Builder @using Microsoft.Extensions.Options @model IEnumerable<Category> @inject IOptions<RequestLocalizationOptions> LocOptions @{ var cultures = LocOptions.Value.SupportedUICultures .Skip(1) .Select(culture => new { Culture = culture.Name, Name = culture.English...
756273da-3c33-4eac-9f18-3e950c7c426b
{ "language": "C#" }
```c# using FogCreek.Plugins; [assembly: AssemblyFogCreekPluginId("FBExtendedEvents@goit.io")] [assembly: AssemblyFogCreekMajorVersion(3)] [assembly: AssemblyFogCreekMinorVersionMin(5)] [assembly: AssemblyFogCreekEmailAddress("jozef.izso@gmail.com")] [assembly: AssemblyFogCreekWebsite("https://github.com/jozefizso/FB...
```c# using FogCreek.Plugins; [assembly: AssemblyFogCreekPluginId("FBExtendedEvents@goit.io")] [assembly: AssemblyFogCreekMajorVersion(3)] [assembly: AssemblyFogCreekMinorVersionMin(5)] [assembly: AssemblyFogCreekEmailAddress("jozef.izso@gmail.com")] [assembly: AssemblyFogCreekWebsite("https://github.com/jozefizso/Fo...
43a78f63-a8bc-4e4b-a7d0-53e9cc5dae12
{ "language": "C#" }
```c# using BatteryCommander.Web.Models; using FluentScheduler; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System; using System.IO; namespace BatteryCommander.Web.Controllers { [ApiExplorerSettings(IgnoreApi = true)] public class AdminController : Controller { ...
```c# using BatteryCommander.Web.Models; using FluentScheduler; using Microsoft.AspNetCore.Mvc; using System.Linq; using System.Threading.Tasks; namespace BatteryCommander.Web.Controllers { [ApiExplorerSettings(IgnoreApi = true)] public class AdminController : Controller { // Admin Tasks: ...
85b82657-e857-47a9-9b1f-1d12cdddb28a
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using Windows.Devices.Bluetooth; using Windows.Devices.Bluetooth.GenericAttributeProfile; using Windows.Foundation; namespace BleLab.Services { public class CharacteristicSubscriptionService { private readonly Dictionary<Guid, Ga...
```c# using System; using System.Collections.Generic; using System.Linq; using Windows.Devices.Bluetooth; using Windows.Devices.Bluetooth.GenericAttributeProfile; using Windows.Foundation; namespace BleLab.Services { public class CharacteristicSubscriptionService { private readonly Dictionary<Guid, Ga...
4cd4aa0a-0fea-4ff7-9a38-1918b8d01748
{ "language": "C#" }
```c# using System; using Bartender; using ConsoleApplication.Domain.Personne.Create; using ConsoleApplication.Domain.Personne.Read; using ConsoleApplication.Registries; using StructureMap; namespace ConsoleApplication { class Program { static void Main(string[] args) { var registr...
```c# using System; using Bartender; using ConsoleApplication.Domain.Personne.Create; using ConsoleApplication.Domain.Personne.Read; using ConsoleApplication.Registries; using StructureMap; namespace ConsoleApplication { class Program { static void Main() { var registry = new Regis...
0250290b-6c1f-4894-b3e5-3f6bd7773c2e
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Common.Alogs { public static class GiftExtensions { public static double DistanceTo(this Gift one, Gift two) { var phyOne = one.Latitude / 360 * Math....
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Common.Alogs { public static class GiftExtensions { public static double DistanceTo(this Gift one, Gift two) { const double radius = 6371000; ...
43e703ac-ef9c-4a59-89db-c4d44d4c6024
{ "language": "C#" }
```c# using System.Threading.Tasks; using Microsoft.AspNet.Builder; using Glimpse.Host.Web.AspNet.Framework; namespace Glimpse.Host.Web.AspNet { public class GlimpseMiddleware { private readonly RequestDelegate _innerNext; public GlimpseMiddleware(RequestDelegate innerNext) { ...
```c# using System.Threading.Tasks; using Microsoft.AspNet.Builder; using Glimpse.Host.Web.AspNet.Framework; using Glimpse.Agent.Web; namespace Glimpse.Host.Web.AspNet { public class GlimpseMiddleware { private readonly RequestDelegate _innerNext; private readonly WebAgentRuntime _runtime; ...
f3d594a7-28a1-4d01-89e5-c04f7405bba9
{ "language": "C#" }
```c# // ReSharper disable once CheckNamespace namespace IdParser { public enum Version : byte { PreStandard = 0, Aamva2000 = 1, Aamva2003 = 2, Aamva2005 = 3, Aamva2009 = 4, Aamva2010 = 5, Aamva2011 = 6, Aamva2012 = 7, Aamva2013 = 8, ...
```c# // ReSharper disable once CheckNamespace namespace IdParser { public enum Version : byte { PreStandard = 0, Aamva2000 = 1, Aamva2003 = 2, Aamva2005 = 3, Aamva2009 = 4, Aamva2010 = 5, Aamva2011 = 6, Aamva2012 = 7, Aamva2013 = 8, ...
dd0769f5-bb36-4495-b11e-00617f3c28a9
{ "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 osu.Framework.Graphics; using osu.Framework.Input.Events; using osu.Game.Graphics.Containers; using osuTK; namespace osu.Game.Rulesets.Edi...
```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 osu.Framework.Graphics; using osu.Framework.Input.Events; using osu.Game.Graphics.Containers; using osuTK; namespace osu.Game.Rulesets.Edi...
15881ee6-28e0-469d-addf-64c96ebd9d6d
{ "language": "C#" }
```c# using System.IO; namespace AWTY.Http.IntegrationTests { /// <summary> /// A non-optimised version of <see cref="MemoryStream"/> for use in tests. /// </summary> /// <remarks> /// <see cref="MemoryStream"/> performs a bunch of optimisations unless subclassed. /// /// Unfor...
```c# using System.IO; namespace AWTY.Http.IntegrationTests { /// <summary> /// A non-optimised version of <see cref="MemoryStream"/> for use in tests. /// </summary> /// <remarks> /// <see cref="MemoryStream"/>'s CopyToAsync performs a bunch of optimisations unless subclassed. /// ...
b381a282-7e2b-47c0-a220-653d424e52b9
{ "language": "C#" }
```c# // ----------------------------------------------------------------------- // <copyright file="Global.asax.cs" company="(none)"> // Copyright © 2015 John Gietzen. All Rights Reserved. // This source is subject to the MIT license. // Please see license.md for more information. // </copyright> // -----------...
```c# // ----------------------------------------------------------------------- // <copyright file="Global.asax.cs" company="(none)"> // Copyright © 2015 John Gietzen. All Rights Reserved. // This source is subject to the MIT license. // Please see license.md for more information. // </copyright> // -----------...
14c7decc-c90e-46f0-8640-4f02871ee6ab
{ "language": "C#" }
```c# @using CRP.Controllers @using Microsoft.Web.Mvc @model IEnumerable<CRP.Core.Domain.Transaction> <div class="tab-pane active" id="Transactions"> <table id="table-Transactions"> <thead> <tr> <th></th> <th>Transaction</th> <th>Qu...
```c# @using CRP.Controllers @using Microsoft.Web.Mvc @model IEnumerable<CRP.Core.Domain.Transaction> <div class="tab-pane active" id="Transactions"> <table id="table-Transactions"> <thead> <tr> <th></th> <th>Transaction</th> <th>Qu...
31d480a2-a28e-4ec1-a8e9-05af7183403d
{ "language": "C#" }
```c# using Microsoft.AspNet.Identity.EntityFramework; using NUnit.Framework; using ZobShop.Models; namespace ZobShop.Tests.Models.UserTests { [TestFixture] public class UserConstructorTests { [Test] public void Constructor_Should_InitializeUserCorrectly() { var user = ...
```c# using Microsoft.AspNet.Identity.EntityFramework; using NUnit.Framework; using ZobShop.Models; namespace ZobShop.Tests.Models.UserTests { [TestFixture] public class UserConstructorTests { [Test] public void Constructor_Should_InitializeUserCorrectly() { var user = ...
95601084-50ff-46df-95f4-50e59c96748a
{ "language": "C#" }
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="BackupMessageHandler.cs" company="Naos"> // Copyright 2015 Naos // </copyright> // ----------------------------------------------------------------------------------------...
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="BackupMessageHandler.cs" company="Naos"> // Copyright 2015 Naos // </copyright> // ----------------------------------------------------------------------------------------...
bd02ee2d-33fb-4f7e-b101-3dcd8a7547b8
{ "language": "C#" }
```c# using System; using System.Runtime.InteropServices; namespace PlayerRank { public class PlayerScore { public string Name { get; set; } public Points Points { get; internal set; } public PlayerScore(string name) { Name = name; Points = new ...
```c# using System; using System.Runtime.InteropServices; namespace PlayerRank { public class PlayerScore { public string Name { get; set; } public Points Points { get; internal set; } public PlayerScore(string name) { Name = name; Points = new ...
edd685d6-0fcd-436c-a8fb-55c62b57a308
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.Media.Capture; namespace ZXing.Net.Mobile { public class NotSupported { // Windows Phone 8.1 Native and Windows 8 RT are not supported // Microsoft left out ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.Media.Capture; namespace ZXing.Net.Mobile { public class NotSupported { // Windows Phone 8.1 Native and Windows 8 RT are not supported // Microsoft left out ...
84422f02-e7ab-417b-98e7-ca81842b6f3e
{ "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; using Xunit; // 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...
5ef417f8-a970-4857-bf13-6ee03aa5698c
{ "language": "C#" }
```c# using System; using System.Diagnostics; using Microsoft.Win32; namespace Admo.Utilities { public class SoftwareUtils { public static string GetChromeVersion() { var path = Registry.GetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe", ...
```c# using System; using System.Diagnostics; using Microsoft.Win32; namespace Admo.Utilities { public class SoftwareUtils { public static string GetChromeVersion() { //Handle both system wide and user installs of chrome var pathLocal = Registry.GetValue(@"HKEY_CURRENT...
f25617fd-cbaf-4a3a-8ef4-63fa3388ab2d
{ "language": "C#" }
```c# using System; using System.IO; using Compilify.Models; namespace Compilify.Services { public class CSharpExecutor { public CSharpExecutor() : this(new CSharpCompilationProvider()) { } public CSharpExecutor(ICSharpCompilationProvider compilationProvider) { ...
```c# using System; using System.IO; using Compilify.Models; namespace Compilify.Services { public class CSharpExecutor { public CSharpExecutor() : this(new CSharpCompilationProvider()) { } public CSharpExecutor(ICSharpCompilationProvider compilationProvider) { ...
30a980bb-f18c-4a5d-924a-2d2621b5ab59
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using Owin; namespace JSNLog { public static class AppBuilderExtensions { public static void UseJSNLog(this IAppBuilder app, string loggerUrlRegex = null) { app.Use<JsnlogMiddlewareComponent...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using Owin; namespace JSNLog { public static class AppBuilderExtensions { public static void UseJSNLog(this IAppBuilder app) { app.Use<JsnlogMiddlewareComponent>(); } } } ```
af9fd89f-11f8-40cc-b8a7-250cc8f8018a
{ "language": "C#" }
```c# using System.Reflection; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("CakeMail.RestClient")] [assembly: AssemblyDescription("CakeMail.RestClien...
```c# using System.Reflection; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("CakeMail.RestClient")] [assembly: AssemblyDescription("CakeMail.RestClien...
c9ea438d-df9b-474f-980b-e7dc80fe540f
{ "language": "C#" }
```c# @Scripts.Render("~/Resources/JavaScript/Bootstrap") @Scripts.Render("~/Resources/JavaScript/Bootstrap/Popover") @Scripts.Render("~/Resources/JavaScript/Framework") @if (UserHelper.IsAdmin) { @Scripts.Render("~/Resources/JavaScript/Bootstrap/Tour") @Scripts.Render("~/Resources/JavaScript/Bootstrap/Confir...
```c# @Scripts.Render("~/Resources/JavaScript/Bootstrap") @Scripts.Render("~/Resources/JavaScript/Bootstrap/Confirmation") @Scripts.Render("~/Resources/JavaScript/Bootstrap/Popover") @Scripts.Render("~/Resources/JavaScript/Framework") @if (UserHelper.IsAdmin) { @Scripts.Render("~/Resources/JavaScript/Bootstrap/To...
f7e0db74-3c4b-40e6-a664-df90b25466ce
{ "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 BenchmarkDotNet.Attributes; using osu.Framework.Graphics; using osu.Framework.Graphics.Shapes; using osu.Framework.Timing; using osuTK; na...
```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 BenchmarkDotNet.Attributes; using osu.Framework.Graphics; using osu.Framework.Graphics.Shapes; using osu.Framework.Timing; using osuTK; na...
3af3e4f0-67ab-4434-910d-efea66e1b6bd
{ "language": "C#" }
```c# using Hacknet; using HarmonyLib; using Pathfinder.Util; namespace Pathfinder.BaseGameFixes.Performance { [HarmonyPatch] internal static class NodeLookup { [HarmonyPostfix] [HarmonyPatch(typeof(ComputerLoader), nameof(ComputerLoader.loadComputer))] internal static void Populat...
```c# using Hacknet; using HarmonyLib; using Pathfinder.Event; using Pathfinder.Event.Loading; using Pathfinder.Util; namespace Pathfinder.BaseGameFixes.Performance { [HarmonyPatch] internal static class NodeLookup { [Util.Initialize] internal static void Initialize() { ...
053090b4-7628-480b-a119-0b435c3823a8
{ "language": "C#" }
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Graphics; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Osu.Objects; using osu.Game.Rulesets.Osu.Objects.Drawables; namespace osu.Gam...
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Graphics; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Osu.Objects; using osu.Game.Rulesets.Osu.Objects.Drawables; namespace osu.Gam...
8a272903-7ea5-406a-918c-04e22af5032a
{ "language": "C#" }
```c# using System; using System.Text; using System.Security.Cryptography; using System.IO; namespace FFImageLoading.Helpers { public class MD5Helper : IMD5Helper { public string MD5(Stream stream) { var hashProvider = new MD5CryptoServiceProvider(); var bytes = hashPro...
```c# using System; using System.Text; using System.Security.Cryptography; using System.IO; namespace FFImageLoading.Helpers { public class MD5Helper : IMD5Helper { public string MD5(Stream stream) { using (var hashProvider = new MD5CryptoServiceProvider()) { ...
aff34cb1-70e9-4f31-9b82-f8585136cf50
{ "language": "C#" }
```c# using System.Collections.Generic; public class Person { //--------------------------------------------------------------------------- public int Id { get; set; } public string Name { get; set; } public string Extension { get; set; } public List<Status> Status { get; set; } //----------------------...
```c# using System.Collections.Generic; public class Person { //--------------------------------------------------------------------------- public int Id { get; set; } public string Name { get; set; } public string Contact { get; set; } public List<Status> Status { get; set; } //------------------------...
bc951bd4-7611-4c96-850e-69ce74ab603f
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.InteropServices; namespace poshring { public class CredentialsManager { public IEnumerable<Credential> GetCredentials() { int count; IntPtr ptr; ...
```c# using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.InteropServices; namespace poshring { public class CredentialsManager { public IEnumerable<Credential> GetCredentials() { int count; IntPtr ptr; ...
f5b83f26-af92-4ff9-93bd-db846498fcba
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; namespace Module1 { public class Program { public static void Main(string[] args) { var host = new WebHostBuilder() ...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using Microsoft.AspNetCore.Modules; namespace Module1 { public class Program { public static void ...
c8defc52-740f-4ef3-bd91-88da51757ecd
{ "language": "C#" }
```c# using System.Collections.Generic; using UrlShortenerApi.Models; namespace UrlShortenerApi.Repositories { public interface IHeaderRepository { void Add(Microsoft.AspNetCore.Http.IHeaderDictionary request, int urlID); void Add(Header item); } } ``` Update variable name on Header Repos...
```c# using System.Collections.Generic; using UrlShortenerApi.Models; namespace UrlShortenerApi.Repositories { public interface IHeaderRepository { void Add(Microsoft.AspNetCore.Http.IHeaderDictionary headers, int urlID); void Add(Header item); } } ```
cac9f828-24c1-4674-b875-ce1d0c03b3c4
{ "language": "C#" }
```c# using Voxalia.ServerGame.WorldSystem; namespace Voxalia.ServerGame.EntitySystem { public abstract class EntityLiving: PhysicsEntity, EntityDamageable { public EntityLiving(Region tregion, bool ticks, float maxhealth) : base(tregion, ticks) { MaxHealth = maxhealth;...
```c# using System; using Voxalia.ServerGame.WorldSystem; namespace Voxalia.ServerGame.EntitySystem { public abstract class EntityLiving: PhysicsEntity, EntityDamageable { public EntityLiving(Region tregion, bool ticks, float maxhealth) : base(tregion, ticks) { MaxHealt...
6edc8a4f-6acb-4496-9cfe-8fa9d5800370
{ "language": "C#" }
```c# using AppGet.Commands.Install; using AppGet.Commands.Uninstall; using AppGet.Manifests; using AppGet.Processes; using NLog; namespace AppGet.Installers { public abstract class InstallerWhispererBase : IInstallerWhisperer { private readonly IProcessController _processController; private r...
```c# using System.ComponentModel; using AppGet.Commands.Install; using AppGet.Commands.Uninstall; using AppGet.Exceptions; using AppGet.Manifests; using AppGet.Processes; using NLog; namespace AppGet.Installers { public abstract class InstallerWhispererBase : IInstallerWhisperer { private readonly IP...
aceee565-8ea8-4bb9-94a5-16baacf639ef
{ "language": "C#" }
```c# using UnityEngine; using UnityEngine.UI; using System.Collections.Generic; public class NetworkManager : MonoBehaviour { public List<string> ChatMessages; // Goal #1: Create a reasonable chat system using the NEW UI System public void AddChatMessage(string message) { PhotonView.Get...
```c# using UnityEngine; using UnityEngine.UI; using System.Collections.Generic; public class NetworkManager : MonoBehaviour { public List<string> ChatMessages; public bool IsOfflineMode; // Goal #1: Create a reasonable chat system using the NEW UI System public void AddChatMessage(string me...
d9c12e74-1958-43ef-bc61-fd82dc17f3a0
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CareerHub.Client.API.Students.Experiences { public class ExperienceModel { public int ID { get; set; } public string Title { get; set; } public string Organisation { get; set; } pu...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CareerHub.Client.API.Students.Experiences { public class ExperienceModel { public int ID { get; set; } public string Title { get; set; } public string Organisation { get; set; } pu...
45c5bc70-9b75-4a40-accd-2dc1bb474d0b
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; using Phoebe.Base; using Phoebe.Common; using Phoebe.Model; namespace Phoebe.FormClient { static class Program { /// <summary> /// 全局操作 /// </summary> ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; using Phoebe.Base; using Phoebe.Common; using Phoebe.Model; namespace Phoebe.FormClient { static class Program { /// <summary> /// 全局操作 /// </summary> ...
2d8b514d-e84a-4a62-83a4-89329f7b4085
{ "language": "C#" }
```c# using UnityEngine; public class RollFudgeDie : RollSpecialDie { public override string Examine(Vector3 worldPos = default) { return $"It is showing side {GetFudgeMessage()}"; } protected override string GetMessage() { return $"The {dieName} lands a {GetFudgeMessage()}"; } private string GetFudgeMess...
```c# using UnityEngine; public class RollFudgeDie : RollSpecialDie { public override string Examine(Vector3 worldPos = default) { return $"It is showing {GetFudgeMessage()}"; } protected override string GetMessage() { return $"The {dieName} lands {GetFudgeMessage()}"; } private string GetFudgeMessage() ...
d6b3a59a-f575-4a67-b9db-f423d0160fb0
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using Microsoft.Framework.Logging; namespace OmniSharp.Utilities { public class DirectoryEnumerator { private ILogger _logger; public DirectoryEnumerator(ILoggerFactory loggerFactory) { ...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using Microsoft.Framework.Logging; namespace OmniSharp.Utilities { public class DirectoryEnumerator { private ILogger _logger; public DirectoryEnumerator(ILoggerFactory loggerFactory) { ...
bf702d7c-10a9-46af-bc9b-fb547eef76f1
{ "language": "C#" }
```c# using System; using System.IO; using MonoHaven.Resources; using MonoHaven.Resources.Layers; using MonoHaven.Utils; using NVorbis.OpenTKSupport; using OpenTK.Audio; namespace MonoHaven { public class Audio : IDisposable { private readonly AudioContext context; private readonly OggStreamer streamer; publ...
```c# using System; using System.Collections.Generic; using System.IO; using System.Threading; using MonoHaven.Resources; using MonoHaven.Resources.Layers; using MonoHaven.Utils; using NVorbis.OpenTKSupport; using OpenTK.Audio; namespace MonoHaven { public class Audio : IDisposable { private readonly AudioContext...
a0498b87-51ee-4cda-a872-d101f68e59d5
{ "language": "C#" }
```c# using System; namespace Braintree { public class VenmoAccount : PaymentMethod { public string Token { get; protected set; } public string Username { get; protected set; } public string VenmoUserId { get; protected set; } public string SourceDescription { get; protected set...
```c# using System; namespace Braintree { public class VenmoAccount : PaymentMethod { public string Token { get; protected set; } public string Username { get; protected set; } public string VenmoUserId { get; protected set; } public string SourceDescription { get; protected set...
ee061521-e4ab-4d65-a782-4c5a213b5965
{ "language": "C#" }
```c# namespace ChessDotNet { public enum Event { Check, Checkmate, Stalemate, Draw, Custom, Resign, VariantEnd, // to be used for chess variants, which can be derived from ChessGame None } public class GameStatus { public ...
```c# namespace ChessDotNet { public enum Event { Check, Checkmate, Stalemate, Draw, Custom, Resign, VariantEnd, // to be used for chess variants, which can be derived from ChessGame None } public class GameStatus { public ...
6ca1ac9a-3839-4972-b358-e74d8d138c64
{ "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.Logging; using osu.Framework.Platform; using osu.Game.Configuration; namespace osu.Game.IO { public class OsuStorage : WrappedStorage {...
```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 System.IO; using osu.Framework.Logging; using osu.Framework.Platform; using osu.Game.Configuration; namespace osu.Game.IO { public class Os...
98d043f3-c821-4784-8f23-ba73f02c38b5
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Textures; using osu.Game.Graphics; using osuTK; n...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Textures; using osu.Game.Graphics; using osuTK; n...
d78b0cb3-a0d1-4699-a0ba-a7e96a7db5a7
{ "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. namespace System.IO.Pipelines { public class DuplexPipe : IDuplexPipe { public DuplexPipe(PipeReader reader, PipeWriter writer) ...
```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.IO.Pipelines; namespace Microsoft.AspNetCore.Sockets { public class DuplexPipe : IDuplexPipe { public DuplexPipe(Pi...
69fa186a-3291-4ed7-b112-e300a8b602e1
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using HandlebarsDotNet.MemberAccessors; using HandlebarsDotNet.ObjectDescriptors; using HandlebarsDotNet.PathStructure; namespace HandlebarsDotNet { public readonly ref struct ObjectAccessor { private read...
```c# using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using HandlebarsDotNet.MemberAccessors; using HandlebarsDotNet.ObjectDescriptors; using HandlebarsDotNet.PathStructure; namespace HandlebarsDotNet { public readonly ref struct ObjectAccessor { private read...
0840df65-84f2-43d1-bc5c-3ef78b0d9516
{ "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.Game.Modes.Objects.Drawables; using osu.Game.Modes.Osu.Judgements; using osu.Game.Modes.Osu.Objects; using osu.Game.Modes.Scoring; using osu.Game...
```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.Game.Modes.Objects.Drawables; using osu.Game.Modes.Osu.Judgements; using osu.Game.Modes.Osu.Objects; using osu.Game.Modes.Scoring; using osu.Game...
9e9ef3f5-4eb6-4df8-b06b-d089970c5035
{ "language": "C#" }
```c# using System.IO; using EnvDTE; namespace NuGet.VisualStudio { /// <summary> /// This project system represents the JavaScript Metro project in Windows8 /// </summary> public class JsProjectSystem : VsProjectSystem { public JsProjectSystem(Project project, IFileSystemProvider...
```c# using System.IO; using EnvDTE; namespace NuGet.VisualStudio { /// <summary> /// This project system represents the JavaScript Metro project in Windows8 /// </summary> public class JsProjectSystem : VsProjectSystem { public JsProjectSystem(Project project, IFileSystemProvider...
dbcc2879-1f0b-4b37-ab9c-ba18c079f35d
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Xml.Serialization; namespace PhotoStoryToBloomConverter.BloomModel.BloomHtmlModel { public class Body { [XmlAttribute("bookcreationtype")] public string BookCreationType; [XmlAttribute("class")] public string Class; [...
```c# using System.Collections.Generic; using System.Xml.Serialization; namespace PhotoStoryToBloomConverter.BloomModel.BloomHtmlModel { public class Body { // REVIEW: I don't think these two are necessary/useful [XmlAttribute("bookcreationtype")] public string BookCreationType; [Xml...
7b97892f-50fd-4284-a674-ef040eba2e4e
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using Rainbow.Model; using Sitecore.Data; namespace Rainbow.Formatting.FieldFormatters { public class MultilistFormatter : FieldTypeBasedFormatter { public override string[] SupportedFieldTypes { get { return new[] { "Checklist", "Multilist", "Mult...
```c# using System; using System.Collections.Generic; using Rainbow.Model; using Sitecore.Data; namespace Rainbow.Formatting.FieldFormatters { public class MultilistFormatter : FieldTypeBasedFormatter { public override string[] SupportedFieldTypes { get { return new[] { "Checklist", "Multilist", "Mult...
7fe42017-584f-4604-8178-d01be46ae09d
{ "language": "C#" }
```c#  using System; using System.Diagnostics; using System.ServiceModel; using NUnit.Framework; using TechTalk.SpecFlow; namespace Host.Specs { /// <summary> /// An **copy** of the interface specifying the contract for this service. /// </summary> [ServiceContract( Namespace = "http://www.tha...
```c#  using System; using System.Diagnostics; using System.ServiceModel; using NUnit.Framework; using TechTalk.SpecFlow; namespace Host.Specs { /// <summary> /// An **copy** of the interface specifying the contract for this service. /// </summary> [ServiceContract( Namespace = "http://www.tha...
7dd329fb-74e8-428f-82ae-7d3ec8145683
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Graphics.UserInterface; using osu.Framework.Graphics; using osu.Framework.Graphics.UserInterface; namespace osu.Game.Overlays { public class Ov...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Graphics.UserInterface; using osu.Framework.Graphics; using osu.Framework.Graphics.UserInterface; namespace osu.Game.Overlays { public class Ov...
fb3d0fe7-e625-4008-86b2-5d085f9f599c
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.ComponentModel; using osu.Framework.Graphics.Sprites; using osu.Game.Screens.Select.Options; using osuTK.Graphics; namespace osu.Game.Tests.Visual.So...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.ComponentModel; using osu.Framework.Graphics.Sprites; using osu.Game.Graphics; using osu.Game.Screens.Select.Options; namespace osu.Game.Tests.Visual...
e6116485-1e15-46e7-97c8-953b2c0daf00
{ "language": "C#" }
```c# namespace SqlStreamStore { using System.Threading; using System.Threading.Tasks; using Shouldly; using SqlStreamStore.Streams; using Xunit; public class MigrationTests { [Fact] public async Task Can_migrate() { // Set up an old schema + data. ...
```c# namespace SqlStreamStore { using System.Threading; using System.Threading.Tasks; using Shouldly; using SqlStreamStore.Streams; using Xunit; public class MigrationTests { [Fact] public async Task Can_migrate() { // Set up an old schema + data. ...
b57876a5-9d66-4a84-ab4d-2be1961575e1
{ "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.Input; using osu.Framework.Input.Bindings; using osu.Framework.Input.Events; using osu.Game.Graphics.UserInterface; using osu.Game.Localisation;...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using System.Linq; using osu.Framework.Bindables; using osu.Framework.Input; using osu.Framework.Input.Bindings; using osu.Framewo...
abec684e-31bd-4536-8d35-8dd7fba4e988
{ "language": "C#" }
```c# // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace System { public readonly partial struct DateTime { public static DateTime UtcNow ...
```c# // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace System { public readonly partial struct DateTime { public static DateTime UtcNow ...
e7aa58f9-2565-4c01-b0a0-fd373c6bde56
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("CodeProject - EF Library")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("AREBIS")] [assembly: AssemblyProduct("CodeProj...
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("CodeProject - EF Library")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("AREBIS")] [assembly: AssemblyProduct("CodeProj...
ec555afb-424d-48bd-888a-00838709dbb9
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; using Zermelo.API.Services; namespace Zermelo.API.Tests.Services { public class JsonServiceTests { [Fact] public void Sho...
```c# using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; using Zermelo.API.Services; namespace Zermelo.API.Tests.Services { public class JsonServiceTests { [Fact] public void Sho...
c12c879f-4767-4f5b-9d21-44d5a2fb0f2a
{ "language": "C#" }
```c# using System; using System.Linq; using System.Text.RegularExpressions; namespace ExcelDna.IntelliSense { static class FormulaParser { // Set from IntelliSenseDisplay.Initialize public static char ListSeparator = ','; internal static bool TryGetFormulaInfo(string formulaPrefix, ou...
```c# using System; using System.Linq; using System.Text.RegularExpressions; namespace ExcelDna.IntelliSense { static class FormulaParser { // Set from IntelliSenseDisplay.Initialize public static char ListSeparator = ','; internal static bool TryGetFormulaInfo(string formulaPrefix, ou...
912a1ba3-65bb-43b5-b3e7-930e4682aec2
{ "language": "C#" }
```c#  namespace NuGet.Common { public class CommandLineRepositoryFactory : PackageRepositoryFactory { public static readonly string UserAgent = "NuGet Command Line"; private readonly IConsole _console; public CommandLineRepositoryFactory(IConsole console) { ...
```c#  using System.Windows; namespace NuGet.Common { public class CommandLineRepositoryFactory : PackageRepositoryFactory, IWeakEventListener { public static readonly string UserAgent = "NuGet Command Line"; private readonly IConsole _console; public CommandLineRepository...
cdc48d46-342b-4a08-bc6c-17cc17fc1f30
{ "language": "C#" }
```c# using System; using MonoMac.AppKit; namespace macdoc { public class AppleDocWizardDelegate : NSApplicationDelegate { AppleDocWizardController wizard; public override bool ApplicationShouldOpenUntitledFile (NSApplication sender) { return false; } public override void DidFinishLaunching (MonoM...
```c# using System; using MonoMac.AppKit; namespace macdoc { public class AppleDocWizardDelegate : NSApplicationDelegate { AppleDocWizardController wizard; public override bool ApplicationShouldOpenUntitledFile (NSApplication sender) { return false; } public override void DidFinishLaunching (MonoM...
c4946854-4307-4729-be1d-4e8ccd8368b9
{ "language": "C#" }
```c# using Content.Client.GameObjects.Components.Construction; using Robust.Client.Interfaces.Graphics; using Robust.Client.UserInterface.Controls; using Robust.Shared.Maths; using Robust.Shared.Utility; namespace Content.Client.Construction { public class ConstructionButton : Button { private readonl...
```c# using Content.Client.GameObjects.Components.Construction; using Robust.Client.Interfaces.Graphics; using Robust.Client.UserInterface.Controls; using Robust.Shared.Maths; using Robust.Shared.Utility; namespace Content.Client.Construction { public class ConstructionButton : Button { private readon...
c98314d6-12a5-43d3-ab30-d43199ff1552
{ "language": "C#" }
```c# using System.Linq; using System.Text.RegularExpressions; using System.Xml.Serialization; namespace PhotoStoryToBloomConverter.PS3Model { [XmlRoot("MSPhotoStoryProject", Namespace="MSPhotoStory")] public class PhotoStoryProject { [XmlAttribute("schemaVersion")] public string SchemaVers...
```c# using System.Linq; using System.Text.RegularExpressions; using System.Xml.Serialization; namespace PhotoStoryToBloomConverter.PS3Model { [XmlRoot("MSPhotoStoryProject", Namespace="MSPhotoStory")] public class PhotoStoryProject { [XmlAttribute("schemaVersion")] public string SchemaVers...
e9c95cf3-054e-4f1f-afaf-2e91377dff39
{ "language": "C#" }
```c# using System.Linq; using NUnit.Framework; namespace Rant.Tests.Richard { [TestFixture] public class Lists { private readonly RantEngine rant = new RantEngine(); [Test] public void ListInitBare() { Assert.AreEqual("5", rant.Do("[@ x = 1, 2, 3, 4, 5; x.len...
```c# using System.Linq; using NUnit.Framework; namespace Rant.Tests.Richard { [TestFixture] public class Lists { private readonly RantEngine rant = new RantEngine(); [Test] public void ListInitBare() { Assert.AreEqual("5", rant.Do("[@ x = 1, 2, 3, 4, 5; x.len...
81a8f180-c65a-4bf3-aa4c-6d892dcf3968
{ "language": "C#" }
```c# using System; namespace TDDUnit { class TestTestCase : TestCase { public TestTestCase(string name) : base(name) { } public void TestTemplateMethod() { WasRunObj test = new WasRunObj("TestMethod"); test.Run(); Assert.That(test.Log == "SetUp TestMethod TearDown "); } publ...
```c# using System; namespace TDDUnit { class TestTestCase : TestCase { public TestTestCase(string name) : base(name) { } public void TestTemplateMethod() { WasRunObj test = new WasRunObj("TestMethod"); test.Run(); Assert.That(test.Log == "SetUp TestMethod TearDown "); } publ...
7dd29870-166e-4935-bd44-57ee3fbeb3e7
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Graphics; using osu.Framework.Platform; using osu.Framework.Testing; namespace osu.Framework.Tests.Platform { [TestF...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Graphics; using osu.Framework.Platform; using osu.Framework.Testing; namespace osu.Framework.Tests.Platform { [TestF...
eae03c92-59ee-47c1-b2af-7f64bb615e2e
{ "language": "C#" }
```c# using System.Collections.Generic; using Stormpath.Configuration.Abstractions; using Stormpath.Owin.Abstractions.Configuration; namespace Stormpath.Owin.UnitTest { public static class ConfigurationHelper { public static IntegrationConfiguration CreateFakeConfiguration(StormpathConfiguration confi...
```c# using System.Collections.Generic; using Stormpath.Configuration.Abstractions; using Stormpath.Owin.Abstractions.Configuration; namespace Stormpath.Owin.UnitTest { public static class ConfigurationHelper { public static IntegrationConfiguration CreateFakeConfiguration(StormpathConfiguration confi...
091e0075-5f92-4ee1-91c7-81e1a49f369f
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web.Mvc; using System.Web.Routing; using Oogstplanner.Common; using Oogstplanner.Models; using Oogstplanner.Services; namespace Oogstplanner.Web.Controllers { [AllowAnonymous] public class HomeController : Controller { ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web.Mvc; using System.Web.Routing; using Oogstplanner.Common; using Oogstplanner.Models; using Oogstplanner.Services; namespace Oogstplanner.Web.Controllers { [AllowAnonymous] public class HomeController : Controller { ...
0df08d17-8b83-4eec-bb1c-445bb2279420
{ "language": "C#" }
```c# using System.Diagnostics; using System.IO; using System.Linq; using System.Security.AccessControl; using System.Security.Principal; namespace TweetDck.Core.Utils{ static class WindowsUtils{ public static bool CheckFolderPermission(string path, FileSystemRights right){ try{ ...
```c# using System.Diagnostics; using System.IO; using System.Security.AccessControl; using System.Security.Principal; namespace TweetDck.Core.Utils{ static class WindowsUtils{ public static bool CheckFolderPermission(string path, FileSystemRights right){ try{ AuthorizationRule...
a03be973-8718-4508-a687-42d029354ab4
{ "language": "C#" }
```c# using System; using System.IO; using System.Linq; namespace Mlabs.Ogg { public class OggReader { private readonly Stream m_fileStream; private readonly bool m_owns; public OggReader(string fileName) { if (fileName == null) throw new ArgumentNullException("fil...
```c# using System; using System.IO; using System.Linq; namespace Mlabs.Ogg { public class OggReader { private readonly Stream m_fileStream; private readonly bool m_owns; public OggReader(string fileName) { if (fileName == null) throw new ArgumentNullException("fil...
db38ef8e-32d4-4219-9b9e-eebe48d3af11
{ "language": "C#" }
```c# using System; using LinqToTTreeInterfacesLib; using LINQToTTreeLib.Utils; namespace LINQToTTreeLib.Variables { /// <summary> /// A simple variable (like int, etc.). /// </summary> public class VarSimple : IVariable { public string VariableName { get; private set; } ...
```c# using System; using LinqToTTreeInterfacesLib; using LINQToTTreeLib.Utils; namespace LINQToTTreeLib.Variables { /// <summary> /// A simple variable (like int, etc.). /// </summary> public class VarSimple : IVariable { public string VariableName { get; private set; } ...
18430c1a-ae92-4e8a-b50e-aba20713de6f
{ "language": "C#" }
```c# using System; using System.IO; using System.Reflection; namespace Serilog.Generator.Configuration { static class CurrentDirectoryAssemblyLoader { public static void Install() { AppDomain.CurrentDomain.AssemblyResolve += (s, e) => { var assemblyPath...
```c# using System; using System.IO; using System.Reflection; namespace Serilog.Generator.Configuration { static class CurrentDirectoryAssemblyLoader { public static void Install() { AppDomain.CurrentDomain.AssemblyResolve += (s, e) => { var assemblyPath...
29bf16a3-80c8-4210-ae25-41241d5af264
{ "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 enable namespace osu.Framework.Localisation { /// <summary> /// A set of parameters that control the way strings are localised. /// </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. #nullable enable namespace osu.Framework.Localisation { /// <summary> /// A set of parameters that control the way strings are localised. /// </summary...
8e3ba635-8210-4e2e-b257-87387bd2452d
{ "language": "C#" }
```c# @model IEnumerable<BankingManagementClient.ProjectionStore.Projections.Client.ClientProjection> @{ ViewBag.Title = "Index"; } <h2>Index</h2> <p> @Html.ActionLink("Create New", "Create") </p> <table class="table"> <tr> <th> @Html.DisplayNameFor(model => model.ElementAt(0) ...
```c# @model IEnumerable<BankingManagementClient.ProjectionStore.Projections.Client.ClientProjection> @{ ViewBag.Title = "Index"; } <h2>Clients</h2> @if (Model.Any()) { <table class="table"> <tr> <th> @Html.DisplayNameFor(model => model.ElementAt(0) .C...
89f95148-9ba1-47cf-8142-40dcf2387c64
{ "language": "C#" }
```c# using System.IO; using ApiContractGenerator.AssemblyReferenceResolvers; using ApiContractGenerator.MetadataReferenceResolvers; using ApiContractGenerator.Source; using Microsoft.Build.Framework; namespace ApiContractGenerator.MSBuild { public sealed class GenerateApiContract : ITask { public IBui...
```c# using System.IO; using ApiContractGenerator.AssemblyReferenceResolvers; using ApiContractGenerator.MetadataReferenceResolvers; using ApiContractGenerator.Source; using Microsoft.Build.Framework; namespace ApiContractGenerator.MSBuild { public sealed class GenerateApiContract : ITask { public IBui...
4af53c91-48a9-472b-a320-4bf14ba198d7
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.ComponentModel; using DesktopWidgets.WidgetBase.Settings; namespace DesktopWidgets.Widgets.CountdownClock { public class Settings : WidgetClockSettingsBase { public Settings() { DateTimeFormat = new List<string> {"{...
```c# using System; using System.Collections.Generic; using System.ComponentModel; using DesktopWidgets.WidgetBase.Settings; using Xceed.Wpf.Toolkit.PropertyGrid.Attributes; namespace DesktopWidgets.Widgets.CountdownClock { public class Settings : WidgetClockSettingsBase { public Settings() { ...
00f7ad34-476d-455e-8aec-14894a23ae30
{ "language": "C#" }
```c# using Abp.Authorization.Users; using Abp.MultiTenancy; using Abp.NHibernate.EntityMappings; namespace Abp.Zero.NHibernate.EntityMappings { /// <summary> /// Base class to map classes derived from <see cref="AbpTenant{TTenant,TUser}"/> /// </summary> /// <typeparam name="TTenant">Tenant type</type...
```c# using Abp.Authorization.Users; using Abp.MultiTenancy; using Abp.NHibernate.EntityMappings; namespace Abp.Zero.NHibernate.EntityMappings { /// <summary> /// Base class to map classes derived from <see cref="AbpTenant{TUser}"/> /// </summary> /// <typeparam name="TTenant">Tenant type</typeparam> ...
5d711e2c-865a-404c-be10-6e641f23288f
{ "language": "C#" }
```c# using System.Linq; using System.Reactive.Linq; using System.Threading.Tasks; using Octokit.Reactive; using Xunit; namespace Octokit.Tests.Integration { public class ObservableRepositoriesClientTests { public class TheGetMethod { [IntegrationTest] public async Task...
```c# using System.Linq; using System.Reactive.Linq; using System.Threading.Tasks; using Octokit.Reactive; using Xunit; namespace Octokit.Tests.Integration { public class ObservableRepositoriesClientTests { public class TheGetMethod { [IntegrationTest] public async Task...
eeb7a17c-abeb-4783-8369-05995b22bfba
{ "language": "C#" }
```c# using System.Xml.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Tyrrrz.Extensions.Tests { [TestClass] public class XmlTests { [TestMethod] public void StripNamespacesTest() { var ns = XNamespace.Get("http://schemas.domain.com/orders"); ...
```c# using System.Xml.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Tyrrrz.Extensions.Tests { [TestClass] public class XmlTests { [TestMethod] public void StripNamespacesTest() { var ns = XNamespace.Get("http://schemas.domain.com/orders"); ...
70aa7bc6-045c-420b-8c78-7e5ae0faf225
{ "language": "C#" }
```c# //----------------------------------------------------------------------- // <copyright file="Program.cs" company="Brian Rogers"> // Copyright (c) Brian Rogers. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace LockSample { using...
```c# //----------------------------------------------------------------------- // <copyright file="Program.cs" company="Brian Rogers"> // Copyright (c) Brian Rogers. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace LockSample { using...
599b9222-7ffe-4d00-86f7-6f75666b06a1
{ "language": "C#" }
```c# using System; using System.Net; using CVaS.Shared.Exceptions; using CVaS.Web.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; namespace CVaS.Web.Filters { /// <summary> /// Exception filter that catch exception of known type /// and transform them into specific HTTP st...
```c# using System; using System.Net; using CVaS.Shared.Exceptions; using CVaS.Web.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; namespace CVaS.Web.Filters { /// <summary> /// Exception filter that catch exception of known type /// and transform them into specific HTTP st...
322b160e-24bc-4b72-9f94-4364d75a81d3
{ "language": "C#" }
```c# using System.Configuration; using System.IdentityModel.Tokens; using System.IO; using System.Security.Cryptography.X509Certificates; using System.Web.Hosting; namespace Dragon.SecurityServer.Common { public class SecurityHelper { public static X509SigningCredentials CreateSignupCredentialsFromCo...
```c# using System.Configuration; using System.IdentityModel.Tokens; using System.IO; using System.Security.Cryptography.X509Certificates; using System.Web.Hosting; namespace Dragon.SecurityServer.Common { public class SecurityHelper { public static X509SigningCredentials CreateSignupCredentialsFromCo...
0a5393f9-15ef-44ac-b647-1df7c1737f20
{ "language": "C#" }
```c# using compiler.middleend.ir; using NUnit.Framework; namespace NUnit.Tests.MiddleEnd { [TestFixture] public class InstructionTests { [Test] public void ToStringTest() { var inst1 = new Instruction(IrOps.Add, new Operand(Operand.OpType.Constant, 10), ...
```c# using compiler.middleend.ir; using NUnit.Framework; namespace NUnit.Tests.MiddleEnd { [TestFixture] public class InstructionTests { [Test] public void ToStringTest() { var inst1 = new Instruction(IrOps.Add, new Operand(Operand.OpType.Constant, 10), ...
e1808f3d-410c-4ff6-9c0b-ce0e6a389664
{ "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...
48b323c9-9b79-41a4-87c2-a5ada405ef24
{ "language": "C#" }
```c# using System.Reflection; [assembly: AssemblyTitle("Autofac.Tests.Integration.Mef")] [assembly: AssemblyDescription("")] ``` Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the...
```c# using System.Reflection; [assembly: AssemblyTitle("Autofac.Tests.Integration.Mef")] ```
b11804a7-1dc3-4f20-a940-36ee8989da4e
{ "language": "C#" }
```c# using System; using EntityNetwork; using EntityNetwork.Unity3D; using UnityEngine; public class ClientEntityFactory : IClientEntityFactory { private static ClientEntityFactory _default; public static ClientEntityFactory Default { get { return _default ?? (_default = new ClientEntityFactory(...
```c# using System; using System.Collections.Concurrent; using EntityNetwork; using EntityNetwork.Unity3D; using UnityEngine; public class ClientEntityFactory : IClientEntityFactory { private static ClientEntityFactory _default; public static ClientEntityFactory Default { get { return _default ??...
28390471-4102-479f-a7d9-66bf6d7ad342
{ "language": "C#" }
```c# namespace Moq { using System; using System.CodeDom.Compiler; using System.Reflection; using System.Runtime.CompilerServices; using Moq.Sdk; /// <summary> /// Instantiates mocks for the specified types. /// </summary> [GeneratedCode("Moq", "5.0")] [CompilerGenerated] pa...
```c# using System; using System.CodeDom.Compiler; using System.Reflection; using System.Runtime.CompilerServices; using Moq.Sdk; namespace Moq { /// <summary> /// Instantiates mocks for the specified types. /// </summary> [GeneratedCode("Moq", "5.0")] [CompilerGenerated] partial class Mock ...
eb008ed0-38a0-4276-bccd-0cb45f415a04
{ "language": "C#" }
```c# using System; using System.Linq; namespace Smartrak.Collections.Paging { public static class PagingHelpers { /// <summary> /// Gets a paged list of entities with the total appended to each row in the resultset. This is a faster way of doing things than using 2 seperate queries /// </summary> /// <type...
```c# using System; using System.Linq; namespace Smartrak.Collections.Paging { public static class PagingHelpers { /// <summary> /// Gets a paged list of entities with the total appended to each row in the resultset. This is a faster way of doing things than using 2 seperate queries /// </summary> /// <type...
395ed620-ce31-44b2-99fc-49d24e5592ee
{ "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 System.Collections.Generic; using System.IO; using Newtonsoft.Json; using osu.Framework.Allocation; using osu.Game.Tests.Visual; using osu.Game.Tournament.Co...
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.Collections.Generic; using System.IO; using Newtonsoft.Json; using osu.Framework.Allocation; using osu.Game.Tests.Visual; using osu.Game.Tournament.Co...
edb7b3cb-06fe-4400-8ba8-c156947b2613
{ "language": "C#" }
```c# using MoviesSystem.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace WpfMovieSystem.Views { /// <summary> /// Interaction logic for InsertWindowView.xaml /// </summary> public partial class ...
```c# using MoviesSystem.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace WpfMovieSystem.Views { /// <summary> /// Interaction logic for InsertWindowView.xaml /// </summary> public partial class ...
01cb77d9-2c95-4249-b815-8aef77927126
{ "language": "C#" }
```c# namespace TraktApiSharp.Objects.Get.Shows { using Basic; public class TraktShowIds : TraktIds { } } ``` Add documentation for show ids.
```c# namespace TraktApiSharp.Objects.Get.Shows { using Basic; /// <summary>A collection of ids for various web services, including the Trakt id, for a Trakt show.</summary> public class TraktShowIds : TraktIds { } } ```
b8d70ae0-6378-4c91-9827-7c4000ba4467
{ "language": "C#" }
```c# using System; using System.Net.Http; using Newtonsoft.Json; using System.Threading.Tasks; using System.Collections.Generic; using System.Linq; using System.IO; namespace DiplomContentSystem.Requests { public class RequestService { public async Task<Stream> SendRequest(object data) { ...
```c# using System; using System.Net.Http; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using System.Threading.Tasks; using System.Collections.Generic; using System.Linq; using System.IO; namespace DiplomContentSystem.Requests { public class RequestService { public async Task<Stream> Sen...
d7db7825-e0f0-400f-9178-93474e487301
{ "language": "C#" }
```c# using System.Collections.Generic; namespace Dapper.FluentMap.Utils { internal static class DictionaryExtensions { internal static void AddOrUpdate<TKey, TValue>(this IDictionary<TKey, IList<TValue>> dict, TKey key, TValue value) { if (dict.ContainsKey(key)) { ...
```c# using System.Collections.Generic; namespace Dapper.FluentMap.Utils { internal static class DictionaryExtensions { internal static void AddOrUpdate<TKey, TValue>(this IDictionary<TKey, IList<TValue>> dict, TKey key, TValue value) { if (dict.ContainsKey(key)) { ...
ed71e3da-2e6b-4b8d-b7d4-cb4c379aa7b4
{ "language": "C#" }
```c# #region Copyright and license information // Copyright 2010-2011 Jon Skeet // // 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...
```c# #region Copyright and license information // Copyright 2010-2011 Jon Skeet // // 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...
0bbc63f3-299d-46c9-99a3-8548cda10466
{ "language": "C#" }
```c# using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Mycroft; using System.IO; using System.Diagnostics; namespace Mycroft.Tests { [TestClass] public class TestCommandConnection {...
```c# using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Mycroft; using System.IO; using System.Diagnostics; namespace Mycroft.Tests { [TestClass] public class TestCommandConnection {...
7977db99-18f6-4604-8e04-b9a8b97c01bc
{ "language": "C#" }
```c# using System; using Newtonsoft.Json; namespace Archetype.Models { public class ArchetypePreValueProperty { [JsonProperty("alias")] public string Alias { get; set; } [JsonProperty("remove")] public bool Remove { get; set; } [JsonProperty("collapse")] publ...
```c# using System; using Newtonsoft.Json; namespace Archetype.Models { public class ArchetypePreValueProperty { [JsonProperty("alias")] public string Alias { get; set; } [JsonProperty("remove")] public bool Remove { get; set; } [JsonProperty("collapse")] publ...
f6a86407-beec-42cc-b44c-75c1b467ea88
{ "language": "C#" }
```c# namespace FunctionalTestUtils { using System; using System.Collections.Generic; using Microsoft.ApplicationInsights.Channel; public class BackTelemetryChannel : ITelemetryChannel { private IList<ITelemetry> buffer; public BackTelemetryChannel() { this.buf...
```c# namespace FunctionalTestUtils { using System; using System.Collections.Generic; using Microsoft.ApplicationInsights.Channel; public class BackTelemetryChannel : ITelemetryChannel { private IList<ITelemetry> buffer; public BackTelemetryChannel() { this.buf...
66b69911-c4b3-455c-b704-b42fa6c00d34
{ "language": "C#" }
```c# using System.Reflection; [assembly: AssemblyCompany("Andrew Davey")] [assembly: AssemblyProduct("Cassette")] [assembly: AssemblyCopyright("Copyright © 2011 Andrew Davey")] // NOTE: When changing this version, also update Cassette.MSBuild\Cassette.targets to match. [assembly: AssemblyInformationalVersion...
```c# using System.Reflection; [assembly: AssemblyCompany("Andrew Davey")] [assembly: AssemblyProduct("Cassette")] [assembly: AssemblyCopyright("Copyright © 2011 Andrew Davey")] [assembly: AssemblyInformationalVersion("2.0.0-beta1")] [assembly: AssemblyVersion("2.0.0.*")] [assembly: AssemblyFileVersion("2....
d40ea680-3c60-4c9c-8e72-8a22761f720c
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Text; using Newtonsoft.Json; namespace DotVVM.Framework.Diagnostics { public class DotvvmDiagnosticsConfiguration { public DotvvmDiagnosticsConfiguration() { LoadConfiguration(); } ...
```c# using System; using System.Collections.Generic; using System.IO; using System.Text; using Newtonsoft.Json; namespace DotVVM.Framework.Diagnostics { public class DotvvmDiagnosticsConfiguration { public DotvvmDiagnosticsConfiguration() { LoadConfiguration(); } ...
bd952eca-b385-49ca-9e1c-0b595edf18fa
{ "language": "C#" }
```c# using System; using System.Linq; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using OmniSharp.Models; namespace OmniSharp.Helpers { public static class LocationExtensions { public static QuickFix GetQuickFix(this Location location, OmniSharpWorkspace workspace) { ...
```c# using System; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using OmniSharp.Models; namespace OmniSharp.Helpers { public static class LocationExtensions { public static QuickFix GetQuickFix(this Location location, OmniSharpWorkspace workspace) ...