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 |
|---|---|---|---|---|
06. OOP Advanced - Jul2017/02. Generics - Exercise/06. Generic Count Method Double/StartUp.cs | IvelinMarinov/SoftUni | 3 | 7056701 | <filename>06. OOP Advanced - Jul2017/02. Generics - Exercise/06. Generic Count Method Double/StartUp.cs
using System;
namespace _06.Generic_Count_Method_Double
{
public class StartUp
{
public static void Main()
{
var n = int.Parse(Console.ReadLine());
double inputDouble... |
Assets/Scripts/Components/ChangeTurnView.cs | kolpet/Cardgame | 0 | 7056702 | using Assets.Scripts.Common;
using Assets.Scripts.Common.Animation;
using Assets.Scripts.Common.AspectContainer;
using Assets.Scripts.Common.Notifications;
using Assets.Scripts.Common.StateMachine;
using Assets.Scripts.Enums;
using Assets.Scripts.GameActions;
using Assets.Scripts.GameStates;
using Assets.Scripts.Model... |
Source/Ultraviolet/Shared/BoundingFrustum.cs | Spool5520/ultraviolet | 558 | 7056704 | using System;
using Newtonsoft.Json;
using Ultraviolet.Core;
namespace Ultraviolet
{
/// <summary>
/// Represents a frustum and provides methods for determining whether other bounding volumes intersect with it.
/// </summary>
[Serializable]
public partial class BoundingFrustum : IEquatable<Bou... |
src/NLog.StructuredLogging.Json.Tests/EndToEnd/ViaLayout/SimpleJsonInMessage.cs | NuKeeperBot/NLog.StructuredLogging.Json | 0 | 7056705 | using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
using NLog.Config;
using NLog.Layouts;
using NLog.Targets;
using NUnit.Framework;
namespace NLog.StructuredLogging.Json.Tests.EndToEnd.ViaLayout
{
public class SimpleJsonInMessage
{
private static readonly string _... |
opcplc/Namespaces.cs | daenetCorporation/iot-edge-opc-plc | 1 | 7056706 |
namespace OpcPlc
{
/// <summary>
/// Defines constants for namespaces used by the application.
/// </summary>
public static partial class Namespaces
{
/// <summary>
/// The namespace for the nodes provided by the plc server.
/// </summary>
public const string OpcPlcA... |
Achordeon.Shell.CmdLine/Program.cs | tiamatix/achordeon | 4 | 7056707 | <filename>Achordeon.Shell.CmdLine/Program.cs
/*! Achordeon - MIT License
Copyright (c) 2017 tiamatix / <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including withou... |
src/DtronixMessageQueue.Tests.Performance/Services/Server/ICalculatorService.cs | Dtronix/DtronixMessageQueue | 4 | 7056708 | <reponame>Dtronix/DtronixMessageQueue
using DtronixMessageQueue.Rpc;
namespace DtronixMessageQueue.Tests.Performance.Services.Server {
public interface ICalculatorService : IRemoteService <SimpleRpcSession, RpcConfig>{
int Add(int number_1, int number_2);
int Subtract(int number_1, int number_2);
int Multiply(... |
utility-scripts/Runtime/CytanbOption.cs | oocytanb/oO-vci-pack | 0 | 7056709 | // SPDX-License-Identifier: MIT
// Copyright (c) 2021 oO (https://github.com/oocytanb)
using System;
using System.Collections.Generic;
namespace cytanb
{
public struct OptionEnumerator<T>
: IEnumerator<T>, System.Collections.IEnumerator
{
private bool valueExists;
private T current;
... |
Compiler.Core/Diagnostics.cs | azoth-lang/azoth.tools.bootstrap | 0 | 7056710 | <gh_stars>0
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Azoth.Tools.Bootstrap.Framework;
namespace Azoth.Tools.Bootstrap.Compiler.Core
{
[DebuggerDisplay("Count = {items.Count}")]
[DebuggerTypePr... |
src/SuperGlue.EventStore/ProcessManagers/ProcessManagerEventMappingContext.cs | forki/SuperGlue | 0 | 7056711 | using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Threading.Tasks;
namespace SuperGlue.EventStore.ProcessManagers
{
public class ProcessManagerEventMappingContext<TState> where TState : IProcessManagerState
{
private readonly IDictionary<Type, Tuple<Func<objec... |
Assets/Scripts/LaundrySlot.cs | peabnuts123/grandmars-laundry | 0 | 7056712 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LaundrySlot : MonoBehaviour
{
public GameObject unoHighlight;
public bool isHighlighted
{
get
{
return this.animator.GetBool("isHighlighted");
}
set
{
... |
MCServerManager2/McMpGenObjects.cs | FallingAnvils/MCServerManager2 | 0 | 7056713 | <reponame>FallingAnvils/MCServerManager2
namespace MCServerManager2
{
public class ArgsObject
{
public string InstancesPath;
public string InstanceName;
public int RamMB;
public string JavaArgs;
public ServerType ServerType;
public InstallType InstallType;
... |
UnitTesting/Dinosaur.cs | bkeyes86/Lab06Zoo | 0 | 7056714 | namespace Lab06Zoo
{
public class Dinosaur : Animal
{
public bool Land => false;
public bool Teeth => true;
public override string TheEats()
{
return "I eat lot's of things ";
}
}
public class Carnivore : Dinosaur
{
public override str... |
src/Umbraco.Infrastructure/Migrations/Upgrade/V_9_0_0/AddPasswordConfigToMemberTable.cs | nul800sebastiaan/Umbraco-CMS | 3,375 | 7056716 | using System.Linq;
using Umbraco.Cms.Infrastructure.Persistence.Dtos;
namespace Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_9_0_0
{
public class AddPasswordConfigToMemberTable : MigrationBase
{
public AddPasswordConfigToMemberTable(IMigrationContext context)
: base(context)
{
... |
src/EFCore.Specification.Tests/TestModels/ComplexNavigationsModel/Level3.cs | h0wXD/EntityFrameworkCore | 1 | 7056717 | <reponame>h0wXD/EntityFrameworkCore
// 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.Collections.Generic;
// ReSharper disable NonReadonlyMemberInGetHashCode
namespace Microsoft.EntityFr... |
PixelBot.Orchestrator/Services/ActorSystemHealthCheck.cs | csharpfritz/Quiltoni.PixelBot | 20 | 7056718 | using System;
using System.Threading;
using System.Threading.Tasks;
using Akka.Actor;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Diagnostics.HealthChecks;
using Microsoft.Extensions.Hosting;
using PixelBot.Orchestrator.Actors;
using Quiltoni.PixelBot.Core.Domain;
namespace PixelBot.Orchestrator.Ser... |
ZEDCamera/Assets/ZED/Editor/Scripts/RenderingPipelineDefines.cs | Pandinosaurus/zed-unity | 0 | 7056719 | using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
using UnityEngine.Rendering;
[InitializeOnLoad]
public class RenderingPipelineDefines
{
enum PipelineType
{
Unsupported,
BuiltInPipeline,
UniversalPipeline,
HDPipeline
}
static Re... |
Assets/Scripts/Weapon/Weapon.cs | lfleite/duke-defenestrator | 0 | 7056720 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public abstract class Weapon : MonoBehaviour
{
[Header("General Parameters")]
public float m_CooldownTime;
public float m_AttackSpeed;
public float m_AttackDamage;
public abstract void Attack();
public bool IsRead... |
Nilgiri.Tests/Specs/Core/Asserters/BooleanAsserter.cs | brycekbargar/nilgri | 0 | 7056721 | <filename>Nilgiri.Tests/Specs/Core/Asserters/BooleanAsserter.cs
namespace Nilgiri.Specs.Core.Asserters
{
using Xunit;
using Nilgiri.Core;
using Nilgiri.Tests.Common;
using Subject = Nilgiri.Core.Asserters.BooleanAsserter;
public class BooleanAsserter
{
public class Normal
{
private Subject _s... |
MyBBS/BBS2018.Bussiness/ViewModel/OperateLog/BBSOperateLogVM.cs | shuaiagain/my-bbs | 0 | 7056722 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BBS2018.Bussiness.ViewModel
{
/// <summary>
/// 操作日志视图
/// </summary>
public class BBSOperateLogVM
{
public long? ID { get; set; }
/// <summary>
/// 操作人ID
/// </summary>... |
The Core/Sorting Outpost/121. Unique Digit Products/uniqueDigitProducts.cs | DKLynch/CodeSignalTasks | 0 | 7056724 | int uniqueDigitProducts(int[] a) {
List<int> products = new List<int>();
for(int i = 0; i < a.Length; i++){
var s = a[i].ToString().ToCharArray();
int product = 1;
foreach(char c in s){
product *= (int)Char.GetNumericValue(c);
}
products... |
src/ToDo.Host/Todos/InMemoryTodosRepository.cs | jcl86/to-do-app | 0 | 7056725 | namespace ToDo.Host;
public class InMemoryTodosRepository : ITodosRepository
{
private readonly List<Todo> todos;
public InMemoryTodosRepository()
{
this.todos = new List<Todo>();
}
public async Task<Todo> GetTodo(int todoId)
{
var result = todos.SingleOrDefault(x => x.Id == ... |
src/GitHub.InlineReviews/Commands/ToggleInlineCommentMarginCommand.cs | ctmeeks22/VisualStudio | 2 | 7056726 | <filename>src/GitHub.InlineReviews/Commands/ToggleInlineCommentMarginCommand.cs
using System;
using System.Threading.Tasks;
using System.ComponentModel.Composition;
using GitHub.Commands;
using GitHub.Services;
using GitHub.VisualStudio;
using GitHub.InlineReviews.Margins;
using GitHub.Services.Vssdk.Commands;
using M... |
Api/Service/System/EIP.System.Models/Dtos/Identity/SystemOrganizationOutput.cs | edwinhuish/eipcore2 | 25 | 7056727 | <reponame>edwinhuish/eipcore2
using EIP.Common.Core.Utils;
using EIP.Common.Entities.Dtos;
using EIP.System.Models.Entities;
using EIP.System.Models.Enums;
namespace EIP.System.Models.Dtos.Identity
{
public class SystemOrganizationOutput : SystemOrganization, IOutputDto
{
/// <summary>
/// 性质名... |
src/xunit.v3.runner.utility/Frameworks/IFrontController.cs | MichaelTrikergiotis/xun | 0 | 7056728 | <reponame>MichaelTrikergiotis/xun
using Xunit.v3;
namespace Xunit
{
/// <summary>
/// Represents a class which acts as a front controller for unit testing frameworks.
/// This allows runners to run tests from multiple unit testing frameworks (in particular,
/// hiding the differences between xUnit.net v1, v2, and ... |
DesignPatterns-StructuralPatterns/Composite/CompositeHomework/Program.cs | elipopovadev/High-Quality-Code- | 2 | 7056729 | using System;
namespace CompositeHomework
{
class Program
{
static void Main(string[] args)
{
Leaf kitchen = new Leaf("kitchenFirstFloor", 20);
Leaf diningRoom = new Leaf("Dining Room", 30);
Leaf bathroomFirstFloor = new Leaf("Bathroom", 5);
Comp... |
Runtime/Editor/Windows And Inspectors/NeutronProfilerEditor.cs | RuanCardoso/NeutronFramework | 3 | 7056730 | using NeutronNetwork.Constants;
using NeutronNetwork.Editor;
using NeutronNetwork.Helpers;
using NeutronNetwork.Internal.Components;
using UnityEditor;
using UnityEngine;
public class NeutronProfilerEditor : EditorWindow
{
private GUIStyle _textAreaStyle;
#region Client
private int _clientBytesOutgoingTCP... |
src/verman/main/Versioning/VersionManager.cs | vdimensions/mason | 1 | 7056731 | <reponame>vdimensions/mason<filename>src/verman/main/Versioning/VersionManager.cs<gh_stars>1-10
using System;
using System.IO;
using System.Text;
using Mason;
using Mason.Config;
namespace Mason.Versioning
{
public static class VersionManager
{
public static class Properties
{... |
BrickBreaker/Assets/Scripts/BrickScript.cs | Tianle97/UI-project2019 | 0 | 7056733 | <reponame>Tianle97/UI-project2019<filename>BrickBreaker/Assets/Scripts/BrickScript.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BrickScript : MonoBehaviour {
public int points;
public int hitsToBreak;
public void BreakBrick(){
hitsToBreak--;
... |
src/FluiTec.AppFx.Data.Dapper/Repositories/DapperWritableKeyTableDataRepository.cs | FluiTec/FluiTec.AppFx.Data | 0 | 7056734 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using FluiTec.AppFx.Data.Dapper.UnitsOfWork;
using FluiTec.AppFx.Data.Entities;
using FluiTec.AppFx.Data.Repositories;
using FluiTec.AppFx.Data.Sql;
using Microsoft.Extensions.Logging;
namespace FluiTec.AppFx.Data.Dapper.... |
sources/ReleaseServer/ReleaseServer.WebApi/Models/Common/Package.cs | Traeger-GmbH/release-server | 1 | 7056735 | <gh_stars>1-10
//--------------------------------------------------------------------------------------------------
// <copyright file="Package.cs" company="Traeger Industry Components GmbH">
// This file is protected by Traeger Industry Components GmbH Copyright © 2019-2021.
// </copyright>
// <author><NAME></auth... |
ARPG/Entities/Sprites/Kinematic/Player/States/PlayerRunningState.cs | KPrzeczek/Action-RPG | 0 | 7056736 | <reponame>KPrzeczek/Action-RPG<gh_stars>0
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ARPG.Entities.Sprites.Kinematic.Player.States
{
public class PlayerRunni... |
CheckersManager/ManagerAppConfig.cs | Joppe-A/rce-checkers2 | 0 | 7056737 | // Copyright 2013 Cultural Heritage Agency of the Netherlands, Dutch National Military Museum and Trezorix bv
//
// 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... |
src/DotnetSpider.Downloader.Test/DownloadHanlderTest.cs | jeffrey987/DotnetSpider | 1 | 7056738 | //using DotnetSpider.Core.Downloader;
//using Xunit;
//namespace DotnetSpider.Core.Test.Downloader
//{
// public class DownloadHanlderTest
// {
// [Fact(DisplayName = "RetryWhenContainsIllegalStringHandler")]
// public void RetryWhenContainsIllegalStringHandler()
// {
// var spider = new DefaultSpider("test", n... |
BookingSystem.WebUI/Views/Room/_RoomTypeAddEdit.cshtml | Gestotudor/Mvc_Hotel_Booking | 0 | 7056739 | <gh_stars>0
@model BookingSystem.Domain.WebUI.Room.RoomTypeVM
@Html.BHiddenFor(p => p.Id)
<div class="row">
<div class="form-group">
<div class="col-md-12">
@Html.LabelFor(model => model.Title, new { @class = "control-label" })
<div class="form-group">
@Html.BTextBo... |
projects/EventSourceSample/source/EventSourceSample.Core/IFactory.cs | brian-dot-net/writeasync | 7 | 7056740 | //-----------------------------------------------------------------------
// <copyright file="IFactory.cs" company="<NAME>">
// Copyright (c) <NAME>. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace EventSourceSample
{
public interfac... |
Tests/Break.Net.UnitTests/TypeComparerTestsBase.cs | JBildstein/Break.Net | 0 | 7056741 | namespace BreakDotNet.UnitTests
{
public abstract class TypeComparerTestsBase
{
protected TypeComparer CreateComparer()
{
var settings = new TypeComparerSettings() { IgnoreCase = false };
return new TypeComparer(settings);
}
}
}
|
Programming Fundamentals with C#/09. Regular Expressions/SoftUniBarIncome/Program.cs | Karnalow/SoftUni | 0 | 7056742 | using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace SoftUniBarIncome
{
internal class Program
{
static void Main(string[] args)
{
Dictionary<string, Dictionary<string, decimal>> names =
new Dictionary<string, Dictionary<st... |
Force.Common/Redis/RedisHelper.cs | curiousPeng/ForceFramework_MVC | 5 | 7056743 | using FastMember;
using RedisTools.Serialization;
using StackExchange.Redis;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Force.Common.RedisTools
{
public class RedisHelper : IRedisHelper
{
private IDatabase _db;
... |
PrizmDocServerSDK.Tests/Conversion/KnownServerErrors/RasterizingCadWithoutMaxWidthOrHeight_Tests.cs | Accusoft/PrizmDocServerSdkDotNet | 0 | 7056744 | using System.Threading.Tasks;
using Accusoft.PrizmDocServer.Exceptions;
using Accusoft.PrizmDocServer.Tests;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Accusoft.PrizmDocServer.Conversion.KnownServerErrors.Tests
{
[TestClass]
public class RasterizingCadWithoutMaxWidthOrHeight_Tests
{
... |
Notan/World.cs | Bxil/notan | 5 | 7056745 | <filename>Notan/World.cs
using Notan.Reflection;
using Notan.Serialization;
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
namespace Notan
{
public abstract class World
{
... |
RizehServer/Sites.cs | doctorcode-org/rizeh | 0 | 7056746 | <filename>RizehServer/Sites.cs
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten... |
Runtime/Object/ObjectDriver.cs | PxGame/XMLib.Core | 5 | 7056747 | <gh_stars>1-10
/*
* 作者:<NAME>
* 联系方式:<EMAIL>
* 文档: https://github.com/PxGame
* 创建时间: 2019/9/14 0:25:48
*/
using System.Collections.Generic;
namespace XMLib
{
/// <summary>
/// ObjectDriver
/// </summary>
public class ObjectDriver
{
private readonly List<IMonoFixedUpdate> onFixedUpdate... |
DracoonSdk/SdkPublic/Model/Abstract/SimpleListBase.cs | DAVISOL-GmbH/dracoon-csharp-sdk | 0 | 7056748 | using System.Collections.Generic;
namespace Dracoon.Sdk.Model {
public abstract class SimpleListBase<T> {
public IEnumerable<T> Items {
get; internal set;
}
}
}
|
Arma3Event/Views/AdminMatchs/Details.cshtml | jetelain/Arma3Event | 0 | 7056749 | @model Arma3Event.Entities.Match
@{
ViewData["Title"] = Model.Name;
}
@section NavBar {
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a asp-action="Index">Administration</a></li>
<li class="breadcrumb-item active" aria-current="page">@View... |
Source/Deployer.UI/Properties/Resources.Designer.cs | WoA-project/WoA-Deployer | 102 | 7056750 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... |
pvblocks-api/pvblocks-api/Model/Site.cs | rerasolutions/pvblocks | 0 | 7056751 | <reponame>rerasolutions/pvblocks
namespace pvblocks_api.Model
{
public class Site
{
public int ID { get; set; }
public string Name { get; set; } = "New Site";
public string TimeZone { get; set; } = "Europe/Berlin";
public string Description { get; set; }
public double La... |
api/trunk/CACI.Tests/Web/Controllers/CasesControllerTest.cs | DPD-30/devStack | 0 | 7056752 | <reponame>DPD-30/devStack
using CACI.BAL.Cases;
using CACI.ViewModels;
using CACI.Web.Controllers;
using Microsoft.Extensions.Logging;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using System;
namespace CACI.Tests.Web.Controllers
{
[TestClass]
public class CasesControllerTest
... |
03C#SDA/05-WorkShop01/03JediMeditate/StartUp.cs | dobri19/TelerikHomeWork | 0 | 7056753 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace JediMeditate
{
public class StartUp
{
public static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
string[] jedi = Console.ReadLine().Split(new char[] { ' ... |
Lumi.CommandLine/AliasAttribute.cs | SirTony/Lumi | 4 | 7056754 | <reponame>SirTony/Lumi
using System;
using EnsureThat;
namespace Lumi.CommandLine
{
[AttributeUsage( AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = true )]
public sealed class AliasAttribute : Attribute
{
public string Name { get; }
public AliasAttribute( string name )
... |
AlipaySDKNet/Domain/InvoiceRegisterCreateDTO.cs | alipay/alipay-sdk-net | 117 | 7056755 | <filename>AlipaySDKNet/Domain/InvoiceRegisterCreateDTO.cs
using System;
using System.Xml.Serialization;
using System.Collections.Generic;
namespace Aop.Api.Domain
{
/// <summary>
/// InvoiceRegisterCreateDTO Data Structure.
/// </summary>
[Serializable]
public class InvoiceRegisterCreateD... |
Source/Core/Kernel/NWheels.Kernel.UnitTests/Api/Primitives/RevertableSequenceTests.cs | geffzhang/NWheels | 18 | 7056756 | using NWheels.Kernel.Api.Primitives;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using Xunit;
using NWheels.Testability;
namespace NWheels.Kernel.UnitTests.Api.Primitives
{
public class RevertableSequenceTests : TestBase.UnitTest
{
[Fact]
... |
TechModule/Programming Fundamentals/06.DictionariesLambdaLINQ - Lab/05.ShortWordsSorted/ShortWordsSorted.cs | yangra/SoftUni | 0 | 7056758 | <filename>TechModule/Programming Fundamentals/06.DictionariesLambdaLINQ - Lab/05.ShortWordsSorted/ShortWordsSorted.cs
using System;
using System.Linq;
namespace _05.ShortWordsSorted
{
class ShortWordsSorted
{
static void Main(string[] args)
{
char[] separators = new char[] { '.', '... |
Celeste.Mod.mm/Patches/MiniTextbox.cs | Viv-0/Everest | 200 | 7056759 | <gh_stars>100-1000
using System.Collections;
using MonoMod;
namespace Celeste {
class patch_MiniTextbox : MiniTextbox {
public patch_MiniTextbox(string dialogId)
: base(dialogId) {
// no-op. MonoMod ignores this - we only need this to make the compiler shut up.
}
[... |
RequestRateLimiter.Core/Configuration/LimitRule.cs | TeleSoftas/request-rate-limiter | 0 | 7056760 | using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
namespace RequestRateLimiter.Core.Configuration
{
public class LimitRule
{
/// <value>
/// Represents a request count limit.
/// </value>
public int RequestLimit { get; set; }
/// <value>
... |
src/scrubfu/Constants.cs | fossabot/scrubfu | 0 | 7056761 | <reponame>fossabot/scrubfu
/**
* *************************************************
* Copyright (c) 2019, Grindrod Bank Limited
* License MIT: https://opensource.org/licenses/MIT
* **************************************************
*/
using System.Collections.Generic;
using System.Linq;
using Scrubfu.Models;
name... |
source/CadeMeuMouse/GUI/FrmEntryPoint.cs | Gustavo-Kuze/CadeMeuMouse | 0 | 7056762 | <filename>source/CadeMeuMouse/GUI/FrmEntryPoint.cs
using System;
using System.Drawing;
using System.Windows.Forms;
namespace CadeMeuMouse.GUI
{
public partial class FrmWelcome : Form
{
NotifyIcon nIcon;
public FrmWelcome()
{
InitializeComponent();
Opacity = 0;
... |
Server/BaseVendor.cs | greeduomacro/vivre-uo | 0 | 7056763 | <filename>Server/BaseVendor.cs<gh_stars>0
/***************************************************************************
* BaseVendor.cs
* -------------------
* begin : May 1, 2002
* copyright : (C) The RunUO Software Team
* ema... |
Iyzipay/BaseRequestV2.cs | m-azyoksul/iyzipay-dotnet | 121 | 7056764 | <gh_stars>100-1000
using System;
namespace Iyzipay
{
public class BaseRequestV2
{
public String Locale { get; set; }
public String ConversationId { get; set; }
}
}
|
src/Program.cs | ragnarstolsmark/Rstolsmark.EncryptionTool | 0 | 7056765 | <filename>src/Program.cs
using System;
using Rstolsmark.EncryptionLib;
using static Rstolsmark.EncryptionLib.StringEncryptor;
using XKCDPasswordGen;
namespace Rstolsmark.EncryptionTool
{
public class Program
{
static void Main(string[] args)
{
if (args.Length == 0)
... |
UnitTests/SemanticVersionTests.cs | NETMF/CMSIS.Pack | 11 | 7056766 | <filename>UnitTests/SemanticVersionTests.cs<gh_stars>10-100
using System;
using System.Numerics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SemVer.NET;
namespace UnitTests
{
[TestClass]
public class SemanticVersionTests
{
[TestMethod]
public void DefaultConstructo... |
CSVTool/CSVTool/Form1.Designer.cs | KjellDeBacker/CSV-Tool | 0 | 7056768 | <reponame>KjellDeBacker/CSV-Tool<gh_stars>0
namespace CSVTool
{
partial class CSVTool
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
... |
Converters/DateParseConverter.cs | hal-wang/HTools.CSharp | 1 | 7056770 | <reponame>hal-wang/HTools.CSharp
using System;
#if NET462
using System.Windows.Data;
using System.Globalization;
#endif
#if UAP10_0_18362
using Windows.UI.Xaml.Data;
#endif
namespace HTools.Converters
{
internal class DateParseConverter : IValueConverter
{
public object Convert(object value, Type ta... |
LineSprinklers/Framework/LineSprinklersApi.cs | ChroniclerCherry/StardewMods | 1 | 7056771 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
namespace LineSprinklers.Framework
{
/// <summary>The API which provides access to Line Sprinklers for other mods.</summary>
public class LineSprinklersApi : ILineSprinklersApi
{
/*********
** Fie... |
NET.Tools.Engines.Graphics3D.Direct3D9/Implementors/Direct3D9MaterialImplementor.cs | CHiiLD/net-toolkit | 1 | 7056772 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DXMaterial = SlimDX.Direct3D9.Material;
namespace NET.Tools.Engines.Graphics3D.Direct3D9
{
internal sealed class Direct3D9MaterialImplementor : IMaterialImplementor
{
private static Direct3D9MaterialI... |
src/Exceptionless.Core/Repositories/Queries/EventStackFilterQuery.cs | dotnetkits/Exceptionless | 0 | 7056773 | <filename>src/Exceptionless.Core/Repositories/Queries/EventStackFilterQuery.cs
using System;
using System.Linq;
using System.Threading.Tasks;
using Exceptionless.Core.Extensions;
using Exceptionless.Core.Models;
using Exceptionless.Core.Repositories.Base;
using Exceptionless.Core.Repositories.Options;
using Foundatio.P... |
src/Stormpath.SDK.Core/Sync/SyncAccountResultExtensions.cs | stormpath/stormpath-sdk-dotnet | 54 | 7056774 | <gh_stars>10-100
// <copyright file="SyncAccountResultExtensions.cs" company="Stormpath, Inc.">
// Copyright (c) 2016 Stormpath, Inc.
//
// 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
//
/... |
NewLife.Ftp/FtpWebResponseException.cs | NewLifeX/NewLife.Ftp | 17 | 7056775 | using System.Net;
namespace NewLife.Ftp
{
/// <summary>
/// Ftp响应异常
/// </summary>
public class FtpWebResponseException : WebException
{
/// <summary>响应</summary>
public new FtpWebResponse Response { get; set; }
/// <summary>
///
/// </summary>
///... |
save-points/06-add-authentication/BlazingPizza.Client/Program.cs | 274188A/blazor-workshop | 0 | 7056776 | using System.Threading.Tasks;
using Microsoft.AspNetCore.Blazor.Hosting;
using Microsoft.AspNetCore.Components.Authorization;
using Microsoft.Extensions.DependencyInjection;
namespace BlazingPizza.Client
{
public class Program
{
public static async Task Main(string[] args)
{
var bu... |
src/GCore.WinForms/Controls/RuntimeProperty/Utils/AbstractPropertyDescriptor.cs | KevinGliewe/GCore | 2 | 7056777 | /* ****************************************************************************
* RuntimeObjectEditor
*
* Copyright (c) 2005 <NAME>
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the author be held liable for any damages arising from
* the use of this softw... |
CoreConstructs/FunWithStructures.cs | luigiberrettini/c-sharp-basics | 1 | 7056779 | <filename>CoreConstructs/FunWithStructures.cs
using System;
namespace Examples.CoreConstructs
{
public static class FunWithStructures
{
public static void Go()
{
Console.WriteLine("***** A First Look at Structures *****\n");
// Create an initial SimplePoint
... |
src/Dotnet9.Web/Repository/RepositorySetup.cs | dotnet9/Dotnet9 | 14 | 7056780 | <filename>src/Dotnet9.Web/Repository/RepositorySetup.cs
using Dotnet9.Application.Abouts;
using Dotnet9.Application.Albums;
using Dotnet9.Application.Blogs;
using Dotnet9.Application.Categories;
using Dotnet9.Application.Contracts.Abouts;
using Dotnet9.Application.Contracts.Albums;
using Dotnet9.Application.Contracts.... |
src/WebServices/Business/WWW/Views/Shared/Components/NavbarControl/NavbarControl.cs | gaufung/Infrastructures | 18 | 7056781 | <gh_stars>10-100
using Aiursoft.WWW.Models;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
namespace Aiursoft.WWW.Views.Shared.Components.NavbarControl
{
public class NavbarControl : ViewComponent
{
public IViewComponentResult Invoke(List<Navbar> configuration)
{
... |
Warehouse/MainWindow.xaml.cs | jpdias/EnterpriseDistributedApplication | 1 | 7056783 | <reponame>jpdias/EnterpriseDistributedApplication<gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net;
using System.Runtime.Serialization.Json;
using System.Text;
... |
fxpa/fxpa/Chart/CustomObjects/FibonacciRetracementObject.cs | harryho/fx-trading-platform-prototype | 0 | 7056784 | <filename>fxpa/fxpa/Chart/CustomObjects/FibonacciRetracementObject.cs
// -----
// GNU General Public License
// The Forex Professional Analyzer is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version... |
SAToolsHub/Forms/editProj.cs | sonicretro/sa_tools | 53 | 7056785 | using System;
using System.IO;
using System.Windows.Forms;
using SAModel.SAEditorCommon.ModManagement;
namespace SAToolsHub
{
public partial class editProj : Form
{
string projDir;
string projModFile;
string[] GBItems = new string[]
{
"Map",
"Skin",
"Sound",
"GUI",
"Gamefile",
"Effect",
... |
BarManagerApplication.Backend/src/BackendGestionaleBar.BusinessLayer/MapperProfile/UserMapperProfile.cs | N1K0232/BarManagerApplication | 1 | 7056786 | using AutoMapper;
using BackendGestionaleBar.Authentication.Entities;
using BackendGestionaleBar.Shared.Models;
namespace BackendGestionaleBar.BusinessLayer.MapperProfile
{
public class UserMapperProfile : Profile
{
public UserMapperProfile()
{
CreateMap<ApplicationUser, User>();
... |
src/Publisher/MessagePublisher.cs | EnterpriseProductsLP/RabbitStressTest | 0 | 7056787 | using System;
using Autofac;
using Common;
using MassTransit;
namespace Publisher
{
public class MessagePublisher : Worker
{
private readonly IBusControl _busControl;
private readonly int _messageSize;
private readonly ConnectHandle _publicationObserverHandle;
public Mess... |
Assets/Scripts/RaiseEventReceiver.cs | shiena/PhotonRaiseEvent | 0 | 7056788 | <filename>Assets/Scripts/RaiseEventReceiver.cs
// Copyright 2020 <NAME>. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
using System;
using ExitGames.Client.Photon;
using Photon.Pun;
using UniRx;
namespace PhotonRaiseEvent
{
public inte... |
Symbioz.Protocol/Messages/Messages/game/chat/ChatClientMultiMessage.cs | CarlCochet/Symbioz | 2 | 7056789 | <filename>Symbioz.Protocol/Messages/Messages/game/chat/ChatClientMultiMessage.cs<gh_stars>1-10
// Generated on 06/04/2015 18:44:16
using System;
using System.Collections.Generic;
using System.Linq;
using Symbioz.DofusProtocol.Types;
using Symbioz.Utils;
namespace Symbioz.DofusProtocol.Messages
{
pu... |
ZenGlue/VOB.cs | kejran/zen4unity | 0 | 7056790 | using System;
using System.Runtime.InteropServices;
using UnityEngine;
namespace ZenGlue
{
public class ZVOB {
[DllImport("zenglue", CallingConvention = CallingConvention.Cdecl)]
private static extern uint zg_vobs_count(IntPtr vobarray);
[DllImport("zenglue", CallingConvention = CallingCon... |
src/SUT/FormMain.cs | albertmorvay/SUT | 1 | 7056791 | using LiteDB;
using Microsoft.Win32;
using Serilog;
using System;
using System.Timers;
using System.Windows.Forms;
namespace SUT
{
public partial class FormMain : Form
{
private String stringApplicationName = "SUTServiceUnitTracker";
private System.Timers.Timer timer;
private WorkingD... |
Ccr.Core/Core/TypeSystemInfo/IntegralTypes/IntegralTypeSizeInfo.cs | vreniose95/Ccr | 10 | 7056792 | using System.Diagnostics;
using Ccr.Core.TypeSystemInfo.ReferenceTypes;
namespace Ccr.Core.TypeSystemInfo.IntegralTypes
{
[DebuggerDisplay("ToString")]
public class IntegralTypeSizeInfo
: ReferenceTypeSize
{
public IntegralTypeSizeInfo(
Signedness signedness,
int bits) : base(
signedness,
... |
Parsers/SimpleItemProtoParser.cs | rotators/FOCommon | 3 | 7056793 | <filename>Parsers/SimpleItemProtoParser.cs
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using FOCommon.Items;
namespace FOCommon.Parsers
{
public class SimpleItemProtoParser
{
private string ItemObjectName;
private string FieldName;
private strin... |
_onHold/Template_withNet/ReactWithNet/Controllers/HomeController.cs | knoepdan/TemplReact | 0 | 7056794 | <gh_stars>0
using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Hosting;
using ReactWithNet.Models;
using Microsoft.AspNetCore.Mvc.Tag... |
ShadowMiner/Assets/script/SMNetworkClient/Formatter.cs | cedricfarinazzo/ACCEr-project | 0 | 7056795 | <gh_stars>0
using System.IO;
using System.Text;
using Newtonsoft.Json;
//using Newtonsoft.Json;
namespace SMNetwork
{
internal static class Formatter
{
public static byte[] ToByteArray<T>(T elm)
{
if (elm == null)
{
return null;
}
... |
VikingQuestVR_Start/Assets/Scripts/LookAtTarget.cs | duliodenis/unity_vr_roadshow | 1 | 7056796 | //This script is used to make UI elements face the player's camera
using UnityEngine;
public class LookAtTarget : MonoBehaviour
{
Transform target; //The camera's transform
void Start()
{
//Set the Main Camera as the target
target = Camera.main.transform;
}
//Update after all other update... |
Renderers/Html/HtmlRenderException.cs | haileys/BBsharp | 1 | 7056797 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace bbsharp.Renderers.Html
{
class HtmlRenderException : Exception
{
public HtmlRenderException(string Message)
: base(Message)
{ }
}
}
|
samples/NaverLoginWeb/Controllers/HomeController.cs | powerumc/Powerumc.AspNetCore.Authentication.Naver | 4 | 7056798 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.CodeAnalysis.Operations;
using NaverLo... |
Utils/Scripts/Common/ObservableData/ObservableData.cs | StarKRE/Orego | 1 | 7056799 | namespace OregoFramework.Util
{
public class ObservableData<T>
{
public delegate void ValueChangedHandler(object sender, ObservableData<T> self, T value);
public event ValueChangedHandler OnChangedEvent;
private T value;
public ObservableData()
{
}
pub... |
src/Piffnium.Web/Domain/Entities/Session.cs | k-maru/Piffnium | 0 | 7056800 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Piffnium.Web.Domain.Entities
{
public class Session
{
public long SessionId { get; set; }
public long ProjectId { get; set; }
public DateTime StartedAt { get; set; ... |
src/Data/Masa.Utils.Data.Elasticsearch/Options/ConnectionSettingsOptions.cs | masastack/MASA.Utils | 33 | 7056801 | // Copyright (c) MASA Stack All rights reserved.
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.
namespace Masa.Utils.Data.Elasticsearch.Options;
public class ConnectionSettingsOptions
{
internal IConnection? Connection { get; set; }
internal ConnectionSettings... |
uprove_json/VerifierAuthenticationCredentials/VerifierMembers.cs | fablei/uprove_json | 0 | 7056802 | <gh_stars>0
using System.Collections.Generic;
namespace uprove_json.VerifierAuthenticationCredentials
{
/// <summary>
/// represents a memberlist from the verifier and is used for the setmembership proof and
/// intrepreted by the prover
/// </summary>
public class VerifierMembers
{
pu... |
PackageManagerAPI/PackageManagerAPI/Services/ITokenService.cs | FKMLJF/be_package_manager | 0 | 7056803 | <reponame>FKMLJF/be_package_manager
using PackageManagerAPI.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace PackageManagerAPI.Services
{
public interface ITokenService
{
string BuildToken(string key, string issuer, User user);
... |
sourceFirstIdea/CoordReal.cs | Team-on/LD42 | 1 | 7056804 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ld42 {
class CoordReal {
private double y;
private double x;
public double X { get => x; set { SizeChanged?.Invoke(value - x, 0); x = value; } }
public double Y { get => y; set { Siz... |
Sample/Sample.TestFramework/TestDisposable.cs | svetlimladenov/MassTransitDemos | 0 | 7056805 | using System;
namespace Sample.TestFramework
{
public partial class TestOutputLogger
{
public class TestDisposable : IDisposable
{
public static readonly TestDisposable Instance = new TestDisposable();
public void Dispose()
{
// intentionall... |
CodeJem2020Qualify/Q3/ParentingPartnering.cs | Bar-Amsalem/GoogleCodeJem2020 | 1 | 7056806 | using System;
using System.Linq;
namespace CondeJem2020Qualify.Q3
{
public class ParentingPartnering
{
private readonly IInputProvider inputProvider;
public ParentingPartnering(IInputProvider inputProvider)
{
this.inputProvider = inputProvider;
}
public v... |
src/sdk/OntaviSDK/FieldType.cs | Ontavi/Ontavi | 0 | 7056807 | // <copyright file="FieldType.cs" company="Ontavi LLC">
// Copyright (c) Ontavi LLC. All Rights Reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
// </copyright>
namespace OntaviSDK
{
/// <summary>
/// Describes the type of data that a field ... |
KeepFitStore/KeepFitStore.Domain/Review.cs | SonicTheCat/KeepFitStore | 1 | 7056808 | namespace KeepFitStore.Domain
{
using System;
using KeepFitStore.Domain.Products;
public class Review
{
public Review()
{
this.PublishedOn = DateTime.UtcNow;
}
public int Id { get; set; }
public string Title { get; set; }
public stri... |
VSphere/Application/FolderApplication.cs | caioaugusto1/VCenterVMWare | 0 | 7056810 | <reponame>caioaugusto1/VCenterVMWare
using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using VSphere.Application.Interface;
using VSphere.Models.ViewModels.Folder;
using VSphere.Services.Inteface;
namespace VSphere.Application
{
public class FolderA... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.