max_stars_repo_path
stringlengths
3
255
max_stars_repo_name
stringlengths
5
116
max_stars_count
int64
0
107k
id
stringlengths
1
7
content
stringlengths
63
1.05M
Pegasus/Expressions/NameExpression.cs
otac0n/Pegasus
142
7054991
<reponame>otac0n/Pegasus // Copyright © <NAME>. All Rights Reserved. This source is subject to the MIT license. Please see license.md for more information. namespace Pegasus.Expressions { using System; /// <summary> /// Represents a reference to another expression by name. /// </summary> public c...
src/System.Threading.Channels/src/System/Threading/Channels/ChannelReader.netcoreapp.cs
ostorc/corefx
1
7054992
<reponame>ostorc/corefx // 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.Generic; using System.Diagnostics; using System.Runtime.CompilerSe...
ModbusServer/ModbusServer/Messages/WriteMultipleRegisters.cs
Pentacour/ARModbus
1
7054993
<reponame>Pentacour/ARModbus<filename>ModbusServer/ModbusServer/Messages/WriteMultipleRegisters.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace ModbusServer.Messages { public class WriteMultipleRegisters : ModbusMess...
WalkOfLife/Framework/Patches/Farming/FarmAnimalDayUpdatePatch.cs
lshtech/StardewValleyMods
1
7054994
<filename>WalkOfLife/Framework/Patches/Farming/FarmAnimalDayUpdatePatch.cs using Harmony; using Netcode; using StardewValley; using System; using System.Collections.Generic; using System.Reflection.Emit; namespace TheLion.AwesomeProfessions { internal class FarmAnimalDayUpdatePatch : BasePatch { /// <inheritdoc/>...
AnimalsShelter.UnitTests/Services/UserServiceTests.cs
Vasilev87/AnimalsShelter
0
7054995
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using AnimalsShelter.Data.Model; using AnimalsShelter.Data.Repositories; using AnimalsShelter.Data.SaveContext; using AnimalsShelter.Services; using Moq; using NUnit.Framework; namespace AnimalsShelter....
Editor/UIXEditor.cs
red-owl-games/UIX
2
7054996
<gh_stars>1-10 using System; using RedOwl.UIX.Engine; using UnityEditor; using UnityEngine; using UnityEngine.UIElements; using Object = UnityEngine.Object; namespace RedOwl.UIX.Editor { public static class UIXEditor { public static void Setup<T>(T instance, VisualElement root) where T : Edi...
Services/FlashcardsExporter.cs
piotrkolodziej/KindleVocabularyImporter
0
7054997
using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using Microsoft.EntityFrameworkCore; using KindleVocabularyImporter.Data; using KindleVocabularyImporter.Models; namespace KindleVocabularyImporter { namespace Services { public class FlashcardsExporter : IFlashcardsExporter ...
src/Meziantou.GitLabClient.Generator/GitLabModels/Clients/MarkdownClient.cs
meziantou/Meziantou.GitLabClient
3
7054998
namespace Meziantou.GitLabClient.Generator.GitLabModels { internal sealed class MarkdownClient : GitLabClientBuilder { protected override void Create(MethodGroup methodGroup) { methodGroup.AddMethod("RenderMarkdown", MethodType.Post, "/markdown", "https://docs.gitlab.com/ee/api/mark...
Utilities/Singleton.cs
Hyoso/The-April-Project
0
7054999
<reponame>Hyoso/The-April-Project using System.Collections; using System.Collections.Generic; using UnityEngine; public abstract class Singleton<T> : MonoBehaviour where T : MonoBehaviour { public static T Instance { get { return instance; } } protected static T instance = null; publi...
Assets/ThirdParty/bHapticsManager/Scripts/TactFileAsset.cs
Roboy/ConstructVR
0
7055000
using System; using UnityEngine; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; #if UNITY_EDITOR using UnityEditor; #endif namespace Bhaptics.Tact.Unity { public class TactFileAsset : ScriptableObject { public static bool In...
src/Helpers/NavigatableCollection.cs
padgettrowell/rejive
0
7055001
<gh_stars>0 using System.Collections.Generic; using System.Collections.ObjectModel; namespace Rejive { public class NavigatableCollection<T> : ObservableCollection<T> { public delegate void CurrentItemChangedHandler(T previous, T current); public event CurrentItemChangedHandler CurrentItemChan...
fasesJogo.cs
JohnsJohnny/Projeto-Interdisciplinar-3A
0
7055002
<filename>fasesJogo.cs using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class fasesJogo : MonoBehaviour { public Button btnPlay; // public Text textFase; public GameObject infoFase; public Text textAcertos; public GameObject...
src/Cemiyet.Persistence/Application/Migrations/20191111143026_AddedAuthors.cs
nuriu/cemiyet-backend
1
7055004
<gh_stars>1-10 using System; using Microsoft.EntityFrameworkCore.Migrations; namespace Cemiyet.Persistence.Application.Migrations { public partial class AddedAuthors : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( ...
cards/BLACK_TEMPLE/BT/Sim_BT_136t.cs
chi-rei-den/Silverfish
1
7055006
/* _BEGIN_TEMPLATE_ { "id": "BT_136t", "name": [ "终极姆希菲", "<NAME>" ], "text": [ "<b>嘲讽</b>\n<b>抉择:</b>召唤一个9/9的巨型真菌,并使其获得<b>嘲讽</b>;或者使其获得<b>突袭</b>。", "<b>Taunt</b>\n<b>Choose One -</b> Summon a 9/9 Fungal Giant with <b>Taunt</b>; or <b>Rush</b>." ], "CardClass": "DRUID", "type": "MINION", ...
Assets/Scripts/Fruit.cs
Zagorouiko/Unity_SteamVR_Prototypes
0
7055007
<reponame>Zagorouiko/Unity_SteamVR_Prototypes using UnityEngine; using System.Collections; public class Fruit : MonoBehaviour { // Update is called once per frame void Update () { if (transform.position.y < -10f) Destroy(this.gameObject); } }
IrrigationController.Web/WebRole.cs
jklemmack/IoTIrrigationController
1
7055008
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace IrrigationController.Web { //public class WebRole : RoleEntryPoint //{ // public override bool OnStart() // { // return base.OnStart(); // } // public override void OnStop() ...
tests/FunctionalTests/Web/Pages/Basket/BasketPageCheckout.cs
mohamedsaidii/eShopOnWeb
1
7055009
using Microsoft.AspNetCore.Mvc.Testing; using Xunit; namespace Microsoft.eShopWeb.FunctionalTests.Web.Pages.Basket; [Collection("Sequential")] public class BasketPageCheckout : IClassFixture<TestApplication> { public BasketPageCheckout(TestApplication factory) { Client = factory.CreateClient(new WebA...
Assets/Scripts/EnemyController.cs
debiantarte/weekly-jam-154
1
7055010
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Timers; public class EnemyController : MonoBehaviour, IInputSource { public Transform player; [SerializeField] private float changeDestinationInterval = 2.0f; private float changeDestinationTimer = 0.0f; [Seria...
src/DragonFly.Core/ContentItems/Queries/FieldOrder.cs
usercode/DragonFly
6
7055011
<reponame>usercode/DragonFly using System; using System.Collections.Generic; using System.Text; namespace DragonFly.Content.Queries { public class FieldOrder { public FieldOrder() { Name = string.Empty; Asc = true; } public FieldOrder(string name, bool ...
SmartStoreNET-3.x/src/Presentation/SmartStore.Web/Administration/Views/ProductReview/List.cshtml
jonmcquade/csharp-snippets
2
7055012
<gh_stars>1-10 @model ProductReviewListModel @using Telerik.Web.Mvc.UI @{ var gridPageSize = EngineContext.Current.Resolve<SmartStore.Core.Domain.Common.AdminAreaSettings>().GridPageSize; //page title ViewBag.Title = T("Admin.Catalog.ProductReviews").Text; } <div class="section-header"> <div class...
D365FONinjaDevTools/SetIndex/SetAsIndex.cs
Enver-Yilmaz/D365FONinjaDevTools
65
7055013
using System; using System.ComponentModel.Composition; using System.Linq; using D365FONinjaDevTools.Kernel; using Microsoft.Dynamics.AX.Metadata.Core.MetaModel; using Microsoft.Dynamics.AX.Metadata.MetaModel; using Microsoft.Dynamics.Framework.Tools.Extensibility; using Microsoft.Dynamics.Framework.Tools.MetaModel.Aut...
InfoMonitor.Web/DataController.cs
ItsCodeOutside/InfoMonitor
1
7055014
using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Caching.Memory; using Microsoft.Extensions.Configuration; using System; using System.Collections.Generic; namespace InfoMonitor.Web { [Produces("application/json")] public class DataController : ControllerBase { CachedDataManager _cachedDa...
Semester3/Homework1/1.1/1.1/LazySingleThreaded.cs
yuniyakim/Homework
1
7055015
<reponame>yuniyakim/Homework using System; namespace _1._1 { /// <summary> /// Single threaded lazy /// </summary> public class LazySingleThreaded<T> : ILazy<T> { private T value; private bool isValueCreated; private Func<T> func; /// <summary> /// Single t...
C# Advance/18.IteratorsAndComparators-Ex/ListyIterator/ListyIterator.cs
vencislav-viktorov/VS-Console-App
1
7055016
namespace ListyIterator { using System.Collections.Generic; public class ListyIterator<T> { private List<T> data; private int index; public ListyIterator(List<T> data) { this.data = data; } public bool Move() { if (HasNext()...
Sources/BrownSugar/Extentions/MathExtension.cs
m5knt/BrownSugar
0
7055017
<filename>Sources/BrownSugar/Extentions/MathExtension.cs /** * @file * @brief 計算関係 */ using System; // // // namespace ThunderEgg.BrownSugar.Extentions { /// <summary>計算関係</summary> public static class MathExtension { /// <summary>無限大であるかを返す</summary> /// <seealso cref="float.IsInfinity...
V3/TextAdventure3/Playground/Alt/Engine/Internal/Messages/StartGame.cs
Tauron1990/TextAdventure
0
7055018
<filename>V3/TextAdventure3/Playground/Alt/Engine/Internal/Messages/StartGame.cs using TextAdventures.Builder.Internal; using TextAdventures.Engine.Internal.Data; namespace TextAdventures.Engine.Internal.Messages { public sealed class StartGame { public StartGame(WorldImpl world, bool newGame, SavePro...
source/Models/Models/Db/SitePropertyModel.cs
contensive/Contensive50
2
7055019
<filename>source/Models/Models/Db/SitePropertyModel.cs  using Contensive.BaseClasses; using System; using System.Collections.Generic; using System.Data; namespace Contensive.Models.Db { // public class SitePropertyModel : DbBaseModel { // //=====================================================...
aliyun-net-sdk-baas/Baas/Transform/V20180731/UpdateSchemaResponseUnmarshaller.cs
awei1688/aliyun-openapi-net-sdk
572
7055020
<gh_stars>100-1000 /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the ...
BaiduMapAPI.SDK/APIs/Traffic/V1/Polygon.cs
miracleQin/BaiduMapServerAPI.SDK
0
7055021
<reponame>miracleQin/BaiduMapServerAPI.SDK using BaiduMapAPI.Models.Attributes; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace BaiduMapAPI.APIs.Traffic.V1 { /// <summary> /// 实时路况查询-多边形区域路况查询 /// </summary> public class Polygon...
XCalendar.Core/Interfaces/ICalendarDayResolver.cs
ME-MarvinE/XCalendar
65
7055022
<filename>XCalendar.Core/Interfaces/ICalendarDayResolver.cs<gh_stars>10-100 using System; namespace XCalendar.Core.Interfaces { public interface ICalendarDayResolver { ICalendarDay CreateDay(DateTime? DateTime); void UpdateDay(ICalendarDay Day, DateTime? DateTime); } }
Source/Tests/Integration-tests/Helpers/Configuration/Extensions/ConfigurationBuilderExtension.cs
HansKindberg/IdentityServer-Extensions
0
7055023
using System; using Microsoft.Extensions.Configuration; namespace IntegrationTests.Helpers.Configuration.Extensions { public static class ConfigurationBuilderExtension { #region Methods public static IConfigurationBuilder AddJsonFile(this IConfigurationBuilder configurationBuilder) { if(configurationBuilde...
Source/Serilog.Exceptions/Destructurers/RegexMatchTimeoutExceptionDestructurer.cs
Guymestef/Serilog.Exceptions
0
7055024
namespace Serilog.Exceptions.Destructurers { using System; using System.Collections.Generic; using System.Text.RegularExpressions; using Serilog.Exceptions.Core; /// <summary> /// Destructurer for <see cref="RegexMatchTimeoutException"/>. /// </summary> public class RegexMatchTimeoutExc...
ZwiftActivityMonitorV2/usercontrols/config/LapConfigControl.Designer.cs
AndreasCF/ZwiftActivityMonitor
36
7055026
<gh_stars>10-100  namespace ZwiftActivityMonitorV2 { partial class LapConfigControl { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. ...
Samples/BasicAppAuthentication-WP8/BasicAppAuthenticationUriMapper.cs
MavenRain/facebook-winclient-sdk
49
7055027
// <copyright file="BasicAppAuthenticationUriMapper.cs" company="Microsoft Corporation."> // Copyright (c) 2013 Microsoft Corporation. All rights reserved. // </copyright> namespace BasicAppAuthentication { using System; using System.IO.IsolatedStorage; using System.Windows; using System.Wi...
05-Csharp OOP Basics/03-DEFINING CLASSES/03-DefiningClassesLab/01-BankAccount/StartUp.cs
MrPIvanov/SoftUni
0
7055028
using System; public class StartUp { static void Main() { var bankAcc = new BankAccount(); bankAcc.Id = 1; bankAcc.Balance = 15; Console.WriteLine($"Account {bankAcc.Id}, balance {bankAcc.Balance}"); } }
Made_In_Imp/Assets/Hamburger/script/HamburgerManager.cs
wararyo/ImpShinkan2018
0
7055029
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Linq; public class HamburgerManager : MonoBehaviour { public List<Sprite> gu_sprites; public GameObject gu_obj; List<HamburgerGu> gu_set = new List<HamburgerGu>(); public int playerNum; // Use this for initi...
dotnet/react.mvc-core.postgres.dapper/TuduManager/src/TuduManayer.web.api/Todo/Update/UpdateTodoController.cs
seymourpoler/TuduManayer
0
7055030
using Microsoft.AspNetCore.Mvc; using TuduManayer.Domain; using TuduManayer.Domain.Todo.Update; namespace TuduManayer.web.api.Todo.Update { public class UpdateTodoController : Controller { private readonly IUpdateTodoService updateTodoService; public UpdateTodoController(IUpdateTodoService up...
src/DoDo.Open.Sdk/Models/Channels/SetChannelMessageEditInput.cs
Rhyheart/dodo-open-net
4
7055031
<reponame>Rhyheart/dodo-open-net<gh_stars>1-10 using DoDo.Open.Sdk.Models.Messages; using Newtonsoft.Json; namespace DoDo.Open.Sdk.Models.Channels { public class SetChannelMessageEditInput<T> where T : MessageBodyBase { /// <summary> /// 预更新消息ID /// </summary> [JsonProp...
GreatTextAdventures/Items/DecorationItem.cs
Davipb/GreatTextAdventures
0
7055032
<filename>GreatTextAdventures/Items/DecorationItem.cs using Newtonsoft.Json.Linq; using System.Collections.Generic; using System.IO; using System.Linq; namespace GreatTextAdventures.Items { public class DecorationItem : ILookable { public string DisplayName { get; set; } public string Description { get; set; } ...
src/AnAusAutomat.Sensors.SoundSniffer/Internals/SoundSnifferStateStore.cs
yannickbock/AnAusAutomat
0
7055034
<reponame>yannickbock/AnAusAutomat using AnAusAutomat.Contracts; using System; using System.Collections.Generic; namespace AnAusAutomat.Sensors.SoundSniffer.Internals { public class SoundSnifferStateStore { private Dictionary<Socket, PowerStatus> _states; private Dictionary<Socket, SoundSocket...
abremir.AllMyBricks.DataSynchronizer/Extensions/StringExtensions.cs
zmira/abremir.allmybricks
0
7055035
using System; using System.Text.RegularExpressions; namespace abremir.AllMyBricks.DataSynchronizer.Extensions { public static class StringExtensions { public static string SanitizeBricksetString(this string source) { return source.Replace("\n", "").Trim(); } public...
PierreTreats/Views/Flavors/Index.cshtml
eric-endsley/PierreTreats.Solution
0
7055036
<reponame>eric-endsley/PierreTreats.Solution @{ Layout = "_Layout"; } @using PierreTreats.Models; @model List<PierreTreats.Models.Flavor> <h1>Flavors List</h1> @if(@Model.Count == 0) { <h3>No flavors have been added yet!</h3> } @foreach(Flavor flavor in Model) { <ul> <li>@Html.ActionLink($"{flav...
src/SimpleOwinAspNetHost/Samples/SimpleOwinApp.cs
git-thinh/simple-owin
3
7055037
<reponame>git-thinh/simple-owin namespace SimpleOwinAspNetHost.Samples { using System; using System.Collections.Generic; using System.Dynamic; using SimpleOwin.Extensions; using SimpleOwin.Extensions.Stream; using SimpleOwin.Middlewares; using SimpleOwin.Middlewares.Extensions; ...
MadWorld/Website/Services/Interfaces/IRoleService.cs
oveldman/MadWorld
4
7055038
<filename>MadWorld/Website/Services/Interfaces/IRoleService.cs using System; using System.Collections.Generic; using System.Threading.Tasks; using Website.Shared.Models; using Website.Shared.Models.Admin; namespace Website.Services.Interfaces { public interface IRoleService { Task<BaseModel> Add(Admin...
TensorShaderTest/Links/Complex/ComplexConvolution/ComplexDeconvolution1DTest.cs
tk-yoshimura/TensorShader
2
7055039
<gh_stars>1-10 using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Linq; using TensorShader; using static TensorShader.Field; namespace TensorShaderTest.Links.ComplexConvolution { [TestClass] public class ComplexDeconvolution1DTest { [TestMethod] public void ReferenceTest() { ...
Chemistry.NET/Elements/Models/ElementTypes.cs
Sejoslaw/Chemistry.NET
1
7055040
/// <summary> /// Author: <NAME> /// Project: Chemistry.NET /// Source: https://github.com/Sejoslaw/Chemistry.NET /// </summary> namespace Chemistry.NET.Elements.Models { /// <summary> /// Container for various types of the Elements. /// </summary> public static class ElementTypes { public ...
sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/Properties/AssemblyInfo.cs
gjy5885/azure-sdk-for-net
3,268
7055042
<filename>sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/Properties/AssemblyInfo.cs using System.Reflection; using System.Runtime.CompilerServices; [assembly: AssemblyTitle("Microsoft.Azure.Services.AppAuthentication")] [assembly: AssemblyDescription("There is a newer version of this library availa...
FancyOnlineStore/App_Start/Autofac.cs
NickEU/fancy-online-store
0
7055043
using Autofac.Integration.Mvc; using DIContainerConfigurator; namespace FancyOnlineStore { public class Autofac { public static void Initialize() { var builder = DIConfig.SetupContainer(EnvironmentContext.Production); builder.RegisterControllers(typeof(MvcApplication).A...
NSspi/Contexts/ContextNativeMethods.cs
yadavvineet/nsspi
0
7055044
<gh_stars>0 using System; using System.Runtime.CompilerServices; using System.Runtime.ConstrainedExecution; using System.Runtime.InteropServices; using NSspi.Buffers; namespace NSspi.Contexts { /// <summary> /// Declares native methods calls for security context-related win32 functions. /// </su...
src/Component/BlazorComponent/Components/OtpInput/IOtpInput.cs
masastack/BlazorComponent
0
7055045
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BlazorComponent { public interface IOtpInput : IHasProviderComponent { OtpInputType Type { get...
CSharp/src/BusinessApp.Kernel.UnitTest/BusinessAppExceptionTests.cs
pinterweb/dotnet-webapi-template
0
7055046
<filename>CSharp/src/BusinessApp.Kernel.UnitTest/BusinessAppExceptionTests.cs using System; using Xunit; namespace BusinessApp.Kernel.UnitTest { public class BusinessAppExceptionTests { public class Constructor : BusinessAppExceptionTests { [Fact] public void WithMessage...
CharacterLib/VitalStatistics.cs
caleblallen/CharacterController
0
7055047
using System; using System.Collections.Generic; using System.Text; namespace CharacterLib { public class VitalStatistics { public Stat Strength { get; set; } public Stat Dexterity { get; set; } public Stat Constitution { get; set; } public Stat Intelligence { get; set; } ...
ProgrammingFundamentals/Labs/01.CSharpIntroAndBasicSyntax/03.EmployeeData/StartUp.cs
SonicTheCat/ProgramingFundamentals-SoftUni
0
7055048
<filename>ProgrammingFundamentals/Labs/01.CSharpIntroAndBasicSyntax/03.EmployeeData/StartUp.cs<gh_stars>0 namespace _03.EmployeeData { using System; public class StartUp { public static void Main() { string name = Console.ReadLine(); int age = int.Parse(Console.Read...
Translation/Yandex/YandexRequestsEncoder.cs
Letme996/TataruHelper
245
7055050
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace Translation.Yandex { class YandexRequestsEncoder { static stri...
source/RINGS/Models/ChannelLinkerModel.cs
anoyetta/RINGS
30
7055051
using System.Linq; using Newtonsoft.Json; using Prism.Mvvm; using RINGS.Common; namespace RINGS.Models { public class ChannelLinkerModel : BindableBase { [JsonIgnore] public Config Config => Config.Instance; private bool isEnabled; [JsonProperty(Property...
ServiceWorkerMobileApp/NG.ServiceWorker/ContactsUI/EditContactViewModel.cs
NaturalGateways/DevExerciseServiceWorkerApp
0
7055052
using System; using System.Threading.Tasks; using System.Windows.Input; using Xamarin.Forms; namespace NG.ServiceWorker.ContactsUI { public class EditContactViewModel : UI.ViewModel { #region Base public Page XamarinPage { get; set; } public UIModel.ContactListContactModel ContactIt...
Core/MugenMvvmToolkit.Binding(NetStandard)/Interfaces/Models/IBindingMemberInfo.cs
MugenMvvmToolkit/MugenMvvmToolkit
180
7055053
#region Copyright // **************************************************************************** // <copyright file="IBindingMemberInfo.cs"> // Copyright (c) 2012-2017 <NAME> // </copyright> // **************************************************************************** // <author><NAME></author> // <email><EMAIL></...
src/InvoiceXpress/Payloads/ReceiptPayload.cs
filipetoscano/invoicexpress
0
7055054
<filename>src/InvoiceXpress/Payloads/ReceiptPayload.cs using System.Text.Json.Serialization; namespace InvoiceXpress.Payloads; /// <summary /> public class ReceiptPayload { /// <summary /> [JsonPropertyName( "receipt" )] public Invoice Receipt { get; set; } = default!; }
SvetulkaApp/Web/SvetulkaApp.Web/Services/UsersService.cs
todorovmartin/svetulkaASP
0
7055055
using Microsoft.AspNetCore.Identity; using SvetulkaApp.Data; using SvetulkaApp.Data.Models; using SvetulkaApp.Web.Services.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace SvetulkaApp.Web.Services { public class UsersService : IUsersService ...
PlanningPoker/Data/InMemorySessionRepository.cs
brandon-james105/BlazorPlanningPoker
4
7055056
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace PlanningPoker.Data { public class InMemorySessionRepository : IRepository<IPlanningPokerSession> { private IDictionary<string, IPlanningPokerSession> Sessions { get; set; } public InMemo...
Demos/SampleApp/Program.cs
guytp/ztk
3
7055057
using System; namespace Ztk.Demos.SampleApp { public class Program { public static void Main(string[] args) { try { using (App app = new App(new SampleWindow())) app.Run(); } catch (Exception ex) { ...
FluentStrings/Actions/Remove/Auxiliary/RemoveStringStartingOccurrenceToOccurrence.cs
duckAsteroid/FluentStrings
19
7055058
<reponame>duckAsteroid/FluentStrings using System; using dokas.FluentStrings.Actions.Common; namespace dokas.FluentStrings.Actions.Remove { public class RemoveStringStartingOccurrenceToOccurrence : ICaseIgnorable, IPositional { private readonly RemoveStringStartingOccurrence _removeStringStartingOccur...
test/NuGet.Core.Tests/NuGet.Configuration.Test/TestUtils.cs
CosminRadu/NuGet.Client
0
7055059
// 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; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; namespace NuGet.Config...
WK.Orion.Platform.Framework/Integration/WebAPI/Controllers/OrionApiController.cs
jwillj2k4/ArchitectureExample
0
7055060
using System.Web.Http; namespace WK.Orion.Platform.Examples.Components.Framework.Integration.WebAPI.Controllers { /// <summary> A controller for handling orion apis. </summary> public class OrionApiController : ApiController { } }
LBP/LBP.UnitTests/Tests/MedianFilterTests.cs
MIPT-Oulu/LocalBinaryPattern
8
7055061
using System; using LBPLibrary; using LBP.UnitTests; using Accord.Math; using Xunit; namespace LBP.UnitTests { public class MedianFilterTests { TestImage testImg = new TestImage(); // Initialize testimage function [Fact] public void MedianFilter_SmallQuarter_EqualsPythonArray() ...
00_Common/SystemExtensions/EnumExtensions.cs
xyz37/LinqSample
0
7055062
<filename>00_Common/SystemExtensions/EnumExtensions.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace System { /// <summary> /// Enum에 적용되는 확장 기능을 지원합니다. /// </summary> public static class EnumExtensions { /// <summary> /// T type의 Enum을 반복하며 action을 처리 합니다. ...
02. Programming/03. Types/Homework/Solutions/SpecialNumbers.cs
gkrastenov/it-kariera
6
7055063
using System; class SpecialNumbers { public static void Main() { int number = int.Parse(Console.ReadLine()); for (int i = 1; i <= number; i++) { string digits = i.ToString(); int sum = 0; foreach (char digit in digits) ...
Win-10/On-Screen-Keyboard/On-Screen-Keyboard/KeyButtons/AlphabetKeyButton.cs
ajeyjoshi/Public
0
7055064
// <copyright file="AlphabetKeyButton.cs" company="PlaceholderCompany"> // Copyright (c) PlaceholderCompany. All rights reserved. // </copyright> namespace On_Screen_Keyboard { using System.Windows; using System.Windows.Controls; public class AlphabetKeyButton : Button, IKeyBoardButton { public sta...
InterviewProblems/LeetCodeProblems/Strings/ValidPalindrome.cs
coshea/DSandAlgosCSharp
0
7055065
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LeetCodeProblems.Strings { /// <summary> /// Leetcode #125 - Valid Palindrome /// https://leetcode.com/problems/valid-palindrome/ /// Given a string, determine if it is a palin...
src/DNTCommon.Web.Core/Caching/ICacheService.cs
VahidN/DNTCommon.Web.Core
111
7055067
using System; namespace DNTCommon.Web.Core { /// <summary> /// ICacheService encapsulates IMemoryCache functionality. /// </summary> public interface ICacheService { /// <summary> /// A thread-safe way of working with memory cache. First tries to get the key's value from the cache. ...
LibraryChecker/Solvers/Math/ConvolutionAnyModSolver.cs
naminodarie/AtCoderProject
2
7055068
<gh_stars>1-10 using Kzrnm.Competitive.IO; namespace Kzrnm.Competitive.Solvers.DataStructure { public class ConvolutionAnyModSolver : ISolver { public string Name => "convolution_mod_1000000007"; public void Solve(ConsoleReader cr, ConsoleWriter cw) { int N = cr; ...
TasksExample.Api/Infrastructure/Data/TasksContext.cs
devdaves/TasksExample
1
7055069
<filename>TasksExample.Api/Infrastructure/Data/TasksContext.cs using System; using System.Collections.Generic; using System.Linq; using System.Web; using TasksExample.Api.Models; namespace TasksExample.Api.Infrastructure.Data { public interface ITasksContext { List<TaskItem> Tasks { get; set; } } ...
MonoGame.Framework/Utilities/TaskbarProgressValue.cs
TechnologicalPizza/MonoGame
0
7055070
<filename>MonoGame.Framework/Utilities/TaskbarProgressValue.cs using System; namespace MonoGame.Framework.Utilities { /// <summary> /// Represents the progress ratio for a taskbar progress indicator. /// </summary> public readonly struct TaskbarProgressValue : IEquatable<TaskbarProgressValue> ...
ZMachineLib/Managers/IZStack.cs
Chrislee187/ZMachineLib
0
7055071
<gh_stars>0 using ZMachineLib.Content; namespace ZMachineLib.Managers { public interface IZStack : IZStack<ZStackFrame> { ushort PopCurrentRoutine(); ushort PeekCurrentRoutine(); bool CurrentRoutingAvailable(); void PushNewRoutine(ushort routineAddress); ushort Variabl...
CourierDistributionProject/CourierService.Models/SQLServer/Contracts/IDistributionPicker.cs
Pesh2003/TeamProjectOfEntities4
0
7055072
using CourierService.DbContext.SQLServer; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CourierService.Models.SQLServer.Contracts { public interface IDistributionPicker { void PickUpDistribution(ICorierServiceContext dbCon...
src/YouTrackSharp/Internal/LinearRetryPolicy.cs
zelodyc/YouTrackSharp
87
7055073
<reponame>zelodyc/YouTrackSharp<gh_stars>10-100 using System; using System.Threading.Tasks; namespace YouTrackSharp.Internal { /// <summary> /// A class that can execute a specific code block multiple times, using linear retries. /// </summary> internal class LinearRetryPolicy<TResult> { pr...
src/BankScrapper.Utils/StringExtensions.cs
gmilani/aspnet-bank-scrapper
2
7055074
using System; using System.Diagnostics; using System.Globalization; namespace BankScrapper.Utils { [DebuggerStepThrough] public static class StringExtensions { public static string Capitalize(this string source) => source.IsNullOrEmpty() ? source : $"{source[0].ToString().ToUpper()}{s...
Journey of Liz/Source Code/Journey of Liz/JOL/Commands/SmallStateCommand.cs
mloveall/Journey_of_Liz
0
7055075
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace JOL.Commands { class SmallStateCommand : ICommand { Player mario; public SmallStateCommand(Player mario) { this.mario = mario; } public void Execute() ...
PersonelProject.ToDo.Web1/Areas/Admin/Controllers/MissionController.cs
onuraytuglu/StaffApplication
0
7055076
<reponame>onuraytuglu/StaffApplication using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using PersonelProject.ToDo.Business.Interfaces; using PersonelProject.ToDo.Entities.Concrete; using PersonelProject.ToDo.Web1.Areas.Admin.Models; using System; usin...
JobToolkit.DBRepository.Standard/DBJobSummary.cs
iTecBridge/JobToolkit
5
7055077
using JobToolkit.Core; using ORMToolkit.Core.Attributes; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JobToolkit.DBRepository { public class DBJobSummary : DBJob { public int RetryNumber { get; set; } [Mapper(typ...
SerializIt.Tests/SerializIt/JsonSerializerOptionsTests.cs
KhaosCoders/SerializIt
0
7055078
using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace SerializIt.Tests.SerializIt; [TestClass] public class JsonSerializerOptionsTests { [JsonOptions(prettyPrint: true, useSingeQuotes: true, indentChars: "x", skipNullValues: false)] private class CustomTestOptions { } [JsonOpt...
CaboodleESTests/UtilityTest.cs
HellFire13/CaboodleES
1
7055079
using CaboodleES.Utils; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace AuroraTests { /// <summary> /// Summary description for UnitTest1 /// </summary> [TestClass] public class UtilityTest { BitMask mask; public UtilityTest() { mask = new Bit...
Qsi.Cql/CqlDeparser.cs
ScriptBox99/chequer-qsi
36
7055080
using System; using Qsi.Cql.Tree; using Qsi.Data; using Qsi.Parsing.Common; using Qsi.Tree; namespace Qsi.Cql { public sealed class CqlDeparser : CommonTreeDeparser { protected override void DeparseTreeNode(ScriptWriter writer, IQsiTreeNode node, QsiScript script) { var range = Cql...
ffmpeg-farm-server/API.Repository/LoudnessJobRepository.cs
drdk/ffmpeg-farm
0
7055081
<filename>ffmpeg-farm-server/API.Repository/LoudnessJobRepository.cs<gh_stars>0 using System; using System.Collections.Generic; using Contract; using Dapper; namespace API.Repository { public class LoudnessJobRepository : JobRepository, ILoudnessJobRepository { private readonly IHelper _helper; ...
EndlessClient/Rendering/CharacterProperties/ShieldRenderer.cs
ethanmoffat/EndlessClient
31
7055082
<filename>EndlessClient/Rendering/CharacterProperties/ShieldRenderer.cs using EndlessClient.Rendering.Sprites; using EOLib; using EOLib.Domain.Character; using EOLib.Domain.Extensions; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; namespace EndlessClient.Rendering.CharacterPrope...
SpellWork/DBC/Structures/SpellDurationEntry.cs
AshamaneProject/SpellWork
1
7055083
<filename>SpellWork/DBC/Structures/SpellDurationEntry.cs using SpellWork.Parser; namespace SpellWork.DBC.Structures { [DBFileName("SpellDuration")] public sealed class SpellDurationEntry { [Index] public int ID; public int Duration; public int MaxDuration; public in...
TravelAlbum.Web/Models/ImageModels/ImagePreviewOutputViewModel.cs
emilti/TravelAlbum
0
7055084
<reponame>emilti/TravelAlbum using System; using System.ComponentModel.DataAnnotations; namespace TravelAlbum.Web.Models.ImageModels { public class ImagePreviewOutputViewModel { public Guid ImageId { get; set; } public string ImageData { get; set; } [DisplayFormat(DataFormatS...
Shared/Models/Winner.cs
pakhd/pakhd
0
7055085
<filename>Shared/Models/Winner.cs #nullable disable using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Pakhd.Shared.Models { public class Winner { [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int W...
Tools/ECSteroids/Assets/Scripts/GameStates/CreditsState.cs
tsmaster/ECSteroids
1
7055086
using BDG_ECS; using ECSteroids; public class CreditsState { public static void Enter(ECSWorld world) { } public static void Exit(ECSWorld world) { } }
Web/DotaESport.Web/Views/Articles/News.cshtml
Tenyo-tech/DotaESport
1
7055087
<filename>Web/DotaESport.Web/Views/Articles/News.cshtml<gh_stars>1-10 @using DotaESport.Common @model DotaESport.Web.ViewModels.Articles.NewsViewModel @{ this.ViewData["Title"] = "Home Page"; } <h1 class="display-3 text-opacity text-white">Latest News</h1> @foreach (var article in Model.Articles) { <div clas...
src/PSSyntaxRewriter/SyntaxFactory.cs
SeeminglyScience/PSSyntaxRewriter
9
7055089
using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation.Language; namespace PSSyntaxRewriter { public class SyntaxFactory { public static readonly SyntaxFactory Default; private readonly Stack<Ast> _context = new Stack<Ast>(); private IScr...
apis/Google.Cloud.Diagnostics.Common/Google.Cloud.Diagnostics.Common/Project.cs
boxstack/google-cloud-dotnet
474
7055092
<reponame>boxstack/google-cloud-dotnet // Copyright 2018 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE...
Assets/Scripts/CSharpCallLua/LuaEnv_lesson1.cs
keybers/LearnXLua
0
7055093
using System.Collections; using System.Collections.Generic; using UnityEngine; //引用命名空间 using XLua; public class LuaEnv_lesson1 : MonoBehaviour { // Start is called before the first frame update void Start() { //lua解析器 能够让我们在unity当中执行lua //一般情况下 保持它的唯一性 LuaEnv env = new LuaEnv();...
test/Graft.Algorithms.Test/ShortestPathTests.cs
alex-c/Graft
0
7055094
<filename>test/Graft.Algorithms.Test/ShortestPathTests.cs using Graft.Algorithms.ShortestPath; using Graft.Default; using Graft.Default.File; using Graft.Exceptions; using Graft.Primitives; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Linq; namespace Graft.Algorithms.Tests { [Tes...
Osklib/BaseEventOnScreenKeyboardWatcher.cs
AlexeiScherbakov/osklib
25
7055095
using System; namespace Osklib { public abstract class BaseEventOnScreenKeyboardWatcher : BaseOnScreenKeyboardWatcher, IOnScreenKeyboardEventWatcher { protected override void OnKeyboardOpened() { var evnt = KeyboardOpened; if (evnt != null) { evnt(this, EventArgs.Empty); } } protected over...
FlitBit.Core/FlitBit.Core.Tests/DynamicJsonTests.cs
flitbit-org/fbcore
0
7055096
<gh_stars>0 using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace FlitBit.Core.Tests { [TestClass] public class DynamicJsonTests { [TestMethod] public void JsonToDynamic_ConvertsArrayWithEmptyItem() { var json = "[{}]".JsonToDynamic(); Assert.IsNotNull(json); Assert.AreEqual(1,...
tableau-server-api-unified/Rest/Model/QueryViewsForSiteResponseViewsView.cs
biztory/tableau-performance-accelerator
3
7055098
<filename>tableau-server-api-unified/Rest/Model/QueryViewsForSiteResponseViewsView.cs using System; using System.Text; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using Newtonsoft.Json; namespace Biztory.EnterpriseToolkit.TableauServerUnifiedApi.Rest.Model { /// ...
src/Avalonia.Controls/DateTimePickers/TimePickerSelectedValueChangedEventArgs.cs
jangernert/Avalonia
13,764
7055099
<reponame>jangernert/Avalonia<gh_stars>1000+ using System; namespace Avalonia.Controls { public class TimePickerSelectedValueChangedEventArgs { public TimeSpan? OldTime { get; } public TimeSpan? NewTime { get; } public TimePickerSelectedValueChangedEventArgs(TimeSpan? old, TimeSpan? ne...
Assets/_AngryLabTools/_Scripts/Scriptable Objects/Events and Listeners/SO_scripts/SO_Void.cs
TonCoder/GameDevTools
0
7055100
<gh_stars>0 using System.Collections; using System.Collections.Generic; using UnityEngine; [CreateAssetMenu(fileName = "NullEvent", menuName = "AngryLab/Game System/Event/Null Event")] public class SO_Void : AGameEvent<EmptyClass> { } [System.Serializable] public class EmptyClass{}
tests/Vortice.Graphics.Tests/BufferTests.cs
ehtick/Vortice.GPU
0
7055101
<reponame>ehtick/Vortice.GPU<gh_stars>0 // Copyright © <NAME> and Contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Vortice.Graphics.Tests; [TestClass] [TestCategory("Buffer")] public partial c...