doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
5d4dae62-e0bb-4182-9155-ce9b790662c4
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Web.Http; using Microsoft.Owin.Security.OAuth; using Newtonsoft.Json.Serialization; namespace NeedDotNet.Web { public static class WebApiConfig { public static void Register(HttpConfiguration c...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Web.Http; using Microsoft.Owin.Security.OAuth; using Newtonsoft.Json.Serialization; namespace NeedDotNet.Web { public static class WebApiConfig { public static void Register(HttpConfiguration c...
971fa17d-edc8-44a7-b3b5-74b78e1a742d
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; using System; namespace Lockstep { public class Buff { protected int Duration; protected int Timer; protected LSAgent Target; internal int ID {get; set;} public bool Active {get; private set;} public voi...
```c# using UnityEngine; using System.Collections; using System; namespace Lockstep { public class Buff { protected int Duration; protected int Timer; protected LSAgent Target; internal int ID {get; set;} public bool Active {get; private set;} public voi...
5b6567c0-aad1-4739-b2ef-8ced0fb00180
{ "language": "C#" }
```c# using EntityFrameworkCore.RawSQLExtensions.SqlQuery; using Microsoft.EntityFrameworkCore.Infrastructure; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; namespace EntityFrameworkCore.RawSQLExtensions.Extensions { public static class DatabaseFacadeExtensions { pu...
```c# using EntityFrameworkCore.RawSQLExtensions.SqlQuery; using Microsoft.EntityFrameworkCore.Infrastructure; using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; namespace EntityFrameworkCore.RawSQLExtensions.Extensions { public static class DatabaseFacadeExtensions ...
abe3b3f4-c3fe-4947-a90b-a2f66d4642f2
{ "language": "C#" }
```c# using System; namespace GUtils.IO { public static class FileSizes { public const UInt64 B = 1024; public const UInt64 KiB = 1024 * B; public const UInt64 MiB = 1024 * KiB; public const UInt64 GiB = 1024 * MiB; public const UInt64 TiB = 1024 * GiB; public c...
```c# using System; namespace GUtils.IO { public static class FileSizes { public const UInt64 B = 1024; public const UInt64 KiB = 1024 * B; public const UInt64 MiB = 1024 * KiB; public const UInt64 GiB = 1024 * MiB; public const UInt64 TiB = 1024 * GiB; public const UInt64 PiB = 1024 * TiB; private s...
2628f4db-b789-43ac-8323-cc8308fc39bf
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging; using Fixie.Execution; namespace Fixie.VisualStudio.TestAdapter { ...
```c# using System; using System.Collections.Generic; using System.IO; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging; using Fixie.Execution; namespace Fixie.VisualStudio.TestAdapter { ...
7178f8bb-070f-4d0f-9a61-9a73a94ed89c
{ "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.Framework.Input.Events; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Osu.Edit.Blueprints.Spinners.Components; usin...
```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.Framework.Input.Events; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Osu.Edit.Blueprints.Spinners.Components; usin...
86839d92-eb3d-458c-89b2-06c7c7e175b3
{ "language": "C#" }
```c# using System; using System.Diagnostics; namespace NuGetConsole.Implementation.PowerConsole { /// <summary> /// Represents a host with extra info. /// </summary> class HostInfo : ObjectWithFactory<PowerConsoleWindow> { Lazy<IHostProvider, IHostMetadata> HostProvider { get; set; } ...
```c# using System; using System.Diagnostics; namespace NuGetConsole.Implementation.PowerConsole { /// <summary> /// Represents a host with extra info. /// </summary> class HostInfo : ObjectWithFactory<PowerConsoleWindow> { Lazy<IHostProvider, IHostMetadata> HostProvider { get; set; } ...
50425c65-c584-425e-8b24-3b6658b766e0
{ "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.Game.Database { public interface IHasOnlineID { /// <summary> /// The server-side ID representing this insta...
```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.Game.Database { public interface IHasOnlineID { /// <summary> /// The server-side ID representing this insta...
88dced53-d6a3-4ee4-bbea-fa26601b5ff0
{ "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 System; using System.Globalization; using Newtonsoft.Json; using osu.Framework.Extensions; namespace osu.Game.Online.API { [Serializable] ...
```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 System; using System.Globalization; using Newtonsoft.Json; using osu.Framework.Extensions; namespace osu.Game.Online.API { [Serializable] ...
c2cba6e4-e220-4979-b20e-2bec9a2e3066
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NProcessPipe.DependencyAnalysis { public class Node<T> { public Node(T data) { //Index = -1; Data = data; } public T Data { get; private...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NProcessPipe.DependencyAnalysis { public class Node<T> { public Node(T data) { Data = data; } public T Data { get; private set; } public b...
db0bd608-33d6-4900-a5c1-9bd4f2633c9c
{ "language": "C#" }
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="CourseExerciseFiles.cs" company="CodeBlueDev"> // All rights reserved. // </copyright> // <summary> // Represents a PluralSight Course's exercise files information. // <...
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="CourseExerciseFiles.cs" company="CodeBlueDev"> // All rights reserved. // </copyright> // <summary> // Represents a PluralSight Course's exercise files information. // <...
a79aefb1-8ac9-47e8-b99e-d9417ae1a08e
{ "language": "C#" }
```c# using System.Collections.Generic; using System.IO; using System.Management.Automation.Language; namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.Extensions { // TODO Add documentation public static class Extensions { public static IEnumerable<string> GetLines(this string text) {...
```c# using System; using System.Collections.Generic; using System.IO; using System.Management.Automation.Language; namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.Extensions { // TODO Add documentation public static class Extensions { public static IEnumerable<string> GetLines(this string t...
3c734977-102f-4b26-b3d6-549fcc2e02a7
{ "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.Net.Sockets.Tests; using System.Net.Test.Common; using Xunit; using Xunit.Abstract...
```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.Net.Sockets.Tests; using System.Net.Test.Common; using Xunit; using Xunit.Abstract...
50f6d0b3-9911-48e4-b35b-85c6fe841a1b
{ "language": "C#" }
```c# using System; namespace ClosedXML.Excel { internal class XLWorksheetInternals : IDisposable { public XLWorksheetInternals( XLCellsCollection cellsCollection, XLColumnsCollection columnsCollection, XLRowsCollection rowsCollection, XLRanges mergedRang...
```c# using System; namespace ClosedXML.Excel { internal class XLWorksheetInternals : IDisposable { public XLWorksheetInternals( XLCellsCollection cellsCollection, XLColumnsCollection columnsCollection, XLRowsCollection rowsCollection, XLRanges mergedRang...
3a937a64-7ccf-4f7f-b854-eee1e71b2782
{ "language": "C#" }
```c# --- Title: HTML Description: Report format to create reports in any text based format (HTML, Markdown, ...). --- <p>@Html.Raw(Model.String(DocsKeys.Description))</p> <p> Support for creating reports in any text based format like HTML or Markdown is implemented in the <a href="https://www.nuget.org/packag...
```c# --- Title: Generic Description: Report format to create reports in any text based format (HTML, Markdown, ...). --- <p>@Html.Raw(Model.String(DocsKeys.Description))</p> <p> Support for creating reports in any text based format like HTML or Markdown is implemented in the <a href="https://www.nuget.org/pac...
619c5655-f8f8-4dc6-a586-ba733ae90878
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. namespace osu.Game.Rulesets.Mania.Objects.Drawables { /// <summary> /// The head of a <see cref="DrawableHoldNote"/>. /// </summary> public class Dr...
```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.Rulesets.Objects.Drawables; namespace osu.Game.Rulesets.Mania.Objects.Drawables { /// <summary> /// The head of a <see cref="DrawableHoldNot...
9914ea53-549c-4ab5-b730-cb8c67aca4b5
{ "language": "C#" }
```c# using System.IO; using Htc.Vita.Core.Runtime; namespace Htc.Vita.Core.Util { public static partial class Extract { public static bool FromFileToIcon(FileInfo fromFile, FileInfo toIcon) { if (!Platform.IsWindows) { return false; } ...
```c# using System; using System.IO; using System.IO.Compression; using System.Reflection; using Htc.Vita.Core.Log; using Htc.Vita.Core.Runtime; namespace Htc.Vita.Core.Util { public static partial class Extract { public static bool FromFileToIcon( FileInfo fromFile, Fi...
2d49e6aa-aa6b-487c-bd8b-63ffb95f1fa9
{ "language": "C#" }
```c# using Rg.Plugins.Popup.Pages; using Rg.Plugins.Popup.Extensions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; using XamMusic.Interfaces; using XamMusic.ViewModels; namespace XamMusic.Controls {...
```c# using Rg.Plugins.Popup.Pages; using Rg.Plugins.Popup.Extensions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; using XamMusic.Interfaces; using XamMusic.ViewModels; namespace XamMusic.Controls {...
546a4937-5a51-4288-9174-e913058c9c80
{ "language": "C#" }
```c# //*********************************************************// // Copyright (c) Microsoft. All rights reserved. // // Apache 2.0 License // // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
```c# //*********************************************************// // Copyright (c) Microsoft. All rights reserved. // // Apache 2.0 License // // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
aea23439-ad47-4af9-96f6-c196bb585778
{ "language": "C#" }
```c# using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Design; // ReSharper disable UnusedType.Global namespace Content.Server.Database; public sealed class DesignTimeContextFactoryPostgres : IDesignTimeDbContextFactory<PostgresServerDbContext> { public PostgresServerDbContext CreateDbCon...
```c# using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Design; // ReSharper disable UnusedType.Global namespace Content.Server.Database; public sealed class DesignTimeContextFactoryPostgres : IDesignTimeDbContextFactory<PostgresServerDbContext> { public PostgresServerDbContext CreateDbCon...
f8523455-2495-43d3-b3fd-cb706310659a
{ "language": "C#" }
```c# using System; using System.Data.Entity; using System.Linq; using System.Web; using MusicPickerService.Models; using StackExchange.Redis; namespace MusicPickerService.Hubs { public class MusicHub { private static ConnectionMultiplexer redis = ConnectionMultiplexer.Connect("localhost"); pr...
```c# using System; using System.Data.Entity; using System.Linq; using System.Web; using MusicPickerService.Models; using StackExchange.Redis; using Microsoft.AspNet.SignalR; namespace MusicPickerService.Hubs { public class MusicHub: Hub { private static ConnectionMultiplexer redis = ConnectionMultipl...
b2f9ae01-461c-43e1-be95-557d3af3493a
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Mime; using System.Web.Compilation; using System.Web.Http; using Newtonsoft.Json; using RestSharp; using WizardCentralServer.Model.Dtos; using WizardWebApi.Mode...
```c# using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Mime; using System.Web.Compilation; using System.Web.Http; using Newtonsoft.Json; using RestSharp; using WizardCentralServer.Model.Dtos; using WizardWebApi.Mode...
b1949188-9525-405f-91cc-f6c51d5e139f
{ "language": "C#" }
```c# using System; using NUnit.Framework; namespace Atata.Tests { [TestFixture] public class AtataContextBuilderTests { [Test] public void AtataContextBuilder_Build_WithoutDriver() { InvalidOperationException exception = Assert.Throws<InvalidOperationException>(() => ...
```c# using System; using NUnit.Framework; namespace Atata.Tests { public class AtataContextBuilderTests : UITestFixtureBase { [Test] public void AtataContextBuilder_Build_WithoutDriver() { InvalidOperationException exception = Assert.Throws<InvalidOperationException>(() =>...
585f7401-0b37-4540-a237-60deac5033e3
{ "language": "C#" }
```c# using System.Collections.Generic; namespace Treenumerable { internal static class EnumerableExtensions { internal static IEnumerable<VirtualTree<T>> ToVirtualTrees<T>( this IEnumerable<T> source, VirtualTree<T> virtualTree) { foreach (T node in source)...
```c# using System.Collections.Generic; namespace Treenumerable { internal static partial class EnumerableExtensions { internal static IEnumerable<VirtualTree<T>> ToVirtualTrees<T>( this IEnumerable<T> source, VirtualTree<T> virtualTree) { foreach (T node in...
80441c12-4c5f-40d2-adf3-dd5b6796a8b0
{ "language": "C#" }
```c# // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNet.Http; using Microsoft.AspNet.Mvc; namespace ActivatorWebSite { public class RegularController : Cont...
```c# // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Threading.Tasks; using Microsoft.AspNet.Http; using Microsoft.AspNet.Mvc; namespace ActivatorWebSite { public ...
ff90735b-53b8-45a7-b5cc-38dc8b8e8306
{ "language": "C#" }
```c# using System.Web.Mvc; using StackExchange.DataExplorer.Helpers; namespace StackExchange.DataExplorer.Controllers { public class TutorialController : StackOverflowController { [StackRoute("tutorial")] public ActionResult Index() { SetHeader("Tutorial"); ret...
```c# using System.Web.Mvc; using StackExchange.DataExplorer.Helpers; namespace StackExchange.DataExplorer.Controllers { public class TutorialController : StackOverflowController { [StackRoute("tutorial")] public ActionResult Index() { SetHeader("Tutorial"); Vie...
d4b1673d-5f1c-4f8f-8f60-e7ee172e7f80
{ "language": "C#" }
```c# using System; using System.Threading; using System.Threading.Tasks; namespace KafkaNet { public interface IKafkaTcpSocket : IDisposable { Uri ClientUri { get; } Task<byte[]> ReadAsync(int readSize); Task<byte[]> ReadAsync(int readSize, CancellationToken cancellationToken); ...
```c# using System; using System.Threading; using System.Threading.Tasks; namespace KafkaNet { public interface IKafkaTcpSocket : IDisposable { /// <summary> /// The Uri to the connected server. /// </summary> Uri ClientUri { get; } /// <summary> /// Read a cer...
607ec540-a5a8-4ca1-a741-ac6935da285a
{ "language": "C#" }
```c# using BenchmarkDotNet.Running; namespace Benchmark.NetCore { internal class Program { private static void Main(string[] args) { //BenchmarkRunner.Run<MetricCreationBenchmarks>(); //BenchmarkRunner.Run<SerializationBenchmarks>(); //BenchmarkRunner.Run<L...
```c# using BenchmarkDotNet.Running; namespace Benchmark.NetCore { internal class Program { private static void Main(string[] args) { // Give user possibility to choose which benchmark to run. // Can be overridden from the command line with the --filter option. ...
a4f5e32d-c20a-4e00-b3a8-bdca0d5c0d59
{ "language": "C#" }
```c# namespace Rackspace.VisualStudio.CloudExplorer.Files { using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Microsoft.VSDesigner.ServerExplorer; using net.openstack.Core.Domain; using net.openstack.Providers.Rackspace; public...
```c# namespace Rackspace.VisualStudio.CloudExplorer.Files { using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Microsoft.VSDesigner.ServerExplorer; using net.openstack.Core.Domain; using net.openstack.Providers.Rackspace; public...
d2232d92-c481-408f-8c7a-485bc4eed3b2
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; namespace Geode.Geometry { public class Polygon<T> : IGeoType { public string Type => "Polygon"; public IEnumerable<IEnumerable<T>> Coordinates { get; set; } public Polygon(IEnumerable<IEnumerable<T>> coordinates)...
```c# using System; using System.Collections.Generic; using System.Text; namespace Geode.Geometry { public class Polygon: IGeoType { public string Type => "Polygon"; public IEnumerable<IEnumerable<double>> Coordinates { get; set; } public Polygon(IEnumerable<IEnumerable<double>> coordi...
5271e4c6-1ca6-460f-803f-d413607be9c6
{ "language": "C#" }
```c# using System; using System.Security.Cryptography.Pkcs; namespace AuthenticodeLint.Rules { public class PublisherInformationPresentRule : IAuthenticodeRule { public int RuleId { get; } = 10004; public string RuleName { get; } = "Publisher Information Rule"; public str...
```c# using System; using System.Security.Cryptography.Pkcs; namespace AuthenticodeLint.Rules { public class PublisherInformationPresentRule : IAuthenticodeRule { public int RuleId { get; } = 10004; public string RuleName { get; } = "Publisher Information Rule"; public str...
a9440d85-f353-46b1-b8ad-763ca4835f34
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ServiceProvider { public static class SettingsManager { internal static void CheckForXmlFileDirectory(Func<string> getXmlFilePath, Action<string, string> messageForUser) ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ServiceProvider { public static class SettingsManager { internal static void CheckForXmlFileDirectory(Func<string> getXmlFilePath, Action<string, string> messageForUser) ...
2c00c584-f185-4aa2-bfcc-ab8ae4f566fb
{ "language": "C#" }
```c# using System; namespace NQuery.Language { public sealed class SyntaxTree { private readonly CompilationUnitSyntax _root; private readonly TextBuffer _textBuffer; private SyntaxTree(CompilationUnitSyntax root, TextBuffer textBuffer) { _root = root; ...
```c# using System; namespace NQuery.Language { public sealed class SyntaxTree { private readonly CompilationUnitSyntax _root; private readonly TextBuffer _textBuffer; private SyntaxTree(CompilationUnitSyntax root, TextBuffer textBuffer) { _root = root; ...
45a20374-cb18-49be-8ae7-6ca7f2bdbd49
{ "language": "C#" }
```c# using System.Collections.Generic; using UniProgramGen; namespace UniProgramGen.Data { public class Requirements { public readonly double weight; public readonly List<Helpers.TimeSlot> availableTimeSlots; public readonly List<Room> requiredRooms; public Requirements(doubl...
```c# using System.Collections.Generic; using UniProgramGen; using System.Linq; namespace UniProgramGen.Data { public class Requirements { public const uint TOTAL_HOURS = 15; public const uint TOTAL_WEEK_HOURS = 5 * TOTAL_HOURS; public readonly double weight; public readonly L...
70e29bc1-9403-4920-80e8-52b1cec7206b
{ "language": "C#" }
```c# using System.IO; using Stranne.VasttrafikNET.Tests.Json; namespace Stranne.VasttrafikNET.Tests.Helpers { public static class JsonHelper { public static string GetJson(JsonFile jsonFile) { var fileName = $"{jsonFile}.json"; var json = File.ReadAllText($@"Json\{file...
```c# using System.IO; using Stranne.VasttrafikNET.Tests.Json; namespace Stranne.VasttrafikNET.Tests.Helpers { public static class JsonHelper { public static string GetJson(JsonFile jsonFile) { var fileName = $"{jsonFile}.json"; var json = File.ReadAllText($@"Json/{file...
76da2402-f4cf-451d-900f-fea8268d6b8d
{ "language": "C#" }
```c# using AutoMapper; namespace Caelan.Frameworks.Common.Classes { public static class GenericBuilder { public static BaseBuilder<TSource, TDestination> Create<TSource, TDestination>() where TDestination : class, new() where TSource : class, new() { var builder = new BaseBuilder<TSource, TDestination...
```c# using System; using System.Linq; using System.Reflection; using AutoMapper; namespace Caelan.Frameworks.Common.Classes { public static class GenericBuilder { public static BaseBuilder<TSource, TDestination> Create<TSource, TDestination>() where TDestination : class, new() where TSource : class, new() ...
e15d2f9f-9b94-4e2d-be3b-3da8fac24d8d
{ "language": "C#" }
```c# /* * Programmed by Umut Celenli umut@celenli.com */ using System.Collections.Generic; using System.IO; using System.Linq; namespace MimeBank { /// <summary> /// This is the main class to check the file mime type /// Header list is loaded once /// </summary> public class MimeCh...
```c# /* * Programmed by Umut Celenli umut@celenli.com */ using System.Collections.Generic; using System.IO; using System.Linq; namespace MimeBank { /// <summary> /// This is the main class to check the file mime type /// Header list is loaded once /// </summary> public class MimeCh...
03369650-9c6a-439d-8f66-17d54b04b64c
{ "language": "C#" }
```c# using Ensconce.Database; using Ensconce.Helpers; using System.Data.SqlClient; namespace Ensconce.Cli { internal static class DatabaseInteraction { internal static void DoDeployment() { SqlConnectionStringBuilder connStr = null; if (!string.IsNullOrEmpty(Arguments....
```c# using Ensconce.Database; using Ensconce.Helpers; using System.Data.SqlClient; namespace Ensconce.Cli { internal static class DatabaseInteraction { internal static void DoDeployment() { SqlConnectionStringBuilder connStr = null; if (!string.IsNullOrEmpty(Arguments....
6345e034-9d7e-469e-bade-7d583c64468e
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Web; using System.Web.Routing; using Microsoft.AspNet.FriendlyUrls; namespace TechProFantasySoccer { public static class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { var settings = new Fr...
```c# using System; using System.Collections.Generic; using System.Web; using System.Web.Routing; using Microsoft.AspNet.FriendlyUrls; namespace TechProFantasySoccer { public static class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { /*var settings = new ...
da0c2524-25d7-4f2d-a2be-963f566660e0
{ "language": "C#" }
```c# /* * Copyright (c) 2013, SteamDB. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * Future non-SteamKit stuff should go in this file. */ using System; using System.Threading; namespace PICSUpdater { class Program { ...
```c# /* * Copyright (c) 2013, SteamDB. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * Future non-SteamKit stuff should go in this file. */ using System; using System.Configuration; using System.Threading; namespace PICSUpdater { ...
490a8e8d-6039-4466-9251-02ede1d2c1a2
{ "language": "C#" }
```c# <p>Welcome! Codingteam is an open community of engineers and programmers.</p> <p>And here're today's conference logs:</p> <iframe class="logs" src="@ViewData["LogUrl"]"></iframe> <a href="/old-logs/codingteam@conference.jabber.ru/">Older logs (mostly actual in period 2008-08-22 — 2016-12-09)</a> ``` Fix date 2...
```c# <p>Welcome! Codingteam is an open community of engineers and programmers.</p> <p>And here're today's conference logs:</p> <iframe class="logs" src="@ViewData["LogUrl"]"></iframe> <a href="/old-logs/codingteam@conference.jabber.ru/">Older logs (mostly actual in period 2009-08-22 — 2016-12-09)</a> ```
c52b100c-3a90-4d32-b0fd-8563ee338275
{ "language": "C#" }
```c# namespace Bakery.Logging { using System; using Time; public class ConsoleLog : ILog { private readonly IClock clock; public ConsoleLog(IClock clock) { this.clock = clock; } public void Write(Level logLevel, String message) { const String FORMAT = "{0}: [{1}] {2}"; ...
```c# namespace Bakery.Logging { using System; public class ConsoleLog : ILog { public void Write(Level logLevel, String message) { var textWriter = logLevel >= Level.Warning ? Console.Error : Console.Out; textWriter.WriteLine(message); } } } ```
79c529d4-2d96-4d37-8935-f852071b7eaa
{ "language": "C#" }
```c# using System.Reflection; [assembly: AssemblyCompany("Immo Landwerth")] [assembly: AssemblyProduct("NuProj")] [assembly: AssemblyCopyright("Copyright © Immo Landwerth")] [assembly: AssemblyTrademark("")] [assembly : AssemblyMetadata("PreRelease", "Beta")] [assembly : AssemblyMetadata("ProjectUrl", "http://nupro...
```c# using System.Reflection; [assembly: AssemblyCompany("Immo Landwerth")] [assembly: AssemblyProduct("NuProj")] [assembly: AssemblyCopyright("Copyright © Immo Landwerth")] [assembly: AssemblyTrademark("")] [assembly : AssemblyMetadata("PreRelease", "Beta")] [assembly : AssemblyMetadata("ProjectUrl", "http://nupro...
67e020bc-6b43-4460-aab7-4b6b3139e0c7
{ "language": "C#" }
```c# namespace Parsley.Tests; class ParsedTests { public void HasAParsedValue() { new Parsed<string>("parsed", new(1, 1)).Value.ShouldBe("parsed"); } public void HasNoErrorMessageByDefault() { new Parsed<string>("x", new(1, 1)).ErrorMessages.ShouldBe(ErrorMessageList.Empty); }...
```c# namespace Parsley.Tests; class ParsedTests { public void CanIndicateSuccessfullyParsedValueAtTheCurrentPosition() { var parsed = new Parsed<string>("parsed", new(12, 34)); parsed.Success.ShouldBe(true); parsed.Value.ShouldBe("parsed"); parsed.ErrorMessages.ShouldBe(ErrorMe...
75dbb1e6-666c-4c81-a803-4f45b07ca072
{ "language": "C#" }
```c# using System; using System.ComponentModel; using System.Globalization; using System.Linq; namespace clipr.Utils { /// <summary> /// <para> /// A TypeConverter that allows conversion of any object to System.Object. /// Does not actually perform a conversion, just passes the value on /// throu...
```c# using System; using System.ComponentModel; using System.Globalization; using System.Linq; namespace clipr.Utils { /// <summary> /// <para> /// A TypeConverter that allows conversion of any object to System.Object. /// Does not actually perform a conversion, just passes the value on /// throu...
c6342346-8169-4524-8fa1-f93085f0cc37
{ "language": "C#" }
```c#  namespace clipr.Core { /// <summary> /// Parsing config for a verb, includes a way to "set" the resulting /// verb on the original options object. /// </summary> public interface IVerbParserConfig: IParserConfig { /// <summary> /// Store the verb on the options objcet. ...
```c#  namespace clipr.Core { /// <summary> /// Parsing config for a verb, includes a way to "set" the resulting /// verb on the original options object. /// </summary> public interface IVerbParserConfig: IParserConfig { /// <summary> /// Store the verb on the options objcet. ...
519c7d39-fab9-4600-8570-4e664ad9dcfb
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Globalization; using Umbraco.Core; using UmbracoVault.Comparers; using UmbracoVault.Extensions; namespace UmbracoVault.Collections { public class TypeAliasSet : ReadOnlySet<string> { private TypeAliasSet() : base(new HashSe...
```c# using System; using System.Collections.Generic; using System.Globalization; using Umbraco.Core; using UmbracoVault.Comparers; using UmbracoVault.Extensions; namespace UmbracoVault.Collections { public class TypeAliasSet : ReadOnlySet<string> { private TypeAliasSet() : base(new HashSe...
fe4919ca-dd65-4f8b-814b-98cf54fbde0d
{ "language": "C#" }
```c# using System; namespace Renci.SshNet.Abstractions { internal static class ThreadAbstraction { /// <summary> /// Suspends the current thread for the specified number of milliseconds. /// </summary> /// <param name="millisecondsTimeout">The number of milliseconds for which ...
```c# using System; namespace Renci.SshNet.Abstractions { internal static class ThreadAbstraction { /// <summary> /// Suspends the current thread for the specified number of milliseconds. /// </summary> /// <param name="millisecondsTimeout">The number of milliseconds for which ...
a551603a-30dc-436f-ba7a-3b8fad1aa531
{ "language": "C#" }
```c# using System; using SourceSafeTypeLib; namespace vsslib { public static class VssItemExtensions { /// <summary> /// If VSS conatins $/Project1 but requested $/project1, then case will not be fixed and $/project1 will be retuned. /// This methor return case to normal -> $/Project1 /// </summary> /// ...
```c# using System; using SourceSafeTypeLib; namespace vsslib { public static class VssItemExtensions { /// <summary> /// If VSS conatins $/Project1 but requested $/project1, then case will not be fixed and $/project1 will be retuned. /// This methor return case to normal -> $/Project1 /// </summary> /// ...
493535c7-7abb-47a5-b768-fc82b36ec5e2
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Activation; using System.ServiceModel.Web; using System.Text; namespace DemoWcfRest { [ServiceContract(Namespace = "")] [AspNetCompatibilityRequirem...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Activation; using System.ServiceModel.Web; using System.Text; namespace DemoWcfRest { [ServiceContract(Namespace = "")] [AspNetCompatibilityRequirem...
85824d42-41e6-47c1-bbb9-58e2c2d41109
{ "language": "C#" }
```c# #region using System.Windows; #endregion namespace SteamAccountSwitcher { internal class Popup { public static MessageBoxResult Show(string text, MessageBoxButton btn = MessageBoxButton.OK, MessageBoxImage img = MessageBoxImage.Information, MessageBoxResult defaultbtn = MessageBoxR...
```c# #region using System.Windows; #endregion namespace SteamAccountSwitcher { internal class Popup { public static MessageBoxResult Show(string text, MessageBoxButton btn = MessageBoxButton.OK, MessageBoxImage img = MessageBoxImage.Information, MessageBoxResult defaultbtn = MessageBoxR...
e27b6ab1-3357-453a-8012-78503787cfbb
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics; using osu.Framework.Graphics.Sprites; using osu.Game.Rulesets; using osuTK; using osuTK.Graphics; namespace osu.Game.Overlays.Profil...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics; using osu.Framework.Graphics.Sprites; using osu.Game.Rulesets; using osuTK; using osuTK.Graphics; namespace osu.Game.Overlays.Profil...
33c3b25d-1bfa-45cd-9eb7-271f393b5866
{ "language": "C#" }
```c# using System.Linq; using System.Reflection; // ReSharper disable once CheckNamespace internal class Program { private static void Main(string[] args) { var mainAsm = Assembly.Load("citizenmp_server_updater"); mainAsm.GetType("Costura.AssemblyLoader") .GetMethod("Attach") ...
```c# using System; using System.IO; using System.Reflection; // ReSharper disable once CheckNamespace internal static class Program { private static int Main(string[] args) { // Mono's XBuild uses assembly redirects to make sure it uses .NET 4.5 target binaries. // We emulate it using our own...
b321e5b0-9cab-41fb-81a8-80cbb2d58c1f
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Cursor; using osu.Framework.Graphics.Containers; using osu.Framework.Pla...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Cursor; using osu.Framework.Graphics.Containers; using osu.Framework.Pla...
bbcda6fb-fdec-467d-a4a5-edc19e6ad067
{ "language": "C#" }
```c# using Ninject; using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Ninject.Extensions.Conventions; namespace FunWithNinject.Conventions { [TestFixture] public class ConventionsTests { [Test] ...
```c# using Ninject; using Ninject.Extensions.Conventions; using NUnit.Framework; namespace FunWithNinject.Conventions { [TestFixture] public class ConventionsTests { [Test] public void Bind_OneClassWithMultipleInterfaces_BindsOneInstanceToAll() { // Assemble ...
7e088bc8-e72a-4c4e-a1cc-881f356ad2f3
{ "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...
1f827458-bc79-4df7-9d85-17a8c1e03783
{ "language": "C#" }
```c# using System; using System.IO; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Cogito.Web.Razor.Tests { [TestClass] public class RazorTemplateBuilderTests { TextReader LoadTemplateText(string name) { return new StreamReader(typeof(RazorTemplateBuilderTests...
```c# using System; using System.IO; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Cogito.Web.Razor.Tests { [TestClass] public class RazorTemplateBuilderTests { TextReader LoadTemplateText(string name) { return new StreamReader(typeof(RazorTemplateBuilderTests...
2b1e3ecb-6389-4fab-8e2d-8a395b56b21a
{ "language": "C#" }
```c# @model IEnumerable<BatteryCommander.Common.Models.Soldier> @{ ViewBag.Title = "List"; } <h2>List</h2> <table class="table"> <tr> <th> @Html.DisplayNameFor(model => model.LastName) </th> <th> @Html.DisplayNameFor(model => model.FirstName) </th> ...
```c# @model IEnumerable<BatteryCommander.Common.Models.Soldier> @{ ViewBag.Title = "List"; } <h2>@ViewBag.Title</h2> <table class="table"> <tr> <th> @Html.DisplayNameFor(model => model.FirstOrDefault().LastName) </th> <th> @Html.Di...
4e80f93a-3a38-4abd-b267-ac82d03342e7
{ "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.Collections.Immutable; namespace Microsoft.CodeAnalysis.CSharp.Symbols { internal partial 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.Collections.Immutable; #pragma warning disable CS0660 // Warning is reported only for Full Solu...
d6aa2009-c016-4e0f-bb81-2663097c2b55
{ "language": "C#" }
```c# using System; namespace ChamberLib.Content { public delegate IModel ModelProcessor(ModelContent asset, IContentProcessor processor); public delegate ITexture2D TextureProcessor(TextureContent asset, IContentProcessor processor); public delegate IShaderStage ShaderStageProcessor(ShaderContent asset, ...
```c# using System; namespace ChamberLib.Content { public delegate IModel ModelProcessor(ModelContent asset, IContentProcessor processor); public delegate ITexture2D TextureProcessor(TextureContent asset, IContentProcessor processor); public delegate IShaderStage ShaderStageProcessor(ShaderContent asset, ...
9d45cfab-5ea4-4818-890d-c1792b57118d
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Framework.Bindables; using osu.Game.Graphics.UserInterface; using osu.Game.Overlays.Settings; namespace osu.Game.Tournament.Components { ...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Framework.Bindables; using osu.Game.Graphics.UserInterface; using osu.Game.Overlays.Settings; namespace osu.Game.Tournament.Components { ...
72524a35-7eba-45a7-a135-d4956f6070d7
{ "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 = ','; // TODO: What's the Unicode situation? public static str...
b00876c4-7289-418c-b0c7-0cd5b035feaa
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; public class ColliderFriction : GameObjectBehavior { public float frictionValue=0; // Use this for initialization void Start () { collider.material.staticFriction = frictionValue; collider.material.staticFriction2 = frictionValue;...
```c# using UnityEngine; using System.Collections; public class ColliderFriction : GameObjectBehavior { public float frictionValue=0; // Use this for initialization void Start () { collider.material.staticFriction = frictionValue; //collider.material.staticFriction2 = frictionValue; ...
adca0ea1-397c-4f55-8421-e6c38d1e955e
{ "language": "C#" }
```c# using System.Collections.Generic; using System.IO; using System.Reflection; using JetBrains.Annotations; using Microsoft.CodeAnalysis; using AshMind.Extensions; using System; using SharpLab.Server.Common.Internal; namespace SharpLab.Server.Owin.Platform { public class Net48AssemblyDocumentationResolver : IAs...
```c# using System.Collections.Generic; using System.IO; using System.Reflection; using JetBrains.Annotations; using Microsoft.CodeAnalysis; using AshMind.Extensions; using System; using SharpLab.Server.Common.Internal; namespace SharpLab.Server.Owin.Platform { public class Net48AssemblyDocumentationResolver : IAs...
bca08664-4dc8-4609-8582-63a5e459d996
{ "language": "C#" }
```c# using System.Collections.Generic; namespace PublicApiGenerator { internal static class CSharpOperatorKeyword { static readonly IDictionary<string, string> OperatorNameMap = new Dictionary<string, string> { { "op_Addition", "+" }, { "op_UnaryPlus", "+" }, ...
```c# using System.Collections.Generic; namespace PublicApiGenerator { internal static class CSharpOperatorKeyword { static readonly IDictionary<string, string> OperatorNameMap = new Dictionary<string, string> { { "op_False", "false" }, { "op_True", "true" }, ...
86cbec07-b609-48e1-8061-3492e01e3ed4
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IPOCS_Programmer.ObjectTypes { public class PointsMotor_Pulse : PointsMotor { public override byte motorTypeId { get { return 1; } } public byte ThrowLeftOutput {...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IPOCS_Programmer.ObjectTypes { public class PointsMotor_Pulse : PointsMotor { public override byte motorTypeId { get { return 1; } } public byte ThrowL...
fd3ecb35-5928-478e-8ecd-e173a7906c25
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.Graphics; using Repository.EditorServices.SyntaxHighlighting; namespace Repository.Internal.EditorServices.SyntaxHighlighting { internal class MonokaiColorTheme : IColorTheme { public C...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.Graphics; using Repository.EditorServices.SyntaxHighlighting; namespace Repository.Internal.EditorServices.SyntaxHighlighting { internal class MonokaiColorTheme : IColorTheme { public C...
9f976789-e9d1-436f-97ad-506e50553e0e
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Threading.Tasks; using Mapsui.Geometries; using Mapsui.Layers; using Mapsui.Providers; using NUnit.Framework; namespace Mapsui.Tests.Fetcher { [TestFixture] public class FeatureFetcherTests { [Test] public void TestFeatureF...
```c# using System; using System.Collections.Generic; using System.Threading.Tasks; using Mapsui.Geometries; using Mapsui.Layers; using Mapsui.Providers; using NUnit.Framework; namespace Mapsui.Tests.Fetcher { [TestFixture] public class FeatureFetcherTests { [Test] public void TestFeatureF...
73a239c7-10a1-4557-b5f8-7124155faafd
{ "language": "C#" }
```c# // Copyright (c) 2016 SIL International // This software is licensed under the MIT license (http://opensource.org/licenses/MIT) using System; namespace LfMerge.LanguageForge.Model { public class LfOptionListItem { public Guid? Guid { get; set; } public string Key { get; set; } public string Value { get;...
```c# // Copyright (c) 2016 SIL International // This software is licensed under the MIT license (http://opensource.org/licenses/MIT) using MongoDB.Bson.Serialization.Attributes; using MongoDB.Bson; using System; namespace LfMerge.LanguageForge.Model { public class LfOptionListItem { [BsonRepresentation(BsonType....
e1085818-7248-4da6-a8b0-a15b5b430dbb
{ "language": "C#" }
```c# using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Game.Graphics.UserInterface; using osu.Game.Tournament.IO; namespace osu.Game.Tournament.Screens.Setup { internal class TournamentSwitcher : ActionableInfo { private OsuDropdown<string> dropdown; private string start...
```c# using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Game.Graphics.UserInterface; using osu.Game.Tournament.IO; namespace osu.Game.Tournament.Screens.Setup { internal class TournamentSwitcher : ActionableInfo { private OsuDropdown<string> dropdown; [Resolved] p...
07aba7a1-c039-4cd1-8d29-556696c5aa2d
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Shapes; using osuTK.Graphics; namespace osu.Game.Overlays.OSD ...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Shapes; using osuTK.Graphics; namespace osu.Game.Overlays.OSD ...
8a75708d-32bf-4a2b-925b-c62e1dc6f17e
{ "language": "C#" }
```c# // Copyright 2014 by PeopleWare n.v.. // // 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 applicabl...
```c# // Copyright 2014 by PeopleWare n.v.. // // 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 applicabl...
c1a37442-555a-4d61-8324-d097ff8a280d
{ "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.Framework.Graphics.Containers; using osu.Game.Graphics.Sprites; namespace osu.Game.Tournament.Screens.Ladder.Components { ...
```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.Framework.Graphics.Containers; using osu.Game.Graphics.Sprites; using OpenTK.Graphics; namespace osu.Game.Tournament.Scree...
ce887b0e-86f0-4744-92de-4313b347fb56
{ "language": "C#" }
```c# <div class="user-display"> @if (!User.Identity.IsAuthenticated) { string returnUrl = ViewData.ContainsKey(Constants.ReturnUrlViewDataKey) ? (string)ViewData[Constants.ReturnUrlViewDataKey] : Request.RawUrl; <span class="welcome"> <a href="@Url.LogOn(returnUrl)" title="Register...
```c# <div class="user-display"> @if (!User.Identity.IsAuthenticated) { string returnUrl = ViewData.ContainsKey(Constants.ReturnUrlViewDataKey) ? (string)ViewData[Constants.ReturnUrlViewDataKey] : Request.RawUrl; <span class="welcome"> <a href="@Url.LogOn(returnUrl)" title="Register...
d3b0a3e9-5621-4eee-beaf-8ca61a3c72af
{ "language": "C#" }
```c# using Stylet; using SyncTrayzor.Localization; using SyncTrayzor.SyncThing; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace SyncTrayzor.Utils { public static class SafeSyncthingExt...
```c# using Stylet; using SyncTrayzor.Localization; using SyncTrayzor.SyncThing; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace SyncTrayzor.Utils { public static class SafeSyncthingExt...
3101212d-c52d-4635-86a4-a1ccf00379bb
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using SlimDX.Direct3D11; using VVVV.PluginInterfaces.V1; using FeralTic.DX11; using FeralTic.DX11.Resources; namespace VVVV.DX11 { [Obsolete("This does access IPluginIO, which fails in case of multi core access, this wi...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using SlimDX.Direct3D11; using VVVV.PluginInterfaces.V1; using FeralTic.DX11; using FeralTic.DX11.Resources; namespace VVVV.DX11 { [Obsolete("This does access IPluginIO, which fails in case of multi core access, this wi...
9549488c-084d-48ed-b7a1-337fff21f4f6
{ "language": "C#" }
```c# using AVFoundation; using Plugin.MediaManager.Abstractions; using UIKit; namespace Plugin.MediaManager.iOS { public class VideoSurface : UIView, IVideoSurface { public override void LayoutSubviews() { foreach (var layer in Layer.Sublayers) { var avPlayerLayer = layer as AVPlayerLayer; ...
```c# using System; using AVFoundation; using CoreGraphics; using Foundation; using Plugin.MediaManager.Abstractions; using UIKit; namespace Plugin.MediaManager.iOS { public class VideoSurface : UIView, IVideoSurface { public override void LayoutSubviews() { base.LayoutSubviews(); if (Layer.Sublaye...
e4dc7a79-6e85-40d2-a414-84af2bd8cf4b
{ "language": "C#" }
```c# // Copyright (c) Gothos // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Tera.Game.Messages { public class LoginServerMessage : ParsedMessage { public EntityId Id { get; private set; } public uint PlayerId { get; private set;...
```c# // Copyright (c) Gothos // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Tera.Game.Messages { public class LoginServerMessage : ParsedMessage { public EntityId Id { get; private set; } public uint PlayerId { get; private set;...
18cbc939-1041-464e-8045-eb064d19aea8
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Framework.Graphics.Containers; using osu.Framework.Input; using osu.Framework.Input.Bindings; using osu.Game.Input.Bindings; namespace osu...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Framework.Graphics.Containers; using osu.Framework.Input; using osu.Framework.Input.Bindings; using osu.Game.Input.Bindings; namespace osu...
a2408105-aa3b-48c3-bdb4-33c4edbe3a07
{ "language": "C#" }
```c# using System.DoubleNumerics; namespace SolidworksAddinFramework.Geometry { public static class Matrix4x4Extensions { public static Matrix4x4 CreateFromAxisAngleOrigin(PointDirection3 p, double angle) { return Matrix4x4.CreateTranslation(-p.Point) ...
```c# using System.DoubleNumerics; using System.Text; namespace SolidworksAddinFramework.Geometry { public static class Matrix4x4Extensions { public static Matrix4x4 CreateFromAxisAngleOrigin(PointDirection3 p, double angle) { return Matrix4x4.CreateTranslation(-p.Po...
a825f01d-20cb-4b88-8cba-dacef8185be4
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Linq; namespace Giles.Core.Configuration { public class Filter { public Filter() { } public Filter(string convertToFilter) { foreach (var entry in FilterLookUp.Where(entry => convertToFilter.Contains(entry.Key))) ...
```c# using System.Collections.Generic; using System.Linq; namespace Giles.Core.Configuration { public class Filter { public Filter() { } public Filter(string convertToFilter) { foreach (var entry in FilterLookUp.Where(entry => convertToFilter.Contains(entry.Key))) ...
8ed7b5c4-86f9-4be2-ad89-2c1e590a025a
{ "language": "C#" }
```c# using System.ComponentModel; namespace JoinRpg.Web.Models.Schedules { public enum ScheduleConfigProblemsViewModel { //TODO поменять сообщение, когда сделаем настроечный экран [Description("Расписание не настроено для этого проекта, обратитесь в техподдержку")] FieldsNotSet, ...
```c# using System.ComponentModel; namespace JoinRpg.Web.Models.Schedules { public enum ScheduleConfigProblemsViewModel { [Description("Расписание не настроено для этого проекта. Вам необходимо добавить поля для помещения и расписания.")] FieldsNotSet, [Description("У полей, привязанных...
edef84a2-a0e5-4080-a3e3-7f61da462a5b
{ "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.Net.Http; using osu.Framework.IO.Network; using osu.Game.Online.API.Requests.Responses; namespace osu.Game.Online.API.Requests { public class Comm...
```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.Net.Http; using osu.Framework.IO.Network; using osu.Game.Online.API.Requests.Responses; namespace osu.Game.Online.API.Requests { public class Comm...
a6d97396-229c-44bd-8daa-73b8112ccd26
{ "language": "C#" }
```c# using System; using AutomaticTypeMapper; using EOLib.Domain.Chat; using EOLib.Domain.Login; using EOLib.Net; namespace EOLib.PacketHandlers.Chat { [AutoMappedType] public class PrivateMessageHandler : PlayerChatByNameBase { private readonly IChatRepository _chatRepository; public ov...
```c# using System; using AutomaticTypeMapper; using EOLib.Domain.Chat; using EOLib.Domain.Login; using EOLib.Net; namespace EOLib.PacketHandlers.Chat { [AutoMappedType] public class PrivateMessageHandler : PlayerChatByNameBase { private readonly IChatRepository _chatRepository; public ov...
61c13f3a-f869-4cb6-81c7-bef7222d22a3
{ "language": "C#" }
```c# using System; using compiler.frontend; namespace Program { class Program { //TODO: adjust main to use the parser when it is complete static void Main(string[] args) { // using (Lexer l = new Lexer(@"../../testdata/big.txt")) // { // Token t; /...
```c# using System; using compiler.frontend; namespace Program { class Program { //TODO: adjust main to use the parser when it is complete static void Main(string[] args) { // using (Lexer l = new Lexer(@"../../testdata/big.txt")) // { // Token t; /...
e0d3687c-3791-4fb1-91be-55636cb54bee
{ "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.Collections.Generic; using System.Linq; using Vipr.Core; using Vipr.Core.CodeModel; namespace CSharpWriter { public class CollectionGetByIdInde...
```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.Collections.Generic; using System.Linq; using Vipr.Core; using Vipr.Core.CodeModel; namespace CSharpWriter { public class CollectionGetByIdInde...
c41cad0b-9767-4d52-8be2-7d15a4f002a6
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osuTK.Graphics; using osu.Framework.Allocation; using osu.Framework.Extensions.Color4Extensions; using osu.Framework.Graphics; using osu.Framework.Graphics.E...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osuTK.Graphics; using osu.Framework.Allocation; using osu.Framework.Extensions.Color4Extensions; using osu.Framework.Graphics; using osu.Framework.Graphics.E...
7bbc74ce-5501-4b0c-8f4c-dcc01bda18d8
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Web.Http; using System.Web.Http.OData.Extensions; using WebStack.QA.Test.OData.SxS2.ODataV3.Extensions; namespace WebStack.QA.Test.OData.SxS2.ODataV3 { public static class ODataV3WebApiConfig { public static void Register(HttpConfiguration config) ...
```c# using System.Collections.Generic; using System.Web.Http; using System.Web.Http.OData.Extensions; using WebStack.QA.Test.OData.SxS2.ODataV3.Extensions; namespace WebStack.QA.Test.OData.SxS2.ODataV3 { public static class ODataV3WebApiConfig { public static void Register(HttpConfiguration config) ...
f783dd76-8ac6-4562-81f2-1b0a788ffaad
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BadgerJaus.Services.Core; using BadgerJaus.Messages.PrimitiveDriver; using BadgerJaus.Util; using BadgerControlModule.Models; namespace BadgerControlModule.Utils { class ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BadgerJaus.Services.Core; using BadgerJaus.Messages.PrimitiveDriver; using BadgerJaus.Util; using BadgerControlModule.Models; namespace BadgerControlModule.Utils { class ...
7f2ff7e3-a2d9-42a5-af3d-888926236b1a
{ "language": "C#" }
```c# // Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. // Licensed under the Microsoft Reciprocal License (MS-RL). See LICENSE in the project root for license information. namespace Tvl.VisualStudio.InheritanceMargin { using System; using Microsoft.VisualStudio.Shell.Interop; // Sto...
```c# // Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. // Licensed under the Microsoft Reciprocal License (MS-RL). See LICENSE in the project root for license information. namespace Tvl.VisualStudio.InheritanceMargin { using System; using Microsoft.VisualStudio.Shell.Interop; // Sto...
7957349c-5985-4d6e-bc9b-592ca65ef1f9
{ "language": "C#" }
```c# using UniRx; using UniRx.Triggers; using UnityEngine; using UnityEngine.UI; public class CanvasWidthScalePresenter : MonoBehaviour { [SerializeField] CanvasEvents canvasEvents; [SerializeField] Slider canvasWidthScaleController; NotesEditorModel model; void Awake() { model ...
```c# using UniRx; using UniRx.Triggers; using UnityEngine; using UnityEngine.UI; public class CanvasWidthScalePresenter : MonoBehaviour { [SerializeField] CanvasEvents canvasEvents; [SerializeField] Slider canvasWidthScaleController; NotesEditorModel model; void Awake() { model ...
58050af2-9e65-4adc-a36d-d1d639e33aa2
{ "language": "C#" }
```c# using System.Collections; using Engine; using Engine.Data; using Engine.Networking; using Engine.Utility; using UnityEngine; namespace Engine.Game.Controllers { [RequireComponent(typeof(ThirdPersonController))] public class ThirdPersonPushBodies : BaseEngineBehavior { public float pushPower = 0....
```c# using System.Collections; using Engine; using Engine.Data; using Engine.Networking; using Engine.Utility; using UnityEngine; namespace Engine.Game.Controllers { #if NETWORK_PHOTON [RequireComponent(typeof(ThirdPersonController))] public class ThirdPersonPushBodies : BaseEngineBehavior { public fl...
b70233e5-f674-4b73-9f54-e82f451879ba
{ "language": "C#" }
```c# using OpenQA.Selenium; using OpenQA.Selenium.Support.UI; using System; using TechTalk.SpecFlow; using Xunit; namespace Web.UI.Tests { [Binding] public class WebBrowserWaitSteps : WebDriverStepsBase { [When("I wait for element with id (.*) to exist")] public void IWaitForElementWithId...
```c# using OpenQA.Selenium; using OpenQA.Selenium.Support.UI; using System; using TechTalk.SpecFlow; using Xunit; namespace Web.UI.Tests { [Binding] public class WebBrowserWaitSteps : WebDriverStepsBase { [When("I wait for element with id (.*) to exist")] public void IWaitForElementWithId...
d260b457-0202-4d84-80a8-a6321c389420
{ "language": "C#" }
```c# using NBitcoin; using System; using System.Collections.Generic; using System.Threading.Tasks; using WalletWasabi.Backend.Models; using WalletWasabi.Interfaces; using WalletWasabi.Logging; using WalletWasabi.WebClients.BlockchainInfo; using WalletWasabi.WebClients.Coinbase; using WalletWasabi.WebClients.Gemini; us...
```c# using NBitcoin; using System; using System.Collections.Generic; using System.Threading.Tasks; using WalletWasabi.Backend.Models; using WalletWasabi.Interfaces; using WalletWasabi.Logging; using WalletWasabi.WebClients.BlockchainInfo; using WalletWasabi.WebClients.Coinbase; using WalletWasabi.WebClients.Gemini; us...
37e5c8d3-d5da-4ec1-95df-f4d432e4a1be
{ "language": "C#" }
```c# @{ ViewBag.Title = "Contact"; } <h2>@ViewBag.Title.</h2> <h3>@ViewBag.Message</h3> <address> One Microsoft Way<br /> Redmond, WA 98052-6399<br /> <abbr title="Phone">P:</abbr> 425.555.0100 </address> <address> <strong>Support:</strong> <a href="mailto:Support@example.com">Support@exam...
```c# @{ ViewBag.Title = "Contact"; } <h2>@ViewBag.Title.</h2> <h3>@ViewBag.Message</h3> <address> One Microsoft Way<br /> Redmond, WA 98052-6399<br /> <abbr title="Phone">P:</abbr> 425.555.0100 </address> <address> <strong>Support:</strong> <a href="mailto:Support@example.com">Support@wech...
ceac89c9-1536-4721-8a7f-a95c4366082a
{ "language": "C#" }
```c# using BatteryCommander.Web.Models; using BatteryCommander.Web.Services; using FluentEmail.Core; using FluentEmail.Core.Models; using FluentScheduler; using System.Collections.Generic; using System.IO; namespace BatteryCommander.Web.Jobs { public class PERSTATReportJob : IJob { private static ILi...
```c# using BatteryCommander.Web.Models; using BatteryCommander.Web.Services; using FluentEmail.Core; using FluentEmail.Core.Models; using FluentScheduler; using System.Collections.Generic; using System.IO; namespace BatteryCommander.Web.Jobs { public class PERSTATReportJob : IJob { private static ILi...
98f3ee8e-12f2-4050-8eeb-dd38d69c6999
{ "language": "C#" }
```c# using System; namespace DiceApi.Core { public class Die { /// <summary> /// Instance of Random that we'll instantiate with the die /// and use within the Roll() method. /// </summary> private readonly Random rng; /// <summary> /// Initializes a ne...
```c# using System; namespace DiceApi.Core { public class Die { /// <summary> /// Initializes a new instance of <see cref="Die" /> with a /// specified number of sides. /// </summary> /// <param name="sides">Number of sides on the die.</param> public Die(int sid...
e6ca84fc-5e35-4658-b678-0fc3703c0ab6
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using osu.Framework.Bindables; using osu.Framework.Graphics.UserInterface; using osu.Game.Graphics.UserInterface; namespace osu.G...
```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 osu.Framework.Bindables; using osu.Framework.Graphics.UserInterface; using osu.Game.Graphics.UserInterface; namespace osu.G...
d22b9e34-b88a-422c-83a7-56ca8693dc12
{ "language": "C#" }
```c# using System; namespace Xamarin.Forms.GoogleMaps.Internals { internal class ProductInformation { public const string Author = "amay077"; public const string Name = "Xamarin.Forms.GoogleMaps"; public const string Copyright = "Copyright © amay077. 2016 - 2017"; public const ...
```c# using System; namespace Xamarin.Forms.GoogleMaps.Internals { internal class ProductInformation { public const string Author = "amay077"; public const string Name = "Xamarin.Forms.GoogleMaps"; public const string Copyright = "Copyright © amay077. 2016 - 2017"; public const ...
146d4e0f-c808-4091-9b69-5ff4a326d1b9
{ "language": "C#" }
```c# using BatteryCommander.Web.Models; using BatteryCommander.Web.Services; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System.Linq; using System.Threading.Tasks; namespace BatteryCommander.Web.Controllers { [Authorize, ApiExplorerSettings(IgnoreApi = true)] public class ...
```c# using BatteryCommander.Web.Models; using BatteryCommander.Web.Services; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System.Linq; using System.Threading.Tasks; namespace BatteryCommander.Web.Controllers { [Authorize, ApiExplorerSettings(IgnoreApi = true)] public class ...