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 |
|---|---|---|---|---|
Core/src/DotJson.Core/LiteJsonBuilder.cs | realharry/dotjson-core | 0 | 7043819 | using System.IO;
using System.Threading.Tasks;
namespace DotJson.Core
{
public interface LiteJsonBuilder
{
Task<string> BuildAsync(object jsonObj);
Task BuildAsync(TextWriter writer, object jsonObj);
// Task BuildAsync(IStorageFile jsonFile, object jsonObj);
}
}
|
MailReporter/Mvc/Attributes/MandrillWebhookAttribute.cs | crossvertise/nightwatchman | 0 | 7043820 | using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Securi... |
src/SvgLib/SvgEllipse.cs | Chykary/svglib | 0 | 7043821 | <gh_stars>0
using System.Xml;
namespace SvgLib
{
public sealed class SvgEllipse : SvgBasicShape
{
private SvgEllipse(XmlElement element)
: base(element)
{
}
internal static SvgEllipse Create(XmlElement parent)
{
var element = parent.OwnerDocument... |
Assets/Scripts/FoodCharacteristics/CanBeSmashed.cs | ChrizzFeller/FryWithMe-VR2 | 0 | 7043822 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CanBeSmashed : FoodCharacteristic {
public GameObject smashable;
public GameObject smashed;
public AudioClip smashSound;
private int smashCount;
GameObject _smashed;
AudioSource source;
bool isHalfS... |
src/TD4/Exercice3/Main.cs | HulinCedric/csharp-course | 0 | 7043823 | <filename>src/TD4/Exercice3/Main.cs
using System;
namespace Exercice3
{
class MainClass
{
public static void Main (string[] args)
{
Simulateur[] simulateur = new Simulateur[4];
simulateur[0] = new SimulateurTauren("Diablon", "15");
simulateur[1] = new SimulateurOrc("Azag", "5");
simulateu... |
Assets/SsitFramework/SsitEngine.Quest/QuestEvent.cs | jojo-WJ/SsitEngine | 2 | 7043824 | <gh_stars>1-10
/*
*┌──────────────────────────────────────────────────────────────┐
*│ 描 述:
*│ 作 者:xuXin
*│ 版 本:1.0.0
*│ 创建时间:2019/4/1 12:17:54
*... |
tests/Sitemap.Tests/TestBase.cs | xshaheen/xdot-sitemap | 2 | 7043825 | <reponame>xshaheen/xdot-sitemap
// Copyright (c) <NAME>, 2021. All rights reserved.
// Licensed under the Apache 2.0 license.
// See the LICENSE.txt file in the project root for full license information.
using System.Xml.Linq;
using FluentAssertions;
using X.Core.Extensions;
namespace Sitemap.Tests {
public class... |
sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/SeriesConfigurationConditionOperator.cs | garyyang2002/azure-sdk-for-net | 1 | 7043826 | <reponame>garyyang2002/azure-sdk-for-net
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
namespace Azure.AI.MetricsAdvisor.Models
{
/// <summary>
/// </summary>
internal readonly partial struct SeriesConfigurationConditionOperator
{
/// <summary>
... |
src/FileSharper/FileSharperCore/Conditions/Binary/BinaryDataSearchCondition.cs | adv12/FileSharper | 10 | 7043827 | <filename>src/FileSharper/FileSharperCore/Conditions/Binary/BinaryDataSearchCondition.cs
// Copyright (c) 2018 <NAME>. Published under the MIT license.
// See license.txt in the FileSharper distribution or repository for the
// full text of the license.
using System;
using System.Collections.Generic;
using System.IO... |
CornerstoneRemoteControlClient/Communications/ServerResponseErrorInfo.cs | LECOSoftware/Remote-Control-Client-Application | 2 | 7043828 | <filename>CornerstoneRemoteControlClient/Communications/ServerResponseErrorInfo.cs
// Copyright © LECO Corporation 2016. All Rights Reserved.
using System.Xml.Linq;
namespace CornerstoneRemoteControlClient.Communications
{
/// <summary>
/// Simple class that holds the status code and description for
///... |
src/Remy.Tests/Unit/Core/Tasks/Plugins/Powershell/PowershellTaskTests.cs | yetanotherchris/Ainsley | 9 | 7043829 | <gh_stars>1-10
using System.Collections.Generic;
using System.IO;
using System.Text;
using NUnit.Framework;
using Remy.Core.Tasks.Plugins.Powershell;
using Remy.Tests.StubsAndMocks.Core.Tasks.Plugins.Powershell;
using Serilog;
using Serilog.Core;
namespace Remy.Tests.Unit.Core.Tasks.Plugins.Powershell
{
[TestFixt... |
src/Team11/TygaSoft/WcfClient/HnztcServiceProxy.cs | qq283335746/Infoztc | 4 | 7043830 | <reponame>qq283335746/Infoztc
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:2.0.50727.8669
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//--------------------------------------------------------------... |
FootnoteUtilities/Extensions/FootnoteListExtensions.cs | alexjhetherington/FootnoteUtilities | 53 | 7043832 | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public static class FootnoteListExtensions
{
public static bool SortByDistanceIfUnordered<T>(this List<T> components, Vector3 point)
where T : Component
{
return components.SortIfUnordered(
... |
com.cathei.svelto.ecs.schema/Row/ReactiveEngine.cs | cathei/Svelto.ECS.Schema | 6 | 7043833 | <gh_stars>1-10
using Svelto.ECS;
using Svelto.ECS.Schema.Internal;
namespace Svelto.ECS.Schema.Internal
{
///<summary>
/// Only reason this class exist is Unity has a bug with interface default implementation
/// https://forum.unity.com/threads/unity-c-8-support.663757/page-9#post-8036273
/// We need t... |
Unit 2/Module 6/InClassU2M6/Views/Chess/Delete.cshtml | westbrookmd/CPT-231-ASPNETCORE | 0 | 7043834 | @*
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
}
@model Chess
<h1>Do you want to delete:</h1>
<h2>@Model.Name @Model.Moves</h2>
<form asp-action="Delete" method="post">
<input type="hidden" asp-for="ChessID" />
<input type="hidden" a... |
SwptSaveEditor/MainWindow.xaml.cs | 247321453/SwptEditor | 5 | 7043835 | <reponame>247321453/SwptEditor<filename>SwptSaveEditor/MainWindow.xaml.cs
// Copyright 2021 <NAME>
//
// 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... |
test/HtmlParserTest.cs | atanasgalchov/AgileDotNetHtml | 0 | 7043836 | using AgileDotNetHtml.Interfaces;
using AgileDotNetHtml.Models;
using AgileDotNetHtml.Models.HtmlElements;
using Moq;
using Moq.Protected;
using System;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
namespace Agile... |
src/ControleEstoque.Infra.Data/Mappings/ProductMap.cs | adrianoaewave/gpm-controle-estoque | 0 | 7043837 | <reponame>adrianoaewave/gpm-controle-estoque<gh_stars>0
using ControleEstoque.Domain.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace ControleEstoque.Infra.Data.Mappings
{
public class ProductMap : IEntityTypeConfiguration<Product>
{
public ... |
TrackDownloader/TrackDownloader/Program.cs | dragobaltov/Programming-Basics-And-Fundamentals | 0 | 7043838 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TrackDownloader
{
class Program
{
static void Main(string[] args)
{
List<string> blacklistedWords = Console.ReadLine().Split(' ').ToList();
... |
yafsrc/YetAnotherForum.NET/Controls/PollChoiceList.ascx.cs | dotnetframeworknewbie/YAFNET | 1 | 7043839 | /* Yet Another Forum.NET
* Copyright (C) 2003-2005 <NAME>
* Copyright (C) 2006-2013 <NAME>
* Copyright (C) 2014-2020 <NAME>
* https://www.yetanotherforum.net/
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with... |
Yuebon.NetCore/Yuebon.Commons/Reflection/IAssemblyFinder.cs | JonasChan2020/DataProcess | 2 | 7043840 | using System.Reflection;
using Yuebon.Commons.Dependency;
using Yuebon.Commons.Finders;
namespace Yuebon.Commons.Reflection
{
/// <summary>
/// 定义程序集查找器
/// </summary>
[IgnoreDependency]
public interface IAssemblyFinder : IFinder<Assembly>
{ }
} |
Assets/Scripts/BuildObject.cs | Phobez/lot-editor | 0 | 7043842 | using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// Base class for placeable objects.
/// </summary>
public class BuildObject : MonoBehaviour
{
[SerializeField]
private int objId = 0;
[SerializeField]
private bool multipleRenderers = false;
public bool IsHighlighte... |
tests/Test.It.While.Hosting.Your.Web.Application.Tests/WebApiTestWebApplicationBuilder.cs | IlyaFinkelshteyn/Test.It.While.Hosting.Your.Web.Application | 0 | 7043843 | using Test.It.Specifications;
using Test.It.Starters;
using Test.It.While.Hosting.Your.Web.Application.ApplicationBuilders;
using Test.It.While.Hosting.Your.Web.Application.HostStarters;
using WebApi.Test.Application;
namespace Test.It.While.Hosting.Your.Web.Application.Tests
{
public class WebApiTestWebApplicati... |
Starflight/Assets/3rd Party/More PostProcessing Effects/Editor/MorePPEffects/LowResolutionEditor.cs | Blakeley00/starflight | 51 | 7043844 | <gh_stars>10-100
/*
* Author : <NAME>
* Namespace : MorePPEffects
* Project : More Post-Processing Effects Package
*
* If you have any suggestion or comment, you can write me at webmaster[at]hardgames3d.com
*
* File : LowResolutionEditor.cs
*
* */
using UnityEngine;
using System.Collections;
using UnityEd... |
test/MSIdentityScaffolding/Microsoft.DotNet.MSIdentity.UnitTests.Tests/MicrosoftIdentityPlatformApplicationManagerTests.cs | sayedihashimi/Scaffolding | 187 | 7043845 | using Microsoft.DotNet.MSIdentity.MicrosoftIdentityPlatformApplication;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace Microsoft.DotNet.MSIdentity.UnitTests.Tests
{
public class MicrosoftIdentityPlatformApplicationManagerTe... |
unity/Assets/Microsoft.MR.WebRTC.Unity/Scripts/Media/RenderTextureVideoStreamSource.cs | tonyambrus/mixedreality-screenshare | 1 | 7043846 | <gh_stars>1-10
// #define AVERAGE_CHROMA
using System.Collections;
using System.Collections.Generic;
using System;
using System.Threading.Tasks;
using UnityEngine;
using Unity.Collections.LowLevel.Unsafe;
using UnityEngine.Rendering;
using Unity.Collections;
using Microsoft.MixedReality.WebRTC;
namespace WebRTC
{
... |
SwfLib/Gradients/SpreadMode.cs | ZingBallyhoo/SwfLib | 17 | 7043847 | <filename>SwfLib/Gradients/SpreadMode.cs
namespace SwfLib.Gradients {
public enum SpreadMode : byte {
Pad = 0x00,
Reflect = 0x01,
Repeat = 0x02,
Reserved3 = 0x03
}
}
|
Brew/Brew/ViewModels/Recipes/RecipeViewModel.cs | nsipid/Brew | 2 | 7043848 | <reponame>nsipid/Brew
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Brew.ViewModels.Recipes
{
public class RecipeViewModel : BaseLayoutViewModel
{
[DisplayName("Name")]
public string BeerName { get; set; }
... |
src/jobs/IJob.cs | gitana/cloudcms-csharp-driver | 0 | 7043849 | <gh_stars>0
using System;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
namespace CloudCMS
{
public interface IJob : IDocument
{
string Type { get; }
string State { get; }
Task WaitForCompletion();
Task KillAsync();
}
} |
src/AdventureWorks.Application/DataEngine/HumanResources/EmployeeDepartmentHistory/Queries/GetEmployeeDepartmentHistories/GetEmployeeDepartmentHistoriesListQueryHandler.cs | CodeSwifterGit/adwenture-works | 0 | 7043850 | using MediatR;
using System.Threading;
using System.Threading.Tasks;
using AdventureWorks.Application.DataEngine.DataEngine;
using AdventureWorks.Application.DataEngine.HumanResources.EmployeeDepartmentHistory.Queries.QueryManager;
using Entities = AdventureWorks.Domain.Entities.HumanResources;
namespace AdventureWork... |
AOTools/aodb/Resources/form_item.Designer.cs | ChupUchup/VS-CS-Projects | 0 | 7043851 | <filename>AOTools/aodb/Resources/form_item.Designer.cs
namespace aodb
{
partial class form_item
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources be... |
src/AoC_2020/Day_11.cs | eduherminio/AoC2020 | 2 | 7043853 | <filename>src/AoC_2020/Day_11.cs
using AoCHelper;
using SheepTools.Extensions;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace AoC_2020
{
public class Day_11 : BaseDay
{
public override string Solve_1()
{
var system = new SeatingSystem(... |
samples/ResxFileSample/Models/ResouresEditModel.cs | xakepbean/ResxLocalization | 0 | 7043854 | <reponame>xakepbean/ResxLocalization<gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ResxFileSample.Models
{
public class ResouresEditModel
{
public string ResourceName { get; set; }
public string DefaultValue { get; set; }... |
Assets/Scripts/Weapons/Weapon.cs | tadadosii/2DTopDownIsometricShooterStudy | 85 | 7043855 | using UnityEngine;
/// <summary>
/// Base class that has public methods for actions and a SwitchUseRate method to switch between a given
/// float called UseRate which is used to control how often the actions can be called.
/// </summary>
public class Weapon : MonoBehaviour
{
// --------------------------------... |
src/Eto/Drawing/FontTypeface.cs | ManuelHu/Eto | 3,222 | 7043856 | <gh_stars>1000+
using Eto.Forms;
using System.Collections.Generic;
namespace Eto.Drawing
{
/// <summary>
/// A font type that specifies the characteristics of a <see cref="FontFamily"/> variation
/// </summary>
/// <remarks>
/// Each FontFamily can have different variations, such as Bold, Italic, Bold and Italic... |
BankLedger/Views/Shared/_Layout.cshtml | atrotter0/bank-ledger | 0 | 7043857 | <filename>BankLedger/Views/Shared/_Layout.cshtml<gh_stars>0
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>iBank</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.png">
<link rel="stylesheet" hr... |
UniDecoder/BasicInfo.cs | hdkesting/UniDecoder | 2 | 7043858 | using System;
using System.Unicode;
namespace UniDecoder
{
/// <summary>
/// Basic information about a unicode codepoint, for display in the grid.
/// </summary>
public class BasicInfo
{
/// <summary>
/// Initializes a new instance of the <see cref="BasicInfo"/> class.
/// ... |
Frameworks/Framework.Services/LinqToCsvHelper.cs | ntierontime/Log4Net | 3 | 7043859 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using LINQtoCSV;
namespace Framework.Services
{
/// <summary>
/// http://www.codeproject.com/Articles/25133/LINQ-to-CSV-library
/// </summary>
public static class LinqToCsvHelper
{
public ... |
BotAndCognitive/DialogBotSample/Dialogs/RootDialog.cs | okyuanzhui/bb | 479 | 7043860 | <filename>BotAndCognitive/DialogBotSample/Dialogs/RootDialog.cs
using Microsoft.Bot.Builder.Dialogs;
using Microsoft.Bot.Connector;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace DialogBotSample.Dialogs
{
[Serializable]
public class RootDialog :... |
Assets/Scripts/Gameplay/Creature/CreatureClass.cs | pyzor/Helluva-Luck | 0 | 7043861 | using System;
using UnityEngine;
public class CreatureClass : MonoBehaviour {
public enum CreatureClassType {
Hellhound,
Imp
}
public enum CreatureSubClassType {
Melee
}
[SerializeField] private CreatureClassType _classType;
public CreatureClassType ClassType {
... |
Rotator1.cs | ethanalong/Final-commit | 1 | 7043862 | <gh_stars>1-10
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Rotator : MonoBehaviour
{
[SerializeField] private Vector3 _rotation;
[SerializeField] private float _speed;
// Update is called once per frame
public void Update()
{
if (Input.GetBut... |
netcore2.2/ServiceStack/ServiceModel/MemoryRepository.cs | dngroth/ServiceStackTemplates | 0 | 7043863 | using System.Collections.Generic;
using System.Linq;
namespace ServiceStack.ServiceModel
{
public class MemoryRepository<T> : IRepository<T>
{
private readonly Dictionary<int, T> _data = new Dictionary<int, T>();
public IReadOnlyList<T> GetAll() => _data.Values.ToList().AsReadOnly();
... |
Assets/MoralisWeb3ApiSdk/Moralis/Moralis.WebGL/Moralis.SolanaApi/Client/SolanaApiClient.cs | NightwishEpica/ethereum-unity-boilerplate | 252 | 7043864 | using Moralis.WebGL.SolanaApi.Interfaces;
namespace Moralis.WebGL.SolanaApi.Client
{
/// <summary>
/// Provides a wrapper class around the Moralis Web3Api REST service.
/// Automagically initializes client to use standard server or
/// personal server Cloud Function API based on use of Api Key.
/... |
Server/Hubs/ISurveyHub.cs | Urgen-Dorjee/BlazorSurveys | 0 | 7043865 | <filename>Server/Hubs/ISurveyHub.cs
using BlazorSurveys.Shared;
using System.Threading.Tasks;
namespace BlazorSurveys.Server.Hubs
{
public interface ISurveyHub
{
Task SurveyAdded(SurveySummary survey);
Task SurveyUpdated(Survey survey);
}
}
|
src/Web/Langueedu.Web/Langueedu.Web.Components/Models/GameModeModel.cs | alialdemir/langueedu | 0 | 7043866 | <gh_stars>0
namespace Langueedu.Web.Components.Models;
public class GameModeModel
{
public short EntryFee { get; set; }
public short Prize { get; set; }
public string Image { get; set; }
public string Title { get; set; }
public string Description { get; set; }
public byte ProgressBar { get; set... |
PathFinder.cs | Doidel/UnityCiv | 3 | 7043867 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Linq;
public static class PathFinder
{
//distance f-ion should return distance between two adjacent nodes
//estimate should return distance between any node and destination node
public static Path<Node> FindPath<Node>(
Nod... |
Assets/DaydreamElements/Elements/SwipeMenu/Demo/Scripts/BalloonSpawner.cs | pickettd/VR-Zombie-Runner | 152 | 7043868 | <filename>Assets/DaydreamElements/Elements/SwipeMenu/Demo/Scripts/BalloonSpawner.cs<gh_stars>100-1000
// Copyright 2017 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of t... |
GlutenFree.OddJob.Execution.ThreadPool/Class1.cs | to11mtm/OddJob | 13 | 7043869 | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading;
using GlutenFree.OddJob.Interfaces;
namespace GlutenFree.OddJob.Execution.ThreadPool
{
public class ThreadPoolQueueFiller
{
private readonly IJobQueueManager _queueManager;
private rea... |
RsaKeyConverter.cs | aakashsethi20/XML-PEM-Converter | 0 | 7043870 | using System.Security.Cryptography;
using System.Text;
using Org.BouncyCastle.Asn1.Pkcs;
using Org.BouncyCastle.Asn1.X509;
using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.OpenSsl;
using Org.BouncyCastle.Pkcs;
using Org.BouncyCastle.Security;
using Org.BouncyCastle.X509;... |
AdventOfCode.2021/Days/Day07.cs | ScottHolden/AdventOfCode | 0 | 7043871 | namespace AdventOfCode;
//[PuzzleInput("Day07.txt")]
//[PuzzleInput("Day07-Sample.txt")]
public class Day07 : IDay
{
public long Part1(string input) => -1;
public long Part2(string input) => -1;
} |
src/ChatLib/SecureMe.cs | marcocappolimases/DDMChat | 0 | 7043872 | <reponame>marcocappolimases/DDMChat
/*
* MIT License
*
* Copyright(c) 2021 S4I s.r.l. (a MASES Group company)
* www.s4i.it www.masesgroup.com
*
* 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 Softw... |
UnityEngine/MaterialExtension.cs | DustMi/UmaInGodot-Poc | 1 | 7043873 | <filename>UnityEngine/MaterialExtension.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Godot;
namespace UnityEngine
{
public static class MaterialExtension
{
public static void SetColor(this Material mat, string name, Color ... |
LambdaParser/Zhucai.LambdaParser/ObjectDynamicExtension.cs | toreaurstadboss/LambdaParser | 0 | 7043874 | <reponame>toreaurstadboss/LambdaParser<filename>LambdaParser/Zhucai.LambdaParser/ObjectDynamicExtension.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ToreAurstadIT.LambdaParser.ObjectDynamicExtension
{
static public class ObjectDynamicExtension
{
... |
src/Templates/VS2017/ItemTemplates/CSharp/Refactoring/Refactoring.cs | MaStr11/roslyn-sdk | 1 | 7043875 | using System;
using System.Composition;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CodeActions;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsof... |
test/Grains/TestInternalGrainInterfaces/IPlacementTestGrain.cs | JohnDebono/orleans | 9,108 | 7043876 | <gh_stars>1000+
namespace UnitTests.GrainInterfaces
{
using System.Threading.Tasks;
using Orleans;
using Orleans.Runtime;
internal interface IDefaultPlacementGrain : IGrainWithIntegerKey
{
Task<PlacementStrategy> GetDefaultPlacement();
}
}
|
Aliq/Bags/Product.cs | sergey-shandar/aliq-dotnet | 1 | 7043877 | <reponame>sergey-shandar/aliq-dotnet
using System;
using System.Collections.Generic;
namespace Aliq.Bags
{
public sealed class Product<T, A, B> : Bag<T>
{
public Bag<A> InputA { get; }
public Bag<B> InputB { get; }
public Func<A, B, IEnumerable<T>> Func { get; }
public Produ... |
src/Extensions/HumankindEmpireExtensions.cs | Theadd/Modding.Humankind.DevTools | 0 | 7043879 | <filename>src/Extensions/HumankindEmpireExtensions.cs
using System;
using System.Collections.Generic;
using System.Linq;
using Amplitude.Mercury.Interop.AI.Entities;
using Modding.Humankind.DevTools.Core;
namespace Modding.Humankind.DevTools
{
public static class HumankindEmpireExtensions
{
/// <summ... |
Src/Newtonsoft.Json.Glimpse/Tab/ListOfJsonModelConverter.cs | JamesNK/Newtonsoft.Json.Glimpse | 5 | 7043880 | <filename>Src/Newtonsoft.Json.Glimpse/Tab/ListOfJsonModelConverter.cs<gh_stars>1-10
#region License
// Copyright (c) 2013 <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... |
controls/LoginRegisterDialog.cs | moscrif/ide | 0 | 7043881 | using System;
using System.Net;
using System.Text;
using System.IO;
using System.Text.RegularExpressions;
using System.Collections.Specialized;
using MessageDialogs = Moscrif.IDE.Controls.MessageDialog;
using Moscrif.IDE.Iface.Entities;
using Moscrif.IDE.Option;
using Moscrif.IDE.Iface;
using Moscrif.IDE.Components;
us... |
GankCompanionDataReader/GankCompanionDataReader/exception/NoDeviceFoundException.cs | ItsNotMyFault/albion-data-reader | 0 | 7043882 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Text;
namespace GankCompanionDataReader.exception
{
public class NoDeviceFoundException : Exception
{
private static readonly string message = "No devices have been found";
public NoDeviceFoundException() : base(message)
... |
WebAPICore/WebApi/Controllers/RequestsController.cs | behluluysal/fibu-app-demo | 0 | 7043883 | using AutoMapper;
using AutoWrapper.Wrappers;
using Core.AutoMapperDtos;
using Core.Models;
using Core.Models.Chats;
using Core.Pagination;
using Core.Utility;
using DataStore.EF.Data;
using FluentValidation.Results;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFramew... |
Ay/ay/SDK/CONTROLLIB/Large/PropertyGrid/PropertiesSourceContainerHelper.cs | ay2015/AYUI8 | 0 | 7043884 | using System;
using System.Collections;
using Xceed.Wpf.Toolkit.Core;
namespace Xceed.Wpf.Toolkit.PropertyGrid
{
internal class PropertiesSourceContainerHelper : PropertiesContainerHelperBase
{
private static readonly string ReadOnlyCollectionExceptionMessage = "You cannot modify this collection directly when usin... |
src/FubuMVC.Core/Resources/Media/Xml/XmlAttCentricMediaNode.cs | uluhonolulu/fubumvc | 1 | 7043885 | <filename>src/FubuMVC.Core/Resources/Media/Xml/XmlAttCentricMediaNode.cs
using System.Xml;
namespace FubuMVC.Core.Resources.Media.Xml
{
public class XmlAttCentricMediaNode : XmlMediaNode
{
public XmlAttCentricMediaNode(XmlElement element) : base(element)
{
}
public st... |
backend/Loris.Common.EF/Repositories/RepositoryBase.cs | felipeloris/PlatformBase | 0 | 7043886 | <reponame>felipeloris/PlatformBase
using Loris.Common.Domain.Interfaces;
using Loris.Common.EF.Helpers;
using Loris.Common.Exceptions;
using Microsoft.EntityFrameworkCore;
using System;
namespace Loris.Common.EF.Repository
{
public class RepositoryBase<TEntityId, TContext> : IDisposable
where TEntityId : ... |
Runtime/Tree/BehaviourNode.cs | d14games/gameflow-toolkit | 6 | 7043887 | <filename>Runtime/Tree/BehaviourNode.cs
namespace GameFlow.Tree
{
public abstract class BehaviourNode
{
public abstract BehaviourStatus Tick();
public abstract void Reset();
}
public abstract class ParentNode : BehaviourNode
{
protected BehaviourNode[] children { get; priva... |
android/samples/PushKitDemo/LocalNotificationActivity.cs | HMS-Core/hms-xamarin-bindings | 27 | 7043888 | /*
Copyright 2020-2021. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE... |
Blockexplorer.Core/Stubs/AddressRepositoryStub.cs | odinblockchain/Blockexplorer | 0 | 7043889 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Blockexplorer.Core.Domain;
using Blockexplorer.Core.Repositories;
using Microsoft.Extensions.Logging;
namespace Blockexplorer.Core.Stubs
{
public class AddressRepositoryStub : IAddressRepository
{
readonly ILogger _log... |
Project_02_CustomFont/Droid/AppButtonRenderer.cs | rjcollingham/30DaysOfXamarinForms | 0 | 7043890 | using System;
using Android.Graphics;
using Android.Graphics.Drawables;
using Android.Widget;
using Project_02_CustomFont;
using Project_02_CustomFont.Droid;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
[assembly: ExportRenderer(typeof(AppButton), typeof(AppButtonRenderer))]
namespace Project_02_CustomF... |
Packet/ITransportPacket.cs | highstreeto/DhcpClient | 2 | 7043891 | <reponame>highstreeto/DhcpClient<gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace DhcpClientNET
{
public interface ITransportPacket
{
ProtocolType Type { get; }
byte[] Build();... |
Tests/UnitTests/Editor/Bindings/TestFromIFactory.cs | tsgcpp/UniDi | 47 | 7043892 | using NUnit.Framework;
using Assert = UniDi.Internal.Assert;
namespace UniDi.Tests.Bindings
{
[TestFixture]
public class TestFromIFactory : UniDiUnitTestFixture
{
[Test]
public void Test1()
{
Container.BindFactory<Foo, Foo.Factory>().WithId("foo1")
.FromI... |
Xamarin.IOS.Extension/Component/UIScrollViewExt.cs | rodrigotgn/Xamarin.IOS.Extension | 0 | 7043893 | <reponame>rodrigotgn/Xamarin.IOS.Extension<filename>Xamarin.IOS.Extension/Component/UIScrollViewExt.cs
using System;
using CoreGraphics;
using Foundation;
using UIKit;
namespace Xamarin.IOS.Extension.Component
{
public class UIScrollViewExt : UIScrollView
{
private CGRect FrameWhenKeyBoardIsHidden;
... |
IoC/Issues/ICannotParseTag.cs | DevTeam/IoCContainer | 13 | 7043894 | namespace IoC.Issues
{
/// <summary>
/// Resolves the scenario when cannot parse a tag from a text.
/// </summary>
[PublicAPI]
public interface ICannotParseTag
{
/// <summary>
/// Resolves the scenario when cannot parse a tag from a text.
/// </summary>
/// <para... |
src/ConsistentHashing/HashRing.cs | jlao/ConsistentHashing | 2 | 7043895 | namespace ConsistentHashing
{
using System;
using System.Collections;
using System.Collections.Generic;
/// <summary>
/// Represents a consistent hash ring.
/// </summary>
/// <typeparam name="TNode">The type of node to store in the ring.</typeparam>
public class HashRing<TNode> : ICon... |
Clients/WebApp/Clients/AutoresClient.cs | RockerInt/BookTest | 0 | 7043896 | using Books.Models;
using WebApp.Config;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Utilities;
using Microsoft.Extensions.Options;
namespace WebApp.Clients
{
public class AutoresClient
{
private readonly UrlsConfig _urls;
public Auto... |
gc2lti_outcomes/Migrations/20171206013355_InitialCreate.cs | andyfmiller/gc2lti-poc | 3 | 7043898 | using Microsoft.EntityFrameworkCore.Migrations;
namespace gc2lti_outcomes.Migrations
{
public partial class InitialCreate : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "GoogleUsers",
... |
template/content/src/PlutoNetCoreTemplate.Application/Permissions/IPermissionAppService.cs | pluto-arch/dotnet-project-template | 2 | 7043899 | namespace PlutoNetCoreTemplate.Application.Permissions
{
using Models.PermissionModels;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
public interface IPermissionAppService
{
/// <summary>
/// 获取权限
/// </summary>... |
Client/Upgrades/Store/UpgradeReducers.cs | Kifkof/DeusVultClicker | 0 | 7043900 | using System.Linq;
using DeusVultClicker.Client.Shared.Store.Actions;
using Fluxor;
namespace DeusVultClicker.Client.Upgrades.Store
{
public static class UpgradeReducers
{
[ReducerMethod]
public static UpgradeState ReduceUnlockUpgradeAction(UpgradeState state, UnlockUpgradeAction action)
... |
ExtenFlow/src/Core/Domain/ExtenFlow.Domain.Abstractions/Aggregates/IEntity.cs | jpiquot/ExtenFlow | 3 | 7043901 | using System.Threading.Tasks;
using ExtenFlow.Messages;
namespace ExtenFlow.Domain.Aggregates
{
/// <summary>
/// Interface IDomainEntity
/// </summary>
public interface IEntity
{
/// <summary>
/// Gets the name of the entity.
/// </summary>
/// <value>The name of t... |
VolunteeringProject/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageSaveTextController.cs | Devin0xFFFFFF/comp4020project | 0 | 7043903 | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
namespace FantomLib
{
/// <summary>
/// Storage Save Text Controller
/// (*)API 19 [Android4.4] or later
///
/// Write a text file with the Storage Access Framework (API 19 [Andr... |
Arrays/Arrays - Exercise/05. Top Integers/Program.cs | Anzzhhela98/CSharp-Fundamentals-Course | 2 | 7043904 | <filename>Arrays/Arrays - Exercise/05. Top Integers/Program.cs<gh_stars>1-10
using System;
using System.Linq;
namespace _05._Top_Integers
{
class Program
{
static void Main(string[] args)
{
int[] arr = Console
.ReadLine()
.Split(... |
src/Timewaster.Web/Controllers/PlansController.cs | zsra/Timewaster | 0 | 7043905 | <filename>src/Timewaster.Web/Controllers/PlansController.cs
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Timewaster.Core.Entities.Boards;
using Timewaster.Core.Interfaces.Services;
using Timewaster.Core.ValueObjects;
using Timewa... |
Trader.Models/AccountTrade.cs | JorgeCandeias/Trader | 13 | 7043906 | <filename>Trader.Models/AccountTrade.cs<gh_stars>10-100
using Orleans.Concurrency;
using System.Diagnostics.CodeAnalysis;
namespace Outcompute.Trader.Models;
[Immutable]
public record AccountTrade(
string Symbol,
long Id,
long OrderId,
long OrderListId,
decimal Price,
decimal Quantity,
de... |
ETWAnalyzer/Extract/CPU/CPUPerProcessMethodList.cs | Siemens-Healthineers/ETWAnalyzer | 18 | 7043907 | //// SPDX-FileCopyrightText: © 2022 Siemens Healthcare GmbH
//// SPDX-License-Identifier: MIT
using ETWAnalyzer.Extractors;
using Microsoft.Windows.EventTracing;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Runtime.Serialization;... |
MVCContenido/Web/Views/Assets/ShowAssets.cshtml | ChristianAzofeifa/Prueba | 0 | 7043908 | @model Infraestructure.Models.Assets
@{
ViewBag.Title = "ShowAssets";
Layout = "~/Views/Shared/_LayoutStudent.cshtml";
Infraestructure.Models.Assets assets = new Infraestructure.Models.Assets();
assets = ViewBag.AssetsStudents;
int id = assets.ID;
}
<!DOCTYPE html>
<html>
<head>
<meta charset... |
SafeMapper.Profiler/SimpleTypeConverter/SimpleTypeConverter.cs | unger/MapEverything | 23 | 7043909 | namespace SafeMapper.Profiler.SimpleTypeConverter
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Threading;
public class SimpleTypeConverter
{
private static Func<object, object> ... |
Source/Microsoft.Teams.Apps.BookAThing/BotCommands.cs | VicniWang/3-microsoft-teams-apps-bookaroom | 0 | 7043911 | <filename>Source/Microsoft.Teams.Apps.BookAThing/BotCommands.cs
// <copyright file="BotCommands.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
namespace Microsoft.Teams.Apps.BookAThing
{
/// <summary>
/// Bot commands.
/// </summary>
p... |
src/Assets/Scripts/CT_PlaceMallow.cs | MyNameIsBoda/Camp-Squirrel-Falls | 0 | 7043912 | <reponame>MyNameIsBoda/Camp-Squirrel-Falls<filename>src/Assets/Scripts/CT_PlaceMallow.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Valve.VR.InteractionSystem;
public class CT_PlaceMallow : MonoBehaviour
{
[System.NonSerialized]
public Hand hand;
public GameObject... |
DAL/Entity/ElixirOfTheMongoose.cs | ylcoca/GildeRose | 0 | 7043913 | <filename>DAL/Entity/ElixirOfTheMongoose.cs<gh_stars>0
using Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DAL.Entity
{
public class ElixirOfTheMongoose : ItemObjects
{
public ElixirOfTheMongoose(Item item)
... |
unity/Assets/Scripts/MeshGenerator.cs | luisparravicini/ypau | 0 | 7043915 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Linq;
using CoastlinesGen;
public class MeshGenerator
{
private MeshFilter meshFilter;
private MeshRenderer meshRenderer;
private Mesh mesh;
private int maxMaterials;
private Heights heightMap;
private ... |
src/DotnetCleanup/Events/Handlers/ApplicationEventsHandler.cs | slang25/DotnetCleanup | 42 | 7043916 | <filename>src/DotnetCleanup/Events/Handlers/ApplicationEventsHandler.cs<gh_stars>10-100
using System;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
namespace DotnetCleanup.Events.Handlers
{
public class ApplicationEventsHandler
: INotificationHandler<ApplicationStart>,
INot... |
src/iovation.LaunchKey.Sdk.ExampleCli/ClientFactories.cs | j7an/launchkey-dotnet | 0 | 7043917 | <reponame>j7an/launchkey-dotnet<gh_stars>0
using System;
using System.IO;
namespace iovation.LaunchKey.Sdk.ExampleCli
{
class ClientFactories
{
private static FactoryFactory MakeFactoryFactory(string apiURL)
{
var factoryFactoryBuilder = new FactoryFactoryBuilder();
if... |
src/Woff.net/Validators/WoffHeaderValidator.cs | manne/Woff.net | 4 | 7043918 | <reponame>manne/Woff.net<filename>src/Woff.net/Validators/WoffHeaderValidator.cs
using WoffDotNet.Types;
namespace WoffDotNet.Validators
{
public static class WoffHeaderValidator
{
private static bool InvalidLengths(uint length, uint origLength)
{
return origLength < length;
... |
src/Class1.cs | mahaisong/Mono.Cecil.FunLogTime | 0 | 7043919 | <gh_stars>0
//using System;
//using System.IO;
//using System.Linq;
//using System.Diagnostics;
////添加Mono.Cecil.dll引用并添加以下代码
//using Mono.Cecil;
//using Mono.Cecil.Cil;
//using Mono.Collections.Generic;
//using System.Reflection;
//using GILogger;
//namespace InjectionStopwatchExecTime
//{
// class Program
// ... |
kernel/STRING_LENGTH_TYPE.cs | shuice/universal-file-parser | 2 | 7043920 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace kernel
{
public enum STRING_LENGTH_TYPE
{
STRING_LENGTH_FIXED,// Fixed-length string
STRING_LENGTH_ZERO_TERMINATED,// Zero-terminated string
STRING_LENGTH_PASC... |
Translators/MappingsProfile.cs | shaisachs/HealthyHabits | 0 | 7043921 | using AutoMapper;
using HealthyHabits.Models;
using HealthyHabits.Dtos;
using HealthyHabits.Validators;
namespace HealthyHabits.Translators
{
public class MappingsProfile : Profile
{
public MappingsProfile()
{
CreateMap<Habit, HabitDto>()
.ReverseMap();
... |
Networking/Simulator.Boiler/ProducerConfigurationFactory.cs | BiancoRoyal/OPC-UA-OOI | 137 | 7043922 | //___________________________________________________________________________________
//
// Copyright (C) 2018, <NAME>.
//
// To be in touch join the community at GITTER: https://gitter.im/mpostol/OPC-UA-OOI
//___________________________________________________________________________________
using CommonServiceLoc... |
src/Nemandi.Core/UserSettings/UserSettingItem.cs | Sheey11/Nemandi | 1 | 7043923 | <reponame>Sheey11/Nemandi
using System;
namespace Nemandi.Core.UserSettings {
public class UserSettingItem : Attribute {
public readonly string _AttributeName;
public string AttributeName { get; set; }
public UserSettingItem(string attributeName) {
this.AttributeName = attribute... |
Live/Extensions.cs | filmackay/livex | 0 | 7043924 | #define NOPARALLEL
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Numerics;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Threading;
namespace Vertigo.Live
{
public partial c... |
src/SCurry.Builders.Tests/MethodDefinitionsBuilderTests.cs | sgaliamov/scurry | 6 | 7043925 | using System;
using System.Collections.Generic;
using System.Linq;
using AutoFixture;
using FluentAssertions;
using SCurry.Builders.Models;
using SCurry.Builders.Shared;
using Xunit;
namespace SCurry.Builders.Tests
{
[Trait("Category", "Helpers")]
public class MethodDefinitionsBuilderTests
{
[Fact... |
src/Humanizer.Tests.Shared/Localisation/pt-BR/TimeToClockNotationTests.cs | neilboyd/Humanizer | 1 | 7043926 | <reponame>neilboyd/Humanizer
#if NET6_0_OR_GREATER
using System;
using Xunit;
using Humanizer.Localisation.TimeToClockNotation;
using Humanizer;
namespace Humanizer.Tests.Localisation.ptBR
{
[UseCulture("pt-BR")]
public class TimeToClockNotationTests
{
[Theory]
[InlineData(00... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.