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 |
|---|---|---|---|---|
framework/wcf/Extensibility/Web/FormPost/CS/HtmlFormProcessing/HtmlFormProcessingBehavior.cs | joseocampo/samples | 2,197 | 7041080 | //----------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------------
using System;
using System.ServiceModel.Description;
using System.ServiceModel.Dispatcher;
using System.ServiceModel.Web;
... |
IT-Career-V4/M01-ProgrammingBasics/S08-DrawingWithLoops/P06-Diamond/Program.cs | aalishov/School | 2 | 7041081 | using System;
class Program
{
static void Main()
{
int n = int.Parse(Console.ReadLine());
if (n == 1)
{
Console.WriteLine("*");
}
else
{
if (n % 2 == 1)
{
int rows = n / 2;
//First rows
... |
Examples/Todos/Revo.Examples.Todos/Handlers/TodoListCommandHandler.cs | chengliang-git/Revo | 290 | 7041082 | using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Revo.Core.Commands;
using Revo.Examples.Todos.Domain;
using Revo.Examples.Todos.Messages.Commands;
using Revo.Infrastructure.Repositories;
namespace Revo.Examples.Todos.Handlers
{
public class TodoListCommandHandler :
ICommandH... |
src/Tabi/DataSync/EndpointValidator.cs | vplme/tabi-app | 3 | 7041083 | using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using Tabi.Logging;
namespace Tabi.DataSync
{
public static class EndpointValidator
{
public static void Init(IEnumerable<string> publicKeys)
{
... |
src/UmbracoContentApi/UmbracoContentApi.Core/Converters/Grid/EmbedGridConverter.cs | umakers/UmbracoContentApi | 0 | 7041084 | using System;
using Newtonsoft.Json;
using UmbracoContentApi.Core.Models;
namespace UmbracoContentApi.Core.Converters.Grid
{
public class EmbedGridConverter : IGridConverter
{
public string EditorAlias => "embed";
public object? Convert(object? value)
{
if (value == null)
... |
AsyncRx.NET/System.Reactive.Async.Linq/System/Reactive/Linq/Operators/WithLatestFrom.cs | tralivali1234/reactive | 1 | 7041085 | <reponame>tralivali1234/reactive
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
using System.Reactive.Disposables;
using System.Threading;
using System.Th... |
src/NuGet.Services.Validation.Orchestrator/ValidatorProvider.cs | fredatgithub/NuGet.Jobs | 1 | 7041086 | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Microsoft.Extensions.DependencyInjection;
using Micro... |
src/Atelie.BusinessModel/Cadastro/Modelos/Producao/Ferramentas/DisponibilidadeDeFerramentaDeProducao.cs | mardsystems/atelie | 0 | 7041087 | <reponame>mardsystems/atelie
using Atelie.Cadastro.Modelos.Producao.Fases;
namespace Atelie.Cadastro.Modelos.Producao.Ferramentas
{
public interface IDisponibilidadeDeFerramentaDeProducao
{
IFaseDeProducao Fase { get; }
IFerramentaDeProducao Ferramenta { get; }
}
}
|
Source/Totem/Reflection/LambdaBodies.cs | snickroger/Totem | 0 | 7041088 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
namespace Totem.Reflection
{
/// <summary>
/// Extends lambda expressions with the ability to find members and methods referenced within
/// </summary>
[EditorBro... |
Flying-Boxes/Assets/Script/Sketch.cs | p-sun/Creative-Coding-in-Unity | 1 | 7041089 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Sketch : MonoBehaviour {
void Start() {
createCentralCube();
int totalCubes = 30;
// The distance between the position of the first and last cube
float totalDistance = 2.9f;
... |
TextSplit/TSM.Designer.cs | mwaltman/TextSplit | 2 | 7041090 | namespace TextSplit
{
partial class TextSplitMain
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... |
server/Crypto/CryptoConfigurationException.cs | fakhruddin5352/documate | 1 | 7041091 | namespace Documate.Crypto {
public class CryptoConfigurationException : CryptoException {
public CryptoConfigurationException (string message) : base (message) {
}
}
} |
Old/Demo Scene/DemoControls.cs | At-Bristol/DEV0006-DataDomeUnityToolkit | 6 | 7041092 | <gh_stars>1-10
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class DemoControls : MonoBehaviour
{
const int FOVIncrement = 5;
const float RotationIncrement = 5.0f;
const float PositionIncrement = 0.1f;
public DomeController domeController;
public Transform demoCameraB... |
Source/Krypton Toolkit Examples/KryptonColorDialog Example/Form1.cs | Krypton-Suite/Standard-Toolkit-Demos | 25 | 7041093 | using System;
using System.Windows.Forms;
using Krypton.Toolkit;
using KryptonColorDialog.Properties;
namespace KryptonFontDialog_Example_2019
{
public partial class Form1 : KryptonForm
{
public Form1()
{
InitializeComponent();
Icon = Resources.Krypton;
}
... |
ExampleMod/Backgrounds/ExampleUgBgStyle.cs | peteyus/tModLoader | 1 | 7041094 | using Terraria;
using Terraria.ModLoader;
namespace ExampleMod.Backgrounds
{
public class ExampleUgBgStyle : ModUgBgStyle
{
public override bool ChooseBgStyle()
{
return Main.LocalPlayer.GetModPlayer<ExamplePlayer>(mod).ZoneExample;
}
public override void FillTextureArray(int[] textureSlots)
{
textu... |
FigmaSharp.iOS/Converters/FigmaTextConverter.cs | berlamont/FigmaSharp | 0 | 7041095 | <reponame>berlamont/FigmaSharp<filename>FigmaSharp.iOS/Converters/FigmaTextConverter.cs
/*
* FigmaTextConverter.cs
*
* Author:
* <NAME> <<EMAIL>>
*
* Copyright (C) 2018 Microsoft, Corp
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation f... |
Sample/Models/ColorModel.cs | cnbluefire/MaterialLibs | 57 | 7041096 | <gh_stars>10-100
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using Windows.UI;
using Windows.UI.Xaml.Media;
namespace Sample.Models
{
public class ColorModel : INotifyPropert... |
src/Dragonfly/ActiveCampaign/Models/Account/AccountCustomFieldDatum.cs | hfloyd/Dragonfly.ActiveCampaignV3Api | 2 | 7041097 | namespace Dragonfly.ActiveCampaign.Models
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
public class AccountCustomFieldDatum
{
[JsonProperty("id")]
[JsonConverter(typeof(Parse... |
F.P.S/Assets/HiziProjects/iTweenVisualEditor/Scripts/BaseITweenType.cs | unagi11/PS | 1 | 7041098 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using HiziProjects;
//[CreateAssetMenu (menuName = "New iTween Type")]
[System.Serializable]
public class BaseITweenType : ScriptableObject
{
#region Enums
/// <summary>
/// Enumeration of all the types of animation offered by our lord... |
KData/Code/Runtime/Delegates.cs | kaiyumcg/KData | 0 | 7041099 | <reponame>kaiyumcg/KData<gh_stars>0
using System.Collections;
using UnityEngine;
namespace CoreDataLib
{
public delegate void OnAnimation(Animator animator);
public delegate IEnumerator OnAnimationAsync(Animator animator);
public delegate void OnDoAnything();
public delegate IEnumerator OnDoAnythingAs... |
TestCom/Program.cs | hawesome512/TripTester | 0 | 7041100 | <filename>TestCom/Program.cs
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Diagnostics;
namespace TestCom
{
class Program
{
static void Main(string[] args)
{
byte[] snd = new byte[] { 0x01, 0x03, 0x00, 0x00, 0x00, 0x01, 0x84, 0x0A ... |
SampleApis/Migrations/20210425162812_required_id.Designer.cs | Ethan0007/.NetCore-Mssql-Dockerize | 0 | 7041101 | <filename>SampleApis/Migrations/20210425162812_required_id.Designer.cs
// <auto-generated />
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage... |
src/AutoSoft.Infrastructure/Validation/ValidationException.cs | marlonvidal/autosoft | 3 | 7041102 | <gh_stars>1-10
using FluentValidation.Results;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AutoSoft.Infrastructure.Validation
{
[Serializable]
public class BusinessValidationException : Exception
{
public List<string... |
app/DynamicsAdapter/Fams3Adapter.Dynamics/Types/InformationSourceType.cs | alexjoybc/fams3 | 0 | 7041103 | using Fams3Adapter.Dynamics.OptionSets.Models;
namespace Fams3Adapter.Dynamics.Types
{
public class InformationSourceType : Enumeration
{
public static InformationSourceType Request = new InformationSourceType(867670000, "Request");
public static InformationSourceType ICBC = new Informa... |
TDCheckerProject/Data/TDData.cs | yatumine/tdchecker | 0 | 7041104 | using System;
namespace COMMON.Data
{
/// <summary>
/// 適時開示データ
/// </summary>
public class TDData
{
public String Date { get; set; } // 公開年月日
public String Time { get; set; } // 公開時間
public String Code { get; set; } // 銘柄コード
... |
05. CSharp-Basics-More-Exercises/08. SMS Typing/Program.cs | kostadinlambov/Programming-Fundamentals | 1 | 7041105 | <reponame>kostadinlambov/Programming-Fundamentals
namespace _8.SMS_Typing
{
using System;
public class Program
{
public static void Main()
{
var numberOfCharacters = int.Parse(Console.ReadLine());
char letter;
var message = string.Empty;
fo... |
Wodsoft.ComBoost.Mvc/Web/Mvc/ControllerExtensions.cs | alexyjian/Core3.0 | 0 | 7041106 | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace System.Web.Mvc
{
/// <summary>
/// Controller extensions.
/// </summary>
public static class ControllerExtensions
{
/// <summary>
... |
src/EfficientDynamoDb/Internal/Operations/Scan/ParallelScanAsyncEnumerator.cs | playhardlab/EfficientDynamoDb | 104 | 7041107 | <reponame>playhardlab/EfficientDynamoDb
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using EfficientDynamoDb.Operations.Query;
using EfficientDynamoDb.Operations.Shared;
namespace EfficientDynamoDb.Internal.Operations.Scan
{
internal sealed class ParallelSca... |
src/Bicep.Core.UnitTests/Diagnostics/LinterRuleTests/PreferInterpolationRuleTests.cs | eddygarros/bicep | 1 | 7041108 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Bicep.Core.Analyzers.Interfaces;
using Bicep.Core.Analyzers.Linter.Rules;
using Bicep.Core.Diagnostics;
using Bicep.Core.UnitTests.Assertions;
using Bicep.Core.UnitTests.Utils;
using FluentAssertions;
using FluentAssertions.Execution;
usi... |
data/FPSGameplay/fpstutorial/art/shapes/animated_props/materials.cs | Torque3D-GameEngine/T3D-Demos | 0 | 7041109 | <gh_stars>0
singleton Material(ChinaTown_props_ShopSigns)
{
mapTo = "props.ShopSigns";
diffuseMap[0] = "data/FPSGameplay/fpstutorial/art/textures/structures/borders/borders_diffuse.dds";
normalMap[0] = "data/FPSGameplay/fpstutorial/art/textures/structures/borders/borders_001_normals.dds";
specular[0] = "1 ... |
smsapi/Api/SenderFactory.cs | takczyowak/smsapi-csharp-client | 18 | 7041110 | <filename>smsapi/Api/SenderFactory.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SMSApi.Api
{
public class SenderFactory : Factory
{
public SenderFactory(ProxyAddress address = ProxyAddress.SmsApiPl)
: base(address)
{
... |
src/OrchardCore.Modules/OrchardCore.DynamicCache/Models/CacheContextModel.cs | SvanBoxel/OrchardCore | 5,234 | 7041111 | <reponame>SvanBoxel/OrchardCore
using System;
using System.Collections.Generic;
using System.Linq;
using OrchardCore.Environment.Cache;
namespace OrchardCore.DynamicCache.Models
{
/// <summary>
/// A serialiazable and deserializable model to represent a <see cref="CacheContext"/>
/// </summary>
public ... |
source/VSC Scratch/Experiments/PeriodicLoopCon/Program.cs | ddpruitt/dotnet_core_practice | 0 | 7041112 | <reponame>ddpruitt/dotnet_core_practice
using System;
using System.Threading;
using System.Threading.Tasks;
using static System.Console;
namespace PeriodicLoopCon
{
public class Program
{
public static Task Main(string[] args)
{
var cts = new CancellationTokenSource();
... |
Aura/Assets/Scripts/AudioSequence.cs | cooperbarth/Aura | 0 | 7041113 | <filename>Aura/Assets/Scripts/AudioSequence.cs
using UnityEngine;
public class AudioSequence : MonoBehaviour
{
public AudioAction[] audioActions;
public Action[] completionActions;
public AudioSource fail;
private bool completed = false;
private int currElement = 0;
private readonly int[] cod... |
Frontend/Assets/3DGamekit/Scripts/Game/Enemies/Spitter/SpitterSMBFleeing.cs | qxlllll/MMORPG | 9 | 7041114 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Gamekit3D
{
public class SpitterSMBFleeing : SceneLinkedSMB<SpitterBehaviour>
{
public override void OnSLStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
{
m... |
MathsFormulaParser/Internal/Helpers/Extensions/TypeExtensions.cs | atudor2/MathsFormulaParser | 0 | 7041115 | <filename>MathsFormulaParser/Internal/Helpers/Extensions/TypeExtensions.cs<gh_stars>0
using System;
using System.Linq;
using System.Reflection;
namespace Alistair.Tudor.MathsFormulaParser.Internal.Helpers.Extensions
{
/// <summary>
/// Type extensions
/// </summary>
internal static class TypeExtension... |
Step4/TrdP/Mvc.DataAnnotations/Source/MvcOptionsSetup.cs | AndreVianna/CleanCodeWorkshop | 0 | 7041116 | using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using TrdP.Localization.Abstractions;
using TrdP.Mvc.DataAnnotations.Localization.ValidationProviders;
namespace TrdP.Mvc.DataAnnotations.Localization
{
public class MvcOptionsSetup : IConfigureOptions<MvcOptions>
{
private readonly I... |
FastBuildGen/FastBuildGen/Forms/Main/MainFormModel.cs | blueneosky/Bag | 0 | 7041117 | <filename>FastBuildGen/FastBuildGen/Forms/Main/MainFormModel.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using FastBuildGen.BusinessModel;
using FastBuildGen.Common;
namespace FastBuildGen.Forms.Main
{
internal class MainFormModel... |
LandonAPI/Models/HotelInfo.cs | koimiyovo/Building-Rest-Api-Netcore | 0 | 7041118 | namespace LandonAPI.Models
{
public class HotelInfo : Resource
{
public string Title { get; set; }
public string Tagline { get; set; }
public string Email { get; set; }
public string Website { get; set; }
public Address Location { get; set; }
}
}
|
src/LeadPipe.Net.Domain.Tests/DomainEventingTests/ClearShould.cs | bbizic/LeadPipe.Net | 25 | 7041119 | // --------------------------------------------------------------------------------------------------------------------
// Copyright (c) Lead Pipe Software. All rights reserved.
// Licensed under the MIT License. Please see the LICENSE file in the project root for full license information.
// -------------------------... |
Jint.Tests.Ecma/Ecma/15.10.2.5.cs | enklu/jint | 21 | 7041120 | using Xunit;
namespace Jint.Tests.Ecma
{
public class Test_15_10_2_5 : EcmaTest
{
[Fact]
[Trait("Category", "192.168.3.11")]
public void TermSyntaxerrorWasThrownWhenMaxIsFiniteAndLessThanMin151025Step3()
{
RunTest(@"TestCases/ch15/15.10/15.10.2/15.10.2.5-3-1.js", false);
... |
PatternsExamples/Structural/Bridge/MusicPlayer.cs | c1kad14/PatternsExamples | 0 | 7041121 | <reponame>c1kad14/PatternsExamples
namespace PatternsExamples.Structural.Bridge
{
class MusicPlayer
{
public ICanSing CanSing { get; set; }
public void Play()
{
CanSing?.MakeSomeNoise();
}
}
}
|
Core/Importers/JsonImporter.cs | Baltasarq/Colorado | 2 | 7041122 | <reponame>Baltasarq/Colorado
// Colorado (c) 2015/19 Baltasar MIT License <<EMAIL>>
namespace Colorado.Core.Importers
{
using System.IO;
using System.Json;
using System.Collections.Generic;
public class JsonImporter : Importer
{
public const string Name = "JSON";
const string Exte... |
TodoListWebApp/Controllers/WebApiControllers/PercentBodyFatApiController.cs | OceanOSdev/InclineBackend | 2 | 7041123 | <reponame>OceanOSdev/InclineBackend
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Security.Claims;
using System.Web.Http;
using System.Web.Http.Description;
u... |
Source/App2/App2/TestMasterView.xaml.cs | onixion/Xamarin-Forms-MasterDetailPage | 0 | 7041124 |
using System;
using System.Threading.Tasks;
using System.Windows.Input;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace App2
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class TestMasterView : ContentView
{
public TestMasterView()
{
InitializeComponent ();
Bind... |
src/ScyllaNet/Mapping/AppliedInfo.cs | ScyllaNet/ScyllaNet | 14 | 7041125 | // Copyright (c) 2014-2020 DataStax Inc.
// Copyright (c) 2020, <NAME> (ralmsdevelper)
// Licensed under the Apache License, Version 2.0. See LICENCE in the project root for license information.
using System.Linq;
namespace Scylla.Net.Mapping
{
/// <summary>
/// When using Lightweight transactions, it provid... |
NET/StudOpros/Controllers/FullApiController.cs | Zimtir/Study | 1 | 7041126 |
using StudOpros.Func;
using StudOpros.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Hosting;
using System.Web.Http;
namespace StudOpros.Controllers
{
[RoutePrefix("api/FullApi")]
public class FullApiController : ApiControl... |
src/HallOfBeorn/Models/YouTube/YouTubeLink.cs | danpoage/hall-of-beorn | 5 | 7041127 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace HallOfBeorn.Models.YouTube
{
public class YouTubeLink : ILink
{
public YouTubeLink(string title, string videoId)
{
Url = string.Format(urlFormat, videoId);
... |
src/TxCommand.Sql.Abstractions/ITxCommand.cs | reecerussell/tx-command | 0 | 7041128 | using System.Data;
namespace TxCommand.Abstractions
{
/// <inheritdoc />
public interface ITxCommand : ITxCommand<IDbConnection, IDbTransaction>
{
}
/// <inheritdoc />
public interface ITxCommand<TResult> : ITxCommand<IDbConnection, IDbTransaction, TResult>
{
}
}
|
Object Communication and Events - Exercise/01.EventImplementation/StartUp.cs | melikpehlivanov/CSharp-OOP-Advanced | 1 | 7041129 | using System;
namespace _01.EventImplementation
{
using Models;
public class Startup
{
public static void Main()
{
var dispatcher = new Dispatcher();
var handler = new Handler();
dispatcher.NameChange += handler.OnDispatcherNameChange;
whil... |
KeepIndexer/Storage/Op.cs | tonoff/KeepIndexer | 0 | 7041130 | using System;
using System.ComponentModel.DataAnnotations;
namespace KeepIndexer.Storage
{
public class Op
{
[Key]
public string Tx { get; set; }
public int Type { get; set; } //0 - deposit, 1 - redeem
public Contract Contract { get; set; }
public string Sender { get; set; }
public ulo... |
Assembly-CSharp/UIWheelDescription.cs | FreyaFreed/mordheim | 4 | 7041131 | using System;
using UnityEngine;
using UnityEngine.UI;
public class UIWheelDescription : global::UnityEngine.MonoBehaviour
{
public void SetCurrentAction(global::WheelAction action)
{
this.categoryText.enabled = true;
this.backgroundImage.gameObject.SetActive(true);
this.backgroundImageSmall.gameObject.SetAct... |
Hesoyam/DirectorMenuChoices.cs | Limitless-Rasul-Power/Hospital | 0 | 7041132 | namespace Hesoyam
{
public static class DirectorMenuChoices
{
public const string ShowAllDoctors = "1";
public const string AddDoctor = "2";
public const string RemoveDoctor = "3";
public const string Exit = "4";
}
} |
Assets/NGUI/Scripts/Editor/UIColorPickerEditor.cs | whilin/crazybox_unity_baseframework | 0 | 7041133 | //-------------------------------------------------
// NGUI: Next-Gen UI kit
// Copyright © 2011-2020 Tasharen Entertainment Inc
//-------------------------------------------------
using UnityEngine;
using UnityEditor;
[CanEditMultipleObjects]
[CustomEditor(typeof(UIColorPicker))]
public class UIColorPicke... |
MarieLasinska/nasetrida/Subject.cs | spsei-programming/MembersCode | 1 | 7041134 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace nasetrida
{
class Subject
{
public Name Name;
public Teacher Educator;
}
}
|
CnGalWebSite/CnGalWebSite.DataModel/ViewModel/Space/EditUserMainPageViewModel.cs | CharacterRevolution/CnGalWebSite | 0 | 7041135 | using System;
using System.Collections.Generic;
namespace CnGalWebSite.DataModel.ViewModel.Space
{
public class EditUserMainPageViewModel
{
public string Id { get; set; }
public string MainPage { get; set; }
}
}
|
Algorithms/TreeTraversal/BinaryTree.cs | mdmithuncse/data-structure-algorithms | 0 | 7041136 | <filename>Algorithms/TreeTraversal/BinaryTree.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TreeTraversal
{
public class BinaryTree
{
public Node root;
public BinaryTree()
{
root = null;
... |
src/Nybus/Utils/MessageDescriptorStore.cs | elindanielsson/Nybus | 12 | 7041137 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace Nybus.Utils
{
public class MessageDescriptorStore : IMessageDescriptorStore
{
private readonly TwoWayDictionary<Type, MessageDescriptor> _commandTypes = new TwoWayDictionary<Type, MessageDescriptor>(M... |
xFunc.Tests/Results/ExpressionResultTest.cs | workgroupengineering/xFunc | 0 | 7041139 | <gh_stars>0
// Copyright (c) <NAME>. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace xFunc.Tests.Results;
public class ExpressionResultTest
{
[Fact]
public void ResultTest()
{
var exp = new Sin(Variable.X);
... |
core/LibrePOS/Models/Configuration.cs | gugadev/LibrePOS | 5 | 7041140 | using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Pos.Models
{
[Table("configuracion")]
public class Configuration
{
[Column("idConfiguracion")]
public int Id { get; set; }
[Column("codigo"), Required]
public string C... |
TwitterProxy.Common/Models/AccessTokenViewModel.cs | azyobuzin/TwitterProxy | 0 | 7041141 | <reponame>azyobuzin/TwitterProxy<filename>TwitterProxy.Common/Models/AccessTokenViewModel.cs
using System;
using MsgPack.Serialization;
namespace TwitterProxy.Common.Models
{
public class AccessTokenViewModel
{
[MessagePackMember(0)]
public Consumer Consumer { get; set; }
[MessagePack... |
src/Capinfo.Application/Authoritys/IAuthorityAppService.cs | huzuohuyou/Cloud.His | 0 | 7041142 | using Abp.Application.Services;
using Capinfo.His.Dto;
using System;
using System.Collections.Generic;
using System.Text;
namespace Capinfo.His
{
public interface IAuthorityAppService : IApplicationService
{
}
}
|
Recorder/BarcodeScanner/Interop/DataStructures.cs | BrianMcGough/IUMediaHelperApps | 5 | 7041143 | using System;
using System.Runtime.InteropServices;
// Adapted from https://github.com/aelij/RawInputProcessor
// and http://www.codeproject.com/Articles/17123/Using-Raw-Input-from-C-to-handle-multiple-keyboard
namespace Recorder.BarcodeScanner.Interop
{
[StructLayout(LayoutKind.Explicit)]
internal struct De... |
N.EntityFramework.Extensions.Test/DatabaseExtensions/SqlQueryToCsvFileAsync.cs | NorthernLight1/N.EntityFramework.BulkExtensions | 0 | 7041144 | <reponame>NorthernLight1/N.EntityFramework.BulkExtensions
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Data.SqlClient;
using System.Linq;
using System.Threading.Tasks;
namespace N.EntityFramework.Extensions.Test.DatabaseExtensions
{
[TestClass]
public class SqlQueryToCsvFileAsync : Databas... |
MedicalExaminer.API/Models/v1/CaseOutcome/PutVoidCaseRequest.cs | neiltait/medex_api_pub | 0 | 7041145 | <reponame>neiltait/medex_api_pub
using System.ComponentModel.DataAnnotations;
namespace MedicalExaminer.API.Models.v1.CaseOutcome
{
/// <summary>
/// Put Void Case Request
/// </summary>
public class PutVoidCaseRequest
{
/// <summary>
/// Reason for voiding the examination
... |
Assets/Scripts/Game/UI/Tool/MyButtonEvent.cs | zekron/The-Binding-of-Isaac-Unity | 0 | 7041146 | <gh_stars>0
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class MyButtonEvent : EventTrigger
{
Image image;
Color normalColor = Color.white;
Color highlightedColor = new Color(0.3f, 0.3f, 0.3f, 1);
private ... |
src/ResXManager.Model/Properties/AssemblyInfo.cs | amse2000/ResXResourceManager | 518 | 7041147 | <reponame>amse2000/ResXResourceManager
using System.Resources;
using System.Windows.Markup;
[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.MainAssembly)]
[assembly: XmlnsDefinition("urn:ResXManager.Model", "ResXManager.Model")]
[assembly: XmlnsDefinition("urn:ResXManager.Model", ... |
code/Sitecore.CrmCampaignIntegration/sitecore modules/shell/CrmCampaignIntegration/Core/CustomCrm.cs | Sitecore/Dynamics-Campaign-Integration-Module | 0 | 7041148 | <reponame>Sitecore/Dynamics-Campaign-Integration-Module
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="CustomCrm.cs" company="Sitecore A/S">
// Copyright (C) 2010 by Sitecore A/S
// </copyright>
// <summary>
//
// </... |
sdk/dotnet/Lambda/Inputs/EventSourceMappingSourceAccessConfigurationGetArgs.cs | alexbowers/pulumi-aws | 260 | 7041149 | <filename>sdk/dotnet/Lambda/Inputs/EventSourceMappingSourceAccessConfigurationGetArgs.cs
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using Syste... |
Services/MasterService.cs | ybkuroki/aspnetcore-webapp-sample | 0 | 7041150 | using System;
using System.Collections.Generic;
using aspdotnet_managesys.Models;
using aspdotnet_managesys.Repositories;
namespace aspdotnet_managesys.Services
{
public class MasterService
{
private readonly BookRepository repo;
public MasterService(BookRepository rep)
{
r... |
src/DaAPI/Service/Beer.DaAPI.Service.UnitTests/Core/Notifications/Conditions/DHCPv6ScopeIdConditionTester.cs | just-the-benno/Beer | 2 | 7041151 | using Beer.DaAPI.Core.Common.DHCPv6;
using Beer.DaAPI.Core.Notifications.Conditions;
using Beer.DaAPI.Core.Notifications.Triggers;
using Beer.DaAPI.Core.Packets.DHCPv6;
using Beer.DaAPI.Core.Scopes;
using Beer.DaAPI.Core.Scopes.DHCPv6;
using Beer.DaAPI.Core.Services;
using Beer.DaAPI.Core.Tracing;
using Beer.TestHelpe... |
SharpEnums.Test/Converters/StringSharpEnumConverterTests.cs | morganabel/SharpEnums | 3 | 7041152 | using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Palit.SharpEnums.Converters;
using SharpEnums.Test.Models;
using Xunit;
namespace SharpEnums.Test.Converters
{
public class StringSharpEnumConverterTests
{
[Fact]
public void ItSerializesCorrectly()
{
var instance = Ge... |
src/App/FinCalcR.Calculations/Calculator/Commands/CommandWordExtensions.cs | stevenengland/FinCalcR | 1 | 7041153 | <reponame>stevenengland/FinCalcR
namespace StEn.FinCalcR.Calculations.Calculator.Commands
{
public static class CommandWordExtensions
{
public static bool IsSpecialCommandWord(this CommandWord commandWord) => commandWord == CommandWord.SetYears
|| commandWord == CommandWord.GetYears
... |
src/LightningStore/ChangeStream.cs | mihasic/LightningStore | 1 | 7041154 | <reponame>mihasic/LightningStore
namespace LightningStore
{
using System;
using System.Collections.Generic;
using System.Threading;
using LightningDB;
using static Serializer;
public class ChangeStream : IDisposable
{
private static readonly DatabaseConfiguration s_defa... |
EditorExtensions/PartInfoWindow.cs | Gerry1135/EditorExtensions | 0 | 7041155 | <filename>EditorExtensions/PartInfoWindow.cs<gh_stars>0
using System;
using UnityEngine;
namespace EditorExtensions
{
public class PartInfoWindow : MonoBehaviour
{
//public static SettingsWindow Instance { get; private set; }
//public bool Visible { get; set; }
public delegate void WindowDisabledEventHandler... |
src/backend/Csrs.Api/Instrumentation/Timer.cs | ryder-cayden/jag-csrs-portal-public | 0 | 7041156 | using System.Diagnostics;
using System.Diagnostics.Metrics;
namespace Csrs.Api.Instrumentation;
/// <summary>
///
/// </summary>
/// <typeparam name="T"></typeparam>
/// <remarks>
/// This class supports only the following generic parameter types: <see cref="int" /> and <see cref="double" />
/// </remarks>
public s... |
DiceUI/DiceUI/MainForm.cs | kirill2000-fox/Dice | 0 | 7041157 | <reponame>kirill2000-fox/Dice
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using Core;
using Microsoft.VisualBasic.Devices;
namespace DiceUI
{
/// <summary>
/// Главна... |
src/SpiceSharpParser/Lexers/LexerGrammar.cs | marcin-golebiowski/SpiceSharpContrib | 16 | 7041158 | using System;
using System.Collections.Generic;
namespace SpiceSharpParser.Lexers
{
/// <summary>
/// Lexer grammar. It contains a collection of lexer token rules.
/// </summary>
/// <typeparam name="TLexerState">A type of lexer state.</typeparam>
public class LexerGrammar<TLexerState>
whe... |
iOS/SampleBrowser/Resources/Samples/TreeView/ViewModel/FoodSpeciesViewModel.cs | Chansardrake/xamarin-demos | 0 | 7041159 | #region Copyright Syncfusion Inc. 2001-2020.
// Copyright Syncfusion Inc. 2001-2020. All rights reserved.
// Use of this code is subject to the terms of our license.
// A copy of the current license can be obtained at any time by e-mailing
// <EMAIL>. Any infringement will be prosecuted under
// applicable laws.
#endr... |
samples/DotNet/Microsoft.ServiceBus.Messaging/DurableSender/DurableSenderLibrary/DurableSender.cs | SeanFeldman/azure-service-bus | 561 | 7041160 | //
// Copyright © Microsoft Corporation, 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-2.0
//
// T... |
IndrivoPM/Gear.ProjectManagement.Application/Domain/Projects/Commands/UpdateProject/UpdateProjectCommand.cs | indrivo/bizon360_pm | 0 | 7041161 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using Gear.Domain.PmEntities.Enums;
using MediatR;
namespace Gear.ProjectManagement.Manager.Domain.Projects.Commands.UpdateProject
{
public class UpdateProjectCommand : IRequest
{
public Guid Id { get; set; }
public ... |
MegaProduction/Model/Structure/Tabs/HeavyUserManagerTab.cs | NyanUnicorn/MegaCastingProj | 0 | 7041162 | using MegaProduction.View.Fragments.UCs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MegaProduction.Model.Tools.Tabs
{
class HeavyUserManagerTab : Tab
{
/// <summary>
/// Onglet de gestion des utilisateurs du cli... |
LargoSharedClasses/Music/MusicalDenominator.cs | Vladimir1965/LargoComposer | 0 | 7041163 | <gh_stars>0
// <copyright file="MusicalDenominator.cs" company="Traced-Ideas, Czech republic">
// Copyright (c) 1990-2021 All Right Reserved
// </copyright>
// <author>vl</author>
// <email></email>
// <date>2021-09-01</date>
// <summary>Part of Largo Composer</summary>
using JetBrains.Annotations;
namespace LargoSh... |
Backend/src/Models/Presence.cs | feokuma/AspnetWorkerService | 0 | 7041164 | using System;
using System.Text.Json.Serialization;
namespace AspnetWorkerService.Models
{
public class Presence
{
[JsonPropertyName("@odata.context")]
public string DataContext { get; set; }
public string Id { get; set; }
public string Availability { get; set; }
pub... |
src/Data/GamesDatabase.Data/Migrations/20201219135741_GameAnnouncedChangedToReleased.cs | AlexanderStanev/GameDatabase | 1 | 7041165 | using Microsoft.EntityFrameworkCore.Migrations;
namespace GamesDatabase.Data.Migrations
{
public partial class GameAnnouncedChangedToReleased : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "Announce... |
LojaPadraoMYSQL/Formularios/Configuracoes/BackupRestore/frmBackupRestore.Designer.cs | RodrigoHironaka/LojaPadrao | 0 | 7041166 | <gh_stars>0
namespace LojaPadraoMYSQL.Formularios.Configuracoes.BackupRestore
{
partial class frmBackupRestore
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up a... |
src/Singl/Areas/Admin/Views/MetadataUI/Delete.cshtml | thild/singl | 0 | 7041167 | @model Singl.ViewModels.MetadataUIDeleteViewModel
@{
ViewBag.Title = "Excluir metadado";
Layout = "/Areas/Admin/Views/Shared/_Layout.cshtml";
}
<h2>Excluir metadado</h2>
<h4>Tem certeza que deseja excluir metadado "@Model.Property"?</h4>
<div>
<hr />
<dl class="dl-horizontal">
<dt>... |
Assets/SlowMine.cs | DanielJaska/JaskaDaniel_P01 | 0 | 7041168 | <reponame>DanielJaska/JaskaDaniel_P01<filename>Assets/SlowMine.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SlowMine : MonoBehaviour
{
[SerializeField] float speedModifier = .5f;
[SerializeField] GameObject visuals;
[SerializeField] ParticleSystem hitPart... |
Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/OSS/HdrHistogram/Persistence/HistogramLogExtensions.cs | criticalarc/azure-cosmos-dotnet-v3 | 1 | 7041169 | <reponame>criticalarc/azure-cosmos-dotnet-v3
// This file isn't generated, but this comment is necessary to exclude it from StyleCop analysis.
// <auto-generated/>
using System;
using System.IO;
using System.Linq;
using HdrHistogram.Utilities;
namespace HdrHistogram.UnitTests.Persistence
{
internal static class H... |
src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaUndoCodeAuditResponse.cs | vst-h/DotNetCore.SKIT.FlurlHttpClient.Wechat | 419 | 7041170 | <reponame>vst-h/DotNetCore.SKIT.FlurlHttpClient.Wechat<gh_stars>100-1000
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [GET] /wxa/undocodeaudit 接口的响应。</para>
/// </summary>
public class WxaUndoCodeAuditResponse : WechatApiResponse
{
}
}
|
Defs/Arshaw.FullCalendar/fullcalendar.cs | SharpKit/SharpKit-SDK | 12 | 7041171 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpKit.JavaScript;
using SharpKit.Html;
namespace SharpKit.Arshaw.FullCalendar
{
public class FullCalendar
{
public FullCalendar(jQuery.jQuery jQuery, FullCalendar options)
{
}
/// <su... |
SdvCode/SdvCode/ViewComponents/AllUsers/RecommendedUsersViewComponent.cs | biproberkay/SdvCodeWebsite | 37 | 7041172 | <reponame>biproberkay/SdvCodeWebsite
// Copyright (c) SDV Code Project. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace SdvCode.ViewComponents.AllUsers
{
using System.Collections.Generic;
using System.Threading.Tasks;
us... |
src/Parlot/Fluent/OneOf.ABT.cs | Sciumo/parlot | 196 | 7041173 | using Parlot.Compilation;
using System;
using System.Linq.Expressions;
namespace Parlot.Fluent
{
public sealed class OneOf<A, B, T> : Parser<T>, ICompilable
where A : T
where B : T
{
private readonly Parser<A> _parserA;
private readonly Parser<B> _parserB;
public OneOf... |
tests/Ardalis.Specification.IntegrationTests/SampleClient/Post.cs | efleming18/Specification | 0 | 7041174 | <reponame>efleming18/Specification
namespace Ardalis.Specification.IntegrationTests.SampleClient
{
public class Post : IEntity<int>
{
public int Id { get; set; }
public int BlogId { get; set; }
public int AuthorId { get; set; }
public string Content { get; set; }
public... |
src/NatCruise.Core/Data/Abstractions/DataserviceProviderBase.cs | FMSC-Measurements/NatCruise | 0 | 7041175 | using CruiseDAL;
using CruiseDAL.V3.Models;
using NatCruise.Core.Services;
using Prism.Ioc;
using System;
using System.IO;
using System.Linq;
namespace NatCruise.Data
{
public abstract class DataserviceProviderBase : IDataserviceProvider
{
private string _cruiseID;
private CruiseDatastore_V3 _... |
Sources/Assets/Plugin/2D/Scripts/UniBox2D_PlayerTileByTileMovement.cs | EPIKorial/UniBox2D | 0 | 7041176 | <filename>Sources/Assets/Plugin/2D/Scripts/UniBox2D_PlayerTileByTileMovement.cs
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class UniBox2D_PlayerTileByTileMovement : MonoBehaviour {
enum direction
{
R,
... |
Assets/KoboldKare/Scripts/Settings/VolumeSettingListener.cs | JonaMazu/KoboldKare | 0 | 7041177 | <reponame>JonaMazu/KoboldKare
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
namespace UnityScriptableSettings {
public class VolumeSettingListener : MonoBehaviour {
public UnityEngine.Rendering.Volume v;
... |
TestCreator/TestCreator.Data/Database/DbSeeder.cs | PDanowski/TestCreator_React | 0 | 7041178 | <reponame>PDanowski/TestCreator_React
using System;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore.ChangeTracking;
using TestCreator.Data.Consts;
using TestCreator.Data.Models.DAO;
namespace TestCreator.Data.Database
{
public static class ... |
NuKeeper.Inspection/NuGetApi/IApiPackageLookup.cs | cswendrowski/NuKeeper | 0 | 7041179 | using System.Threading.Tasks;
using NuGet.Packaging.Core;
using NuKeeper.Abstractions.Configuration;
using NuKeeper.Abstractions.NuGet;
namespace NuKeeper.Inspection.NuGetApi
{
public interface IApiPackageLookup
{
Task<PackageLookupResult> FindVersionUpdate(
PackageIdentity package,
... |
src/Datadog.Trace/Util/DomainMetadata.cs | alanwest/opentelemetry-dotnet-instrumentation | 0 | 7041180 | <filename>src/Datadog.Trace/Util/DomainMetadata.cs
using System;
using System.Diagnostics;
namespace Datadog.Trace.Util
{
/// <summary>
/// Dedicated helper class for consistently referencing Process and AppDomain information.
/// </summary>
internal static class DomainMetadata
{
private co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.