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 |
|---|---|---|---|---|
DesignPattern/src/Observer/Demo01_Observer/Customer/NBAObserver.cs | namesunwei/Tutorials | 1 | 7031516 | <filename>DesignPattern/src/Observer/Demo01_Observer/Customer/NBAObserver.cs<gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Demo01_Observer.Base;
namespace Demo01_Observer.Customer
{
public class NBAObserver : Observer
{
public NBAO... |
ConnectSDK.Analytics/Models/DetailedCalls.cs | serverdata-net/elevate-dotnet-sdk | 7 | 7031518 | namespace ConnectSDK.Analytics.Models
{
using System.Text.Json.Serialization;
public class DetailedCalls
{
[JsonPropertyName("calls")]
public DetailedCall[] Calls { get; set; }
[JsonPropertyName("totalCalls")]
public int TotalCalls { get; set; }
}
}
|
SDResearch.Core/Converters/ConverterInt32.cs | rod-stuchi/mvc-barcode-gen | 1 | 7031519 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SDResearch.Core.Converters
{
public class ConverterInt32 : JsonConverter
{
public override bool CanConvert(Type objectType)
{
... |
EuclideanGeometryLib/EuclideanGeometryLib/GeometricAlgebra/CGA5D/Cga5DFullMultivectorGeometry.cs | ga-explorer/GMac | 8 | 7031520 | using EuclideanGeometryLib.BasicMath;
using EuclideanGeometryLib.BasicMath.Tuples.Immutable;
namespace EuclideanGeometryLib.GeometricAlgebra.CGA5D
{
public sealed class Cga5DFullMultivectorGeometry
: Cga5DMultivectorGeometry
{
internal Cga5DFullMultivectorGeometry(double[] scalars, Multivector... |
AdvLib.Tests/Adv_V2/TestV2FileGeneration.cs | aschweiz/ADVLib | 0 | 7031521 | <reponame>aschweiz/ADVLib
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Adv;
using AdvLib.Tests.Generators;
using AdvLib.Tests.Util;
using NUnit.Framework;
using AdvLib = Adv.A... |
SmhiNet/Models/ObservationModel.cs | AndreasBom/WeatherBase | 0 | 7031523 | using System;
namespace SmhiNet.Models
{
/// <summary>
/// Model for observations
/// </summary>
public class ObservationModel
{
private DateTime? _date;
private string _parameterUnit;
public DateTime? To { get; set; }
public DateTime? From { get; set; }
p... |
OpenTrack.Tests/Credentials.cs | slombardo/OpenTrack.NET | 0 | 7031524 | using System;
using System.Configuration;
namespace OpenTrack.Tests
{
public class Credentials
{
public const String EnterpriseCode = "LEWE";
public const String DealerNumber = "LE1";
public static readonly String Url = ConfigurationManager.AppSettings["Url"];
public static re... |
src/GitVersion.Core/BuildAgents/SpaceAutomation.cs | ouslou01/GitVersion | 0 | 7031525 | <gh_stars>0
using GitVersion.Logging;
using GitVersion.OutputVariables;
namespace GitVersion.BuildAgents;
public class SpaceAutomation : BuildAgentBase
{
public SpaceAutomation(IEnvironment environment, ILog log) : base(environment, log)
{
}
public const string EnvironmentVariableName = "JB_SPACE_PRO... |
CRUD_ASPCoreMVC/CRUD_ASPCoreMVC/Controllers/EmployeeController.cs | itskhawarizmi/QueryScriptHelper | 0 | 7031526 | <filename>CRUD_ASPCoreMVC/CRUD_ASPCoreMVC/Controllers/EmployeeController.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using CRUD_ASPCoreMVC.Models;
namespace CRUD_ASPCoreMVC.Controllers
{
public class... |
src/AS.Infrastructure.Web/Mvc/Validation/RecaptchaValidator.cs | bartizo12/ASAdmin | 2 | 7031527 | <filename>src/AS.Infrastructure.Web/Mvc/Validation/RecaptchaValidator.cs
using AS.Domain.Interfaces;
using AS.Domain.Settings;
using AS.Infrastructure.Validation;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
namespace AS.Infrastructure.Web.Mvc
{... |
src/Core/EncounterLogic/LanceLogic/AddExtraLanceMembers.cs | Inveracity/MissionControl | 0 | 7031528 | using System;
using System.Collections.Generic;
using BattleTech.Framework;
using MissionControl.Data;
namespace MissionControl.Logic {
public class AddExtraLanceMembers : LanceLogic {
private LogicState state;
public AddExtraLanceMembers(LogicState state) {
this.state = state;
}
public ove... |
src/XamarinForms.RxUI/ConsultaCEPService.cs | akamud/XamarinForms.RxUI | 0 | 7031529 | using Bogus;
using System;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace XamarinForms.RxUI
{
public static class ConsultaCEPService
{
private static string regexPattern = @"^\d{5}\-\d{3}$";
private static Random _random;
static ConsultaCEPService()
... |
LDAP/Protocol/LDAPResponse.cs | telefrek/ldap | 2 | 7031531 | <gh_stars>1-10
using System;
using System.Threading.Tasks;
using Telefrek.LDAP.Protocol.Encoding;
namespace Telefrek.LDAP.Protocol
{
internal abstract class LDAPResponse
{
public int ResultCode { get; set; }
public string MatchedDN { get; set; }
public int MessageId { get; set; }
... |
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/ComboBox.ComboBoxUiaTextProviderTests.cs | adamsitnik/winforms | 1 | 7031532 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms.Automation;
using Xunit;
using s... |
src/OpenFTTH.GDBIntegrator.Integrator/Notifications/RouteNodeLifecycleInfoUpdated.cs | DAXGRID/open-ftth-gdb-Integrator | 0 | 7031533 | using MediatR;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using OpenFTTH.GDBIntegrator.RouteNetwork;
using OpenFTTH.GDBIntegrator.Integrator.Factories;
using OpenFTTH.Events.RouteNetwork;
using OpenFTTH.GDBIntegrator.Integrator.Store;
using OpenFTTH.Events;
using System;
u... |
src/Infrastructure/src/Emulator/Extensions/Hooks/WatchpointHookPythonEngine.cs | UPBIoT/renode-iot | 3 | 7031535 | //
// Copyright (c) 2010-2018 Antmicro
//
// This file is licensed under the MIT License.
// Full license text is available in 'licenses/MIT.txt'.
//
using System;
using Antmicro.Renode.Core;
using Antmicro.Migrant.Hooks;
using Microsoft.Scripting.Hosting;
using Antmicro.Migrant;
using Antmicro.Renode.Peripherals.Bus;
... |
src/DeliveryService.Api/Handlers/DeliveryRequestHandler.cs | Gaurav524/ProductDeliveryService | 0 | 7031536 | using AutoMapper;
using DeliveryService.Api.Contracts;
using DeliveryService.Api.Validators;
using DeliveryService.Core.Interfaces;
using DeliveryService.Core.Models;
using MediatR;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using Syst... |
solutions/Q077.cs | txchen/csharp-leet | 5 | 7031537 | public class Solution {
public IList<IList<int>> Combine(int n, int k) {
List<IList<int>> result = new List<IList<int>>();
int[] tmp = new int[k]; // just fill in tmp, and copy to result
ComboRecur(n, k, 0, 1, result, tmp);
return result;
}
private void ComboRecur(in... |
src/Admin/Definux.Emeraude.Admin.UI/ViewModels/Roots/RootFileViewModel.cs | Definux/Emeraude | 6 | 7031538 | using System;
using Definux.Utilities.Functions;
namespace Definux.Emeraude.Admin.UI.ViewModels.Roots
{
/// <summary>
/// Implementation of root file of the system.
/// </summary>
public class RootFileViewModel
{
/// <summary>
/// Name of the file.
/// </summary>
pu... |
Semana3/Dia4/MiAplicacion/MiAplicacion/Program.cs | YsraelGNM/Codigo | 2 | 7031539 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MiAplicacion
{
class Program
{
static void Main(string[] args)
{
//int numero;
//////float flotante = 8.7f;
... |
src/Consumption/Consumption.ViewModel/Common/ModuleManager.cs | duanleping/WPF-Xamarin-Blazor-Examples | 0 | 7031541 | /*
*
* 文件名 :ModuleManager
* 程序说明 : 定义分组模块的数据管理器结构
* 更新时间 : 2020-05-12 21:10
* 联系作者 : QQ:779149549
* 开发者群 : QQ群:874752819
* 邮件联系 : <EMAIL>
* 视频教程 : https://space.bilibili.com/32497462
* 博客地址 : https://www.cnblogs.com/zh7791/
* 项目地址 : https://github.com/HenJigg/WPF-Xamarin-Blazor... |
Blacksmith.Sql.Queries/OrderClause.cs | hossmi/Blacksmith.Sql.Queries | 0 | 7031542 | using Blacksmith.Validations;
using System;
namespace Blacksmith.Sql.Queries
{
public class OrderClause : IEquatable<OrderClause>
{
private static IValidator assert;
static OrderClause()
{
assert = Asserts.Default;
}
public OrderClause(string column, Order... |
src/csharp/SimpleService/Protocol/Packet.cs | alandoherty/ssp | 0 | 7031543 | <reponame>alandoherty/ssp<filename>src/csharp/SimpleService/Protocol/Packet.cs
using System;
using System.IO;
using System.Text;
namespace SimpleService.Protocol
{
internal class Packet
{
#region Constants
/// <summary>
/// The magic prefixing all packets.
/// </summary>
... |
Ydis/Model/DataStructures/YDISSerializable.cs | IceGrave/Ice | 13 | 7031544 | <gh_stars>10-100
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Ydis.Model.UserSettings;
namespace Ydis.Model.DataStructures
{
/// <summary>
/// YDIS objects that can be saved in a fil... |
Ocularity/MenuComponents/OcularityButton.cs | harroo/Ocularity | 0 | 7031545 | <gh_stars>0
using System;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
[RequireComponent(typeof(Image))]
public class OcularityButton : MonoBehaviour, IPointerClickHandler, IPointerEnterHandler, IPointerExitHandler {
public Sprite idleImage, highlightedImage, clickedImage;
public... |
Hospital_ERP_VS13-WCF_WF/AH.ModuleController/UI/DMS/Forms/frmEmergencyBilling.cs | atiq-shumon/DotNetProjects | 0 | 7031546 | using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using AH.ModuleController.DMSSR;
using AH.DUtility;
using AH.Shared.UI;
using AH.ModuleController.UI.DMS.Reports.Viewer;
using System.T... |
src/_DomainDriven/Framework.DomainDriven.Core/BLL/Default/BLLQueryableSource.cs | Luxoft/BSSFramework | 18 | 7031547 | using System.Linq;
using Framework.Persistent;
using Framework.QueryableSource;
namespace Framework.DomainDriven.BLL
{
public class BLLQueryableSource<TBLLContext, TPersistentDomainObjectBase, TDomainObjectBase, TIdent> : BLLContextContainer<TBLLContext>, IQueryableSource<TPersistentDomainObjectBase>
... |
AcikArtirmaUygulamasi/Teklif.cs | baristutakli/NA-203-Projects | 0 | 7031548 | <reponame>baristutakli/NA-203-Projects<filename>AcikArtirmaUygulamasi/Teklif.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AcikArtirmaUygulamasi {
class Teklif {
static int count = 0;
private int Id;
int _... |
Coocoo3D/Components/MMDRendererComponent.cs | sselecirPyM/Coocoo3D | 50 | 7031550 | using Coocoo3D.Base;
using Coocoo3D.Components;
using Coocoo3D.MMDSupport;
using Coocoo3D.Present;
using Coocoo3D.ResourceWarp;
using Coocoo3D.Numerics;
using Coocoo3DGraphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Runtime.InteropServices;
using System.T... |
src/JT809.DotNetty.Simples/Superior/JT809.PubSub.Abstractions/IJT809ProducerPartitionFactory.cs | lishewen/JT809DotNetty | 1 | 7031551 | using System;
using System.Collections.Generic;
using System.Text;
namespace JT809.PubSub.Abstractions
{
/// <summary>
/// jt809生产者分区工厂
/// 分区策略:
/// 1.可以根据(车牌号+颜色)进行分区
/// 2.可以根据msgId(消息Id)+(车牌号+颜色)进行分区
/// </summary>
public interface IJT809ProducerPartitionFactory
{
int Creat... |
ClosedXML/Excel/ConditionalFormats/Save/XLCFIconSetConverter.cs | monoblaine/ClosedXML | 0 | 7031552 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DocumentFormat.OpenXml;
using DocumentFormat.OpenXml.Spreadsheet;
namespace ClosedXML.Excel
{
internal class XLCFIconSetConverter:IXLCFConverter
{
public ConditionalFormattingRule Convert(IXLCondition... |
SettingsAPISample/Models/SettingEntry.cs | davidebbo-test/SettingsAPISampleSiteExtension | 1 | 7031553 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Newtonsoft.Json;
namespace SettingsAPISample.Models
{
public class SettingEntry : INamedObject
{
public string Name { get; set; }
public string Value { get; set; }
public int Count... |
backend/src/Squidex.Domain.Apps.Entities/Assets/AssetDomainObjectGrain.cs | tapend/tebe-cms | 0 | 7031554 | <filename>backend/src/Squidex.Domain.Apps.Entities/Assets/AssetDomainObjectGrain.cs
// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// ... |
Protocol/WorkDoneProgressEnd.cs | kaby76/lsp-types | 13 | 7031555 | <reponame>kaby76/lsp-types
using Newtonsoft.Json;
using System.Runtime.Serialization;
namespace LspTypes
{
[DataContract]
public class WorkDoneProgressEnd
{
public WorkDoneProgressEnd() { }
[DataMember(Name = "kind")]
[JsonProperty(Required = Required.Always)]
public strin... |
src/QuartzNET-DynamoDB.TestApp/Program.cs | lukeryannetnz/quartznet-dynamo | 0 | 7031556 | <filename>src/QuartzNET-DynamoDB.TestApp/Program.cs<gh_stars>0
using System;
using Quartz;
using Quartz.Impl;
using System.Threading;
using Quartz.Spi;
namespace QuartzNETDynamoDB.TestApp
{
class MainClass
{
public static void Main(string[] args)
{
PrintGreeting();
// Grab the Scheduler instance from the... |
ConsoleX.cs | okinta/iqfeed-keep-alive | 0 | 7031557 | using System.IO;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
using System;
namespace IqfeedKeepAlive
{
/// <summary>
/// Describes some useful methods for outputting to the console.
/// </summary>
internal static class ConsoleX
{
/// <summary>
... |
src/core/Elsa.Abstractions/Events/ActivityExecuted.cs | newbienewbie/elsa-core | 1 | 7031558 | <gh_stars>1-10
using Elsa.Services.Models;
namespace Elsa.Events
{
public class ActivityExecuted : ActivityNotification
{
public ActivityExecuted(bool resuming, ActivityExecutionContext activityExecutionContext) : base(activityExecutionContext) => Resuming = resuming;
public bool Resuming { ge... |
NHS111/NHS111.Domain.Integration.Test/Repository/RepositoryTestBase.cs | NHSChoices/nhs111-online | 1 | 7031559 | <gh_stars>1-10
using Moq;
using NHS111.Domain.Repository;
using NHS111.Features;
using NHS111.Models.Models.Domain;
using NHS111.Utils.Configuration;
namespace NHS111.Domain.Integration.Test.Repository
{
public class RepositoryTestBase
{
protected readonly IGraphRepository GraphRepository;
pro... |
JsonSerializationCaching.Tests/Tests/SimpleWeatherForecastPerformanceTests.cs | darjanbogdan/json-serialization-caching | 0 | 7031560 | using JsonSerializationCaching.Serialization;
using JsonSerializationCaching.Tests.TestModel.SimpleWeatherForecast;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Text;
using Xunit;
namespace JsonSerializationCaching.Tests.Tests
{
pub... |
OVO.Web/Views/Vehicle/Details.cshtml | jorosoft/OnlineVehicleOrganizer | 0 | 7031561 | <reponame>jorosoft/OnlineVehicleOrganizer<gh_stars>0
@using OVO.Web.ViewModels.Vehicle
@using GridMvc.Html
@model VehicleViewModel
@{
ViewBag.Title = @OVO.Web.Resources.Lang.Details;
Layout = "~/Views/Shared/_Layout.cshtml";
}
<section id="bannerSection" style="background:url(../../Resources/Images/banner/de... |
src/Cometary.Core/DiagnosticException.cs | 71/Cometary | 20 | 7031562 | <filename>src/Cometary.Core/DiagnosticException.cs<gh_stars>10-100
using System;
using Microsoft.CodeAnalysis;
namespace Cometary
{
/// <summary>
/// Represents an <see cref="Exception"/> wrapping a <see cref="Microsoft.CodeAnalysis.Diagnostic"/>.
/// </summary>
public class DiagnosticException : Ex... |
src/Services/BoundedContext/BoundedContext.Shared/Topic/BoundedContextTopics.cs | Caskia/ENode-Templates | 0 | 7031563 | namespace BoundedContext.Topic
{
public class BoundedContextTopics
{
public const string BoundedContextDomainApplicationMessageTopic = "BoundedContext.Domain.ApplicationMessageTopic";
public const string BoundedContextDomainCommandTopic = "BoundedContext.Domain.CommandTopic";
public con... |
InputDetect.cs | jacobrave/Sloth | 0 | 7031564 | <reponame>jacobrave/Sloth
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class InputDetect : MonoBehaviour {
public Image[] controllerImages;
public Sprite[] noJoystickSprite;
public Sprite[] joystickSprites;
int joystickLength;
int co... |
RestAndRelaxForPlex/TMDbObjects/Result.cs | jimbobbennett/RestAndRelaxForPlex | 15 | 7031565 | using Newtonsoft.Json;
namespace JimBobBennett.RestAndRelaxForPlex.TmdbObjects
{
public class Result : TmdbObjectBase
{
[JsonProperty("title")]
public string Title { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("release_date")]
... |
Src/Dashboard/Views/Home/ProjectList.cshtml | lewuaza/Tellurium | 33 | 7031566 | <filename>Src/Dashboard/Views/Home/ProjectList.cshtml
@using Tellurium.VisualAssertion.Dashboard.Mvc
@using Tellurium.VisualAssertion.Dashboard.Services.TestResults
@model Tellurium.VisualAssertion.Dashboard.Services.TestResults.ProjectListViewModel
@{
ViewData["Title"] = "Test Sessions";
Layout = "~/Views/_La... |
BinarySerializer/ItemSerializeUntilAttribute.cs | shaggygi/BinarySerializer | 0 | 7031567 | namespace BinarySerialization;
/// <summary>
/// Specifies an explicit list termination condition when it is defined as part of an item in the collection.
/// </summary>
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public sealed class ItemSerializeUntilAttribute : FieldBindingBaseAttribute... |
Hatchet/Core/Graphics/Screen/ScreenStates.cs | TimothyJi/Project-Hatchet | 0 | 7031568 | namespace Hatchet.Graphics.Screen
{
public enum ScreenStates
{
TransitioningIn, // Disable Input.
Active,
Inactive,
TransitioningOut, // Disable Input
Unloaded // Disable Input
}
}
|
sfa.Tl.Marketing.Communication/SearchPipeline/ProviderSearchEngine.cs | uk-gov-mirror/SkillsFundingAgency.tl-marketing-and-communication | 0 | 7031569 | using AutoMapper;
using sfa.Tl.Marketing.Communication.Application.Interfaces;
using sfa.Tl.Marketing.Communication.Models;
using System.Threading.Tasks;
namespace sfa.Tl.Marketing.Communication.SearchPipeline
{
public class ProviderSearchEngine : IProviderSearchEngine
{
private readonly IProviderSear... |
Packages/cc.starlessnight.unity-jsb/Source/Binding/DefaultBinder.cs | shunfy/unity-jsb | 0 | 7031570 | using System;
using System.Reflection;
namespace QuickJS.Binding
{
public delegate void BindAction(ScriptRuntime runtime);
public static class DefaultBinder
{
/// <summary>
/// determine which type binding mode to use (between staticbind and reflectbind)
/// </summary>
... |
Neuroph/imgrec/filter/impl/GaussianBluring.cs | starhash/Neuroph.NET | 1 | 7031571 | <reponame>starhash/Neuroph.NET
using System;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
namespace org.neuroph.imgrec.filter.impl
{
///
/// <summary>
/// @author <NAME>
... |
tools/Antijank.Debugger/Debugging/ClrDataTarget/CLRDATA_IL_ADDRESS_MAP.cs | iPherian/MnB2-Bannerlord-CommunityPatch | 97 | 7031572 | using System;
using System.Runtime.InteropServices;
namespace Antijank.Debugging {
[Serializable]
[StructLayout(LayoutKind.Sequential, Pack = 8)]
public struct CLRDATA_IL_ADDRESS_MAP {
public uint ilOffset;
public ulong startAddress;
public ulong endAddress;
public CLRDataSourceType typ... |
myCSharpConcepts/Threads/Lock.cs | Raghavendra1509/CSharp-Concepts | 1 | 7031573 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace myCSharpConcepts.Threads
{
class Lock
{
private static object _locker = new object(); //create static object since there is no instance of class we are ... |
IOTMotorDrivers/PCA9685.cs | vivek306/WindowsIOTMotorDrivers | 2 | 7031574 | using IOTMotorDrivers.Helpers;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Devices.Enumeration;
using Windows.Devices.I2c;
using Windows.Devices.Pwm.Provider;
namespace IOTMotorDrivers
{
public class PCA9685 : I... |
projects/blazor-ss/Chatter/Services/NotificationService.cs | pranaslu/practical-aspnetcore | 2 | 7031575 | using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.SignalR.Client;
namespace ChatR.Services
{
public class NotificationService
{
HubConnection _connection;
public async Task ConnectAsync()
{
_connection = new HubConnectionBuilder()
.WithU... |
src/Nuuvify.CommonPack.UnitOfWork/Implementations/RepositoryReadOnly.cs | lzocateli00/Nuuvify.CommonPack | 0 | 7031576 | <reponame>lzocateli00/Nuuvify.CommonPack
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Nuuvify.CommonPack.Extensions.Notificator;
using Nuuvify.CommonPack.UnitOfWork.Abstraction.Interfaces;
nam... |
Source/Code/Collections/BitSetArray/BitSetArray.cs | ddur/DBCL | 0 | 7031577 | // --------------------------------------------------------------------------------
// <copyright file="https://github.com/ddur/DBCL/blob/master/LICENSE" company="DD">
// Copyright © 2013-2016 <NAME>. All Rights Reserved.
// </copyright>
// ------------------------------------------------------------------------------... |
OpenXmlFormats/Spreadsheet/Styles/CT_CellStyle.cs | astorch/npoi | 1,703 | 7031578 | using NPOI.OpenXml4Net.Util;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
namespace NPOI.OpenXmlFormats.Spreadsheet
{
[Serializable]
[XmlType(Namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main")]
p... |
IoTAS/Shared/Hubs/BaseHubInDto.cs | hugh-maaskant/IoTAS | 0 | 7031579 | <filename>IoTAS/Shared/Hubs/BaseHubInDto.cs
//
// Copyright (c) 2021 <NAME>
// MIT License
//
namespace IoTAS.Shared.Hubs
{
/// <summary>
/// Marker base record for Hub input and connection Event records from
/// Clients (devices and Monitors) to the Server's SignalR Hubs
/// </summary>
public abs... |
source/SelfImprovement.cs | thetestgame/Eco-No-More-Books-Mod | 1 | 7031580 | // Copyright (c) <NAME>. All rights reserved.
// See LICENSE file in the project root for full license information.
// <auto-generated />
namespace Eco.Mods.TechTree
{
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using Eco.Core.Items;
usin... |
TJAPlayer3/Databases/DBCharacter.cs | fkunn1326/OpenTaiko | 3 | 7031581 | using System.Collections.Generic;
using System.IO;
using Newtonsoft.Json;
namespace TJAPlayer3
{
class DBCharacter
{
public void tDBCharacter()
{
if (!File.Exists(@".\Databases\Character.json"))
tSaveFile();
tLoadFile();
}
#regi... |
src/IntegrationTestsShared/TestNhibernateConfigurator.cs | Buthrakaur/coreddd | 87 | 7031582 | using System;
using System.Collections.Generic;
using System.Reflection;
using CoreDdd.Nhibernate.Configurations;
using IntegrationTestsShared.TestEntities;
using HibernatingRhinos.Profiler.Appender.NHibernate;
namespace IntegrationTestsShared
{
public class TestNhibernateConfigurator : BaseNhibernateCon... |
BabyBrother.Services/IResourceService.cs | oasalonen/babybrother | 0 | 7031583 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BabyBrother.Services
{
public interface IResourceService
{
string GetString(string id);
}
}
|
test/Domain/LeanCode.CQRS.Tests/SampleData.cs | leancodepl/corelibrary | 18 | 7031584 | using System;
using System.Diagnostics.CodeAnalysis;
using System.Threading;
using System.Threading.Tasks;
using LeanCode.CQRS.Execution;
using LeanCode.CQRS.Security;
using LeanCode.CQRS.Validation;
using LeanCode.DomainModels.Model;
using LeanCode.Pipelines;
namespace LeanCode.CQRS.Tests
{
public class AppContex... |
Religious_Composition_Program_Ver01/Converters.cs | onurcan-nisanci/C-Sharp-WPF-Belief-Composition-By-Country-2010-2050 | 0 | 7031585 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Data;
using System.Windows.Media;
namespace Religious_Composition_Program_Ver01
{
public class StringToDescBG : IMultiValueConv... |
Presentation/Xms.Web/Areas/Customize/Views/SerialNumber/EditSerialNumber.cshtml | feilingdeng/xms | 1 | 7031586 | @model Xms.Web.Customize.Models.EditSerialNumberModel
<div class="panel panel-default">
@*<div class="panel-heading">
<h3 class="panel-title">
<a data-toggle="collapse"
href="#collapseTwo">
<strong>@app.PrivilegeTree?.LastOrDefault().Displ... |
Lib/Cache/MemoryCacheProvider.cs | catcherwong-archive/SyncCachingDemo | 1 | 7031587 | <reponame>catcherwong-archive/SyncCachingDemo<filename>Lib/Cache/MemoryCacheProvider.cs<gh_stars>1-10
namespace Lib
{
using System;
using Microsoft.Extensions.Caching.Memory;
public class MemoryCacheProvider : ILocalCacheProvider
{
private IMemoryCache _cache;
public MemoryCacheProvid... |
Apps.Paint/Effects/Channels/Channels.cs | imagin-tech/Imagin.NET | 61 | 7031588 | <filename>Apps.Paint/Effects/Channels/Channels.cs
using System;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Effects;
namespace Paint.Effects
{
public class ChannelsEffect : BaseEffect
{
public static readonly DependencyProperty InputProperty = RegisterPixelShaderSample... |
Assets/UnityAtoms/Variables/BoolVariable.cs | rakkarage/unity-atoms | 0 | 7031589 | using UnityEngine;
namespace UnityAtoms
{
[CreateAssetMenu(menuName = "Unity Atoms/Variables/Bool", fileName = "BoolVariable", order = 2)]
public class BoolVariable : EquatableScriptableObjectVariable<bool, BoolEvent, BoolBoolEvent>
{
}
} |
development/RiftDotNet.Test/Dummy/SensorDevice.cs | tomjal/RiftDotNet | 1 | 7031591 | <reponame>tomjal/RiftDotNet
namespace RiftDotNet.Test.Dummy
{
public sealed class SensorDevice
: ISensorDevice
{
private readonly IDevice _parent;
private readonly SensorInfo _info;
private bool _isDisposed;
public SensorDevice(IDevice parent, SensorInfo info)
{
_parent = parent;
_info... |
src/RQLite.Net/Store/RaftResponse.cs | zerouid/RQLite.Sharp | 0 | 7031592 | using Newtonsoft.Json;
namespace RQLite.Net.Store
{
/// <summary>
/// RaftResponse is the Raft metadata that will be included with responses, if
/// the associated request modified the Raft log.
/// </summary>
public class RaftResponse
{
[JsonProperty("index")]
public ulong Inde... |
FxCurrencyConverter/FxCurrencyConverterTests/Integration/DB/TestTradeRepositoryDb.cs | nstata/csharpprojects | 0 | 7031593 | using Dapper;
using FxCurrencyConverter.CurrencyConverter;
using FxCurrencyConverter.Enums;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
namespace FxCurrencyConverterIntegrationTests.DB
{
public class TestTradeRepositoryDb
{
private readonly string _s... |
src/LionFire.Core.Extras/Coroutines/Coroutine.cs | jaredthirsk/LionFire.Core | 0 | 7031595 | <reponame>jaredthirsk/LionFire.Core<filename>src/LionFire.Core.Extras/Coroutines/Coroutine.cs<gh_stars>0
#define CoroutineNames
//#define OwnerCanBeCoroutineHost
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Thread... |
src/LightVx/Validators/ContainsValidator.cs | TjWheeler/LightVx | 4 | 7031596 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Text;
namespace LightVx.Validators
{
/// <summary>
/// Checks to ensure the specified content exists within the input
/// </summary>
public class ContainsValidator : ValidatorBase
{
private string[] _content;
... |
tools/generator/Tests/expected/NormalMethods/Xamarin.Test.C.cs | mattleibow/java.interop | 0 | 7031597 | <gh_stars>0
using System;
using System.Collections.Generic;
using Android.Runtime;
namespace Xamarin.Test {
// Metadata.xml XPath class reference: path="/api/<EMAIL>']/class[@name='C']"
[global::Android.Runtime.Register ("xamarin/test/C", DoNotGenerateAcw=true)]
[global::Java.Interop.JavaTypeParameters (new string... |
src/Microsoft.Graph/Generated/requests/IWindowsMalwareInformationRequest.cs | larslynch/msgraph-beta-sdk-dotnet | 0 | 7031598 | <reponame>larslynch/msgraph-beta-sdk-dotnet
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// -------------------------------------... |
src/Microsoft.Graph/Generated/requests/IDataClassificationServiceRequest.cs | larslynch/msgraph-beta-sdk-dotnet | 0 | 7031599 | // ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... |
Octokit.Tests.Integration/Clients/OrganizationMembersClientTests.cs | klmnden/octokit.net | 2 | 7031600 | <filename>Octokit.Tests.Integration/Clients/OrganizationMembersClientTests.cs<gh_stars>1-10
using System.Linq;
using System.Threading.Tasks;
using Octokit.Tests.Integration.Helpers;
using Xunit;
namespace Octokit.Tests.Integration.Clients
{
public class OrganizationMembersClientTests
{
public class Th... |
week2/day4/EFDBFirstDemo/EFDBFirstDemo.DataAccess/MovieRepository.cs | 1811-nov27-net/sy-practice-training | 0 | 7031601 | using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace EFDBFirstDemo.DataAccess
{
public class MovieRepository : IMovieRepository
{
public MoviesDBContext Db { get; }
public MovieRepository(MoviesDBContext db)
... |
Tools/XeoraVSExtension/Xeora.VSAddIn/ItemTemplates/ClassCSharp/MyClassLib.cs | xeora/xeoracube | 3 | 7031602 | using System;
using System.Collections.Generic;
using System.Reflection;
using Xeora.Web.Shared;
namespace $rootnamespace$
{
public class $safeitemname$ : IDomainExecutable
{
public void Initialize()
{
}
public void Finalize()
{
}
public void PostExecu... |
AkureTraining.Core/Web/Startup.Composition.cs | Smartware/AkureMvcTraining | 0 | 7031604 | <reponame>Smartware/AkureMvcTraining
using AkureTraining.Core.Context;
using AkureTraining.Core.Controllers;
using Autofac;
using Autofac.Integration.Mvc;
using Autofac.Integration.WebApi;
using SmartWr.WebFramework.Library.Infrastructure.IoCs;
using SmartWr.WebFramework.Library.Infrastructure.IoCs.Autofac;
using Smar... |
Crx.vNext.Framework/Extensions/ConsulExtensions.cs | as260405901/Crx.vNext.Web | 0 | 7031605 | using Consul;
using Crx.vNext.Common.Helper;
using Microsoft.AspNetCore.Builder;
using System;
namespace Crx.vNext.Framework.Extensions
{
public static class ConsulExtensions
{
public static void ConsulRegister(this IApplicationBuilder app)
{
if (Appsettings.GetBool(new[] { "Consul... |
mcs/errors/cs0809.cs | lefb766/mono | 469 | 7031606 | // CS0809: Obsolete member `B.Property' overrides non-obsolete member `A.Property'
// Line: 17
// Compiler options: -warnaserror -warn:4
using System;
class A
{
public virtual int Property {
set { }
}
}
class B : A
{
[Obsolete ("TEST")]
public override int Property {
set { }
}
} |
ResultSharp/ResultTE.cs | gallip0li/ResultSharp | 0 | 7031607 | using System;
using System.Diagnostics.Contracts;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
namespace ResultSharp
{
internal enum ResultState
{
Ok = 1,
Err,
}
[Serializable]
public readonly struct Result<T, E> :
ISerializable,
IEquatable<Result<T, E>>,
IResult
{
rea... |
AsyncRx.NET/System.Reactive.Async.Linq/System/Reactive/Linq/Operators/Prepend.cs | terrajobst/reactive | 0 | 7031608 | <reponame>terrajobst/reactive<filename>AsyncRx.NET/System.Reactive.Async.Linq/System/Reactive/Linq/Operators/Prepend.cs
// 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 informati... |
test/SchemaExplorer.SqlServer.Tests/Experimental/SqlServerSchemaExplorerSpec/SchemaTests.cs | kane-armstrong/rest-api-from-sql | 2 | 7031609 | <reponame>kane-armstrong/rest-api-from-sql
using FluentAssertions;
using SchemaExplorer.SqlServer.Tests.Infrastructure;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
namespace SchemaExplorer.SqlServer.Tests.Experimental.SqlServerSchemaExplorerSpec
{
public class SchemaTests... |
Homework/Advanced C#/21.0 Exam Preparation/Drones/Zoo/Animal.cs | dimitarLaleksandrov/first-steps-in-coding-C- | 0 | 7031610 | using System;
using System.Collections.Generic;
using System.Text;
namespace StartUp
{
public class Animal
{
public Animal(string species, string diet, double weight, double length)
{
Species = species;
Diet = diet;
Weight = weight;
Length = leng... |
03. Advanced C#/8. Streams - Exercises/7. Directory Traversal/DirectoryTraversal.cs | MustafaAmish/All-Curses-in-SoftUni | 0 | 7031611 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
public class DirectoryTraversal
{
public static void Main()
{
Console.Write("Directory: ");
string directoryToTravers = Console.ReadLine();
Console.Write("Extension to find: ");
string extensio... |
FootballDataWrapper/FootballDataWrapper.Business/LeagueService.cs | jslonim/FootballDataAPIWrapper | 0 | 7031612 | <reponame>jslonim/FootballDataAPIWrapper<filename>FootballDataWrapper/FootballDataWrapper.Business/LeagueService.cs<gh_stars>0
using AutoMapper;
using FootballDataWrapper.Business.DTO;
using FootballDataWrapper.Business.Exceptions;
using FootballDataWrapper.Business.Interfaces;
using FootballDataWrapper.Business.Utils... |
Chess/Engine/Strategies/Aspiration/LateMove/LmrAspirationExtendedStrategy.cs | KostyaBaklan/Chess-KGB | 0 | 7031613 | using Engine.Interfaces;
using Engine.Strategies.LateMove.Base;
namespace Engine.Strategies.Aspiration.LateMove
{
public class LmrAspirationExtendedStrategy : AspirationStrategyBase
{
public LmrAspirationExtendedStrategy(short depth, IPosition position) : base(depth, position)
{
In... |
samples/RestApi/RestApi.Client/Pages/KendoAutocomplete.cshtml | tayopi/learn-blazor | 108 | 7031614 | <filename>samples/RestApi/RestApi.Client/Pages/KendoAutocomplete.cshtml
@page "/auto-complete"
@using RestApi.Shared
@using Microsoft.JSInterop
@using System.Linq
@inject HttpClient Http
<h1>Autocomplete Demo</h1>
<input id="customers" style="width: 300px" />
@functions {
protected override async Task OnInitAsy... |
src/MzLite/Model/ParamContainer.cs | CSBiology/MzLite | 12 | 7031615 | <reponame>CSBiology/MzLite<filename>src/MzLite/Model/ParamContainer.cs
#region license
// The MIT License (MIT)
// ParamContainer.cs
// Copyright (c) 2016 <NAME>
// <EMAIL>
// <EMAIL>
// Computational Systems Biology, Technical University of Kaiserslautern, Germany
// Permission is hereby granted, free of charge... |
Assets/Scripts/DemoExample/ContextData/ContextDataRank.cs | tinyantstudio/UIFrameWork | 286 | 7031616 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class ContextDataRank : BaseWindowContextData
{
public List<RankItemData> listRankItemDatas { get; set; }
}
public class RankItemData
{
public string playerName { get; set; }
public string headIcon { get; set; }
pub... |
CSharp/DP.Domain/Samples/Template/DkoFixing.cs | plasroom46/DesignPattern.Sample | 9 | 7031617 | using System.Diagnostics;
namespace DP.Domain.Samples.Template
{
public class DkoFixing : ProductFixingTemplate
{
protected override void FindWorkOptionLeg()
{
Trace.WriteLine("DKO: Find Working Option Leg");
}
protected override void CheckBarriers()
{
... |
Scripts/Items/Special/Evil Home Decor Collection/HauntedMirror.cs | greeduomacro/vivre-uo | 0 | 7031618 | <reponame>greeduomacro/vivre-uo
using System;
namespace Server.Items
{
[Flipable( 0x2A7B, 0x2A7D )]
public class HaunterMirrorComponent : AddonComponent
{
public override int LabelNumber { get { return 1074800; } } // Haunted Mirror
public override bool HandlesOnMovement { get { return true; } }
public Haunt... |
tests/FastSmsSdk.Tests/IntegrationTests/ReportsTests.cs | fastsmsuk/dotNet-sdk | 2 | 7031619 | using FastSmsSdk;
using FastSmsSdk.Enums;
using FastSmsSdk.Exceptions;
using FastSmsSdk.Models.Responses;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace FastSms.Tests.IntegrationTests {
[TestClass]
public class ReportsTests {
public FastSmsClient Client;
[TestInitialize]
public void TestInitia... |
sdk/dotnet/SageMaker/Outputs/MonitoringScheduleBaselineConfig.cs | AaronFriel/pulumi-aws-native | 29 | 7031620 | // *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.AwsN... |
src/Monitor/Monitor/LogProfiles/RemoveAzureRmLogProfileCommand.cs | mbentancour/azure-powershell | 3,336 | 7031621 | <filename>src/Monitor/Monitor/LogProfiles/RemoveAzureRmLogProfileCommand.cs
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in complianc... |
src/Kkts.Expressions/Internal/Parser.cs | linhnle/Kkts.Expressions | 1 | 7031622 | <reponame>linhnle/Kkts.Expressions
using Kkts.Expressions.Internal.Nodes;
using System.Collections.Generic;
namespace Kkts.Expressions.Internal
{
internal abstract class Parser
{
private readonly List<char> _chars = new List<char>();
public Node BuiltNode { get; set; }
public Parser Previous { get; set; }
... |
Assets/ExternalPackages/_Standard Assets/Characters/Scripts/Editor/MotorConfigEditor.cs | uhhhci/TheNonContinuousToolkit | 0 | 7031623 | <gh_stars>0
using System;
using System.Collections.Generic;
using StandardAssets.Characters.ThirdPerson;
using StandardAssets.Characters.ThirdPerson.AnimatorBehaviours;
using StandardAssets.Characters.ThirdPerson.AnimatorBehaviours.Editor;
using StandardAssets.Characters.ThirdPerson.Configs;
using UnityEditor;
using Un... |
MuEmu/GremoryCase.cs | quyanxu/MuEmu | 37 | 7031624 | <reponame>quyanxu/MuEmu
using MU.DataBase;
using MU.Network.Game;
using MU.Resources;
using MuEmu.Entity;
using MuEmu.Util;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MuEmu
{
internal class GremoryCaseItem
{
public GremoryStorage RewardInventory { ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.