max_stars_repo_path stringlengths 3 255 | max_stars_repo_name stringlengths 5 116 | max_stars_count int64 0 107k | id stringlengths 1 7 | content stringlengths 63 1.05M |
|---|---|---|---|---|
src/Sw/UI/PropertyPage/Toolkit/Controls/PropertyManagerPageComboBoxControl.cs | xarial/xcad-solidworks | 1 | 7030573 | //*********************************************************************
//xCAD
//Copyright(C) 2020 Xarial Pty Limited
//Product URL: https://www.xcad.net
//License: https://xcad.xarial.com/license/
//*********************************************************************
using SolidWorks.Interop.sldworks;
using System;... |
OData/src/System.Web.OData/OData/Formatter/Serialization/ODataPrimitiveSerializer.cs | matiias/MVC | 2 | 7030574 | <filename>OData/src/System.Web.OData/OData/Formatter/Serialization/ODataPrimitiveSerializer.cs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System.Data.Linq;
using System.Diagnostics.Contracts;
using System.Web.Http;
using S... |
FAM Face/Assets/AndroidUltimatePlugin/BasicPlugin/Scripts/Examples/BlueToothDemo.cs | johnchoi313/FAMbot | 8 | 7030575 | using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using System;
public class BlueToothDemo : MonoBehaviour {
private BlueToothPlugin blueToothPlugin;
public Text blueToothMessageRecievedText;
public Text blueToothStatusText;
public Text blueEnableText;
public InputField inputMessageText;
public... |
src/Armyknife.DI.Unity/UnityServiceContainerWrapper.cs | dukeofharen/armyknife | 1 | 7030576 | using System;
using System.Collections.Generic;
using System.Linq;
using Armyknife.Services.Interfaces;
using Unity;
namespace Armyknife.DI.Unity
{
public class UnityServiceContainerWrapper : IServiceContainerWrapper
{
private readonly IUnityContainer _unityContainer;
private static UnityServiceCont... |
Cogito.MassTransit.Autofac/SagaRegistrationExtensions.cs | alethic/Cogito.MassTransit | 0 | 7030577 | using System;
using Autofac;
using Autofac.Builder;
using Cogito.MassTransit.Registration;
using MassTransit.Saga;
namespace Cogito.MassTransit.Autofac
{
/// <summary>
/// Provides extensions to register sagas.
/// </summary>
public static class SagaRegistrationExtensions
{
/// <summa... |
Unkcon/Models/PotentialMatchViewModel.cs | zenzontle/Unkcon | 0 | 7030578 | using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Unkcon.Models
{
public class PotentialMatchViewModel
{
[Required]
public string Comment { get; set; }
[Required]
public string Reply { get; set; }
}
} |
Controllers/BudgetController.cs | jaboc83/ynab-or-your-life | 3 | 7030579 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using YNAB.SDK;
using YNABOrYourLife.Models;
namespace YNABOrYourLife.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class BudgetC... |
src/Common/ServiceProxyFactoryExtensions.cs | FredrikGoransson/ServiceFabric.Lab.ServiceRemotingContext | 3 | 7030580 | using System;
using System.Threading.Tasks;
using Microsoft.ServiceFabric.Services.Remoting.Client;
namespace Common
{
public static class ServiceProxyFactoryExtensions
{
public static Task RunInRequestContext(this IServiceProxyFactory serviceProxyFactory, Action action, Guid correlationId, string use... |
source/Log4Tc/Mbc.Log4Tc.Output.InfluxDb/ArgumentPointFactory.cs | mbc-engineering/log4TC | 9 | 7030581 | <reponame>mbc-engineering/log4TC<filename>source/Log4Tc/Mbc.Log4Tc.Output.InfluxDb/ArgumentPointFactory.cs
using InfluxDB.Client.Api.Domain;
using InfluxDB.Client.Writes;
using Mbc.Log4Tc.Model;
using System;
using System.Globalization;
using System.Linq;
namespace Mbc.Log4Tc.Output.InfluxDb
{
internal class Argu... |
Assets/AutoTap/Scripts/AutoTap.cs | quartorz/unity-autotap | 0 | 7030582 | #if !DISABLE_AUTOTAP
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
namespace AutoTap
{
public abstract class AutoTap : IDisposable
{
public static AutoTap Current { get; private set; }
public class LogItem
{
internal bool Active;
... |
src/testing/Azos.Tests.Nub/Serialization/json/JazonParserTests.cs | erxdkh/azos | 0 | 7030583 | /*<FILE_LICENSE>
* Azos (A to Z Application Operating System) Framework
* The A to Z Foundation (a.k.a. Azist) licenses this file to you under the MIT license.
* See the LICENSE file in the project root for more information.
</FILE_LICENSE>*/
using System;
using System.Collections.Generic;
using System.Text;
using... |
MsBuildResyncProjectReferenceGuid/Properties/Strings.Designer.cs | aolszowka/MsBuildResyncProjectReferenceGuid | 0 | 7030584 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... |
src/NaGet.Protocol/Models/RegistrationLeafResponse.cs | SeppPenner/NaGet | 0 | 7030585 | <reponame>SeppPenner/NaGet
namespace NaGet.Protocol.Models;
/// <summary>
/// The metadata for a single version of a package.
///
/// See https://docs.microsoft.com/en-us/nuget/api/registration-base-url-resource#registration-leaf
/// </summary>
public class RegistrationLeafResponse
{
public static readonly IReadO... |
modules/AWSPowerShell/Cmdlets/GameLift/Basic/New-GMLFleet-Cmdlet.cs | ajsing/aws-tools-for-powershell | 0 | 7030586 | <reponame>ajsing/aws-tools-for-powershell
/*******************************************************************************
* Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
* this file except in complian... |
Assets/Script.ILRuntimeGenerated/System_IO_TextWriter_Binding.cs | veliamsli/CasinosClient | 3 | 7030587 | <filename>Assets/Script.ILRuntimeGenerated/System_IO_TextWriter_Binding.cs
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Linq;
using ILRuntime.CLR.TypeSystem;
using ILRuntime.CLR.Method;
using ILRuntime.Runtime.Enviorment;
using ILRuntime.Run... |
Raytracer/Raytracer/Geometry/Ray.cs | r2d2rigo/Raytracer | 0 | 7030588 | using System;
using System.Numerics;
namespace Raytracer.Geometry
{
public struct Ray
{
private static readonly float MINIMUM_VECTORS_ANGLE = 0.0001f;
public Vector3 Position;
public Vector3 Direction;
public Ray(Vector3 position, Vector3 direction)
{
Posi... |
Jira2Todoist/Program.cs | GalovKirill/jira2todoist | 0 | 7030589 | <filename>Jira2Todoist/Program.cs<gh_stars>0
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Atlassian.Jira;
using CommandLine;
using Todoist.Net;
using Todoist.Net.Models;
namespace Jira2Todoist
{
class Program
{
private stati... |
OpenBullet2/Pages/Hits.razor.cs | Matsverheyen/OpenBullet2 | 1 | 7030590 | using Blazored.Modal;
using Blazored.Modal.Services;
using GridBlazor;
using GridBlazor.Pages;
using GridMvc.Server;
using GridShared;
using GridShared.Utility;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCo... |
NActiviti/Sys.Bpm.Engine/Engine/impl/persistence/entity/AttachmentEntityManagerImpl.cs | zhangzihan/nactivity | 62 | 7030591 | <reponame>zhangzihan/nactivity
using System.Collections.Generic;
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
src/Mellis.Lang.Python3/Instructions/Jump.cs | jontebackis4/TestCompiler | 4 | 7030592 | <gh_stars>1-10
using Mellis.Core.Entities;
using Mellis.Lang.Python3.Interfaces;
namespace Mellis.Lang.Python3.Instructions
{
public class Jump : IOpCode
{
public Jump(SourceReference source, int target = -1)
{
Source = source;
Target = target;
}
public... |
WarField/Common/Interfaces/IDeathable.cs | AmemiyaSigure/WarField | 0 | 7030593 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Text;
using WarField.Common.Arts.Animations;
namespace WarField.Common.Interfaces
{
interface IDeathable
{
public long Health { get; set; }
public Animation AnimationDeath { get; set; }
}
}
|
src/Monaco/IDisposableAction.cs | limitzero/MonacoServiceBus | 1 | 7030594 | using System;
namespace Monaco
{
/// <summary>
/// Interface for all transient message and consumer instances that can be removed when needed.
/// </summary>
public interface IDisposableAction : IDisposable
{
/// <summary>
/// Gets the flag indicating whether or not this disposed action has been cleaned-up.
... |
Runtime/UI/BrowserViews/Elements/ExplorerSortDropdownController.cs | Octoham/modio-unity | 40 | 7030595 | using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace ModIO.UI
{
/// <summary>Controls the options for a dropdown based on request sort options.</summary>
[RequireComponent(typeof(Dropdown))]
public class ExplorerSortDropdownController : MonoBehaviour, IExplorerViewElement
... |
BlazorWebSocket/Common/AComponentWithLocalStorageBase.cs | hnjm/Chat | 1 | 7030596 | /*
* LambdaSharp (λ#)
* Copyright (C) 2018-2020
* lambdasharp.net
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... |
Assets/Scripts/BattleControl/HotKeyInfo.cs | lengye49/TalesOfTheImmortal | 1 | 7030597 | <reponame>lengye49/TalesOfTheImmortal
public class HotKeyInfo {
public int id;
public int type;//0技能|1物品
public int param;
public bool IsInteractive;
public HotKeyInfo(){
id = 0;
type = 0;
param = 1;
IsInteractive = true;
}
}
|
src/test-nunit-summary.exe/XmlTransformerOptionsTests.cs | CharliePoole/nunit-summary | 7 | 7030598 | <reponame>CharliePoole/nunit-summary<gh_stars>1-10
// ***********************************************************************
// Copyright(c) 2016 <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
// i... |
src/Breakout.Prototype/Sprites/Blocks.cs | NearHuscarl/Breakout | 0 | 7030599 | using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Breakout.Sprites
{
enum BlockColor
{
Cyan,
Green,
Blue,
Magenta,
Yellow,
Orange,
Red,
}
public class B... |
src/Songbird.Web/Models/BinaryFile.cs | karl-sjogren/songbird | 0 | 7030600 | <gh_stars>0
namespace Songbird.Web.Models {
public class BinaryFile : ModelBase {
public string Name { get; set; }
public string ContentType { get; set; }
public byte[] Content { get; set; }
public string Checksum { get; set; }
}
}
|
src/Shared/Recruit.Vacancies.Client/Domain/Entities/ApplicationTrainingCourse.cs | bjstone82/das-recruit | 12 | 7030601 | <gh_stars>10-100
using System;
namespace Esfa.Recruit.Vacancies.Client.Domain.Entities
{
public class ApplicationTrainingCourse
{
public string Provider { get; set; }
public string Title { get; set; }
public DateTime FromDate { get; set; }
public DateTime ToDate { get;... |
Assets/Wwise/Deployment/Components/AkEventPlayable.cs | nox282/gamemarmerlade_secretjam | 1 | 7030602 | #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms.
//////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2017 Audiokinetic Inc. / All Rights Reserved
//
///////////////... |
src/CognitoSyncManager.cs | NGL321/amazon-cognito-sync-manager-net | 7 | 7030603 | //
// Copyright 2014-2015 Amazon.com,
// Inc. or its affiliates. All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.CognitoSync.SyncManager.Internal;
using Amazon.CognitoIdentity;
using Logger = Amazon.Runtime.Internal... |
template/microservice/src/Infrastructure/Atomiv.Template.Infrastructure.Domain.Persistence/Records/OrderItemStatusRecord.cs | optivem/optivem-commons-cs | 6 | 7030604 | using Atomiv.Infrastructure.EntityFrameworkCore;
using Atomiv.Template.Core.Common.Orders;
using System.Collections.Generic;
namespace Atomiv.Template.Infrastructure.Domain.Persistence.Records
{
public class OrderItemStatusRecord : Record<OrderItemStatus>
{
public string Code { get; set; }
pu... |
Assets/Scripts/Coach/CoachChoice.cs | PierreGac/Coachatron | 0 | 7030605 | <filename>Assets/Scripts/Coach/CoachChoice.cs
using UnityEngine;
using System;
using System.IO;
namespace CoachSimulator
{
/// <summary>
/// Contains all the choices froma json file
/// </summary>
[Serializable]
public class CoachChoiceArray
{
public CoachChoiceEntry this[int index]
... |
Views/DGCLib_WinForms/DataTypes/Storage.cs | mgrman/DGCLib | 1 | 7030606 | using DGCLib_Presenter;
using DGCLib_Presenter.VisualizationTypes;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
namespace DGCLib_WinForms.DataTypes
{
public class GeoStorage
{
public List<GeoPoint> InputPoints { get; private set; }
public List<IGeoD... |
04.centerControl/cc_serverAndclient/CommonData/UnityEventData/U_S_DeviceData.cs | ZqWong/MCS | 0 | 7030607 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DW_CC_NET;
namespace UserEventData
{
/// <summary>
/// unity 给集控发送的数据(4D座椅)
/// </summary>
public class U_S_DeviceData : EventData
{
public U_S_DeviceData()
{
... |
src/Citrina/gen/Objects/Photos/PhotosOwnerUploadResponse.cs | khrabrovart/vkontakte-net | 7 | 7030608 | using System.Collections.Generic;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Citrina
{
public class PhotosOwnerUploadResponse
{
/// <summary>
/// Uploading hash.
/// </summary>
public string Hash { get; set; }
/// <summary>
///... |
EasyBlazor.DataCenter.Templates/templates/Solution/AppName.DataCenter/Server/Data/AppNameDbContext.cs | LeaFrock/EasyBlazor.DataCenter.Templates | 3 | 7030609 | <filename>EasyBlazor.DataCenter.Templates/templates/Solution/AppName.DataCenter/Server/Data/AppNameDbContext.cs<gh_stars>1-10
using Microsoft.EntityFrameworkCore;
using AppName.DataCenter.Server.Data.Models;
#nullable disable
namespace AppName.DataCenter.Server.Data
{
public partial class AppNameDbContext : DbCo... |
src/Tests/MasUnity.Tests/Commons/CustomScheduleTests.cs | 8T4/mas-unity | 3 | 7030610 | using System;
using FluentAssertions;
using MasUnity.Tests.Stubs;
using Xunit;
namespace MasUnity.Tests.Commons
{
public class CustomScheduleTests
{
private readonly ScheduleStub _schedule;
public CustomScheduleTests()
{
_schedule = new ScheduleStub();
}
... |
src/XDMessaging/Transport/Amazon/Facades/AmazonSnsFacade.cs | NimbusHex/XDMessaging.Net | 51 | 7030611 | <filename>src/XDMessaging/Transport/Amazon/Facades/AmazonSnsFacade.cs
using System;
using Amazon;
using Amazon.SimpleNotificationService;
using Amazon.SimpleNotificationService.Model;
using Conditions;
using XDMessaging.Entities.Amazon;
using XDMessaging.Transport.Amazon.Interfaces;
namespace XDMessaging.Transport.Am... |
src/Models/HtmlAttributes/Specific/HtmlOncanplayAttribute.cs | atanasgalchov/AgileDotNetHtml | 0 | 7030612 | using AgileDotNetHtml.Attributes;
namespace AgileDotNetHtml.Models.HtmlAttributes
{
[HtmlAttributeClass("oncanplay", new string[] { "audio", "embed", "object", "video" })]
public class HtmlOncanplayAttribute : HtmlAttribute
{
/// <summary>
/// Initialize a new instance of AgileDotNetHtml.Models.HtmlAttributes.... |
src/BlazorAgGrid/GridOptions.Columns.cs | alexkhaykin84/blazor-ag-grid | 42 | 7030613 | using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json.Serialization;
namespace BlazorAgGrid
{
public partial class GridOptions
{
private List<ColumnDefinition> _InternalColumnDefinitions;
[JsonPropertyName("columnDefs")]
public IEnumerable<ColumnDef... |
src/MUDEngine/Movement.cs | Drevarr/ModernMUD | 16 | 7030614 | using System;
using System.Collections.Generic;
using ModernMUD;
namespace MUDEngine
{
/// <summary>
/// Functions related to movement.
/// </summary>
public class Movement
{
public static Dictionary<TerrainType, int> MovementLoss = new Dictionary<TerrainType, int>();
pu... |
OOP/WorkflowEngine/Factory/WorkFlowEngine.cs | nvgeorgiev/Csharp-Exercises-OOP-DB-WEB | 0 | 7030615 | namespace WorkflowEngine
{
public class WorkFlowEngine
{
public void Run(IWorkFlow workFlow)
{
foreach (var task in workFlow.GetTasks())
{
task.Execute();
}
}
}
}
|
src/Utils/PathUtils.cs | MihailsKuzmins/Moq.Microsoft.Configuration | 2 | 7030617 | <reponame>MihailsKuzmins/Moq.Microsoft.Configuration<gh_stars>1-10
namespace Moq.Microsoft.Configuration
{
internal static class PathUtils
{
public static string Append(string basePath, string key) =>
string.IsNullOrEmpty(basePath)
? key
: $"{basePath}:{key}";
}
}
|
Tests/Linq/Update/DeleteWithOutputTests.cs | lsoft/linq2db | 0 | 7030619 | <filename>Tests/Linq/Update/DeleteWithOutputTests.cs<gh_stars>0
using System;
using System.Linq;
using System.Threading.Tasks;
using LinqToDB;
using LinqToDB.Mapping;
using LinqToDB.Tools.Comparers;
using NUnit.Framework;
namespace Tests.xUpdate
{
[TestFixture]
public class DeleteWithOutputTests : Te... |
AjaxControlToolkit/HtmlEditor/Enums.cs | ddooley77/ajaxcontroltoolkit | 0 | 7030620 | <filename>AjaxControlToolkit/HtmlEditor/Enums.cs
namespace AjaxControlToolkit.HtmlEditor {
public enum ActiveModeType { Design, Html, Preview };
[ClientScriptResource(null, Constants.HtmlEditorEnumsName)]
static class Enums {
}
}
|
RestDb/Classes/Common.cs | jchristn/RestDb | 30 | 7030621 | <gh_stars>10-100
using System;
using System.Collections.Generic;
using System.Data;
using System.Dynamic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Security.AccessControl;
using System.Security.Cryptography;
using System.Security.Principal;
using System.Text;
using System.Text.RegularEx... |
Ext_10.LambdaAndLINQ/MostValuedCustomer/MostValuedCustomer.cs | ztimofeev/Programming_Fundamentals_SoftUni-repo | 0 | 7030622 | <reponame>ztimofeev/Programming_Fundamentals_SoftUni-repo
namespace MostValuedCustomer
{
using System;
using System.Collections.Generic;
using System.Linq;
public class MostValuedCustomer
{
public static void Main()
{
Dictionary<string, double> store = new Dictionary<st... |
UnitsNet/GeneratedCode/UnitClasses/Information.g.cs | VBP8501/UnitsNet | 0 | 7030623 | <filename>UnitsNet/GeneratedCode/UnitClasses/Information.g.cs
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by \GenerateUnits.bat.
//
// Changes to this file will be lost when the code is regenerated.
// The build server rege... |
Domain/DRMFSS.BLL/Interfaces/ICommoditySourceRepository.cs | ndrmc/cats-hub | 0 | 7030624 | using System.Collections.Generic;
using System.Linq;
using DRMFSS.BLL.Interfaces;
using DRMFSS.BLL.MetaModels;
using System.ComponentModel.DataAnnotations;
namespace DRMFSS.BLL.Interfaces
{
/// <summary>
///
/// </summary>
public interface ICommoditySourceRepository : IGenericRepository<CommoditySou... |
src/CodeGenerator.Infra.Common/Entity/AbstractEntityInfo.cs | ileego/CodeGenerator | 1 | 7030625 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace CodeGenerator.Infra.Common.Entity
{
public abstract class AbstractEntityInfo : IEntityInfo
{
protected virtual IEnumerable<Type> GetEntityTypes(Assembly assembly)
{
var efEntities ... |
script/bossLvlFunctions.cs | GRaj-gitHub/IdleTycoon | 0 | 7030626 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using DG.Tweening;
public class bossLvlFunctions : MonoBehaviour
{
public GameObject thief;
public Text CreditCounter; //to display at the top of the screen
public Text coinBossLvl; /... |
External/WpfHelpers/WpfDataManipulation/XamlConverters/BoolToAnySwitchConverter.cs | MatiasGil/SMT | 128 | 7030627 | <reponame>MatiasGil/SMT
using System;
using System.Globalization;
using System.Windows.Data;
namespace WpfHelpers.WpfDataManipulation.XamlConverters
{
public class BoolToAnySwitchConverter<T> : IValueConverter
{
public T IfFalse { get; set; }
public T IfTrue { get; set; }
#region Impl... |
src/ServiceQuotes.Application/Filters/GetAccountsFilter.cs | snax4a/service-quotes-api | 0 | 7030628 | using ServiceQuotes.Domain.Entities.Enums;
namespace ServiceQuotes.Application.Filters
{
public class GetAccountsFilter : SearchStringFilter
{
public string Email { get; set; }
public Role? Role { get; set; }
}
}
|
src/Hardware/RoboteQ/RoboteqControllerTest/RoboteqControllerTest/ControllerTestForm.cs | slgrobotics/TrackRoamer | 5 | 7030629 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Text;
using System.Windows.Forms;
using System.Threading;
usin... |
Assets/Scripts/DestroyByTime.cs | DanCurrie15/RiskySpace | 0 | 7030630 | using UnityEngine;
using System.Collections;
public class DestroyByTime : MonoBehaviour {
public float lifetime;
private float startTime;
void Start () {
startTime = Time.time;
}
private void OnEnable()
{
startTime = Time.time;
}
void Update () {
if (Time.time > (lifetime + startTime)) {
gameOb... |
server/ValueObjects/Hash.cs | fakhruddin5352/documate | 1 | 7030631 | using System;
using Nethereum.Hex.HexConvertors.Extensions;
namespace Documate.ValueObjects {
public class Hash : IDataType{
private const int HASH_LENGTH = /*2 hex digits for each byte*/32*2;
private const int HASH_LENGTH_WITH_PREFIX =/*for 0x*/ 2 + HASH_LENGTH;
private readonly string val... |
src/Infrastructure/Persistence/Configurations/RecipeIngredientsConfiguration.cs | matt-goldman/brewjournal | 0 | 7030632 | using brewjournal.Domain.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace brewjournal.Infrastructure.Persistence.Configurations
{
public class RecipeIngredientsConfiguration : IEntityTypeConfiguration<RecipeIngredients>
{
public void Confi... |
tests/ccxt.test/configuration.cs | quantitative-technologies/ccxt.net | 87 | 7030633 | using Microsoft.Extensions.Configuration;
using CCXT.NET.Shared.Coin;
using System;
using System.IO;
namespace XUnit
{
public class TestConfig
{
private static IConfigurationRoot __app_settings = null;
/// <summary>
///
/// </summary>
public static IConfigurationRoot A... |
server/CovidCureIdApp/DataAccess/CosmosRepositoryBase.cs | CharlieDigital/covidcureid | 6 | 7030634 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
using CovidCureIdApp.DataAccess.Support;
using CovidCureIdApp.Model;
using Microsoft.Azure.Cosmos;
using Microsoft.Azure.Cosmos.Linq;
namespace CovidCureIdApp.DataAccess
{
/// <summary>
... |
Utility/Disposable.cs | jacobalbano/Jekbot | 0 | 7030635 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Jekbot.Utility
{
public class Disposable
{
public interface Contract : IDisposable
{
public void DisposeOnce();
public bool Disposed { get; set;... |
Exams/Telerik-Academy-Exam-1-6-December-2013-Evening/2NightmareOnCodeStreet/Program.cs | GoranGit/CSharp | 0 | 7030636 | <reponame>GoranGit/CSharp
using System;
class Program
{
static void Main()
{
string input = Console.ReadLine();
uint counter = 0;
uint sum = 0;
uint digit = 0;
char[] array = input.ToCharArray();
for(int i=0;i<array.Length... |
Adf/Config/ConfigWatcher.cs | aooshi/adf | 0 | 7030637 | using System;
using System.IO;
using System.Collections.Generic;
namespace Adf.Config
{
/// <summary>
/// 配置文件监控
/// </summary>
public sealed class ConfigWatcher : IDisposable
{
/// <summary>
/// check interval, default 30000(30s)
/// </summary>
//public static int ... |
Assets/Samples/Section2/Observables/DisposeSubscribe.cs | TORISOUP/UniRx-UniTask_Samples | 23 | 7030638 | using System;
using UniRx;
using UnityEngine;
namespace Samples.Section2.Observables
{
public class DisposeSubscribe : MonoBehaviour
{
void Start()
{
var subject = new Subject<int>();
//同じSubjectを3回Subscribe(3つのObservableが生成される)
IDisposable DisposableA = su... |
exporters/field_exporter/FieldExporter/Components/FieldMetaForm.Designer.cs | HiceS/synthesis | 1 | 7030639 | <gh_stars>1-10
namespace FieldExporter.Components
{
partial class FieldMetaForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
... |
src/APL/Editor/SyntaxReference.cs | njpatel/APL | 0 | 7030640 | namespace APL.Language.Editor
{
/// <summary>
/// The location of a piece of syntax in the text of the code.
/// </summary>
public class SyntaxReference : TextRange
{
public SyntaxReference(int start, int length)
: base(start, length)
{
}
}
} |
Wazzy/Types/TableType.cs | PaulusParssinen/Wazzy | 6 | 7030641 | <reponame>PaulusParssinen/Wazzy
using Wazzy.IO;
namespace Wazzy.Types
{
public class TableType : WASMType
{
public byte ElementType { get; set; }
public Limits Limits { get; set; }
public TableType(ref WASMReader input)
{
ElementType = input.ReadByte(); // WASM v1... |
Unity/Refract/Assets/Holoplay/Scripts/LookingGlass/HoloplayRecorder.cs | AJpon/Refract | 17 | 7030642 | <gh_stars>10-100
//Copyright 2017-2021 Looking Glass Factory Inc.
//All rights reserved.
//Unauthorized copying or distribution of this file, and the source code contained herein, is strictly prohibited.
// Based on MIT licensed FFmpegOut - FFmpeg video encoding plugin for Unity
// https://github.com/keijiro/FFmpegOut... |
TimeLog.ReportingApi.SDK/Employee.cs | ngchnchong/TimeLogApiSdk | 0 | 7030643 | <filename>TimeLog.ReportingApi.SDK/Employee.cs
namespace TimeLog.ReportingApi.SDK
{
public class Employee
{
public static int All
{
get
{
return 0;
}
}
}
}
|
demos/02-users-groups/Program.cs | rob-windsor/msgraph-access-group-data | 2 | 7030644 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System;
using System.Collections.Generic;
using System.Security;
using Microsoft.Identity.Client;
using Microsoft.Graph;
using Microsoft.Extensions.Configuration;
using Helpers;
namespace graphconsoleapp
... |
src/tests/JIT/Regression/JitBlue/GitHub_19454/Github_19454.cs | belav/runtime | 0 | 7030645 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// GitHub19454: a zero length span was tripping up the jit when trying
// to analyze a bounds check.
using System;
public struct MyStruct
{
public Span<byte> Span1
{
... |
Programatica.VerySimpleLogger.Data.Migrations/Context/AppDbContextFactory.cs | ruialexrib/Programatica.VerySimpleLogger | 0 | 7030646 | using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
using Microsoft.Extensions.Configuration;
using Pomelo.EntityFrameworkCore.MySql.Infrastructure;
using System.Diagnostics;
using System.IO;
using System.Reflection;
namespace Programatica.VerySimpleLogger.Data.Migrations.Context
{
pu... |
src/Essensoft.AspNetCore.Payment.Alipay/Domain/KoubeiCateringDishCookQueryModel.cs | LuohuaRain/payment | 1 | 7030647 | using System.Text.Json.Serialization;
namespace Essensoft.AspNetCore.Payment.Alipay.Domain
{
/// <summary>
/// KoubeiCateringDishCookQueryModel Data Structure.
/// </summary>
public class KoubeiCateringDishCookQueryModel : AlipayObject
{
/// <summary>
/// 菜谱id
/// </summary... |
src/Scenario.SourceGenerator/SourceGenerator.cs | JerrettDavis/Scenario | 0 | 7030648 | using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Text;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Text;
namespace Scenario.SourceGenerator
{
[Generator]
public class ScenarioExtension... |
Wirehome.Core/Devices/DeviceRegistryService.cs | vmanthena/Wirehome.Core | 1 | 7030650 | namespace Wirehome.Core.Devices
{
class DeviceRegistryService
{
// Services like CCTools or even adapters can register a device representation.
// This representation has a status including status details and testing commands.
// With this service a decive can provide status informatio... |
src/source/CommandLine/Command.cs | MichaelSimons/CliCommandLineParser | 116 | 7030651 | <reponame>MichaelSimons/CliCommandLineParser<gh_stars>100-1000
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Linq;
using static Microsoft.DotNet.Cli.CommandLine.Acc... |
src/RippleDotNet/Requests/Admin/WalletProposeRequest.cs | MaintenanceExperts/Ripple.NET.WebSocketClient | 1 | 7030652 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace Ripple.WebSocketClient.Requests.Admin
{
public class WalletProposeRequest : RippleRequest
{
public WalletProposeRequest()
{
this.Command = "wallet_propose";
this.KeyType ... |
code/Binary/Creators/NullableConverter.cs | afxres/binary | 5 | 7030653 | <filename>code/Binary/Creators/NullableConverter.cs
namespace Mikodev.Binary.Creators;
using Mikodev.Binary.Internal;
using System;
internal sealed class NullableConverter<T> : Converter<T?> where T : struct
{
private const int None = 0;
private const int Some = 1;
private readonly Converter<T> convert... |
source/MikhailKhalizev.Max/source/Program/Auto/z-100a-2786.cs | mikhail-khalizev/max | 3 | 7030654 | <filename>source/MikhailKhalizev.Max/source/Program/Auto/z-100a-2786.cs
using System;
using MikhailKhalizev.Processor.x86.BinToCSharp;
namespace MikhailKhalizev.Max.Program
{
public partial class RawProgram
{
[MethodInfo("0x100a_2786-817fe14c")]
public void Method_100a_2786()
{... |
DLC.Scientific/DLC.Scientific.Acquisition/Agents/AcquisitionManagerAgent/UI/CustomRadioButton.cs | slorion/multiagent-system-example | 2 | 7030655 | using System;
using System.Drawing;
using System.Windows.Forms;
namespace DLC.Scientific.Acquisition.Agents.AcquisitionManagerAgent.UI
{
public class CustomRadioButton
: RadioButton
{
private string _textCustom = string.Empty;
public Color DisabledColor { get; set; }
public String TextCustom
{
get
... |
RssGenerator/Program_Seed.cs | RasmusKJensen/CognitiveServices | 13 | 7030656 | //
// Copyright Microsoft Corporation ("Microsoft").
//
// Microsoft grants you the right to use this software in accordance with your subscription agreement, if any, to use software
// provided for use with Microsoft Azure ("Subscription Agreement"). All software is licensed, not sold.
//
// If you do not have ... |
csv-inventory-storage/Utils/Crypto.cs | aequabit/csv-inventory-storage | 0 | 7030657 | <reponame>aequabit/csv-inventory-storage<filename>csv-inventory-storage/Utils/Crypto.cs<gh_stars>0
using System.Linq;
using System.Security.Cryptography;
using System.Text;
namespace CSVInventoryStorage.Utils
{
public static class Crypto
{
/// <summary>
/// Calculates the SHA-256 hash of a str... |
UnitTests/src/MonsterTests.cs | Hoishin/RNGHelper | 3 | 7030658 | <reponame>Hoishin/RNGHelper
using Microsoft.VisualStudio.TestTools.UnitTesting;
using FF12RNGHelper.Core;
namespace UnitTests
{
[TestClass]
public class MonsterTests
{
[TestMethod]
public void TestGetRngPosition()
{
Monster monster = TestUtils.GetDefaultMonster();
... |
source/appwpf/UpdateComponentCompletedEventArgs.cs | shanselman/precode-openlivewriter | 1 | 7030659 | <gh_stars>1-10
/************************************************************************************
' Copyright (C) 2009 <NAME> (http://www.58bits.com) under the terms of the
' Microsoft Public License (Ms-PL http://www.codeplex.com/precode/license)
' Update Processor courtesy of <NAME> at http://www.therightstuff.... |
KAW2IPVisu/KAW2IPVisu/Program.cs | kienboec/KAW-Samples | 0 | 7030660 | <reponame>kienboec/KAW-Samples<filename>KAW2IPVisu/KAW2IPVisu/Program.cs
using System;
namespace KAW2IPVisu
{
class Program
{
private static ISettingsHandler _settingsHandler = null;
private static INetworkDataManager _dataManager = null;
private static IOutputManager _outputManager = ... |
AspNetCore.ReCaptcha/ReCaptchaTagHelper.cs | michaelvs97/AspNetCore.ReCaptcha | 22 | 7030661 | using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Localization;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
using Microsoft.AspNetCore.Razor.TagHelpers;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
namespace AspNetCo... |
Extensions/BetweenExtensions.cs | nievesj/unity-core-project | 51 | 7030662 | <reponame>nievesj/unity-core-project
using System;
namespace Core.Common.Extensions.Between
{
/// <summary>
/// An extension class for the between operation
/// name pattern IsBetweenXX where X = I -> Inclusive, X = E -> Exclusive
/// </summary>
public static class BetweenExtensions
{
... |
Chisel/Decals/DecalManager.cs | Henry00IS/Chisel.Decals | 4 | 7030663 | <filename>Chisel/Decals/DecalManager.cs
#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;
namespace AeternumGames.Chisel.Decals
{
[InitializeOnLoad]
public static class DecalManager
{
private static bool isRegistered = false;
static DecalManager()
{
if (!isRegiste... |
src/Http/Routing/src/ParameterPolicyActivator.cs | tomaswesterlund/aspnetcore | 13,846 | 7030664 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#nullable disable
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Linq;
using System.Reflection;
usin... |
src/ThemeEditor.Base/Preview/NumericUpDownPage.axaml.cs | wieslawsoltes/ColorPicker | 12 | 7030665 | <reponame>wieslawsoltes/ColorPicker<filename>src/ThemeEditor.Base/Preview/NumericUpDownPage.axaml.cs<gh_stars>10-100
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using ReactiveUI;
namespace ThemeEditor.Preview;
pub... |
Source/AngularSkeleton.DataAccess/Entities/EntityContext.cs | AfshinAkbari/AngularSkeleton.NET | 0 | 7030666 | <reponame>AfshinAkbari/AngularSkeleton.NET
//=============================================================================
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NO... |
sdk/dotnet/Kms/ReplicaExternalKey.cs | chivandikwa/pulumi-aws | 0 | 7030667 | <filename>sdk/dotnet/Kms/ReplicaExternalKey.cs<gh_stars>0
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using ... |
src/Toolbox.Extension/UI/Scaffolding/Tables.xaml.cs | ilchenkob/ef-core-toolbox | 4 | 7030668 | using System.Windows;
using System.Windows.Controls;
using Toolbox.Extension.Logic.Scaffolding.ViewModels.TreeNodes;
using Toolbox.Extension.Logic.ViewModels.TreeNodes;
namespace Toolbox.Extension.UI.Scaffolding
{
/// <summary>
/// Interaction logic for Tables.xaml
/// </summary>
public partial class ... |
src/Pomelo.AspNetCore.Extensions/Controllers/BaseControllerWithIdentity.cs | qinxiaowen/dotNETCore-Extensions | 190 | 7030669 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
namespace Microsoft.AspNetCore.Mvc
{
public abstract class BaseController<T... |
src/Orchard.Web/Modules/LETS/Views/Transactions.cshtml | planetClaire/Orchard-LETS | 0 | 7030670 | @model LETS.ViewModels.MemberTransactionsViewModel
@{
Style.Require("LETS.Common");
Script.Require("ShapesBase").AtFoot();
}
@Html.AntiForgeryTokenOrchard()
<table class="items table table-striped table-bordered" >
<thead>
<tr>
<th scope="col">@T("Date")</th>
<th scope="c... |
src/Lob.Net/Core/LobAddresses.cs | adamreed90/lob.net | 5 | 7030671 | using Lob.Net.Models;
namespace Lob.Net
{
public class LobAddresses : LobBaseRequest<AddressRequest, AddressResponse, AddressFilter>, ILobAddresses
{
private const string URL = "/v1/addresses";
public LobAddresses(
ILobCommunicator lobCommunicator
)
: base(lobC... |
DataAccess/Repository.cs | psyphore/graphql-net_core-neo4j | 4 | 7030672 | using DataAccess.Interfaces;
using Models.DTOs.Configuration;
using Neo4j.Driver;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace DataAccess
{
public class Repository : IRepository
{
private readonly IDriver _driver;
private readonly C... |
src/ReactiveUI.Testing.Tests/TestFixtureBuilder.cs | tomasfil/ReactiveUI | 0 | 7030673 | // Copyright (c) 2022 .NET Foundation and Contributors. All rights reserved.
// 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 full license information.
using System;
using System.Coll... |
sources/engine/Stride.Particles/ParticleUtilities.cs | profan/stride | 3 | 7030674 | <gh_stars>1-10
// Copyright (c) Stride contributors (https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
namespace Stride.Particles
{
public static class ParticleUtilities
{
... |
07.High-Quality Code/10.Unit-Testing/Santase/Santase.Tests/CardComparer.cs | b-slavov/Telerik-Software-Academy | 2 | 7030675 | <filename>07.High-Quality Code/10.Unit-Testing/Santase/Santase.Tests/CardComparer.cs
namespace Santase.Tests
{
using System;
using System.Collections.Generic;
using Santase.Logic.Cards;
class CardComparer : IEqualityComparer<Card>
{
public bool Equals(Card x, Card y)
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.