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 |
|---|---|---|---|---|
docs/guides/commands/samples/post-execution/customresult_extended.cs | Samrux/Discord.Net | 1,762 | 7053726 | <reponame>Samrux/Discord.Net
public class MyCustomResult : RuntimeResult
{
public MyCustomResult(CommandError? error, string reason) : base(error, reason)
{
}
public static MyCustomResult FromError(string reason) =>
new MyCustomResult(CommandError.Unsuccessful, reason);
public static MyCusto... |
Architect.WebApp/Extensions/AuthenticationConfigurationExtensions.cs | Cagmc/architect | 1 | 7053727 | using System;
using Architect.Common.Constants;
using Architect.Database;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Identity;
namespace Microsoft.Extensions.DependencyInjection
{
public static class AuthenticationConfigurationExtensions
{
public ... |
DataStructuresAndAlgorithms/11.GraphsAndGraphAlgorithms/02.Salaries/Program.cs | iliantrifonov/TelerikAcademy | 0 | 7053728 | namespace _02.Salaries
{
using System;
using System.Linq;
/// <summary>
/// downloads.academy.telerik.com/svn/intro-algorithms/2014/11.%20Graphs%20and%20Graph%20Algorithms/Graphs-and-Graph-Algorithms-Homework.rar
/// </summary>
public class Program
{
private static long[] cachedSal... |
Threax.Static/AppConfig.cs | threax/Threax.Static | 1 | 7053729 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Threax.Static
{
public class AppConfig
{
/// <summary>
/// The base path the app lives on. Used for cookie paths and to enforce the url spelling.
/// Can be null to live on the ro... |
Toolkit/Editor/Internal/CollectionDrawers.cs | HelpOrMe/Unity-Toolkit | 0 | 7053730 | <reponame>HelpOrMe/Unity-Toolkit<gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
namespace ToolkitEditor.Internal
{
internal static class CollectionDrawers
{
public static bool Selection(GUIContent label, string[] selectionArray, ref ... |
src/DevExpress.OutlookInspiredApp.Wpf/ViewModels/Employee/EmployeeViewModel.partial.cs | dreamcode0824/netcore-wpf-demos-master | 2 | 7053731 | using System.Linq;
using DevExpress.DevAV.Common.ViewModel;
using DevExpress.Mvvm;
using DevExpress.Mvvm.POCO;
using DevExpress.Mvvm.ViewModel;
using DevExpress.DevAV.DevAVDbDataModel;
namespace DevExpress.DevAV.ViewModels {
partial class EmployeeViewModel {
EmployeeContactsViewModel contacts;
Empl... |
tests/UWPResourcesGallery.AppInteractionTests/Tests/IconsPageTests.cs | shahshyam/UWP-Resources-Gallery | 17 | 7053733 | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
namespace UWPResourcesGallery.AppInteractionTests.Tests
{
[TestClass]
public class IconsPageTests : BasePageTest
{
public override string NavigationName => "Icons";
[TestMethod]
pub... |
PlusPad/PadSettings.cs | dgatto/PlusPad | 7 | 7053734 | <reponame>dgatto/PlusPad<gh_stars>1-10
namespace PlusPad
{
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.Serialization;
using System.Windows.Forms;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
[DataContract]
... |
BlueMountainPalace/Pages/Bookings/MyBooking.cshtml | lylant/BlueMountainPalace | 0 | 7053735 | @page
@model BlueMountainPalace.Pages.Bookings.MyBookingModel
@{
ViewData["Title"] = "Blue Mountain Palace | My Bookings";
Layout = "~/Pages/Shared/_Layout.cshtml";
}
<h1>My Bookings</h1>
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.Book... |
src/Dx29.Data/Data/Mailing/MailBody.cs | foundation29org/Dx29.Web | 0 | 7053736 | <filename>src/Dx29.Data/Data/Mailing/MailBody.cs
using System;
using System.Collections.Generic;
namespace Dx29.Data
{
public class MailBody
{
public string userEmail { get; set; }
public string subject { get; set; }
public string bodyEmail { get; set; }
public string language... |
Assets/Scripts/Manager/LoadSceneManager.cs | city0409/Skiing2.0 | 1 | 7053737 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class LoadSceneManager
{
public static void LoadScene(string name)
{
LoadScene(SceneUtility.GetBuildIndexByScenePath(name));
}
public static void LoadScene(int index)
... |
src/Services/MyVote.Services.MobileServices/Controllers/SasGeneratorController.cs | danielmartind/MyVote | 0 | 7053738 | <filename>src/Services/MyVote.Services.MobileServices/Controllers/SasGeneratorController.cs
using Microsoft.Azure;
using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.Mobile.Service.Security;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Blob;
using System;
using System.Web.Http;
n... |
src/Foundation.Cms/ViewModels/Blocks/CalendarBlockViewModel.cs | qtxasjo/Foundation | 0 | 7053739 | <filename>src/Foundation.Cms/ViewModels/Blocks/CalendarBlockViewModel.cs
using Foundation.Cms.Blocks;
using Foundation.Cms.Pages;
using System.Collections.Generic;
namespace Foundation.Cms.ViewModels.Blocks
{
public class CalendarBlockViewModel
{
public CalendarBlockViewModel(CalendarBlock block) => V... |
src/app/Krafteq.ElsterModel/UnsignedMoney.cs | krafteq/elster-model | 0 | 7053740 | namespace Krafteq.ElsterModel
{
using System;
using Krafteq.ElsterModel.ValidationCore;
using LanguageExt;
/// <summary>
/// Represents valid money value rounded to 0.01
/// Value must be maximum 11 digits before decimal point
/// Cannot be negative
/// </summary>
public class Unsig... |
LinqConsoleApp/Program.cs | fipciu1996/APBD_Linq | 0 | 7053741 | using System;
namespace LinqConsoleApp
{
class Program
{
static void Main(string[] args)
{
var d = new LinqSamples();
d.Przyklad1();
d.Przyklad2();
d.Przyklad3();
d.Przyklad4();
d.Przyklad5();
d.Przyklad6();
... |
src/Model/Message.cs | andrii1812/galcon-server | 0 | 7053742 | namespace GalconServer.Model
{
public class Message
{
public int TickId { get; private set; }
public object Data { get; private set; }
public MessageType MessageType { get; private set; }
public SenderType SenderType { get; private set; }
public int Sender { get; private... |
Code/MainWindow.cs | PereiraHugo/Turtle | 0 | 7053744 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml;
using System.Xml.Linq;
namespace Turtle
{
... |
Assets/Scripts/AI_GOAP/Actions/ForgeToolAction.cs | Chuanyang-SRagdoll/Project-Zero | 0 | 7053746 | <reponame>Chuanyang-SRagdoll/Project-Zero
using System;
using UnityEngine;
public class ForgeToolAction : GoapAction
{
private bool forged = false;
private ForgeComponent targetForge; // where we forge tools
private float startTime = 0;
//public ForgeToolAction () {
// AddPrecondition ("hasOre", 0);
// Add... |
src/AutoCAD/Utils.cs | enesyteam/QuickPlot | 1 | 7053747 | using System;
using System.Drawing;
using QuickPrint.AutoCAD;
using QuickPrint.Model;
using Autodesk.AutoCAD.Interop;
using Autodesk.AutoCAD.Interop.Common;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using QuickPrint.Components;
namespace QuickPrint.AutoCAD
{
internal class Utils
... |
Src/Data/Classbook.Data.Models/Enums/MarkValue.cs | ivan-nikolov/Classbook | 0 | 7053748 | namespace Classbook.Data.Models.Enums
{
public enum MarkValue
{
Week = 2,
Average = 3,
Good = 4,
VeryGood = 5,
Excellent = 6
}
}
|
XmlNode.cs | TopKekHam/SucklessXml | 0 | 7053749 | <reponame>TopKekHam/SucklessXml
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace Suckless.Xml
{
public class XmlNode : IEnumerable<XmlNode>
{
public XmlNode() { }
public XmlNode(string tag)
{
Tag = tag;
}
public Xm... |
src/Contacts.DataAccess/Abstract/IContactRepository.cs | alioktar/Contacts | 0 | 7053750 | <filename>src/Contacts.DataAccess/Abstract/IContactRepository.cs
using Contacts.Core.DataAccess;
using Contacts.DTOs;
using Contacts.Entities;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Contacts.DataAccess.Abstract
{
public interface IContactRepository : IEntityRepository<Contact>
... |
RetroClash/Protocol/Commands/Client/LogicLeagueNotificationsSeenCommand.cs | HiimEiffel/RetroClashv0.6 | 0 | 7053751 | using System.Threading.Tasks;
using RetroClash.Extensions;
using RetroClash.Logic;
namespace RetroClash.Protocol.Commands.Client
{
public class LogicLeagueNotificationsSeenCommand : Command
{
public LogicLeagueNotificationsSeenCommand(Device device, Reader reader) : base(device, reader)
{
... |
Christ3D.Infrastruct.Identity/Authorization/ClaimsRequirementHandler.cs | DotNetExample/ChristDDD | 641 | 7053752 | <reponame>DotNetExample/ChristDDD
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.Extensions.Configuration;
namespace Christ3D.Infrastruct.Identity.Authorization
{
public class ClaimsRequirementHandler : AuthorizationHandler<ClaimRequirement>
{
... |
NetFabric.Hyperlinq/Quantifier/All/All.ReadOnlyMemory.cs | manofstick/NetFabric.Hyperlinq | 0 | 7053753 | using System;
using System.Runtime.CompilerServices;
namespace NetFabric.Hyperlinq
{
public static partial class ArrayExtensions
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool All<TSource>(this ReadOnlyMemory<TSource> source, Predicate<TSource> predicate)
... |
SaintCoinach/Ex/Relational/Update/Comparer.cs | shambarick/SaintCoinach-1 | 266 | 7053754 | <gh_stars>100-1000
using SaintCoinach.Ex.Relational.Definition;
using SaintCoinach.Xiv;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace SaintCoinach.Ex.Relational.Update {
static class Comparer {
public static bool IsMatch(object v1, object v2) {
... |
src/Zapdate.Server/Models/Response/CreateProjectResponseDto.cs | Anapher/Zapdate | 1 | 7053755 | namespace Zapdate.Server.Models.Response
{
public class CreateProjectResponseDto
{
public CreateProjectResponseDto(int projectId, string? asymmetricKey = null)
{
ProjectId = projectId;
AsymmetricKey = asymmetricKey;
}
public int ProjectId { get; }
... |
test-harness/DotNetCliSample/Clean/CleanCommand.cs | JeevanJames/ConsoleFx | 6 | 7053756 | <filename>test-harness/DotNetCliSample/Clean/CleanCommand.cs<gh_stars>1-10
using ConsoleFx.CmdLine;
using ConsoleFx.CmdLine.Help;
namespace ConsoleFx.TestHarness.DotNetCliSample.Clean
{
[Command("clean")]
[CommandHelp("Clean build outputs of a .NET project.")]
public sealed class CleanCommand : Command
... |
EducationalDPContest/EducationalDPContest/EducationalDPContest/Questions/QuestionI.cs | terry-u16/AtCoder | 0 | 7053757 | using EducationalDPContest.Questions;
using EducationalDPContest.Extensions;
using EducationalDPContest.Algorithms;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace EducationalDPContest.Questions
{
public class QuestionI : AtCoderQuestionBase
{
... |
src/AspNetCore2/Models/ClientSession.cs | snakefoot/Loupe.Agent.Core | 0 | 7053758 | <reponame>snakefoot/Loupe.Agent.Core
namespace Loupe.Agent.AspNetCore.Models
{
public class ClientSession
{
public ClientDetails Client { get; set; }
public string CurrentAgentSessionId { get; set; }
}
} |
Assets/Scripts/Model/Tokens/JamToken.cs | stwangner/FlyCasual | 0 | 7053759 | using Ship;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Tokens
{
public class JamToken : GenericToken
{
public JamToken(GenericShip host) : base(host)
{
Name = "Jam Token";
Temporary = false;
Tooltip = "https://r... |
src/System.Net.Sockets/tests/FunctionalTests/ExecutionContextFlowTest.netcoreapp.cs | vkvenkat/corefx | 15 | 7053760 | <gh_stars>10-100
// 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.IO;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading;
... |
Cindi.Domain/ClusterCommands/UpdateClusterDetails.cs | xucito/cindi | 0 | 7053761 | <reponame>xucito/cindi
using ConsensusCore.Domain.BaseClasses;
using System;
using System.Collections.Generic;
using System.Text;
namespace Cindi.Domain.ClusterRPC
{
public class UpdateClusterDetails : BaseCommand
{
public string Id { get; set; }
public bool? AssignmentEnabled { get; set; } = ... |
code/Web/Controllers/ClientsDataController.cs | ecjtuseclab/Athean | 15 | 7053762 | <filename>code/Web/Controllers/ClientsDataController.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Text;
using Athena.model;
using Athena.Idal;
using Athena.basedal;
//项目名称:Athena标准开发框架
//版本:0.0.1
//开发团队成员:周庆 王露 张婷婷 陈祚松 张梦丽 艾美珍 胡凯雨 陈兰兰 夏萍萍 康文... |
Supercell/IpcServices/Generated/nn.arp.detail.cs | daeken/SupercellNx | 24 | 7053763 | #pragma warning disable 169, 465
using System;
using UltimateOrb;
using static Supercell.Globals;
namespace Supercell.IpcServices.Nn.Arp.Detail {
[IpcService("arp:r")]
public unsafe partial class IReader : _Base_IReader {}
public unsafe class _Base_IReader : IpcInterface {
public override void _Dispatch(Incom... |
src/Cake.ServiceFabric/IServiceFabricGatewayInformation.cs | mholo65/Cake.ServiceFabric | 2 | 7053764 | using System;
namespace Cake.ServiceFabric
{
public interface IServiceFabricGatewayInformation
{
string NodeAddress { get; }
string NodeId { get; }
string NodeInstanceId { get; }
string NodeName { get; }
}
} |
src/SiCo.Utilities.Pgsql/Models/Common/ProcessResultModel.cs | Silver-Connection/sico-net-utilities | 0 | 7053765 | namespace SiCo.Utilities.Pgsql.Models.Common
{
using System;
/// <summary>
/// Process Model
/// </summary>
public class ProcessResultModel
{
/// <summary>
/// Checksum
/// </summary>
public string Checksum { get; set; }
/// <summary>
/// Durati... |
Loops/SumElement/SumElement.cs | pirocorp/ProgrammingBasics | 0 | 7053766 | using System;
namespace SumElement
{
class SumElement
{
static void Main(string[] args)
{
var n = int.Parse(Console.ReadLine());
int Max = int.Parse(Console.ReadLine());
int sum = Max;
int x;
for (int i = 1; i < n; i++)
{... |
src/Meziantou.Framework.CodeDom/Statements/CatchClause.cs | LePtitDev/Meziantou.Framework | 0 | 7053767 | <reponame>LePtitDev/Meziantou.Framework
namespace Meziantou.Framework.CodeDom
{
public class CatchClause : CodeObject, ICommentable
{
private TypeReference? _exceptionType;
private StatementCollection? _body;
public CatchClause()
{
CommentsBefore = new CommentCollec... |
Xamarin.OpenCV/Xamarin.OpenCV/Xamarin.OpenCV/ViewModels/Interfaces/IInfoPageViewModel.cs | wellstone018/Demo | 15 | 7053768 | <reponame>wellstone018/Demo
using System.Windows.Input;
namespace Xamarin.OpenCV.ViewModels.Interfaces
{
public interface IInfoPageViewModel
{
ICommand ShowBuildInformation
{
get;
}
string BuildInformation
{
get;
}
string Titl... |
src/Luna.Data/Enums/Luna.AI/Product/ProductType.cs | isabella232/projectluna | 0 | 7053769 | <reponame>isabella232/projectluna
namespace Luna.Data.Enums
{
public enum ProductType
{
RTP, // Real-Time Prediction
BI, // Batch Inference
TYOM // Train Your Own Model
}
}
|
EventOrientedUnityProject/Assets/Scripts/EventOriented/InterfaceVersion/GameManager.cs | DaniilDigtyar/EventOrientedUnityProject | 0 | 7053770 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour {
private static GameManager instance = null;
private void Awake()
{
if (instance == null)
{
instance = this;
DontDestroyOnLoad(gameObject);
... |
src/Shared.Domain/DTOs/ProblemDetails.cs | MustafaNesin/AuctionMarket | 1 | 7053772 | using System.Text.Json.Serialization;
namespace AuctionMarket.Shared.Domain.DTOs;
public record ProblemDetails
{
[JsonPropertyName("type")]
public string? Type { get; set; }
[JsonPropertyName("title")]
public string? Title { get; set; }
[JsonPropertyName("status")]
public int? Status { get;... |
dotnet/src/webdriver/NetworkRequestSentEventArgs.cs | TamsilAmani/selenium | 25,151 | 7053773 | <reponame>TamsilAmani/selenium<gh_stars>1000+
// <copyright file="NetworkRequestSentEventArgs.cs" company="WebDriver Committers">
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// reg... |
automation/aautomation_framework/PageObjects/TemplatePageObject.cs | SergeyTsiganovskiy/automation_framework | 0 | 7053774 | <gh_stars>0
using OpenQA.Selenium;
using System;
namespace aautomation_framework.PageObjects
{
public class TemplatePageObject : PageObjectBase
{
public TemplatePageObject(IWebDriver driver) : base(driver)
{
}
#region locators
private By SomeLocator1 = By.XPat... |
src/TestEasy.Azure/Helpers/Base64EncodingHelper.cs | Bhaskers-Blu-Org2/TestEasy | 5 | 7053775 | using System;
using System.Text;
namespace TestEasy.Azure.Helpers
{
/// <summary>
/// Encoding helper API
/// </summary>
public static class Base64EncodingHelper
{
/// <summary>
/// Encode to base64 string
/// </summary>
/// <param name="original"></param>
... |
Neos.IdentityServer 2.2/Neos.IdentityServer.Multifactor.Keys.Sample/Neos.IdentityServer.Multifactor.Keys.cs | anorstrom/adfsmfa | 0 | 7053776 | <filename>Neos.IdentityServer 2.2/Neos.IdentityServer.Multifactor.Keys.Sample/Neos.IdentityServer.Multifactor.Keys.cs
//******************************************************************************************************************************************************************************************//
// Copyrig... |
src/SiteHarvester.cs | LANDIS-II-Foundation/Extension-Density-Harvest | 0 | 7053777 | /**
* Namespace: Landis.Extension.Landispro.Harvest
* Class: SiteHarvester
*
* Ver Author Date Note
* --------------------------------------------------------------
* V1.0 <NAME> 12/2018 Initial version
*
****************************************************************... |
src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/PipeOptions.cs | mklement0/runtime | 1 | 7053778 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Buffers;
using System.Threading;
namespace System.IO.Pipelines
{
/// <summary>Represents a set of <see cref="System.IO.Pipelines.Pipe" /> options.</summary>
pub... |
10.Inheritance - Exercise/P03_Mankind/Human.cs | dimitar-v/CSharp-OOP-Basic | 0 | 7053779 | <gh_stars>0
using System;
namespace P03_Mankind
{
class Human
{
private const int FIRSTNAME_MIN_LENGTH = 4;
private const int LASTNAME_MIN_LENGTH = 3;
private string firstName;
private string lastName;
public Human(string firstName, string lastName)
{
... |
Infrastructure/ObjectModel/CompositeDrawableComponent.cs | RoniRush/Dreidel-3D-Game | 0 | 7053780 | <gh_stars>0
using System;
using System.Collections.Generic;
namespace Infrastructure.ObjectModel
{
using System.Collections;
using System.Collections.ObjectModel;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
public abstra... |
src/XsDupFinder.Lib/Output/Renderer/RenderChangeTracker.cs | VolkmarR/XsDupFinder | 3 | 7053781 | <filename>src/XsDupFinder.Lib/Output/Renderer/RenderChangeTracker.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XsDupFinder.Lib.Common;
using XsDupFinder.Lib.Finder;
using XsDupFinder.Lib.Output.Json;
using XsDupFinder.Lib.... |
Content.IntegrationTests/Tests/RestartRoundTest.cs | EmoGarbage404/space-station-14 | 2 | 7053782 | <filename>Content.IntegrationTests/Tests/RestartRoundTest.cs
using System.Threading.Tasks;
using Content.Server.GameTicking;
using NUnit.Framework;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
namespace Content.IntegrationTests.Tests
{
[TestFixture]
public sealed class RestartRoundTest
{
... |
EfsTools/Qualcomm/QcdmCommands/Responses/ExtMessageConfigCommandResponse.cs | AndroPlus-org/EfsTools | 39 | 7053783 | using System;
using System.Collections.Generic;
using EfsTools.Qualcomm.QcdmCommands.Attributes;
using EfsTools.Qualcomm.QcdmCommands.Base;
using EfsTools.Qualcomm.QcdmCommands.Requests;
using EfsTools.Resourses;
namespace EfsTools.Qualcomm.QcdmCommands.Responses
{
internal class MessageIdState
{
... |
Data/YJC.Toolkit.Data/Data/_WebResult/FieldErrorInfo.cs | madiantech/tkcore | 4 | 7053784 | <reponame>madiantech/tkcore<gh_stars>1-10
using YJC.Toolkit.Sys;
namespace YJC.Toolkit.Data
{
public sealed class FieldErrorInfo
{
public FieldErrorInfo()
{
}
public FieldErrorInfo(string tableName, string nickName, string message)
: this(tableName, nickName, messa... |
Assets/Scripts/UIController.cs | pahry182/blockii-swing | 0 | 7053785 | <reponame>pahry182/blockii-swing
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
using UnityEngine.SceneManagement;
public class UIController : MonoBehaviour
{
public IEnumerator FadeIn(CanvasGroup container, float duration)
{
container.interactable = f... |
TwitchPlaysAssembly/Src/Helpers/MultipleBombs.cs | sleepin-fang/KtaneTwitchPlays | 58 | 7053786 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public static class MultipleBombs
{
private static GameObject _gameObject;
private static IDictionary<string, object> Properties =>
#pragma warning disable IDE0031 // Use null propagation
_gameObject != null ? _gameObject.GetComponent... |
Examples/CSharp/WorkingWithProjects/Rescheduling/UpdateProjectAndRescheduleUncompletedWork.cs | sva1000/Aspose.Tasks-for-.NET | 0 | 7053787 | <gh_stars>0
using System;
using Aspose.Tasks.Saving;
/*
This project uses Automatic Package Restore feature of NuGet to resolve Aspose.Tasks for .NET API reference
when the project is build. Please check https:// Docs.nuget.org/consume/nuget-faq for more information.
If you do not wish to use NuGet, you can manually... |
Assets/Octave3D World Builder/Scripts/Inspector GUI/Toolbars/ObjectSelectionActionToolbar.cs | AestheticalZ/Faithful-SCP-Unity | 0 | 7053788 | <reponame>AestheticalZ/Faithful-SCP-Unity
#if UNITY_EDITOR
using UnityEngine;
using System;
using System.Collections.Generic;
namespace O3DWB
{
[Serializable]
public class ObjectSelectionActionToolbar : Toolbar
{
#region Constructors
public ObjectSelectionActionToolbar()
{
... |
ControleFinanceiro.API/Extensions/ConfiguracaoIdentityExtension.cs | samuelalex93/controle-financeiro | 0 | 7053790 | using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.DependencyInjection;
namespace ControleFinanceiro.API.Extensions
{
public static class ConfiguraçãoIdentityExtension
{
public static void ConfigurarSenhaUsuario(this IServiceCollection services)
{
services.Configure<Id... |
Assets/Networkable/NetworkableInitializerComponent.cs | falldamagestudio/Networkable | 0 | 7053791 | <reponame>falldamagestudio/Networkable
using UnityEngine;
using UnityEngine.Assertions;
/// <summary>
/// Initialization trigger for Networkable.
/// Place this component on a GameObject in the first scene that your game loads.
/// </summary>
public class NetworkableInitializerComponent : MonoBehaviour
{
static b... |
ASMR.Common/DataStructure/EnumUtils.cs | danang-id/asmr | 0 | 7053792 | <reponame>danang-id/asmr
//
// asmr: Coffee Beans Management Solution
// © 2021 Pandora Karya Digital. All right reserved.
//
// Written by <NAME> [<EMAIL>]
//
// EnumUtils.cs
//
using System;
using System.Collections.Generic;
using System.Linq;
namespace ASMR.Common.DataStructure;
public static class EnumUtils
{
pu... |
Assets/MeshEditor/Editor/Scripts/Windows/WindowPage/Internal/MeshBooleanPage.cs | tkonexhh/MeshEditor | 18 | 7053793 | <reponame>tkonexhh/MeshEditor
#if UNITY_EDITOR
using Extensions.MeshPro.MeshEditor.Modules.Internal.MeshBoolean.Scripts;
using UnityEditor;
using UnityEngine;
using TransformPro.MeshPro.MeshEditor.Editor.Scripts.Base;
public class MeshBooleanPage : MEDR_Page
{
private static GUIContent intersectionGUIContent;
... |
src/Core/Analytics/Services/AnalyticsService.cs | biobankinguk/biobankinguk | 5 | 7053794 | using Biobanks.Analytics.Services.Contracts;
using Biobanks.Data;
using Biobanks.Entities.Data.Analytics;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Biobanks.Analytics.Services
{
/// <inheritdoc />
public cl... |
STOREFRONT/VirtoCommerce.Storefront.Model/TierPrice.cs | gerfen/vc-community-master | 2 | 7053795 | using VirtoCommerce.Storefront.Model.Common;
namespace VirtoCommerce.Storefront.Model
{
public class TierPrice : ValueObject<TierPrice>
{
public Money Price { get; set; }
public long Quantity { get; set; }
}
} |
StoreBalance.WebApi/Migrations/20210202155906_Add_data_walletRecord.cs | rangeldaykes/StoreBalance | 0 | 7053796 | using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace StoreBalance.WebApi.Migrations
{
public partial class Add_data_walletRecord : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
t... |
Rpg.Core/Models/Character.cs | rodolfo-brandao/rpg-api | 0 | 7053797 | using Rpg.Core.Common;
using Rpg.Core.Enums;
using System;
namespace Rpg.Core.Models
{
public class Character : TrackableEntity
{
public Guid PlayerId { get; protected set; }
public Guid ClassId { get; protected set; }
public Guid RaceId { get; protected set; }
public string Na... |
Naoki/IProperty.cs | basp/naoki | 0 | 7053798 | namespace Naoki
{
using Optional;
public interface IProperty
{
string Name { get; }
IProperty Set(Value value);
Option<Value> Get();
}
}
|
src/Microsoft.IIS.Administration.WebServer.Scm/Defines.cs | kant/IIS.Administration | 125 | 7053799 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.IIS.Administration.WebServer.Scm
{
using Core;
using System;
public class Defines
{
private const string ENDPO... |
src/Main/Ladybug.Console/Commands/StepOverCommand.cs | Washi1337/Ladybug | 32 | 7053800 | using System;
using Ladybug.Core;
namespace Ladybug.Console.Commands
{
public class StepOverCommand : ICommand
{
public string Description
{
get { return "Executes until the next instruction line."; }
}
public string Usage
{
get { return "[pass]... |
SGA/Scripts/Activity.cs | playgen/rage-sga-unity | 0 | 7053801 | <filename>SGA/Scripts/Activity.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using UnityEngine;
namespace SocialGamification
{
[Serializable]
public class Activity
{
public string id = "";
public string name = "";
public st... |
cqrs-event-sourcing/Bar.Domain/Events/BeveragesOrdered.cs | sharmasourabh/ddd | 12 | 7053802 | using Bar.Domain.Events.Base;
using System;
using System.Collections.Generic;
namespace Bar.Domain.Events
{
public class BeveragesOrdered : IEvent
{
public Guid TabId { get; set; }
public ICollection<Beverage> Beverages { get; set; }
}
}
|
Item/Inventory.cs | dgg5503/The-Chicago-Project | 0 | 7053803 | <reponame>dgg5503/The-Chicago-Project<filename>Item/Inventory.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TheChicagoProject.Item
{
public class Inventory : IEnumerable
{
private List<Item> inventory;
private int[]... |
src/DynamicChatLabel.cs | OozaruRinon/ImmuneCommandMod | 2 | 7053804 | <gh_stars>1-10
using UnityEngine;
public class DynamicChatLabel : MonoBehaviour
{
public GameObject m_chatLabel;
public Vector3 m_addVector = Vector3.zero;
public string m_lngKey = string.Empty;
public float m_displayLabelDist = 12f;
private float m_nextUpdateTime;
private ChatLabel m_label;
private LidCl... |
Rickvdbosch.Talks.LtpotC.Functions/HandleFile.cs | rickvdbosch/LtpotC | 0 | 7053805 | <filename>Rickvdbosch.Talks.LtpotC.Functions/HandleFile.cs<gh_stars>0
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.ServiceBus;
using Microsoft.Extensions.Logging;
namespace Rickvdbosch.Talks.LtpotC.Functions
{
public static class Handl... |
backup/UserM.cs | pes7/TelegramBots | 4 | 7053806 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Telegram.Bot.Types;
namespace GuchiBot
{
class UserM : User
{
public int MessageCount { get; set; }
public UserM(User us, int i = 0) : base()
{
this.Use... |
src/Mpgp.RestApiServer/Controllers/AccountController.cs | mpgp/Mpgp | 6 | 7053807 | <filename>src/Mpgp.RestApiServer/Controllers/AccountController.cs<gh_stars>1-10
// Copyright (c) MPGP. All rights reserved.
// Licensed under the BSD license. See LICENSE file in the project root for full license information.
using System.Threading.Tasks;
using AutoMapper;
using Microsoft.AspNetCore.Mvc;
using Mpgp.... |
src/Ops.Data/Ops/EmailSetupTextRepository.cs | haraldnagel/ocuda | 0 | 7053809 | <gh_stars>0
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using Ocuda.Ops.Models.Entities;
using Ocuda.Ops.Service.Interfaces.Ops.Repositories;
namespace Ocuda.Ops.Data.Ops
{
public class EmailSetupTextRepository
: GenericReposito... |
src/Skybrud.Umbraco.Spa/api/Models/Media/MediaItem.cs | skybrud/sky-spa-api | 4 | 7053810 | using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Skybrud.Umbraco.GridData.Extensions.Json;
using Umbraco.Core.Models;
using Umbraco.Web;
using Umbraco.Web.Models;
namespace SkybrudSpaExample.Models.Media
{
public class MediaItem
{
#region Properties
[JsonIgnore]
public IPublis... |
Server/src/SchoolBusAPI/Controllers/AttachmentUploadController.cs | BcGovBrian/schoolbus | 0 | 7053811 | <gh_stars>0
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using SchoolBusAPI.Authorization;
using SchoolBusAPI.Models;
using SchoolBusAPI.Services.Impl;
using SchoolBusCommon;
using System.Collections.Generic;
using System.IO;
using System;
using Microsoft.... |
src/SoundFingerprinting.Tests/Unit/Infrastructure/DependencyResolverTest.cs | FourPee/soundfingerprinting | 0 | 7053812 | namespace SoundFingerprinting.Tests.Unit.Infrastructure
{
using NUnit.Framework;
using SoundFingerprinting.Builder;
[TestFixture]
public class DependencyResolverTest
{
[Test]
public void ResolveDefaultInterfacesForFingerprintCommandTest()
{
var fingerprintComma... |
test/LaunchDarkly.ServerSdk.Tests/Internal/DataStores/DataStoreSorterTest.cs | launchdarkly/dotnet-server-sdk | 26 | 7053813 | <reponame>launchdarkly/dotnet-server-sdk
using System;
using System.Collections.Generic;
using System.Linq;
using LaunchDarkly.Sdk.Server.Internal.Model;
using Xunit;
using static LaunchDarkly.Sdk.Server.Interfaces.DataStoreTypes;
using static LaunchDarkly.Sdk.Server.Internal.DataStores.DataStoreTestTypes;
namespace... |
FFXIV_Translator/PapagoAPI/PapagoAPIException.cs | Elysia-ff/FFXIV_Translator | 0 | 7053814 | <filename>FFXIV_Translator/PapagoAPI/PapagoAPIException.cs
using System;
namespace FFXIV_Translator.PapagoAPIs
{
public class PapagoAPIException : Exception
{
public new string Message { get; private set; }
public PapagoAPIException(string msg)
{
Message = msg;
}
... |
Assets/Scripts/Block.cs | GabrielEchelon/BlockBreaker | 0 | 7053815 | using UnityEngine;
public class Block : MonoBehaviour
{
[SerializeField] private AudioClip breakSound;
[SerializeField] private GameObject blockSparklesVFX;
[SerializeField] private float timeToDestroy = 1f;
[SerializeField] private float breakVolume = 1f;
[SerializeField] private int timesHit;
... |
Antura/EA4S_Antura_U3D/Assets/_games/ReadingGame/Scripts/ReadingGameQuestionState.cs | Megapop/Norad-Eduapp4syria | 0 | 7053816 | <filename>Antura/EA4S_Antura_U3D/Assets/_games/ReadingGame/Scripts/ReadingGameQuestionState.cs<gh_stars>0
using System;
using UnityEngine;
namespace EA4S.ReadingGame
{
public class ReadingGameQuestionState : IGameState
{
ReadingGameGame game;
bool firstRun = true;
bool completed = fals... |
source/Stile/Types/Enumerables/ArrayExtensions.cs | mcknell/Stile | 0 | 7053817 | #region License info...
// Stile for .NET, Copyright 2011-2013 by <NAME>
// Licensed under the MIT License found at the top directory of the Stile project on GitHub
#endregion
#region using...
using System;
using System.Text;
using Stile.Readability;
using Stile.Types.Reflection;
#endregion
namespace Stile.Types.Enu... |
09 Coding 101 - Exams/Exam-Preparation/01-DailyProfit.cs | nikolaydechev/Programming-Basics | 0 | 7053818 | <reponame>nikolaydechev/Programming-Basics
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _01_DailyProfit
{
class Program
{
static void Main(string[] args)
{
var workingDays = int.Parse(Console.ReadLine(... |
AzureFunctionApp.PatientValidator.Services/ValueObjects/SmsApiConfiguration.cs | mjdudzic/AzureFunctionApp.PatientValidator | 0 | 7053819 | namespace AzureFunctionApp.PatientValidator.Services.ValueObjects
{
public class SmsApiConfiguration
{
public string SmsApiUrl { get; set; }
public string SmsApiAccessKey { get; set; }
public string SmsApiOriginator { get; set; }
}
}
|
BbGit/Git/LocalRepo.cs | drewburlingame/GitTools | 0 | 7053820 | <gh_stars>0
using System;
using System.IO;
using System.Linq;
using BbGit.Framework;
using LibGit2Sharp;
namespace BbGit.Git
{
public class LocalRepo : IDisposable
{
private static readonly string[] MainBranchNames = {"master", "develop"};
private bool _isDisposing;
public string Full... |
test/Microsoft.AspNet.Mvc.FunctionalTests/AntiforgeryTests.cs | abdelrahmansaeedhassan/mvc | 1 | 7053821 | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Xunit;
namespace Micr... |
Server/Networking/PacketQueue.cs | Swaelo/mmo-server-2.0 | 1 | 7053822 | // ================================================================================================================================
// File: PacketQueue.cs
// Description: Stores a list of outgoing network packets to be sent to their target game clients in the next communication interval
// Author: <NAME> h... |
NugetExampleProjectTests/ExampleTests.cs | ajwgroup/NugetExampleProject | 0 | 7053823 | using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NugetExampleProject;
namespace NugetExampleProjectTests
{
[TestClass]
public class ExampleTests
{
[TestMethod]
public void IsGreaterThan_OneGreaterThanTwo_ShouldBeFalse()
{
int one = 1;
... |
Source/Patch_DoPlaySettingsGlobalControls.cs | Inglix/DesirePaths | 3 | 7053824 | <gh_stars>1-10
// Copyright <NAME>, 2020-2021.
// DesirePaths/DesirePaths/Patch_DoPlaySettingsGlobalControls.cs
using HarmonyLib;
using RimWorld;
using Verse;
namespace DesirePaths {
[HarmonyPatch(typeof(PlaySettings), nameof(PlaySettings.DoPlaySettingsGlobalControls))]
public static class Patch_DoPlaySetting... |
src/cloudscribe.Kvp.Storage.EFCore.Common/KvpItemCommands.cs | cloudscribe/cloudscribe.UserProperties.Kvp | 1 | 7053825 | <reponame>cloudscribe/cloudscribe.UserProperties.Kvp<filename>src/cloudscribe.Kvp.Storage.EFCore.Common/KvpItemCommands.cs
// 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: <NA... |
source/Knyaz.Optimus/Dom/Css/MediaList.cs | mk1024/Optimus | 63 | 7053826 | using System.Collections.Generic;
using System.Linq;
namespace Knyaz.Optimus.Dom.Css
{
/// <summary>
/// Provides an ordered collection of media. An empty list is the same as a list that contains the medium "all".
/// </summary>
public class MediaList
{
private List<string> _mediums = new List<string... |
Program.cs | antan87/Kata | 0 | 7053827 | <reponame>antan87/Kata
using System;
namespace kata {
public class Program {
static void Main (string[] args) {
// Console.WriteLine (ExecutionStopWatch.StopWatch (() => { Kata4.DblLinear (10000); }, 10, 10));
// Console.WriteLine (Kata4.DblLinear (1000000));
// Consol... |
Assets/Scripts/Ej14.cs | MatiasBlanco0/Guia-de-Programacion-1 | 0 | 7053828 | <reponame>MatiasBlanco0/Guia-de-Programacion-1<gh_stars>0
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Ej14 : MonoBehaviour
{
//Construir un programa que simule el funcionamiento de una calculadora que puede realizar las cuatro operaciones aritméticas básicas
//... |
Assets/Scripts/Player/PlayerCamera.cs | rnhall/Argo | 0 | 7053829 | <reponame>rnhall/Argo
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerCamera : MonoBehaviour
{
[SerializeField]
bool inGame = true;
[SerializeField]
bool inverted = true;
public bool Inverted
{
get
{
return inverted... |
Keen.NetStandard/Event.cs | IshamMohamed/keen-sdk-net | 0 | 7053830 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Keen.Core.EventCache;
using Newtonsoft.Json.Linq;
namespace Keen.Core
{
/// <summary>
/// Event implements the IEvent interface which represents the Keen.IO Event API methods.
/// </summary>
... |
DepartmentStoreOne.Base.Model/Quote/Events/QuoteRequestUpdatedEvent.cs | takemurakimio/department-store | 1 | 7053831 | using Department.Base.Model.Common.Events;
namespace Department.Base.Model.Quote.Events
{
public class QuoteRequestUpdatedEvent : DomainEvent
{
public QuoteRequestUpdatedEvent(QuoteRequest quoteRequest)
{
QuoteRequest = quoteRequest;
}
public QuoteRequest QuoteReque... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.