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 |
|---|---|---|---|---|
src/Projac.Tests/Testing/ProjectionScenarioTests.cs | yreynhout/Projac | 67 | 7042346 | <reponame>yreynhout/Projac<gh_stars>10-100
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using NUnit.Framework;
using Projac.Testing;
namespace Projac.Tests.Testing
{
namespace ProjectionScenarioTests
{
[TestFixture]
pu... |
ecard/server/src/modules/common/Clear.CommonContext/Domain/DataItemAggregate/DataItemTransformInterceptor.cs | ShiningRush/HomeWorkForMyLittlePrincess | 0 | 7042347 | using Abp.Dependency;
using Abp.Domain.Repositories;
using Abp.Domain.Uow;
using Abp.Extensions;
using Castle.Core.Logging;
using Castle.DynamicProxy;
using PlatformService.BridgeComponent.CustomException;
using PlatformService.BridgeComponent.Extensions;
using PlatformService.BridgeComponent.Service.Data;
using Syste... |
ToolkitForms/Localization/Localization.cs | Abin-Liu/ToolkitForms | 0 | 7042348 | using System;
using System.Collections.Generic;
namespace ToolkitForms
{
/// <summary>
/// 本地化字符串类
/// </summary>
static partial class Localization
{
/// <summary>
/// 根据操作系统语种获取字符串的本地化值
/// </summary>
/// <param name="key">字符串</param>
/// <returns>获取成功返回本地化字符串,否则返回原字符串</returns>
public static string... |
src/Runtime/Factors/Unary.cs | ScriptBox99/dotnet-infer | 0 | 7042349 | <reponame>ScriptBox99/dotnet-infer
// 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 Microsoft.ML.Probabilistic.Distributions;
using Microsoft.ML.Probabilistic.... |
ChordCadenza/Forms/HowTo/frmHowToPlayMelody.Designer.cs | derrickgm/chordcadenza | 8 | 7042350 | <filename>ChordCadenza/Forms/HowTo/frmHowToPlayMelody.Designer.cs<gh_stars>1-10
namespace MPlay.Forms.HowTo {
partial class frmHowToPlayMelody {
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up... |
Library/PackageCache/com.unity.entities@0.1.0-preview/Unity.Entities.Tests/TypeManagerTests.cs | k77torpedo/ForgeECS | 3 | 7042351 | using System;
using NUnit.Framework;
using Unity.Collections.LowLevel.Unsafe;
using Unity.Entities;
using Unity.Entities.Tests;
#pragma warning disable 649
[assembly: RegisterGenericComponentType(typeof(TypeManagerTests.GenericComponent<int>))]
[assembly: RegisterGenericComponentType(typeof(TypeManagerTests.GenericCom... |
src/StatsdClient/RandomGenerator.cs | abdullin/telegraf-client | 1 | 7042352 | using System;
using System.Threading;
namespace Telegraf {
public delegate bool SamplerFunc(int sampleRate);
public class SamplerDefault {
static long _counter;
public static bool ShouldSend(int rate) {
if (rate == 1) {
return true;
}
return (Environment.TickCount ^ Interlocked.In... |
src/Diva.Editor.Model/Diva.Editor.Model.MessageStack.cs | mdk/diva | 2 | 7042353 | <reponame>mdk/diva
////////////////////////////////////////////////////////////////////////////////
// //
// MIT X11 license, Copyright (c) 2005-2006 by: //
// ... |
src/OnlineShop.Web/Areas/Admin/Controllers/ColorController.cs | mohammadfazeli/OnlineShop | 0 | 7042354 | using AspNetCore.Unobtrusive.Ajax;
using AutoMapper;
using DNTBreadCrumb.Core;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using NToastNotify;
using OnlineShop.Areas.Admin;
using OnlineShop.Common.Enums;
using OnlineShop.Entities.Entities.Area.Base;
using OnlineShop.Services.Contracts.Are... |
src/Ariadna.WPF/Behaviors/InputBindingsBehavior.cs | egorozh/Ariadna | 1 | 7042355 | using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Windows;
using System.Windows.Input;
using Microsoft.Xaml.Behaviors;
namespace Ariadna
{
internal class InputBindingsBehavior : Behavior<Window>
{
public static readonly DependencyProperty KeyBindingsProperty = De... |
src/Nest/Indices/Monitoring/IndicesStats/ShardStatsStore.cs | iSatishYadav/elasticsearch-net | 0 | 7042356 | <reponame>iSatishYadav/elasticsearch-net<filename>src/Nest/Indices/Monitoring/IndicesStats/ShardStatsStore.cs
using Newtonsoft.Json;
namespace Nest
{
[JsonObject]
public class ShardStatsStore
{
[JsonProperty("size_in_bytes")]
public long SizeInBytes { get; internal set; }
}
}
|
src/PdfToSvg/Parsing/Lexeme.cs | dmester/pdftosvg.net | 3 | 7042357 | // Copyright (c) PdfToSvg.NET contributors.
// https://github.com/dmester/pdftosvg.net
// Licensed under the MIT License.
using PdfToSvg.DocumentModel;
using System;
using System.Globalization;
namespace PdfToSvg.Parsing
{
internal struct Lexeme : IEquatable<Lexeme>
{
private long position;
... |
Assets/Scripts/Item/CoinItem.cs | Ai00000/EasyGame2DNew | 0 | 7042358 | using System;
using FastyTools.EventCenter;
using UnityEngine;
namespace Item
{
/// <summary>
/// 金币道具(现在以牌子代替)
/// </summary>
public class CoinItem : MonoBehaviour
{
public int points = 5;
public bool first;
private void OnTriggerEnter2D(Collider2D other)
{
... |
mcs/errors/cs0156.cs | lefb766/mono | 469 | 7042359 | <filename>mcs/errors/cs0156.cs
// CS0156: A throw statement with no arguments is not allowed outside of a catch clause
// Line: 12
using System;
class Foo
{
static void Main ()
{
try {
Console.WriteLine ("Test CS0156");
throw;
}
catch {
}
}
}
|
Src/Couchbase/Utils/ExceptionUtil.cs | SchoolMasterNL/couchbase-net-client | 0 | 7042360 | <filename>Src/Couchbase/Utils/ExceptionUtil.cs
using System;
using System.Net;
namespace Couchbase.Utils
{
public static class ExceptionUtil
{
public static string ServiceNotSupportedMsg =
"A request has been made for a service that is not configured or supported by the cluster. " +
... |
CrossChainProxy_Contract/Proxy.cs | neo-ngd/n3-asset | 1 | 7042361 | using System;
using System.ComponentModel;
using System.Numerics;
using Neo;
using Neo.SmartContract;
using Neo.SmartContract.Framework;
using Neo.SmartContract.Framework.Native;
using Neo.SmartContract.Framework.Services;
namespace CrossChainProxy_Contract
{
[ContractPermission("*")]
public class Proxy : Smar... |
Gandalan.IDAS.WebApi.Client/BusinessRoutinen/ResetCacheVariantenListenWebRoutinen.cs | Saibamen/idas-client-libs | 3 | 7042362 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Gandalan.IDAS.Client.Contracts.Contracts;
using Gandalan.IDAS.WebApi.Client.Settings;
using Gandalan.IDAS.WebApi.DTO.DTOs.Reports;
namespace Gandalan.IDAS.WebApi.Client.BusinessRoutinen
{
publ... |
src/Tools/HotReload/AspNetCore/Configuration/DotvvmServiceCollectionExtensions.cs | cafstep/dotvvm | 0 | 7042363 | <reponame>cafstep/dotvvm<filename>src/Tools/HotReload/AspNetCore/Configuration/DotvvmServiceCollectionExtensions.cs
using DotVVM.HotReload;
using DotVVM.Framework.Hosting;
using DotVVM.Framework.ResourceManagement;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using Sy... |
chapters/08-fractals/C8Example8.cs | Srynetix/godot-nature-of-code | 19 | 7042365 | using Godot;
namespace Examples
{
namespace Chapter8
{
public class C8Example8 : Node2D, IExample
{
public string GetSummary()
{
return "Example 8.8:\nStochastic tree";
}
public override void _Draw()
{
... |
src/SFA.DAS.RoatpGateway.Domain/GetSubcontractorDeclarationContractFileClarificationRequest.cs | uk-gov-mirror/SkillsFundingAgency.das-roatp-gateway | 0 | 7042366 | using System;
namespace SFA.DAS.RoatpGateway.Domain
{
public class GetSubcontractorDeclarationContractFileClarificationRequest
{
public Guid ApplicationId { get; }
public string FileName { get; }
public GetSubcontractorDeclarationContractFileClarificationRequest(Guid applicationId, str... |
DataStructuresLib/DataStructuresLib/Collections/Lists/ItemAsReadOnlyList.cs | ga-explorer/NumericalGeometryLib | 6 | 7042367 | using System;
using System.Collections;
using System.Collections.Generic;
namespace DataStructuresLib.Collections.Lists
{
public readonly struct ItemAsReadOnlyList<T> :
IReadOnlyList<T>
{
public T Value { get; }
public int Count => 1;
public T this[int index]
=>... |
src/TextMagicClient.Test/Model/MessageOutTests.cs | imissyouso/textmagic-rest-csharp | 0 | 7042368 | /*
* TextMagic API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 2
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using NUnit.Framework;
using System;
using System.Linq;
using System.IO;
using Sys... |
Assets/Scripts/BackgroundImageController.cs | SamuelKinnett/momentfs-unity | 0 | 7042369 | <gh_stars>0
using MomenTFS.MAP.Objects;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BackgroundImageController : MonoBehaviour
{
private Texture2D currentTexture;
// Start is called before the first frame update
void Start()
{
}
// Upda... |
ValueOrError/ValueOrErrorEquatable.cs | blieber/value-or-error | 0 | 7042370 | <reponame>blieber/value-or-error
using System;
namespace ValueOrError.Core
{
public partial struct ValueOrError<TValue, TError> : IEquatable<ValueOrError<TValue, TError>>
{
public bool Equals(ValueOrError<TValue, TError> other)
{
return (this.hasValue && other.hasValue && this.value... |
TGC.Group/Model/Plane.cs | TorricoJM/2018_1C_3051_CutuCuchillo | 0 | 7042371 | <gh_stars>0
using TGC.Core.Mathematica;
using TGC.Core.Geometry;
using TGC.Core.SceneLoader;
using TGC.Core.Collision;
using TGC.Core.Textures;
using System;
using TGC.Core.Shaders;
using TGC.Core.BoundingVolumes;
using System.Collections.Generic;
namespace TGC.Group.Model
{
class Plane : Collidable
{
... |
libraries/Microsoft.Bot.Builder.Dialogs/Prompts/Prompt.cs | processsuccessinc/botbuilder-dotnet | 1 | 7042372 | <gh_stars>1-10
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Bot.Builder.Prompts;
using Microsoft.Bot.Schema;
namespace Microsoft.Bot.Builder.Dialogs
{
/// <summary>
... |
LibSidWiz/Triggers/MiddleWidest.cs | maxim-zhao/SidWizPlus | 90 | 7042373 | using System.Collections.Generic;
namespace LibSidWiz.Triggers
{
/// <summary>
/// This corresponds to SidWiz's "alternate" algorithm.
/// We measure the width of each full wave, and then select the widest ones.
/// We then select the start point of the "middle" one, if more than one was found.... |
Back end Prototype/RateIt.Services/CreditWalletService.cs | morality-admin/morality.network | 2 | 7042374 | <reponame>morality-admin/morality.network<filename>Back end Prototype/RateIt.Services/CreditWalletService.cs
using RateIt.Model;
using System;
using System.Collections.Generic;
using RateIt.Services.Interfaces;
using RateIt.Repositories.Interfaces;
using RateIt.Common.Models.Enums;
using System.Linq;
namespace RateIt... |
Twilight_Zone/Assets/Scripts/WaveletUI.cs | arnaudPortay/ludumdare44 | 0 | 7042375 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class WaveletUI : MonoBehaviour
{
public int TotalMaxHeight = 420;
public int CurrentMaxHeight;
public int height;
public Character player;
private RectTransform lRectTransform;
private void Awake()
{... |
src/Cradiator/Config/ViewSettingsReader.cs | PandaWood/Cradiator | 3 | 7042376 | using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Linq;
namespace Cradiator.Config
{
public class ViewSettingsReader
{
const string ProjectRegex = "project-regex";
const string Catego... |
RestApi/Models/Product.cs | lemestwo/RestApi | 0 | 7042377 | <reponame>lemestwo/RestApi<filename>RestApi/Models/Product.cs<gh_stars>0
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RestApi.Models
{
public enum Size : byte
{
Pequeno = 1,
Medio = 2,
Grande = 3
}
pub... |
SistemaHotelaria/View/Fornecedores/excluirFornecedorForm.Designer.cs | oLadeira/hotel-mountain | 0 | 7042378 |
namespace SistemaHotelaria.View.Fornecedores
{
partial class excluirFornecedorForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
... |
logic/model/WebSocketModels/WsEntity.cs | EN1GMA4/Fork | 24 | 7042379 | using Fork.Logic.Model.WebSocketModels.Settings;
namespace Fork.Logic.Model.WebSocketModels
{
public interface WsEntity
{
public string Uid { get; set; }
public string Name { get; set; }
public WsJavaSettings JavaSettings { get; set; }
public WsJarVersion JarVersion { get; set;... |
src/Umbraco.Core/Configuration/UmbracoSettings/ImagingAutoFillUploadFieldElement.cs | tompipe/Umbraco-CMS | 1 | 7042380 | using System.Configuration;
namespace Umbraco.Core.Configuration.UmbracoSettings
{
internal class ImagingAutoFillUploadFieldElement : UmbracoConfigurationElement, IImagingAutoFillUploadField
{
/// <summary>
/// Allow setting internally so we can create a default
/// </summary>
... |
Application/Context/Factories/IApplicationContextFactory.cs | dotlogix/DotlogixCore | 0 | 7042381 | <filename>Application/Context/Factories/IApplicationContextFactory.cs<gh_stars>0
// ==================================================
// Copyright 2018(C) , DotLogix
// File: IApplicationContextFactory.cs
// Author: <NAME> <<EMAIL>>.
// Created: 17.02.2018
// LastEdited: 01.08.2018
// ============================... |
Steam4NET2/autogen/ScreenshotsCommon.cs | mhvuze/SteamBulkActivator | 245 | 7042382 | <reponame>mhvuze/SteamBulkActivator
// This file is automatically generated.
using System;
using System.Text;
using System.Runtime.InteropServices;
namespace Steam4NET
{
[StructLayout(LayoutKind.Sequential,Pack=8)]
[InteropHelp.CallbackIdentity(2301)]
public struct ScreenshotReady_t
{
public const int k_iCallba... |
Functional.Core/Errors/Error.cs | Abdelrahman912/Functional.CSharp | 0 | 7042383 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Functional.Core.Errors
{
public class Error
{
public virtual string Message { get; }
}
}
|
Tools/NUBuild/XmlSchemaCatalog.cs | GorillaIT/NORMA-plus | 12 | 7042384 | <filename>Tools/NUBuild/XmlSchemaCatalog.cs<gh_stars>10-100
#define XML_SCHEMA_CATALOG
#if XML_SCHEMA_CATALOG
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Security;
using System.Security.AccessControl;
using System.Security.Permissio... |
medium/50. Pow(x, n).txt.cs | Igorium/Leetcode | 0 | 7042385 | <gh_stars>0
public class Solution {
public double MyPow(double x, int n) {
var N = (long)n;
if(N < 0){
N *= -1;
x = 1/x;
}
double fastPow(double x, long n){
if(n == 0)
return 1;
var res = fastPow(x, n/2);
re... |
Semester_Project/MDV/Domain/Trips/Trip.cs | TRibeiro94/ISEP-ARQSI-2020 | 1 | 7042386 | <filename>Semester_Project/MDV/Domain/Trips/Trip.cs
using System;
using System.Collections.Generic;
using DDDSample1.Domain.Shared;
namespace DDDSample1.Domain.Trips{
public class Trip : Entity<TripId>, IAggregateRoot{
public string Key { get; private set; }
public string Line { get; private set;... |
tutorial-samples/31-Localization/LocalizationBasics/MainActivity.cs | moljac/Samples.XamarinAndroid | 1 | 7042387 | using Android.App;
using Android.Widget;
using Android.OS;
namespace LocalizationBasics
{
[Activity (Label = "LocalizationBasic", MainLauncher = true, Icon = "@mipmap/icon")]
public class MainActivity : Activity
{
int count = 1;
protected override void OnCreate (Bundle savedInstanceState)
{
string cultur... |
tests/UI/HeadlessCommerceAcceleratorUiTaf/HCA.Pages/Categories.cs | Igor1306/sitecore-headless-commerce-accelerator | 34 | 7042388 | <filename>tests/UI/HeadlessCommerceAcceleratorUiTaf/HCA.Pages/Categories.cs<gh_stars>10-100
namespace Pages
{
public static class Categories
{
public static string Phones = "Phones";
public static string Computers = "Computers";
public static string Cameras = "Cameras";
public s... |
Adventure/Items/Creators/SwordCreator.cs | AnomalousMedical/Adventure | 0 | 7042389 | <reponame>AnomalousMedical/Adventure
using Adventure.Assets.Equipment;
using Adventure.Exploration.Menu;
using Adventure.Items.Actions;
using RpgMath;
using SharpGui;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Adventure.Items.Creators
... |
CustomPrintScreen/MainWindow.xaml.cs | Althain2/CustomPrintScreen | 1 | 7042390 | using System.Windows;
using Forms = System.Windows.Forms;
using System.Windows.Controls;
using System;
using System.Windows.Media;
namespace CustomPrintScreen
{
public partial class MainWindow : Window
{
private LowLevelKeyboardListener _listener;
public MainWindow()
{
... |
CSharpBasic/Worker.cs | dingzhenhua1203/CSharpBasic | 0 | 7042391 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CSharpBasic
{
public class Worker
{
public Worker()
{
Console.WriteLine("加载Employee");
}
public Worker(int level)
{
Con... |
NetDimension.NanUI.XP/ChromiumFX/Generated/Remote/CfrRuntime.cs | 0XC8/NanUI | 12 | 7042392 | <gh_stars>10-100
// Copyright (c) 2014-2015 <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// 1. Redistributions of source code must retain the above copyright
// notice,... |
ProjectEuler/Util/Primes.cs | nerai/ProjectEuler | 0 | 7042395 | <gh_stars>0
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProjectEuler.Util
{
using PrimeT = UInt64;
public class Primes
{
private static Dictionary<UInt16, HashSet<ulong>> _Primes = new Dictionary<UInt16, HashSet<PrimeT>> ();
private... |
Src/Protsyk.PMS.FullText.Core/Common/Compression/BalancedByWeight.cs | PetroProtsyk/FullTextSearch | 5 | 7042396 | using System;
using System.Collections.Generic;
namespace Protsyk.PMS.FullText.Core.Common.Compression
{
// Variation of Shannon Fano coding
// https://en.wikipedia.org/wiki/Shannon%E2%80%93Fano_coding
public class BalancedByWeightBuilder : VarLenCharEncodingBuilder
{
private readonly int optim... |
Assets/Scripts/FaceDataRecorder.cs | tkaniatobe/ARKitFaceMocapExperiments | 0 | 7042397 | <reponame>tkaniatobe/ARKitFaceMocapExperiments
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
public class FaceDataRecorder : MonoBehaviour {
public JSONObject j;
// Use this for initialization
void Start () {
j = new JSONObject(JSONObject.Type.OBJECT);
//num... |
Priority Queue Example/SimplePriorityQueueExample.cs | GerHobbelt/High-Speed-Priority-Queue-for-C-Sharp | 0 | 7042398 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Priority_Queue;
namespace Priority_Queue_Example
{
public static class SimplePriorityQueueExample
{
public static void RunExample()
{
//First, we create the pri... |
aspnet-core/src/ODY.Cihazkapinda.Domain/ProductManagement/ProductInfo.cs | odyarge/cihazkapinda.com | 0 | 7042400 | <gh_stars>0
using JetBrains.Annotations;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.... |
RMS/RMS/Controllers/UserController.cs | csydora/BIMkit | 2 | 7042401 | using RMS.Services;
using RuleAPI.Models;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace RMS.Controllers
{
public class UserController : ApiController
{
RuleDBService db = RuleDBService.Instance;
// Check for a username (lazy login)
public HttpResponseMessag... |
Toggl.Foundation.Tests/Sync/States/Pull/NoDefaultWorkspaceTrackingStateTests.cs | HectorRPC/Toggl2Excel | 0 | 7042402 | <reponame>HectorRPC/Toggl2Excel
using System.Reactive.Linq;
using System.Threading.Tasks;
using NSubstitute;
using Toggl.Foundation.Analytics;
using Toggl.Foundation.Sync.States;
using Toggl.Foundation.Sync.States.Pull;
using Toggl.Foundation.Tests.Mocks;
using Toggl.Multivac.Models;
using Xunit;
namespace Toggl.Foun... |
Signing_photos_gps/frmMain.cs | devdotnetdotorg/Signing_photos_gps | 0 | 7042403 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Windows.Forms;
using UI.FolderSelect;
using System.IO.IsolatedStorage;
using System.IO;
using Microsoft.WindowsAPICodePack.Taskbar;
namespace Signing_photos_gps
{
public partial class frmMain : Form
{
... |
src/AzureCloudServices.WebApi/Installer/AzureStorageInstaller.cs | leo-the-dev/AzureCloudServices | 0 | 7042404 | using Azure.Storage.Blobs;
using AzureCloudServices.Bll.Abstractions;
using AzureCloudServices.Bll.Services.AzureStorage;
using AzureCloudServices.Dal.AzureStorage;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace AzureCloudServices.WebApi.Installer
{
public class A... |
_no_namespace/ConcurrentDictionary.Node--TKey,.cs | SinsofSloth/RF5-global-metadata | 1 | 7042405 | <gh_stars>1-10
[Serializable]
private sealed class ConcurrentDictionary.Node<TKey, TValue> // TypeDefIndex: 1402
{
// Fields
internal readonly TKey _key; // 0x0
internal TValue _value; // 0x0
internal ConcurrentDictionary.Node<TKey, TValue> _next; // 0x0
internal readonly int _hashcode; // 0x0
// Methods
// RV... |
Matrix.Example.Client/Program.cs | offset4kw/matrix-dotnet-sdk | 60 | 7042406 | <filename>Matrix.Example.Client/Program.cs
using System;
using System.IO;
using System.Linq;
using Matrix.Client;
using Matrix.Structures;
namespace Matrix.Example.Client
{
class Program
{
static void Main(string[] args)
{
string homeserverUrl = "http://localhost:8008";... |
VerlofVerzoekVerwerkerDemo/VVV.UI/Views/Shared/_Huisstijl/_Header.cshtml | mischarouleaux/VerlofVerzoekVerwerkerDemo | 0 | 7042407 | @*+++++++++++++++++++++++++++++++++++++++++++++
_ _____ __ __ ___ ___ _____
| |/ / __| \/ | _ )_ _|_ _|
| ' <| _|| |\/| | _ \| | | |
|_|\_\___|_| |_|___/___| |_|
+++++++++++++++++++++++++++++++++++++++++++++
PLEASE DO NOT EDIT THIS FILE. USE IT AS A TEMPLATE AND COPY RELEVANT
... |
modules/SphereStackToy/1/main.cs | close-code/Torque2D | 1,309 | 7042408 | //-----------------------------------------------------------------------------
// Copyright (c) 2013 GarageGames, LLC
//
// 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 restrictio... |
Modules/10_RealtimeDashboards/Lab/Project/PowerBiApiExplorer/Forms/PushData_JSON.Designer.cs | vijayraavi/PBD365 | 0 | 7042409 | <filename>Modules/10_RealtimeDashboards/Lab/Project/PowerBiApiExplorer/Forms/PushData_JSON.Designer.cs
namespace PowerBiApiExplorer.Forms
{
partial class PushData_JSON
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer ... |
src/Griffin.Framework/HttpServerTests/SimpleAccountService.cs | jgauffin/Griffin.Framework | 166 | 7042410 | using System;
using Griffin.Net.Protocols.Http.Authentication;
namespace HttpServerTests
{
public class SimpleAccountService : IAccountService
{
/// <summary>
/// Lookups the specified user
/// </summary>
/// <param name="userName">User name.</param>
/// ... |
NextGenSoftware.OASIS.API.ONODE.WebAPI/Entities/HolonDNA.cs | HirenBodhi/Our-World-OASIS-API-HoloNET-HoloUnity-And-.NET-HDK | 43 | 7042411 | <gh_stars>10-100
using NextGenSoftware.OASIS.API.Core;
using NextGenSoftware.OASIS.API.Core.Interfaces;
namespace NextGenSoftware.OASIS.API.ONODE.WebAPI.Controllers
{
public class HolonDNA
{
public IHolon FromHolon { get; set; }
public IHolon ToHolon { get; set; }
}
} |
HoldMeTight/Assets/Scenes/HoldMeTight/TargetCube.cs | karad/mr-tutorials-for-nreal-light | 7 | 7042413 | <filename>HoldMeTight/Assets/Scenes/HoldMeTight/TargetCube.cs
using NRKernal;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
/// <summary>
/// Target Cube Script
/// </summary>
public class TargetCube: MonoBehaviour
{
... |
Core/Models/Response/Amount.cs | DionDit/QiwiBillApi | 0 | 7042414 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace QiwiBillApi.Core.Models.Response
{
[DataContract]
public class Amount
{
[DataMember(Name = "value")]
public double Value { get; ... |
mcs/class/Microsoft.Build/Microsoft.Build.Construction/ProjectImportElement.cs | bbourdon/mono | 4 | 7042415 | <reponame>bbourdon/mono
//
// ProjectImportElement.cs
//
// Author:
// <NAME> (<EMAIL>)
//
// (C) 2011 <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, incl... |
ConsoleApplication/Program.cs | dfriedenberger/jawis | 0 | 7042416 | <reponame>dfriedenberger/jawis
using CoreImpl;
using CoreShared;
using log4net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApplication
{
class Program
{
static void Main(string[] args)
... |
src/GovUk.Frontend.AspNetCore/TagHelpers/DateInputTagHelper.cs | spSlaine/govuk-frontend-aspnetcore | 5 | 7042417 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading.Tasks;
using GovUk.Frontend.AspNetCore.ModelBinding;
using Microsoft.AspNetCore.Html;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Razor.TagHelpers;
namespace GovUk.Frontend.AspNetCore.TagHelpers
{
... |
Assets/ArtTool/Editor/Utils/CustomUI/CustomUI.cs | rngtm/Unity-ArtTool | 7 | 7042418 | <filename>Assets/ArtTool/Editor/Utils/CustomUI/CustomUI.cs
using System;
using UnityEngine;
using UnityEditor;
namespace ArtTool
{
public static partial class CustomUI
{
/// 設定UIのラベル(上部) //////////////////////////////////////////////////////////////////
public static readonly GUIContent InputT... |
src/_WorkflowSampleSystem/WorkflowSampleSystem.Core/SampleSystemSecurityOperationCode.cs | Luxoft/BSSFramework.Workflow | 0 | 7042419 | <filename>src/_WorkflowSampleSystem/WorkflowSampleSystem.Core/SampleSystemSecurityOperationCode.cs
using Framework.Security;
using Framework.Workflow;
namespace WorkflowSampleSystem
{
[BaseSecurityOperationType]
[BaseSecurityOperationType(typeof(WorkflowSecurityOperationCode))]
public enum Workflow... |
Money_Tree/Assets/ClickMe.cs | Aliceravier/The-money-tree | 1 | 7042420 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ClickMe : MonoBehaviour {
private AudioSource source;
// Use this for initialization
void Start () {
source = GetComponent<AudioSource>();
}
void OnMouseDown()
{
source.Play();
... |
WebShop/Views/Order/Create.cshtml | benin-work/webshop | 0 | 7042421 | <filename>WebShop/Views/Order/Create.cshtml
@model WebShop.ViewModels.OrderViewModel
@{
ViewBag.Title = "Create Order";
ViewBag.SaveButton = "Create";
}
<h2>Create Order</h2>
@{
Html.RenderPartial("_OrderEdit");
}
<div>
@Html.ActionLink("Back to List", "Index")
</div>
@section Scripts {
@Script... |
src/EA.Iws.DataAccess/Mappings/Imports/ImportFinancialGuaranteeRefusalMapping.cs | DEFRA/prsd-iws | 1 | 7042423 | namespace EA.Iws.DataAccess.Mappings.Imports
{
using System.Data.Entity.ModelConfiguration;
using Domain.ImportNotificationAssessment.FinancialGuarantee;
internal class ImportFinancialGuaranteeRefusalMapping : EntityTypeConfiguration<ImportFinancialGuaranteeRefusal>
{
public ImportFinancialGua... |
test/DataCommand.Core.Tests/Infra/FakeBatchCommand.cs | lersouza/DataCommand.Net | 2 | 7042424 | using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using Microsoft.Extensions.Logging;
namespace DataCommand.Core.Tests.Infra
{
internal class Entity
{
public int Id { get; set; }
}
internal class FakeBatchCommand : BatchDataCommand<Entity, int>
{
... |
CompilationTest/ArrayTest/results/ArrayTest.cs | onelang/TestArtifacts | 0 | 7042425 | <reponame>onelang/TestArtifacts
using System;
using System.Collections.Generic;
public class TestClass
{
public void TestMethod()
{
var constantArr = new List<int> { 5 };
var mutableArr = new List<int> { 1 };
mutableArr.Add(2);
Console.WriteLine($"len1: {consta... |
ABC/ABC148/Tests/FTests.cs | AconCavy/atcoder-challenges-cs | 0 | 7042426 | <filename>ABC/ABC148/Tests/FTests.cs<gh_stars>0
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Tests
{
[TestClass]
public class FTests
{
[TestMethod]
public void TestMethod1()
{
const string input = @"5 4 1
1 2
2 3
3 4
3 5";
const string output... |
Project/ToDo/ToDo.Api/Service/IToDoService.cs | Memoyu/WPF-Learn-Demo | 0 | 7042427 | using ToDo.Api.Context;
using ToDo.Shared.Dtos;
using ToDo.Shared.Parameters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ToDo.Api.Service
{
public interface IToDoService : IBaseService<ToDoDto>
{
Task<ApiResponse> GetAllAsync(ToDoParamete... |
CSharp/IO/CountFiles.cs | piovezan/SOpt | 148 | 7042428 | <reponame>piovezan/SOpt
FolderBrowserDialog fbd = new FolderBrowserDialog();
DialogResult result = fbd.ShowDialog();
string[] files = Directory.GetFiles(fbd.SelectedPath, "*.xls");
System.Windows.Forms.MessageBox.Show("Arquivos na Pasta: " + files.Length.ToString(), "Alerta");
//Uma opção melhor para .Net 4.5:
Folder... |
Assets/Scripts/UI/UISoulCell.cs | sim-mokomo/ECity | 0 | 7042429 | using System;
using System.Collections.Generic;
using UI;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
using Attribute = MokomoGames.Protobuf.Attribute;
namespace MokomoGames.UI
{
public class UISoulCell : MonoBehaviour
{
//TODO: sprite に置き換えられる予定
private static rea... |
src/ExcelDna.Registration.Abstractions/Registration/Abstractions/TypeConversionBase.cs | augustoproiete/exceldna-addin-abstractions | 4 | 7042430 | #region Copyright 2013-2021 <NAME> & Contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... |
CP/Games/GolfCardGameCP/CustomPiles/Beginnings.cs | musictopia2/GamingPackXV3 | 0 | 7042431 | <filename>CP/Games/GolfCardGameCP/CustomPiles/Beginnings.cs
namespace GolfCardGameCP.CustomPiles;
public class Beginnings : GameBoardObservable<RegularSimpleCard>
{
private readonly CommandContainer _command;
public Beginnings(CommandContainer command) : base(command)
{
Columns = 2;
Rows = ... |
src/Byndyusoft.Data.Relational.QueryBuilder/QueryObjectBuilders/Delete/DeleteQueryBuilderBase.cs | Byndyusoft/Byndyusoft.Data.Relational.QueryBuilder | 0 | 7042432 | using Byndyusoft.Data.Relational.QueryBuilder.QueryObjectBuilders.Infrastructure;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
namespace Byndyusoft.Data.Relational.QueryBuilder.QueryObjectBuilders.Delete
{
public abstract class DeleteQueryBuilderBase<TBuilder>
where TBuil... |
Unity/Assets/HotfixView/Dream/Scene/LoadScene_Monitors.cs | chengxu-yh/ET | 0 | 7042433 | <reponame>chengxu-yh/ET<filename>Unity/Assets/HotfixView/Dream/Scene/LoadScene_Monitors.cs
namespace ET
{
public class EnterSceneStart_LoadScene : AEvent<AppEventType.EnterSceneStart>
{
protected override async ETTask Run(AppEventType.EnterSceneStart args)
{
// 加载场景AssetBundle
await ResourcesComponent.I... |
10.BeerTime/BeerTime.cs | VenelinGP/Conditional-Statements | 0 | 7042434 | using System;
using System.Globalization;
/* A beer time is after 1:00 PM and before 3:00 AM
* Write a program that enters a time in format “hh:mm tt” (an hour in range [01...12], a minute in range [00…59] and
* AM / PM designator) and prints beer time or non-beer time according to the definition above or invalid... |
Projects/Windows Forms/Designer/Designer/FormMain.cs | TheCharmingCthulhu/CSharp | 1 | 7042435 | using Designer.Source;
using System.Windows.Forms;
namespace Designer
{
public partial class FormMain : Form
{
Matrix matrix;
public FormMain()
{
InitializeComponent();
}
private void FormMain_Load(object sender, System.EventArgs e)
{
m... |
Exemplos/2_Gerencia_multi/Mutex Example/Mutex Example/Program.cs | shyoutarou/Exam-70-483_Gerenciar_fluxo | 1 | 7042436 | <reponame>shyoutarou/Exam-70-483_Gerenciar_fluxo
using System;
using System.Threading;
namespace Mutex_Example
{
class Program
{
// Create a new Mutex. The creating thread does not own the mutex.
private static Mutex mut = new Mutex();
private const int numIterations = 1;
priva... |
StudyingApp/ViewModels/AddModuleViewModel.cs | klas3/StudyingApp | 0 | 7042437 | <reponame>klas3/StudyingApp<filename>StudyingApp/ViewModels/AddModuleViewModel.cs<gh_stars>0
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace StudyingApp.ViewModels
{
public class ModuleViewModel
{
[... |
src/Nut.Results/Extensions/T_Combine.cs | Archway-SharedLib/Nut.Results | 0 | 7042438 | <gh_stars>0
using System;
using System.Threading.Tasks;
namespace Nut.Results
{
public static partial class ResultExtensions
{
public static Result<(TSource Left, TDest Right)> Combine<TSource, TDest>(
this in Result<TSource> source,
Func<Result<TDest>> destFunc)
... |
src/NLog.Targets.Syslog/MessageCreation/SdParam.cs | makarovsl/Nlog.Repeated | 0 | 7042439 | <reponame>makarovsl/Nlog.Repeated
// Licensed under the BSD license
// See the LICENSE file in the project root for more information
using NLog.Layouts;
using NLog.Targets.Syslog.Policies;
using System.Collections.Generic;
using System.Linq;
using NLog.Targets.Syslog.Extensions;
using NLog.Targets.Syslog.Settings;
na... |
HZH_Controls/HZH_Controls/Forms/FrmLoading.cs | qiangvei/NetWinformControl | 1,841 | 7042440 | <gh_stars>1000+
// ***********************************************************************
// Assembly : HZH_Controls
// Created : 2019-09-26
//
// ***********************************************************************
// <copyright file="FrmLoading.cs">
// Copyright by <NAME>(黄正辉) All, QQ group:... |
src/User Interface/UI_PlayerSelectCharacters.cs | Mikanwolfe/Artillery3 | 0 | 7042441 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SwinGameSDK;
namespace ArtillerySeries.src
{
public class UI_PlayerSelectCharacters : UI_PlayerSelectTemplate
{
int _playerIndex = 0;
UI_Text _playerText;
UI_Stati... |
ITGeek/ITGeek.DBContext/Migrations/Initializer.cs | sashe944/ITGeek | 0 | 7042442 | <gh_stars>0
using ITGeek.Entities;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using System;
using System.Data.Entity.Migrations;
using System.Linq;
namespace ITGeek.DBContext.Migrations
{
internal class Initializer
{
internal static void SeedRoles(ApplicationDbCo... |
TLM/TMPE.API/Traffic/Data/SpeedValue.cs | scareyo/TMPE | 0 | 7042443 | namespace TrafficManager.API.Traffic.Data {
using System;
using JetBrains.Annotations;
using UnityEngine;
/// <summary>
/// Represents a speed value expressed in game units where 1f = 50 km/h or 32 MPH.
/// </summary>
[Serializable]
public readonly struct SpeedValue {
/// <summa... |
src/Workspaces/Core/Portable/Workspace/WorkspaceDiagnosticEventArgs.cs | akoeplinger/roslyn | 8 | 7042444 | <filename>src/Workspaces/Core/Portable/Workspace/WorkspaceDiagnosticEventArgs.cs
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.CodeAnalysis.Text;
namespace Microsoft.CodeAn... |
MvcCustomErrors/Configuration.cs | mergut/MvcCustomErrors | 3 | 7042445 | <gh_stars>1-10
// Copyright (c) <NAME>
// Licensed under the MIT License (MIT). See LICENSE file in the project root for full license information.
namespace MvcCustomErrors
{
using System;
/// <summary>
/// Provides configuration options for MvcCustomErrors.
/// </summary>
[System.Diagn... |
src/PedroLamas.TheBroCode.WP8/Model/IMainModel.cs | pedrolamas/PedroLamas.TheBroCode | 1 | 7042446 | <filename>src/PedroLamas.TheBroCode.WP8/Model/IMainModel.cs<gh_stars>1-10
namespace PedroLamas.TheBroCode.Model
{
public interface IMainModel
{
QuoteModel[] Quotes { get; }
int SelectedIndex { get; set; }
QuoteModel SelectedQuote { get; }
int GetRandomQuoteIndex();
i... |
OneCodeTeam/C# app automates Excel (CSAutomateExcel)/[C#]-C# app automates Excel (CSAutomateExcel)/C#/CSAutomateExcel/Solution1.cs | zzgchina888/msdn-code-gallery-microsoft | 2 | 7042447 | /******************************** Module Header ********************************\
* Module Name: Solution1.cs
* Project: CSAutomateExcel
* Copyright (c) Microsoft Corporation.
*
* Solution1.AutomateExcel demonstrates automating Microsoft Excel application by
* using Microsoft Excel Primary Interop Assembly (PI... |
src/Gablarski/Server/GablarskiServer.cs | ermau/Gablarski | 2 | 7042448 | <reponame>ermau/Gablarski<gh_stars>1-10
// Copyright (c) 2011-2014, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with
// or without modification, are permitted provided that
// the following conditions are met:
//
// - Redistributions of source code must retain the abov... |
Libraries/BrnShop.Services/Sessions.cs | leafcxy/BrnShop | 2 | 7042449 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using BrnShop.Core;
namespace BrnShop.Services
{
/// <summary>
/// 会话状态操作管理类
/// </summary>
public partial class Sessions
{
private static ISessionStrategy _isessionstrategy = null;//会话状态策略
static Sessions()
{... |
src/Domain/Hotels/Repositories/HotelRepository.cs | RaphaDeveloper/HotelSearcher | 0 | 7042450 | <gh_stars>0
using Domain.Customers.ValueObjects;
using Domain.Hotels.Entities;
using Domain.Hotels.ValueObjects;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Domain.Hotels.Repositories
{
public class HotelRepository : IHotelRepository
{
public IEnumerable<Hotel> GetAll()
{
Hot... |
DNN Platform/Library/Entities/Users/UserVisibilityMode.cs | pmsereno/Dnn.Platform | 0 | 7042451 | //
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
//
namespace DotNetNuke.Entities.Users
{
public enum UserVisibilityMode
{
AllUsers = 0,
MembersOnly = 1,
AdminOnly = 2,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.