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 |
|---|---|---|---|---|
XmlSyntaxError.cs | michael-hawker/XmlParserSampleUWP | 7 | 7062327 | <filename>XmlSyntaxError.cs
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using Microsoft.Language.Xml;
namespace XmlSyntaxVisualizerUwp
{
/// <summary>
/// Light-weight wrapper around error data.
/// </summary>
public class XmlSyntaxError
{
... |
IrrTools/ControlPreviewTools.cs | twesd/editor | 0 | 7062328 | <reponame>twesd/editor
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using IrrlichtWrap;
using IrrTools;
using CommonUI;
namespace IrrTools
{
/// <summary>
/// Палитра инст... |
Plugins/Addons/ServerSystems/ZoneSystem/ZoneManager/Scripts/Classes/NetworkMessages.Client.ZoneManager.cs | 10allday/OpenMMO | 153 | 7062329 | //by Fhiz
using OpenMMO.Network;
using OpenMMO;
using Mirror;
namespace OpenMMO.Network
{
/// <summary>
/// Switch Server Request Message
/// </summary>
/// <remarks>
/// Sent from Client to Server
/// </remarks>
public partial struct ClientRequestPlayerSwitchServer : ClientRequest
... |
Alipay.AopSdk.Core/Domain/AssuranceInfo.cs | gaojunhuang/Alipay.AopSdk.Core | 708 | 7062330 | <reponame>gaojunhuang/Alipay.AopSdk.Core
using System;
using Newtonsoft.Json;
namespace Alipay.AopSdk.Core.Domain
{
/// <summary>
/// AssuranceInfo Data Structure.
/// </summary>
[Serializable]
public class AssuranceInfo : AopObject
{
/// <summary>
/// 服务保障的描述
/// </summary>
[JsonProperty("descri... |
bsn-sdk-csharp/SM2/SM2Utils.cs | BSNDA/PCNGateway-C--SDK | 0 | 7062331 | using Org.BouncyCastle.Asn1;
using Org.BouncyCastle.Asn1.GM;
using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Crypto.Digests;
using Org.BouncyCastle.Crypto.Generators;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.Math;
using Org.BouncyCastle.Math.EC;
using Org.BouncyCastle.OpenSsl;
using Org.B... |
Form/Grid.cs | maxwillkelly/crazy-checkers | 0 | 7062332 | <reponame>maxwillkelly/crazy-checkers
using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Crazy_Checkers
{
// Creates a Grid based on the Windows Form Class TableLayoutPan... |
backend/Web/Web.Api/Controllers/NotesController.cs | BalazsKis/white-raven | 0 | 7062333 | using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Swashbuckle.AspNetCore.Examples;
using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;
using WhiteRaven.Domain.Models.Note;
using WhiteRaven.Domain.Operations;
using WhiteRaven.Web.Api.Examples;
namespace WhiteRaven.W... |
03_Application_Deployment/src/Healthcare.BC.Tracker/Healthcare.BC.Tracker.API/Controllers/TrackerController.cs | Bhaskers-Blu-Org2/Healthcare-Blockchain-Solution-Accelerator | 11 | 7062334 | <filename>03_Application_Deployment/src/Healthcare.BC.Tracker/Healthcare.BC.Tracker.API/Controllers/TrackerController.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Healthcare.BC.Offchain.Repository.Models;
using Healthcare.BC.Tracker.Service;
using Micr... |
AutoSortVcxprojFilters/SortFilterOnAfterSave.cs | OdedRadi/AutoSortVcxprojFilters | 0 | 7062335 | using Microsoft.VisualStudio;
using Microsoft.VisualStudio.Shell.Interop;
using System;
namespace AutoSortVcxprojFilters
{
internal class SortFilterOnAfterSave : IVsRunningDocTableEvents
{
IVsRunningDocumentTable m_IVsRunningDocumentTable;
public SortFilterOnAfterSave(IVsRunningDocumentTable ... |
OOPS.BLL/Concreate/StaticConcreate/AccessTypeService.cs | emrecakmak77/OOPS | 0 | 7062336 | using OOPS.BLL.Abstract.StaticAbstract;
using OOPS.Core.Data.UnitOfWork;
using OOPS.DTO.Static;
using OOPS.MapConfig.ConfigProfile;
using OOPS.Model.StaticModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OOPS.BLL.Concreate.StaticConcreate
{
public class Acces... |
CfClient/client/cache/ICache.cs | drone/ff-dotnetcore-server-sdk | 2 | 7062337 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace io.harness.cfsdk.client.cache
{
public interface ICache<K, V>
{
void PutAll(ICollection<KeyValuePair<K, V>> keyValuePairs);
void Put(K key, V value);
void Put(KeyValuePair<K, V> key... |
Assets/Scripts/Game/Mahjong3D/Editor/DateTable/UI/TableEditorGUILayout.cs | da1fanshu/1234ewsd | 2 | 7062338 | <reponame>da1fanshu/1234ewsd
using UnityEngine;
using UnityEditor;
using System;
using Assets.Scripts.Game.Mahjong3D.Standard;
namespace Assets.Scripts.Game.Mahjong3D.EditorTool
{
public static class TableEditorGUILayout
{
public sealed class HorizontalScope : IGUILayoutScope
{
pub... |
Tzkt.Sync/Protocols/Handlers/Proto4/Commits/Operations/DoubleEndorsingCommit.cs | baking-bad/tezzycat | 6 | 7062339 | <reponame>baking-bad/tezzycat
using System.Linq;
using System.Text.Json;
using System.Threading.Tasks;
using Tzkt.Data.Models;
namespace Tzkt.Sync.Protocols.Proto4
{
class DoubleEndorsingCommit : ProtocolCommit
{
public DoubleEndorsingCommit(ProtocolHandler protocol) : base(protocol) { }
publ... |
Source/PeterKottas.DotNetCore.EnsureRunning.SqlServer/SqlServerStorage.cs | PeterKottas/DotNetCore.EnsureRunning | 5 | 7062341 | <filename>Source/PeterKottas.DotNetCore.EnsureRunning.SqlServer/SqlServerStorage.cs
using PeterKottas.DotNetCore.EnsureRunning.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Data.SqlClient;
using System.Data;
using Dapper;
using PeterKottas.DotNetCore.EnsureRunning.SqlServe... |
Source/TeamBuildScreen.Core/Models/ScreenSaverSettingsModel.cs | StevenDeRoover/TeamBuildScreen | 2 | 7062342 | //-----------------------------------------------------------------------
// <copyright file="ScreenSaverSettingsModel.cs" company="<NAME>">
// Copyright © <NAME>. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
using System.Linq;
namespace Te... |
src/Serilog.Sinks.Seq/Sinks/Seq/SeqApi.cs | Mpdreamz/serilog | 0 | 7062343 | using System;
using Serilog.Events;
namespace Serilog.Sinks.Seq
{
class SeqApi
{
// Why not use a JSON parser here? For a very small case, it's not
// worth taking on the extra payload/dependency management issues that
// a full-fledged parser will entail. If things get more sophistica... |
ZVRPub.API/ZVRPub.API/ModelsNeeded/MenuPreBuiltModel.cs | 1806-jun25-net/Project-Anthony-Randall-Cristian-BackEnd- | 0 | 7062344 | <reponame>1806-jun25-net/Project-Anthony-Randall-Cristian-BackEnd-
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ZVRPub.API.ModelsNeeded
{
public class MenuPreBuiltModel
{
public int Id { get; set; }
public string NameOfMenu { get; s... |
src/DaisyFx/Connectors/StatelessLinkConnector.cs | theb0rg/DaisyFx | 7 | 7062345 | <filename>src/DaisyFx/Connectors/StatelessLinkConnector.cs<gh_stars>1-10
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
namespace DaisyFx.Connectors
{
internal sealed class StatelessLinkConnector<TInput, TLink, TOutput> : Connector<TInput, TOutput>
where TLink : ILink<TInput,... |
03-30 - Orlando CC - .NET of Things/Demos/TinyCLR OS/Utilities/IBlockingTimer.cs | ProgrammerAl/Presentations-2019 | 0 | 7062346 | <reponame>ProgrammerAl/Presentations-2019
using System;
using System.Collections;
using System.Text;
using System.Threading;
namespace Utilities
{
public interface IBlockingTimer
{
void Run();
bool IsRunning { get; }
}
}
|
Scripts/Popups/PopupInfoWindow.cs | Hartkorcraft/VaultCom | 0 | 7062347 | <filename>Scripts/Popups/PopupInfoWindow.cs
using Godot;
using System;
public class PopupInfoWindow : PopupNew
{
public void _on_PopupInfoWindow_mouse_entered()
{
GD.Print("Entered popup ");
}
public void _on_PopupInfoWindow_mouse_exited()
{
GD.Print("Exited popup");
}
pu... |
src/DND.Common/Middleware/RewriteOptionsExtensions.cs | davidikin45/DigitalNomadDaveAspNetCore | 0 | 7062348 | <filename>src/DND.Common/Middleware/RewriteOptionsExtensions.cs
using Microsoft.AspNetCore.Rewrite;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DND.Common.Middleware
{
public static class RewriteOptionsExtensions
{
//pub... |
game/Piano combo/Assets/PianoAudio.cs | Jaeger2305/piano-combo | 0 | 7062350 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Linq;
public class PianoAudio : MonoBehaviour
{
private Scale scale;
public float beatsPerSecond = 1f;
public int beatDivisions = 4;
private float timer = 0f;
private TMPro.TextMeshProUGUI uiTimerTMP;
p... |
src/SFA.DAS.Payments.AcceptanceTests.EndToEnd/EventMatchers/ProviderPaymentEventMatcher.cs | PJChamley/das-payments-V2 | 7 | 7062351 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using SFA.DAS.Payments.AcceptanceTests.Core;
using SFA.DAS.Payments.AcceptanceTests.Core.Automation;
using SFA.DAS.Payments.AcceptanceTests.Core.Data;
using SFA.DAS.Payments.AcceptanceTests.EndToEnd.Data;
using SFA... |
Open.Vim.Sdk/DotNetUtilities/ExponentialBackoff.cs | dmk-rib/Open.Vim.Sdk | 1 | 7062352 | <filename>Open.Vim.Sdk/DotNetUtilities/ExponentialBackoff.cs
using System;
using System.Threading.Tasks;
namespace Vim.DotNetUtilities
{
/// <summary>
/// Runs a work function and retries it if it fails due to a transient exception.
/// Rethrows the last exception caught after a maximum number of retries.... |
Source/RocketNotify.TelegramBot/Settings/IBotSettingsProvider.cs | d-kvachev/RocketNotifyBot | 1 | 7062353 | namespace RocketNotify.TelegramBot.Settings
{
/// <summary>
/// Telegram bot settings provider interface.
/// </summary>
public interface IBotSettingsProvider
{
/// <summary>
/// Gets the bot access authorization token.
/// </summary>
/// <returns>The bot auth token.... |
STOREFRONT/VirtoCommerce.Storefront/Common/StorefrontConstants.cs | VirtoCommerce-archieve/vc-integrations | 2 | 7062354 | <reponame>VirtoCommerce-archieve/vc-integrations
namespace VirtoCommerce.Storefront.Common
{
public static class StorefrontConstants
{
public const string StoreCookie = "vcf.store";
public const string LanguageCookie = "vcf.language";
public const string CurrencyCookie = "vcf.currency";... |
CoachLancer/CoachLancer.Services.Tests/CoachServiceTests/GetLastRegisteredCoaches_Should.cs | ikonomov17/CoachLancer | 0 | 7062355 | using CoachLancer.Data.Models;
using CoachLancer.Data.Repositories;
using CoachLancer.Data.SaveContext;
using Moq;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
namespace CoachLancer.Services.Tests.CoachServiceTests
{
[TestFixture]
public class GetLast... |
Assets/HuntroxGames/Attributes/Scripts/ReadOnly.cs | Huntrox/CommandConsole | 2 | 7062356 | using System;
using UnityEngine;
namespace HuntroxGames.Utils
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public class ReadOnlyAttribute : PropertyAttribute
{
}
} |
src/Framework.WebServices/App_Start/RouteConfig.cs | pubcrede/Framework-for-Universal | 0 | 7062357 | <filename>src/Framework.WebServices/App_Start/RouteConfig.cs<gh_stars>0
//-----------------------------------------------------------------------
// <copyright file="RouteConfig.cs" company="Genesys Source">
// Copyright (c) 2017 Genesys Source. All rights reserved.
// All rights are reserved. Reproduction o... |
src/WWT.Providers/Providers/WebServiceProxyProvider.cs | twsouthwick/wwt-website | 0 | 7062358 | using System;
using System.Net;
namespace WWT.Providers
{
public class WebServiceProxyProvider : RequestProvider
{
public override void Run(IWwtContext context)
{
string returnString = "Erorr: No URL Specified";
string url = "";
if (context.Request.Params["ta... |
src/Qmmands/Built/Module.cs | Kuromu/Qmmands | 0 | 7062360 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Threading.Tasks;
namespace Qmmands
{
/// <summary>
/// Represents a module built using the <see cref="CommandService"/>.
/// </summary>
public sealed class Module
{
... |
Etch/Models/AccountModels/ForgotPasswordModel.cs | PauloMFJ/Etch | 0 | 7062361 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace Etch.Models.AccountModels {
public class ForgotPasswordModel {
// Email address field
[Required]
[EmailAddress]
[Display(Name = "E... |
src/HashedWheelTimer.cs | roycefanproxy/HashedWheelTimer.NET | 1 | 7062362 | <reponame>roycefanproxy/HashedWheelTimer.NET<filename>src/HashedWheelTimer.cs
using System;
using System.Collections.Generic;
using System.Threading;
using System.Runtime.CompilerServices;
using ricefan123.Timer.Util;
using System.Diagnostics;
namespace ricefan123.Timer
{
public class HashedWheelTimer
... |
samples/Sciensoft.Hateoas.WebSample/Models/BookViewModel.cs | higtrollers/Sciensoft.Hateoas | 9 | 7062363 | using System;
using System.Collections.Generic;
namespace Sciensoft.Hateoas.WebSample.Models
{
public class BookViewModel
{
public Guid Id { get; set; }
public string Title { get; set; }
public string Author { get; set; }
public ICollection<object> Tags { get; set; }
public object Reference { get; set... |
Entourage.AntiPattern/Entourage.Domain/ICustomerRepository.cs | jsanjuan2016/Stairway | 0 | 7062364 | <filename>Entourage.AntiPattern/Entourage.Domain/ICustomerRepository.cs<gh_stars>0
using System;
namespace Entourage.Domain
{
public interface ICustomerRepository
{
string CreateNewCustomer(string name, string surname);
string GetFullNameByCustomerId(string id);
}
}
|
Assets/Scripts/PCG/RoomSpawner.cs | ckhuang98/Not-A-Myth | 0 | 7062365 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// Basically all the code comes from this youtube tutorial:
//https://youtu.be/qAf9axsyijY
public class RoomSpawner : MonoBehaviour
{
public int openingDirection;
//1 --> Need bottom door
//2 --> Need top door
//3 --> ... |
src/HotChocolate/Stitching/src/Stitching/Introspection/Models/InputField.cs | erwan-joly/hotchocolate | 1 | 7062366 | namespace HotChocolate.Stitching.Introspection.Models
{
internal class InputField
{
public string Name { get; set; }
public string Description { get; set; }
public TypeRef Type { get; set; }
public string DefaultValue { get; set; }
}
}
|
examples/TanksMiniGame/Assets/_Completed-Assets/Scripts/PhyWorld.cs | comicChiii/minigame-adaptor | 0 | 7062367 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
public class PhyWorld : MonoBehaviour
{
// Start is called before the first frame update
public GameObject StaticWorld;
public GameObject player1;
public GameObject player2;
class AABBInfo
{
public float minX;... |
UsefulExtentions2.Core/Models/DiffItem.cs | milovidov983/UsefulExtentions2.Core | 0 | 7062368 | using System;
using System.Collections.Generic;
using System.Text;
namespace UsefulExtentions2.Core {
public class DiffItem<T> {
public readonly T Left;
public readonly T Right;
public readonly DiffKind Kind;
public DiffItem(T value, DiffKind kind) {
Kind = kind;
if (kind == DiffKind.OnlyInLeft) {
... |
src/Droid/Renderers/CustomLabelRenderer.cs | juniandotnet/xamarin-custom-font | 1 | 7062369 | <gh_stars>1-10
using System;
using System.ComponentModel;
using Android.Graphics;
using CustomFont.Droid.Renderers;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
[assembly: ExportRenderer(typeof(Label), typeof(CustomLabelRenderer))]
namespace CustomFont.Droid.Renderers
{
public class CustomLabelRenderer... |
Assets/Scripts/Campfire.cs | Ahanabunozor/ld46 | 0 | 7062370 | <reponame>Ahanabunozor/ld46
using UnityEngine;
public class Campfire : Interactable
{
[SerializeField]
private GameMaster gameMaster;
protected override void OnInit()
{
onInteractionCompletePersistent += Refuel;
}
private void Refuel()
{
gameMaster.AddFuel();
}
}
|
UniCade Interface (Alpha Prototype)/UniCadeCmd/UniCadeCmd/User.cs | benlen10/UniCade-Cmd-Interface-Alpha | 0 | 7062371 | <reponame>benlen10/UniCade-Cmd-Interface-Alpha
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UniCadeCmd
{
class User
{
private string userName;
private string pass;
private int loginCount;
private i... |
test/UnitTests/Domain/Features/Shipments/UpsertShipmentTests.cs | QuinntyneBrown/KidsToyHive | 3 | 7062372 | <filename>test/UnitTests/Domain/Features/Shipments/UpsertShipmentTests.cs
using KidsToyHive.Api;
using KidsToyHive.Domain.DataAccess;
using KidsToyHive.Domain.Features.Shipments;
using MediatR;
using Microsoft.EntityFrameworkCore;
using Moq;
using System.Threading.Tasks;
using Xunit;
namespace UnitTests.Domain.Feature... |
DiceRoller/UIExtensions/DiceRollerUI.cs | FakeFriend24/wotr-dice-roller | 0 | 7062373 | using HarmonyLib;
using Kingmaker.EntitySystem.Stats;
using Kingmaker.UI.MVVM._PCView.CharGen.Phases.AbilityScores;
using Kingmaker.UI.MVVM._VM.CharGen.Phases.AbilityScores;
using Owlcat.Runtime.UI.Controls.Button;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threa... |
Assets/Scripts/Gameplay/Interactable/Interactable_Trashcan.cs | addictedcode/Mathelandia | 0 | 7062374 | <reponame>addictedcode/Mathelandia<filename>Assets/Scripts/Gameplay/Interactable/Interactable_Trashcan.cs<gh_stars>0
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Interactable_Trashcan : MonoBehaviour
{
void Start()
{
}
// Update is called once per frame
... |
MarketUP.Marketplace.SupplierApi.WebApi/ViewModels/ProductImage.cs | marketup/MarketUP.Marketplace.SupplierApi | 1 | 7062375 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MarketUP.Marketplace.Integration.ModelsSupplierApi
{
public class ProductImage
{
[JsonProperty("imageUrl")]
public string ImageUrl { get; set; }
... |
ExchangeMAPI/Source/MS-OXCFXICS/Adapter/Helper/Structures/Enums/MarkersHelper.cs | v-yahan/Interop-TestSuites | 29 | 7062376 | <filename>ExchangeMAPI/Source/MS-OXCFXICS/Adapter/Helper/Structures/Enums/MarkersHelper.cs
namespace Microsoft.Protocols.TestSuites.MS_OXCFXICS
{
using System.Collections.Generic;
/// <summary>
/// Supply help functions for manipulate Markers.
/// </summary>
public class MarkersHelper : Enum... |
ArmoryTycoon.lib/DAL/Objects/ManufacturingItem.cs | jcapellman/ArmoryTycoon | 0 | 7062377 | <reponame>jcapellman/ArmoryTycoon<gh_stars>0
namespace ArmoryTycoon.lib.DAL.Objects
{
public class ManufacturingItem
{
private const int Multiplier_Quality = 2;
private const int Multiplier_Throughput = 1000;
private const int Multiplier_Cost = 25000;
private const int Initial_L... |
Dropio.Core/Drop.cs | AliSharafi/dropio_api_csharp | 1 | 7062378 | using System;
using System.Collections.Generic;
using System.Text;
using Dropio.Core.Types;
namespace Dropio.Core
{
public class Drop
{
#region Properties
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string Name {... |
Identity/CustomPolicy/AllowUserPolicy.cs | bunda3d/TestFeatureFlags | 0 | 7062379 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
namespace TestFeatureFlags.Identity.CustomPolicy
{
public class AllowUserPolicy : IAuthorizationRequirement
{
public string[] AllowUsers { get; set; }
public A... |
IronAHK/Program.cs | polyethene/IronAHK | 145 | 7062380 | using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
using IronAHK.Scripting;
[assembly: CLSCompliant(true)]
[assembly: InternalsVisibleTo("Setup, PublicKey=00240000048000009400000006020000002... |
src/_DomainDriven/Framework.DomainDriven.Core/DTO/MappingService/IgnoreCollectionMappingService.cs | Luxoft/BSSFramework | 18 | 7062381 | using System;
using System.Collections.Generic;
namespace Framework.DomainDriven
{
public class IgnoreCollectionMappingService<TSource, TTarget> : ICollectionMappingService<TSource, TTarget>
{
private IgnoreCollectionMappingService()
{
}
public void Map(IEnumerabl... |
APNS/Models/ApnsResponse.cs | UrbanCarrot/UrbanCarrot.APNS | 1 | 7062382 | <filename>APNS/Models/ApnsResponse.cs
using System.Text.Json.Serialization;
namespace APNS.Models
{
public class ApnsResponse
{
public ApnsResponseReason Reason { get; }
public string ReasonString { get; }
public bool IsSuccessful { get; }
[JsonConstructor]
private Apn... |
src/cloudscribe.Core.Web/Components/GeoDataManager.cs | HananeMoshe/cloudscribe-master | 0 | 7062383 | // Copyright (c) Source Tree Solutions, LLC. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Author: <NAME>
// Created: 2015-07-22
// Last Modified: 2016-02-03
//
using cloudscribe.Core.Models.Geography;
using Microsoft... |
Assets/Scripts/DialogueSystem/Scripts/NodeData/BaseNodeData.cs | Darkn35/2DRPG_Game | 7 | 7062385 | <gh_stars>1-10
using System;
using UnityEngine;
namespace lastmilegames.DialogueSystem.NodeData
{
/// <summary>
/// Base class for serializable node data. Represents the data all nodes should track.
/// </summary>
[Serializable]
public class BaseNodeData
{
public string guid;
p... |
src/Tests/ModulesTests/CartesianViewerModule.Tests/Services/AxisServiceTests.cs | MohsenM01/CartesianViewer | 0 | 7062386 | <filename>src/Tests/ModulesTests/CartesianViewerModule.Tests/Services/AxisServiceTests.cs<gh_stars>0
using System.Windows;
using System.Windows.Media;
using System.Windows.Shapes;
using CartesianViewerModule.Services;
using CartesianViewerModule.Shapes;
using FluentAssertions;
using Xunit;
namespace CartesianViewerMod... |
contacts-app-server/contacts-app-server/Data/DbInitializer.cs | Hanninenjp/contacts-app | 0 | 7062387 | <filename>contacts-app-server/contacts-app-server/Data/DbInitializer.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using contacts_app_server.Models;
namespace contacts_app_server.Data
{
public static class DbInitializer
{
public static void Initial... |
src/Chronos.Net/ChronosServiceCollectionExtensions.cs | vfabing/Chronos.Net | 11 | 7062388 | using Chronos.Abstractions;
using System;
using Microsoft.Extensions.DependencyInjection;
namespace Chronos
{
public static class ChronosServiceCollectionExtensions
{
public static IServiceCollection AddDateTimeProvider(this IServiceCollection services)
{
if (services == null) thro... |
Client/Studio/SLStudio.Core/Extensions/TaskExtensions.cs | adnan-54/SLStudio | 3 | 7062389 | using System;
using System.Threading.Tasks;
namespace SLStudio.Core
{
public static class TaskExtensions
{
public static async void FireAndForget(this Task task, IErrorHandler errorHandler = null)
{
try
{
await task;
}
catch (Exce... |
src/EditorFeatures/CSharpTest/Diagnostics/AbstractCSharpDiagnosticProviderBasedUserDiagnosticTest.cs | missymessa/roslyn | 1 | 7062390 | // 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 Microsoft.CodeAnalysis.CodeStyle;
using Microsoft.CodeAnalysis.CSharp.CodeS... |
CCMS.Server/Services/DbServices/CaseTypesService/ICaseTypesService.cs | aditya119/CCMS | 0 | 7062391 | <filename>CCMS.Server/Services/DbServices/CaseTypesService/ICaseTypesService.cs<gh_stars>0
using CCMS.Shared.Models.CaseTypeModels;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace CCMS.Server.Services.DbServices
{
public interface ICaseTypesService
{
Task<int> CreateAsync(New... |
source/Clipify.Application/Profile/Requests/GetProfile/IUserProfileClient.cs | Mikyan0207/clipify-cloud | 1 | 7062392 | using System.Threading;
using System.Threading.Tasks;
namespace Clipify.Application.Profile.Requests.GetProfile
{
using Models;
public interface IUserProfileClient
{
Task<ProfileResponse> GetUserProfileAsync(string token,
CancellationToken cancellationToken = new CancellationToken());... |
src/DatenMeister.WPF/Modules/Actions/ActionSetInteractionHandler.cs | mbrenn/datenmeister-new | 1 | 7062393 | using System;
using System.Collections.Generic;
using System.Windows.Forms;
using BurnSystems.Logging;
using DatenMeister.Actions;
using DatenMeister.Core.EMOF.Interface.Reflection;
using DatenMeister.Core.Models;
using DatenMeister.Integration.DotNet;
using DatenMeister.WPF.Modules.UserInteractions;
namespace DatenM... |
Readers/Classic.cs | sk84uhlivin/RetroSpy | 0 | 7062394 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RetroSpy.Readers
{
static public class Classic
{
const int PACKET_SIZE = 7;
static readonly string[] BUTTONS = {
"up", "down", "left", "right", "1", "2", "... |
SDK.Gen.ServiceAsync/Generated/Ruyi/SDK/PublisherSubscriber/UserShellEventType.cs | jake-ruyi/sdk | 1 | 7062395 | /**
* Autogenerated by Thrift Compiler (0.12.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
namespace Ruyi.SDK.PublisherSubscriber
{
/// <summary>
/// @UserShellEventType_desc
/// </summary>
public enum UserShellEventType
{
Login = 0,
Logout = 1,
}
}
|
SSLGhost/Controllers/GatewayController.cs | primaryobjects/SSL-Ghost | 1 | 7062397 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
using SSLGhost.Attributes;
using SSLGhost.Types;
namespace SSLGhost.Controllers
{
public class GatewayController : BaseController
{
[RequireHttpsByConfig, ... |
ChameleonForms.AcceptanceTests/Helpers/Pages/Fields/BinaryInputField.cs | MRCollective/ChameleonForms | 231 | 7062398 | <filename>ChameleonForms.AcceptanceTests/Helpers/Pages/Fields/BinaryInputField.cs
using System;
using System.Linq;
using AngleSharp.Html.Dom;
namespace ChameleonForms.AcceptanceTests.Helpers.Pages.Fields
{
internal class BinaryInputField : IField
{
private readonly IHtmlInputElement _element;
... |
RebusEventBus/App1/App1TextReceivedEventHandler.cs | abennet1314/abp-samples | 807 | 7062399 | <filename>RebusEventBus/App1/App1TextReceivedEventHandler.cs
using System;
using System.Threading.Tasks;
using SharedModule;
using Volo.Abp.DependencyInjection;
using Volo.Abp.EventBus.Distributed;
namespace App1
{
/// <summary>
/// Used to know when App2 has received a message sent by App1.
/// </summary... |
src/SpriteAnimatorNpc.cs | cegonse/spookie-boogie | 1 | 7062400 | <gh_stars>1-10
using UnityEngine;
using System.Collections.Generic;
public class SpriteAnimatorNpc : MonoBehaviour
{
public float _animationTimer = 0f;
public int _animationIndex = 0;
public Sprite[] _walkUpFrames;
public Sprite[] _walkDownFrames;
public Sprite[] _walkSideFrames;
private Game _game;
publi... |
TerkaFont Builder.Tests.Unit/TagTests.cs | miloush/Terka.TinyFonts | 1 | 7062401 | namespace Terka.FontBuilder
{
using System;
using NUnit.Framework;
// ReSharper disable InconsistentNaming
// ReSharper disable EqualExpressionComparison
// ReSharper disable ObjectCreationAsStatement
#pragma warning disable 252,253 // Possible reference comparison
// ReSharper disable Re... |
SilupostWebApp/SilupostWeb.Web/Models/SignalRHub.cs | erwin-io/Silupost | 0 | 7062402 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.AspNet.SignalR;
using Microsoft.AspNet.SignalR.Hubs;
namespace SilupostWeb.Web.Models
{
[HubName("SignalRHubWeb")]
public class SignalRHubWeb : Hub
{
[HubMethodName("NotifyClients")]
publi... |
Models/Objects/CreateFolder.cs | Paklausk/FileSystemCopy | 0 | 7062403 | using System;
using Pri.LongPath;
namespace FileSystemCopy.Objects
{
public class CreateFolder : ICreate
{
string _path;
string _folderPath;
public CreateFolder(string path, string folderPath)
{
if (string.IsNullOrEmpty(path))
throw new System.IO.IOE... |
log4uni/log4net/Unity/Config/AppDataPathConfigurator.cs | Toxic2k/log4uni | 17 | 7062404 | <gh_stars>10-100
using UnityEngine;
namespace log4net.Unity.Config
{
[ExcludeFromSearch]
internal class AppDataPathConfigurator: PathConfigurator
{
public static readonly AppDataPathConfigurator Instance = new AppDataPathConfigurator();
public override int Order => int.MaxValue - 2... |
src/server/ShiftRegister.cs | Vandesm14/Potato-Chips | 1 | 7062405 | using LogicAPI.Server.Components;
using LogicLog;
using System;
namespace potatochips {
public class ShiftRegister : LogicComponent {
private bool _clk {
get {
return base.Inputs[0].On;
}
}
private bool _data {
get {
return base.Inputs[1].On;
}
}
private ... |
ScadaComm/OpenKPs/KpOpcUa/OpcUa/OpcUaHelper.cs | kumajaya/scada | 555 | 7062406 | /*
* Copyright 2019 <NAME>
* All rights reserved
*
* Product : Rapid SCADA
* Module : KpOpcUa
* Summary : Helper methods to work using OPC UA
*
* Author : <NAME>
* Created : 2019
* Modified : 2019
*/
using Opc.Ua;
using Opc.Ua.Client;
using Opc.Ua.Configuration;
using Scada.Comm.Devices.OpcUa.Conf... |
src/Agent.Listener/SelfUpdater.cs | tvikrantht/vsts-agent | 0 | 7062407 | using Microsoft.TeamFoundation.DistributedTask.WebApi;
using Microsoft.VisualStudio.Services.Agent.Util;
using System;
using System.Diagnostics;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Mi... |
CUFightingEditor/Assets/SuperCUFrameWork/AnimationPlayer/Editor/TabStyles.cs | kazu0928/CUFightingEditor | 0 | 7062408 | //using System.Collections;
//using System.Collections.Generic;
//using UnityEngine;
//using UnityEditor;
//using System.Linq;
//public partial class PlayerAnimationEditor : EditorWindow
//{
// // Style定義
// private static class Styles
// {
// private static GUIContent[] _tabToggles = null;
// public static GUICont... |
Atlas_APP/Atlas_FRONT/Atlas-frontend/Models/FraisModel.cs | touir1/Atlas | 0 | 7062409 | using Microsoft.AspNetCore.Http;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace Atlas_frontend.Models
{
public class FraisModel
{
[JsonProperty("id")]
public long? Id... |
Lotech.Data/Configurations/DatabaseConfiguration.cs | cnsicau/Lotech.Data | 1 | 7062410 | using System;
namespace Lotech.Data.Configurations
{
/// <summary>
/// 配置
/// </summary>
public class DatabaseConfiguration
{
/// <summary>
///
/// </summary>
public DatabaseConfiguration() { }
/// <summary>
/// 连接串设置
/// </summary>
... |
SolidCP/Sources/ACMESharp/ACMESharp/ACMESharp.Providers.CloudFlare/CloudFlareChallengeHandlerProvider.cs | NAGeorge/SolidCP-fork | 2 | 7062411 | <reponame>NAGeorge/SolidCP-fork<filename>SolidCP/Sources/ACMESharp/ACMESharp/ACMESharp.Providers.CloudFlare/CloudFlareChallengeHandlerProvider.cs
using ACMESharp.ACME;
using ACMESharp.Ext;
using System.Collections.Generic;
using System.Linq;
namespace ACMESharp.Providers.CloudFlare
{
[ChallengeHandlerProvider(
... |
TypingRealm.Data.Api/Controllers/StatisticsController.cs | ewancoder/typingrealm | 1 | 7062412 | using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using TypingRealm.Data.Resources.Typing;
using TypingRealm.Typing;
namespace TypingRealm.Data.Api.Controllers
{
[AllowAnonymous]
[Route("api/[controller]")]
public sealed class StatisticsC... |
OtherComponents/MDWSvistalayer/MDWS Source/mdo/mdo/src/mdo/domain/PatientCareTeamMember.cs | frankfont/RAPTOR_FORK | 7 | 7062413 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace gov.va.medora.mdo
{
public class PatientCareTeamMember
{
private string teamName;
private string teamStartDate;
private string teamEndDate;
private string currentProviderFlag;
... |
src/Coypu.Drivers.Watin/Constraints.cs | drauch/coypu | 1 | 7062414 | using System;
using System.Collections.Generic;
using System.Linq;
using WatiN.Core;
using WatiN.Core.Comparers;
using WatiN.Core.Constraints;
namespace Coypu.Drivers.Watin
{
internal static class Constraints
{
public static Constraint IsVisible(bool considerInvisibleElements)
{
... |
CefGlue/Handler/CefSchemeHandlerFactory.Impl.cs | yasoonOfficial/cefglue | 1 | 7062415 | namespace CefGlue
{
using System;
using CefGlue.Interop;
unsafe partial class CefSchemeHandlerFactory
{
/// <summary>
/// Return a new scheme handler instance to handle the request. |browser| will
/// be the browser window that initiated the request. If the request was
/... |
SETUNA/Main/SetunaListBox.cs | youyouzh/SETUNA2 | 2 | 7062416 | <reponame>youyouzh/SETUNA2<gh_stars>1-10
namespace SETUNA.Main
{
using System;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
internal class SetunaListBox :... |
BiomorphNetcore/Biomorph.cs | padillah/WatchmakerNetCore | 0 | 7062417 | using System;
namespace BiomorphNetcore
{
public class Biomorph
{
private int[] genes;
private int[][]? phenotype;
public Biomorph(int[] Genes)
{
genes = new int[Genes.Length];
Genes.CopyTo(genes, 0);
}
public int[] GetGenotype()
... |
Models/Events/EventIdAttribute.cs | Z0rdak/RepetierSharp | 4 | 7062419 | using System;
using System.Collections.Generic;
namespace RepetierSharp.Models.Events
{
internal class EventIdAttribute : Attribute
{
public List<string> EventNames { get; } = new List<string>();
public EventIdAttribute(string eventName)
{
EventNames.Add(eventName);
... |
OwinSecurityEssentialProviders/Windows/WindowsAuthenticationHandler.cs | Iveonik/OwinSecurityEssentialProviders | 0 | 7062420 | using System;
using System.Security.Claims;
using System.Security.Principal;
using System.Threading.Tasks;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.Infrastructure;
namespace OwinSecurityEssentialProviders.Windows
{
public class WindowsAuthenticationHandler : AuthenticationHandler<WindowsAuthen... |
addons/plugins/Files/IFilesPlugin.cs | McRain/ulib | 3 | 7062421 | namespace ULIB
{
public delegate object PluginFileLoader(string fileName);
public delegate bool PluginFileSaver(string fileName,object data);
public interface IFilesPlugin:IUlibPlugin
{
string FileType { get; }
object Load(string fileName);
bool Save(string fileName, object v... |
TransactionReportFile/Parsers/OnlineDebitTransactionParser.cs | gbarizon/GatewayApiClient | 0 | 7062422 | <gh_stars>0
using System;
using System.Globalization;
using System.IO;
using GatewayApiClient.TransactionReportFile.Report;
namespace GatewayApiClient.TransactionReportFile.Parsers {
internal class OnlineDebitTransactionParser : IReportItemParser {
private OnlineDebitTransactionParser() { }
pri... |
OSCAmmc/Installer/InitialisationWizard.cs | hugocurran/OSCA2 | 0 | 7062423 | /*
* Copyright 2011 <NAME> (<EMAIL>). 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, this list of conditions a... |
src/LineBot/RichMenu/IRichMenuBounds.cs | Ben67366/line-bot-sdk-dotnet | 0 | 7062424 | <reponame>Ben67366/line-bot-sdk-dotnet
// Copyright 2017-2018 <NAME> (https://github.com/dlemstra/line-bot-sdk-dotnet)
//
// <NAME> licenses this file to you 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 Licens... |
source/uwp/UWPTestLibrary/BindableBase.cs | sivasakthiv/AdaptiveCards | 743 | 7062425 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace UWPTestLibrary
{
public abstract class BindableBase : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyC... |
src/Application/Models/Queries/GetModels/GetModelsQueryValidator.cs | pkanev/CarsManager | 1 | 7062426 | using FluentValidation;
namespace CarsManager.Application.Models.Queries.GetModels
{
public class GetModelsQueryValidator : AbstractValidator<GetModelsQuery>
{
public GetModelsQueryValidator()
{
RuleFor(q => q.VehicleType)
.IsInEnum();
}
}
}
|
Assets/sugi.cc/Scripts/Extension/Extensions.cs | sugi-cho/RealSenseVisualize | 16 | 7062427 | <reponame>sugi-cho/RealSenseVisualize<gh_stars>10-100
using UnityEngine;
using System.Collections;
namespace sugi.cc
{
public static class Extensions
{
#region MaterialPropertyBlock mpBlock
static MaterialPropertyBlock mpBlock
{
get
{
if (_mpBlo... |
src/BookStoreEF/Data/EF/BookStoreContext.cs | cschwendtner/graphql-basta-2019 | 0 | 7062428 | using BookStore.Data.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
namespace BookStore.Data.EF
{
public class BookStoreContext : DbContext
{
public BookStoreContext(DbContextOptions<BookStoreContext> options) : base(options)
{... |
Chapter06/Dashboard.Shared/Views/HourlySales.cs | PacktPublishing/Creating-cross-platform-applications-with-Uno | 9 | 7062429 | namespace Dashboard.Views
{
public class HourlySales
{
public HourlySales(string hour, double totalSales)
{
Hour = hour;
TotalSales = totalSales;
}
public string Hour { get; set; }
public double TotalSales { get; set; }
}
}
|
CSharp Advanced/Stacks and Queues/07. Balanced Parenthesis/Program.cs | vlganev/CSharp-Fundamentals | 0 | 7062430 | /*
Given a sequence consisting of parentheses, determine whether the expression is balanced.
A sequence of parentheses is balanced if every open parenthesis can be paired uniquely with
a closed parenthesis that occurs after the former. Also, the interval between them must be balanced.
You will be given three types ... |
src/Trulioo.SDK/Model/NormalizedDatasourceGroupCountry.cs | Trulioo/sdk-csharp-netcore | 0 | 7062431 | /*
* Trulioo C# .NET Core SDK
*
* Package version: 4.0.0
* Trulioo OpenAPI version: v1
* Generated by OpenAPI Generator version: 5.0.1
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Seria... |
NorthLion.Zero.Application/Languages/Dto/LanguageTextEditView.cs | TacoDevs/NorthLionAbpZero | 2 | 7062432 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NorthLion.Zero.Languages.Dto
{
public class LanguageTextEditView
{
public List<string> Source { get; set; }
public string LanguageName { get; set; }
public stri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.