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 |
|---|---|---|---|---|
Code/Light.GuardClauses.Performance/StringAssertions/MustNotBeNullOrEmptyBenchmark.cs | feO2x/Light.GuardClauses | 68 | 7030781 | using System;
using BenchmarkDotNet.Attributes;
using Light.GuardClauses.Exceptions;
namespace Light.GuardClauses.Performance.StringAssertions
{
public class MustNotBeNullOrEmptyBenchmark
{
public string NonEmptyString = "Foo";
[Benchmark(Baseline = true)]
public string ImperativeVers... |
OpenAM.Core/Entities/Property.cs | yarblade/ru.org.openam.net | 0 | 7030782 | <gh_stars>0
using System.Xml.Serialization;
namespace OpenAM.Core.Entities
{
public class Property
{
[XmlAttribute("name")]
public string Name { get; set; }
[XmlAttribute("value")]
public string Value { get; set; }
}
} |
src/Trivia/Category.cs | sandeshkota/trivia-refactoring | 6 | 7030783 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Trivia
{
public enum Category
{
Pop,
Science,
Sports,
Rock
}
}
|
src/MarkdownSnippets/Processing/SnippetMarkdownHandling.cs | khalidabuhakmeh/MarkdownSnippets | 0 | 7030784 | using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.IO;
namespace MarkdownSnippets
{
/// <summary>
/// Handling to be passed to <see cref="MarkdownProcessor"/>.
/// </summary>
public class SnippetMarkdownHandling
{
LinkFormat linkF... |
Assets/Nodux/Editor/NoduxGraph/NoduxGraphView.cs | mattak/Nodux | 21 | 7030785 | using System;
using System.Collections.Generic;
using Nodux.PluginGraph;
using UniRx;
using UnityEditor;
using UnityEditor.Experimental.GraphView;
using UnityEditor.SceneManagement;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UIElements;
namespace Nodux.PluginEditor.NoduxGraph
{
public ... |
test-project/Assets/Generated/Source/improbable/gdk/tests/NestedComponent.cs | NickTikhonov/UnityGDK | 1 | 7030786 | // ===========
// DO NOT EDIT - this file is automatically regenerated.
// ===========
using Unity.Entities;
using Improbable.Gdk.Core;
namespace Improbable.Gdk.Tests
{
public partial class NestedComponent
{
public struct Component : IComponentData, ISpatialComponentData
{
public u... |
src/Formats/Assets/MultiLanguageStringDictionary.cs | lucorp/ualbion | 80 | 7030787 | <reponame>lucorp/ualbion
using System.Collections.Generic;
namespace UAlbion.Formats.Assets
{
public class MultiLanguageStringDictionary : Dictionary<string, ListStringCollection>, IStringCollection
{
public string GetString(StringId id, string language)
=> TryGetValue(language, out var co... |
NewLife.Cube/Common/EntityModelBinder.cs | NewLifeX/X_NET20 | 5 | 7030788 | <reponame>NewLifeX/X_NET20
using System;
using System.Linq;
using System.Web.Mvc;
using NewLife.Log;
using XCode;
namespace NewLife.Cube
{
/// <summary>实体模型绑定器。特殊处理XCode实体类</summary>
public class EntityModelBinder : DefaultModelBinder
{
/// <summary>创建模型。对于有Key的请求,使用FindByKeyForEdit方法先查... |
tracer/src/Datadog.Trace.Tools.Runner/Checks/Resources.cs | cwe1ss/dd-trace-dotnet | 13 | 7030789 | <gh_stars>10-100
// <copyright file="Resources.cs" company="Datadog">
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache 2 License.
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2017 Datadog, Inc.
// </copyright>
#nullable en... |
Training Practise/C#/EMS/UI/Program.cs | 220328-uta-sh-net-ext/Marcos-Fonseca | 0 | 7030790 | // Let's call Employee
using UI;
Employee emp = new Employee();
//emp.firstName = "Mark";
//emp.lastName = "Fonseca";
// Employee.planet = "Mars"; // const can never be changed
Console.WriteLine("Please enter first name ");
var firstName=Console.ReadLine();
Console.WriteLine("Please enter last name ");
var lastName... |
T4MVCSampleApp/Areas/MyCoolArea/MyCoolAreaAreaRegistration.cs | davidebbo/T4MVCSampleApp | 0 | 7030791 | <reponame>davidebbo/T4MVCSampleApp
using System.Web.Mvc;
namespace T4MVCSampleApp.Areas.MyCoolArea
{
public class MyCoolAreaAreaRegistration : AreaRegistration
{
public override string AreaName
{
get
{
return "MyCoolArea";
}
}
... |
WARR-Protokoll/Migrations/201407141524557_TopicCreator.cs | jfheins/WARR-Protokoll | 1 | 7030792 | using System.Data.Entity.Migrations;
namespace ILK_Protokoll.Migrations
{
public partial class TopicCreator : DbMigration
{
public override void Up()
{
AddColumn("dbo.Topic", "Creator_ID", c => c.Int(nullable: false, defaultValue: 1));
CreateIndex("dbo.Topic", "Creator_ID");
AddForeignKey("dbo.Topic", "... |
LaunchCamPlus/Properties/Settings.Designer.cs | SuperHackio/LaunchCamPlus | 10 | 7030793 | <gh_stars>1-10
//------------------------------------------------------------------------------
// <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-... |
tests/Oryx.Tests.Common/TestPlatformDetector.cs | samruddhikhandale/Oryx | 403 | 7030795 | <gh_stars>100-1000
// --------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// --------------------------------------------------------------------------------------------
using ... |
mcs/errors/cs0030-6.cs | lefb766/mono | 469 | 7030796 | // CS0030: Cannot convert type `System.DateTime' to `string'
// Line: 10
using System;
public class Blah
{
public static void Main ()
{
string s = (string)DateTime.Now;
}
}
|
MapboxNetCore/EnhancedExpandoObeject.cs | fossabot/MapboxNet | 53 | 7030797 | <reponame>fossabot/MapboxNet
using System;
using System.Collections;
using System.Collections.Generic;
using System.Dynamic;
using System.Reflection;
using System.Text;
namespace MapboxNetCore
{
public class EnhancedExpandoObeject : DynamicObject, IDictionary<string, object>
{
public Dictionary<string... |
Assets/Scripts/Utils/TilemapExtension.cs | mnicolas94/MCGF2021_MazeGeneration | 0 | 7030798 | using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Tilemaps;
namespace Utils
{
public static class TilemapExtension
{
public static int GetTilesCount(this Tilemap tm)
{
int count = 0;
var bounds = tm.cellBounds;
var tilePosition = new Vec... |
Client/Peer/Manager/PeerManager.cs | p2pquake-takuya/epsp-peer-cs | 3 | 7030799 | <reponame>p2pquake-takuya/epsp-peer-cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using Client.Common.General;
using Client.Common.Net;
using Client.Peer.General;
using P... |
Core.Clang.Tests/IndexTests.cs | GordenOu/Core.Clang | 3 | 7030800 | using System;
using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Core.Clang.Tests
{
[TestClass]
public class IndexTests : ClangTests, IDisposable
{
private Index index;
public IndexTests()
{
Initialize();
}
[TestInitialize]
... |
ShoppingCard.Web/ShoppingCard.Web/Controllers/OrderController.cs | Raees-Ahamed/ShoppingCard | 0 | 7030801 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AutoMapper;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
using ShoppingCard.BL.BO;
using ShoppingCard.BL.Interfaces;
using ShoppingCard.Data.Entity;
using ShoppingCard.Data.ShoppingCardContext;... |
Examples/CSharpExamples/cAudioPlayer/MainWnd.cs | MUtopialaddygaga/my-repository | 100 | 7030802 | <filename>Examples/CSharpExamples/cAudioPlayer/MainWnd.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using cAudio;
namespace cAudioPlayer
{
public partial class MainWnd : Fo... |
src/SFA.DAS.Courses.Data.UnitTests/Repository/FrameworkRepository/WhenDeletingAllItems.cs | SkillsFundingAgency/das-courses-api | 1 | 7030803 | <reponame>SkillsFundingAgency/das-courses-api<filename>src/SFA.DAS.Courses.Data.UnitTests/Repository/FrameworkRepository/WhenDeletingAllItems.cs<gh_stars>1-10
using System;
using System.Collections.Generic;
using Moq;
using NUnit.Framework;
using SFA.DAS.Courses.Data.UnitTests.DatabaseMock;
using SFA.DAS.Courses.Domain... |
ChatTranscriptService/SalesforceWrapper.cs | InteractiveIntelligence/Salesforce-ChatTranscriptService | 0 | 7030804 | <gh_stars>0
using ChatTranscriptService.com.salesforce.na15;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Web;
namespace ChatTranscriptService
{
public class SalesforceWrapper
{
private readonly string _user = ... |
NBear.Test.UnitTests/temp/EntitySampleTemp1.cs | shnug/NBear | 0 | 7030805 | using System;
using NBear.Common.Design;
namespace NBear.Test.UnitTests.temp.EntitySampleTemp1
{
public interface PrivilegeOwner : Entity
{
[PrimaryKey]
[SqlType("int")]
int ID { get; set; }
[SqlType("nvarchar(50)")]
string Name { get; set; }
}
public interface... |
src/E01D.Base.Layers.Exceptions/Coding/Code/Exceptions/E01D/Base/Layers/LayerException.cs | E01D/Base | 0 | 7030806 | <reponame>E01D/Base<gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace E01D.Base.Layers.Exceptions.Coding.Code.Exceptions.E01D.Base.Layers
{
public class LayerException: Root.Coding.Code.Models.E01D.Base.Exceptions.Exception
... |
ControladorDeNotas/ControladorDeNotas/MainWindow.xaml.cs | jvtoti/ControladorDeNotas | 0 | 7030807 | using ControladorDeNotas.entidade;
using ControladorDeNotas.Servico;
using System;
using System.Collections.Generic;
using System.Data.Entity.Validation;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Wind... |
src/ContentAggregator/Services/ContentService.cs | Siderite/ContentAggregator | 1 | 7030808 | using ContentAggregator.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ContentAggregator.Entities;
namespace ContentAggregator.Services
{
public class ContentService : IContentService
{
private readonly ITimeService _timeService;
... |
src/Cinematic.Web/Views/Home/Index.cshtml | DotNetters/cinematic.core | 0 | 7030809 | @{
ViewData["Title"] = Literals.Home;
}
<div class="jumbotron" style="background-image: url(images/tickets256_BG.png); background-repeat: no-repeat; background-position: left;">
<h1>@Literals.AppTitle</h1>
<p class="lead">@Literals.AppSummary</p>
<p>
<a asp-area="" asp-controller="TicketSellin... |
DevJobs.API/Entities/JobVacancy.cs | cesaroet/Jornada.Net | 0 | 7030810 | using System;
using System.Collections.Generic;
namespace DevJobs.API.Entities
{
public class JobVacancy
{
public JobVacancy(string title, string description, string company, bool isRemote, string salaryRange)
{
Title = title;
Description = description;
Compa... |
BarcodeReader/MainWindow.xaml.cs | DDoSolitary/BarcodeReader | 19 | 7030811 | using System;
using System.Collections.Specialized;
using System.Windows;
using System.Windows.Media.Imaging;
using Microsoft.Win32;
using NativeUtils;
namespace BarcodeReader {
public partial class MainWindow : Window {
internal static bool CaptureWndShown = false;
private readonly MsgOnlyWindow _msgW... |
aspnet-core/services/LY.MicroService.TaskManagement.HttpApi.Host/Migrations/20220112093435_Add-Support-Multi-Tenancy-With-Background-Jobs.cs | geffzhang/abp-next-admin | 84 | 7030812 | using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace LY.MicroService.TaskManagement.Migrations
{
public partial class AddSupportMultiTenancyWithBackgroundJobs : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
... |
Items/Scion3.cs | AerysBat/XNALara | 5 | 7030813 | namespace XNALara
{
public class Scion3 : Item
{
public Scion3(Game game)
: base(game) {
}
protected override void DefineMeshGroups() {
model.DefineMeshGroup(MeshGroupNames.MeshGroup5, "scion3a", "scion3b", "scion3c");
model.DefineMeshGroup(MeshGroup... |
src/Ivas.Analyzer/Ivas.Analyzer.Core/Interfaces/Services/IAnalysisService.cs | levibrian/ivas-analyzer-api | 0 | 7030814 | <reponame>levibrian/ivas-analyzer-api
using System.Collections.Generic;
using System.Threading.Tasks;
using Ivas.Analyzer.Contracts.Dtos.Analysis;
using Ivas.Analyzer.Contracts.Requests;
using Ivas.Analyzer.Model.Entities;
namespace Ivas.Analyzer.Core.Interfaces.Services
{
public interface IAnalysisService
{
... |
src/Sdk/More.VisualStudio.TemplateWizards/ViewModels/TemplateOption.cs | JTOne123/More | 25 | 7030815 | <reponame>JTOne123/More<gh_stars>10-100
namespace More.VisualStudio.ViewModels
{
using More.ComponentModel;
using System.Diagnostics;
using System.Diagnostics.Contracts;
/// <summary>
/// Represents an option for a template.
/// </summary>
[DebuggerDisplay( "Name = {Name}, IsEnabled = {IsE... |
AdventOfCode2021/Program.cs | rprouse/AdventOfCode2017 | 1 | 7030816 | <filename>AdventOfCode2021/Program.cs
using System;
using System.Threading.Tasks;
using AdventOfCode.Core;
using AdventOfCode2021;
using NUnit.Framework;
[assembly: Parallelizable(ParallelScope.Fixtures)]
int result = Day15.PartTwo(TestBase.PuzzleFile(15));
Console.WriteLine(result);
Console.ResetColor();
Console.Re... |
WebBrowserEngine/ChromiumFX/HTMEngine.ChromiumFX/Convertion/ChromiumFXJavascriptObjectExtension.cs | jawn/Neutronium | 1,338 | 7030817 | <filename>WebBrowserEngine/ChromiumFX/HTMEngine.ChromiumFX/Convertion/ChromiumFXJavascriptObjectExtension.cs<gh_stars>1000+
using Chromium.Remote;
using Neutronium.Core.WebBrowserEngine.JavascriptObject;
using Neutronium.WebBrowserEngine.ChromiumFx.V8Object;
using Neutronium.Core.Infra;
namespace Neutronium.WebBrowse... |
src/Couchbase.Lite.Shared/Replication/OneShotOrLongPollLogic.cs | brettharrisonzya/couchbase-lite-net | 2 | 7030818 | <filename>src/Couchbase.Lite.Shared/Replication/OneShotOrLongPollLogic.cs
//
// OneShotOrLongPollLogic.cs
//
// Author:
// <NAME> <<EMAIL>>
//
// Copyright (c) 2016 Couchbase, Inc All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in complia... |
src/chapter_03/Program.cs | mnpawan/Learn-C-Sharp | 24 | 7030820 | <filename>src/chapter_03/Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
namespace chapter_03
{
class Program
{
static void if_demo()
{
Console.WriteLine("Enter a positive integer");
var line = Console.ReadLine();
int.T... |
Trady.Analysis/Pattern/Indicator/ExponentialMovingAverageCrossover.cs | sivakspt/Trady | 0 | 7030821 | <filename>Trady.Analysis/Pattern/Indicator/ExponentialMovingAverageCrossover.cs
using System.Collections.Generic;
using System.Linq;
using Trady.Analysis.Indicator;
using Trady.Analysis.Infrastructure;
using Trady.Analysis.Pattern.State;
namespace Trady.Analysis.Pattern.Indicator
{
public class ExponentialMo... |
src/DataMigrator/SaaSDatabase/Models/DepositHead.cs | datacrud/tilespad-data-migrator | 2 | 7030822 | using System;
using System.Collections.Generic;
namespace SaaSDatabase.Models
{
public partial class DepositHead
{
public DepositHead()
{
DepositDepositHead = new HashSet<Deposit>();
DepositParentHead = new HashSet<Deposit>();
InverseParent = new HashSet<Dep... |
src/LinqToTwitter5/LinqToTwitter.Tests/AccountActivityTests/AccountActivityRequestProcessorTests.cs | ZavierHenry/LinqToTwitter | 486 | 7030823 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Linq.Expressions;
using LinqToTwitter;
using LinqToTwitterPcl.Tests.Common;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json.Linq;
namespace LinqToTwitterPcl.Tests.DirectMessageTests
{
... |
Controllers/ApiResponseServerMethod.cs | pietie/jsdal-server-core | 0 | 7030824 | using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace jsdal_server_core
{
public class ApiResponseServerMethodBase
{
public ApiResponseServerMethodBase()
{
this.ApiVersion = "SM1.0";
}
public ApiResponseType Type { get; set; }
publi... |
SearchAED/SearchAED/Program.cs | lucasbrafer/Search | 0 | 7030825 | using System;
using System.Collections.Generic;
using System.IO;
using System.Threading;
namespace SearchAED
{
class SemiRegistro
{
public string city { get; set; }
public int accommodates { get; set; }
}
class Registro
{
//chave -> room_id
public int room_id { get... |
src/BackwardCompatibilityChecker/Introspection/Types/TypeMapper.cs | Litee/dotnet-backward-compatibility-checker | 0 | 7030826 | <gh_stars>0
using System.Collections.Generic;
namespace BackwardCompatibilityChecker.Introspection.Types
{
public static class TypeMapper
{
static Dictionary<string, string> mySimpleType2FullType = new Dictionary<string, string>
{
{"bool", "System.Boolean"},
{"byte", "Sy... |
HotfixTest/Program.cs | noahmorrison/CSharpHotfix | 0 | 7030827 | <filename>HotfixTest/Program.cs
using System;
using System.Linq;
using System.Runtime.Loader;
using System.IO;
using System.Reflection;
namespace HotfixTest
{
class Program
{
static void Main(string[] args)
{
Assembly hotfixAssembly = null;
Type type = null;
... |
src/csharp/Intel/Iced.UnitTests/Intel/DecoderTests/MiscTests.cs | Ralith/iced | 1 | 7030828 | /*
Copyright (C) 2018-2019 <EMAIL>
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 restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, su... |
src/Common.Extensions.Object.DeepEquals.UnitTests/Internal/Services/CircularReferenceMonitorTests.cs | BlankDev117/Common.Extensions.Object | 0 | 7030829 | using System.Collections.Generic;
using Common.Extensions.Object.DeepEquals.Internal.Services;
using Common.Extensions.Object.DeepEquals.Ports;
using Common.Extensions.Object.DeepEquals.UnitTests.Helpers;
using Xunit;
namespace Common.Extensions.Object.DeepEquals.UnitTests.Internal.Services
{
public class Circula... |
src/Metaseed.MetaCore/Collections/Generic/ArrayEqual.cs | metaseed/MetaStudio | 4 | 7030830 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Metaseed.Collections.Generic
{
public static class ArrayEqual
{
public static bool ArrayEquals<T>(T[] a, T[] b)
{
if (a.Length != b.Length)
return false;
... |
Fop2ClientLib/Fop2Message.cs | KeenSystemsNL/Fop2DD | 1 | 7030831 | <reponame>KeenSystemsNL/Fop2DD<filename>Fop2ClientLib/Fop2Message.cs
using Newtonsoft.Json;
namespace Fop2ClientLib
{
/// <summary>
/// Represents a (basic) message received from a FOP2 host
/// </summary>
public class Fop2Message
{
/// <summary>
/// Gets/sets the "button... |
src/39/MoreThanHalfNumberTest.cs | DongchengWang/coding-interview-chinese-2nd-csharp | 1 | 7030832 | using NUnit.Framework;
namespace CodingInterview {
[TestFixture]
public class MoreThanHalfNumberTest {
[Test]
public void TestMoreThanHalfNumber() {
var result = MoreThanHalfNumber.Get(new[] { 1, 2, 3, 2, 2, 2, 5, 4, 2 });
Assert.AreEqual(2, result);
}
}
}
|
Development/Shell/EditorFoundation/Source/View.Wpf/Controls/DefaultStatusBar.xaml.cs | adamdriscoll/TfsIntegrationPlatform | 6 | 7030833 | <gh_stars>1-10
// Copyright © Microsoft Corporation. All Rights Reserved.
// This code released under the terms of the
// Microsoft Public License (MS-PL, http://opensource.org/licenses/ms-pl.html.)
using System.Windows.Controls.Primitives;
namespace Microsoft.TeamFoundation.Migration.Shell.View
{
/// <summary... |
Assets/Game/Scripts/Artificial Intelligence/State Machines/SpawnableShipAI.cs | ninito-ph/Sketch-Fleets | 1 | 7030834 | <gh_stars>1-10
using System.Collections.Generic;
using System.Linq;
using ManyTools.UnityExtended;
using SketchFleets.Data;
using SketchFleets.Entities;
using UnityEngine;
namespace SketchFleets.AI
{
/// <summary>
/// A state machine that handles the AI of spawned ships.
/// </summary>
[RequireCompone... |
src/wmd-console/UI/Menus/MainMenuActions.cs | Xyaneon/Weapons-of-Mass-Domination | 0 | 7030835 | <reponame>Xyaneon/Weapons-of-Mass-Domination
using System;
using WMD.Game.State.Data;
namespace WMD.Console.UI.Menus
{
static class MainMenuActions
{
private const string ExitMessage = "Thanks for playing!";
public static void ExitGame()
{
System.Console.WriteLine(ExitMess... |
AirLocate/AirLocate/MonitoringViewController.designer.cs | susairajs/ios-samples | 863 | 7030836 | // WARNING
//
// This file has been generated automatically by Xamarin Studio from the outlets and
// actions declared in your storyboard file.
// Manual changes to this file will not be maintained.
//
using Foundation;
using System;
using System.CodeDom.Compiler;
using UIKit;
namespace AirLocate
{
[Register ("Monito... |
Client/API/Models/Response/PriceData.cs | reinderien/BrickLink | 0 | 7030837 | <gh_stars>0
namespace BrickLink.Client.API.Models.Response
{
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
public record PriceDetail(
// The number of the items in the inventory
int quantity,
// Indicates whether or not the seller ships ... |
src/Endpoint.Application/Commands/EventHandler.cs | PeterKneale/Endpoint | 0 | 7030838 | using CommandLine;
using MediatR;
using System.Threading;
using System.Threading.Tasks;
namespace Endpoint.Application.Commands
{
internal class EventHandler
{
[Verb("event-handler")]
internal class Request : IRequest<Unit>
{
}
internal class Handler : IRequestHandler<... |
EssentialUIKit/ViewModels/BaseViewModel.cs | pqhcker/essential-ui-kit-for-xamarin.forms | 1,018 | 7030839 | <reponame>pqhcker/essential-ui-kit-for-xamarin.forms<gh_stars>1000+
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
using Xamarin.Forms;
using Xamarin.Forms.Internals;
namespace EssentialUIKit.ViewModels
{
/// <summary>
... |
Dataphor/Frontend.Client/ActionInterfaces.cs | ashalkhakov/Dataphor | 1 | 7030840 | /*
Alphora Dataphor
© Copyright 2000-2008 Alphora
This file is licensed under a modified BSD-license which can be found here: http://dataphor.org/dataphor_license.txt
*/
using System;
namespace Alphora.Dataphor.Frontend.Client
{
/************** Nodes **************/
/// <summary> Base abstract no... |
Assets/Scripts/GazeInputModuleCrosshair.cs | t1mmmmY/SalesforceWithPlaymaker | 1 | 7030841 | using UnityEngine;
using System.Collections;
// To use:
// 1. Add a cross hair in front of your VR camera:
// - Create 3d->Quad and position it at a default distance (0,0,2)
// - Assign your crosshair material
// - Adjust the transform scale for the desired size
// 2. Add this to a gameobject with a GazeInp... |
src/libraries/Microsoft.Extensions.Caching.Memory/src/MemoryDistributedCache.cs | pyracanda/runtime | 9,402 | 7030842 | <filename>src/libraries/Microsoft.Extensions.Caching.Memory/src/MemoryDistributedCache.cs
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensio... |
src/Edgar/Legacy/Utils/Serialization/ModelConverter.cs | OndrejNepozitek/ProceduralLevelGenerator | 179 | 7030843 | <reponame>OndrejNepozitek/ProceduralLevelGenerator
using System.Linq;
using Edgar.GraphBasedGenerator.Grid2D;
using Edgar.Legacy.Core.MapLayouts;
using Edgar.Legacy.Utils.Serialization.Models;
namespace Edgar.Legacy.Utils.Serialization
{
/// <summary>
/// Converts given class to representations more suitable for... |
Assets/ZMD/[Core]/Type Based/Rotation/SimpleRotation.cs | Will9371/Playcraft | 3 | 7030844 | <filename>Assets/ZMD/[Core]/Type Based/Rotation/SimpleRotation.cs
using UnityEngine;
namespace ZMD
{
public class SimpleRotation : MonoBehaviour
{
[SerializeField] float rotationSpeed;
public void Rotate(Vector3 rotationAxis)
{
rotationAxis = rotationAxis.normalized;
... |
Framework/src/Ncqrs.Tests/Domain/UnitOfWorkTests.cs | theBoringCoder/ncqrs | 244 | 7030845 | <gh_stars>100-1000
using System;
using System.Collections.Generic;
using Ncqrs.Domain;
using Ncqrs.Domain.Storage;
using Ncqrs.Eventing.ServiceModel.Bus;
using Ncqrs.Eventing.Sourcing.Snapshotting;
using Ncqrs.Eventing.Storage;
using Xunit;
using Rhino.Mocks;
namespace Ncqrs.Tests.Domain
{
public... |
Crash.Core/Text/ColumnCounter.cs | yoshiheight/Crash.Editor | 8 | 7030846 | namespace Crash.Core.Text
{
public sealed class ColumnCounter
{
private readonly int _tabCount;
/// <summary>追加した文字のカラム幅の合計。</summary>
public int TotalColumnCount { get; private set; }
/// <summary>最後に追加した文字のカラム幅(半角なら1、全角なら2、タブ文字ならタブ幅)。</summary>
public int LastColumnC... |
C01_C#ProgrammingFundamentals-May-2021/P26_Final Exam/Problem 3/StartUp.cs | Statev7/SoftUni-Java | 4 | 7030847 | <gh_stars>1-10
namespace Problem_3
{
using System;
using System.Collections.Generic;
using System.Linq;
public class StartUp
{
const string COMMAND_TO_STOP = "Statistics";
const string REACHED_CAPACITY_ERROR_MESSAGE = "{0} reached the capacity!";
public static void Main()
... |
Assets/Scripts/GameFlow/AnimatorUi/Screens/ShopMenuScreen/Cells/SkinBundleShopCell.cs | TheProxor/code-samples-from-pg | 0 | 7030848 | <reponame>TheProxor/code-samples-from-pg
using Modules.InAppPurchase;
using Drawmasters.Utils;
using Drawmasters.Levels;
using Sirenix.OdinInspector;
using Spine.Unity;
using UnityEngine;
namespace Drawmasters.Ui
{
public class SkinBundleShopCell : CurrencyBundleShopCell
{
#region Fields
[Se... |
UI/PointerHandlers.cs | manuelfalonso/Unity-Scripts | 0 | 7030849 | <reponame>manuelfalonso/Unity-Scripts<gh_stars>0
using UnityEngine;
using UnityEngine.EventSystems;
/// <summary>
/// Unity Pointer handlers interfaces for UI mouse events.
/// </summary>
public class PointerHandlers : MonoBehaviour,
IPointerClickHandler,
IPointerDownHandler,
IPointerEnterHandler,
IPo... |
src/ConsoLovers.AutoDoc/TypeDocumentation.cs | bramerdaniel/AutoDoc | 1 | 7030850 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="TypeDocumentation.cs" company="KUKA Roboter GmbH">
// Copyright (c) KUKA Roboter GmbH 2006 - 2018
// </copyright>
// ------------------------------------------------------------... |
src/ServiceStack/CacheAccess.Providers/MultiCacheClient.cs | froyke/ServiceStack | 12 | 7030851 | <reponame>froyke/ServiceStack<gh_stars>10-100
using System;
using System.Collections.Generic;
using ServiceStack.Common;
namespace ServiceStack.CacheAccess.Providers
{
public class MultiCacheClient
: ICacheClient
{
private readonly List<ICacheClient> cacheClients;
public MultiCacheClient(params IC... |
CubaseProjectPlugins/ProjectReader.cs | fgimian/cubase-project-plugins | 1 | 7030852 | <reponame>fgimian/cubase-project-plugins
namespace CubaseProjectPlugins;
/// <summary>
/// Determines the used plugins in a Cubase project along with related version of Cubase which the
/// project was created on by parsing the binary in a *.cpr file.
/// </summary>
public class ProjectReader
{
private re... |
src/UnitTests.Subtext/Framework/Routing/PageRouteTests.cs | technology-toolbox/Subtext | 0 | 7030853 | <filename>src/UnitTests.Subtext/Framework/Routing/PageRouteTests.cs
using System;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using Subtext.Framework.Routing;
using Subtext.Framework.Web.HttpModules;
namespace UnitTests.Subtext.Framew... |
ED-Router.UI.Desktop/Converters/VisibleAndMultiConverter.cs | dominiquesavoie/ED-Router | 4 | 7030854 | using System;
using System.Globalization;
using System.Linq;
using System.Windows;
using System.Windows.Data;
namespace ED_Router.UI.Desktop.Converters
{
public class VisibleAndMultiConverter: IMultiValueConverter
{
public object Convert(object[] values, Type targetType, object parameter, CultureInfo ... |
source/ShioTreeGridItemExpander.cs | shio-youkan/Wpf-Control-Shio-TreeGrid | 0 | 7030855 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using Syst... |
InnovatorAdmin/Controls/MergeInterface.Designer.cs | GCAE/InnovatorAdmin | 49 | 7030856 | <gh_stars>10-100
namespace InnovatorAdmin.Controls
{
partial class MergeInterface
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <para... |
StimulusChallenge.API/Controllers/StatsController.cs | CantStopDYT/stimulus_challenge_api | 0 | 7030857 | <gh_stars>0
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using StimulusChallenge.API.Models;
using StimulusChallenge.API.Services;
namespace StimulusChallenge.API.Controllers
{
[ApiController]
[Route("[controller]")]
public class StatsController : ControllerBase
{
... |
Epam.Task11_12/Epam.Task7.BLL/AwardLogic.cs | AlexeiGolubev/XT-2018Q4 | 0 | 7030858 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Epam.Task7.BLL.Interface;
using Epam.Task7.DAL.Interface;
using Epam.Task7.Entities;
namespace Epam.Task7.BLL
{
public class AwardLogic : IAwardLogic
{
private const string AllAwar... |
LibMMD/Pmx/PmxJoint.cs | Xalcon/LibMMD | 2 | 7030859 | using System;
using System.Collections.Generic;
using System.Text;
using LibMMD.DataTypes;
namespace LibMMD.Pmx
{
public class PmxJoint
{
public string NameLocal;
public string NameUniversal;
public PmxJointType JointType;
public int RigidBodyIndexA;
public int RigidBod... |
src/JsonApiDotNetCore/Middleware/AsyncJsonApiExceptionFilter.cs | json-api-dotnet/JsonApiDotnetCore | 0 | 7030860 | using JetBrains.Annotations;
using JsonApiDotNetCore.Serialization.Objects;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
namespace JsonApiDotNetCore.Middleware;
/// <inheritdoc />
[PublicAPI]
public sealed class AsyncJsonApiExceptionFilter : IAsyncJsonApiExceptionFilter
{
private readon... |
src/CoWorker.Primitives/JsonExtensions.cs | dcvsling/CoWorker | 1 | 7030861 | <reponame>dcvsling/CoWorker
using System.Linq;
using Newtonsoft.Json;
namespace CoWorker.Primitives
{
public static class JsonExtensions
{
public static JsonSerializerSettings Initialize(this JsonSerializerSettings settings)
{
settings.Formatting = Formatting.Indented;
... |
src/Silverlight/API/ESRI.ArcGIS.Client.Toolkit.DataSources/Properties/AssemblyInfo.cs | ArcScofield/arcgis-toolkit-sl-wpf | 1 | 7030862 | // (c) Copyright ESRI.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Resources;... |
Source/Server/WebPortal/Tasks/Modules/TaskEdit.ascx.designer.cs | InstantBusinessNetwork/IBN | 21 | 7030863 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.3615
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//----... |
sample/Util.Samples.Angular.Material/Services/Abstractions/Systems/IApplicationService.cs | lwi360/Util | 2 | 7030864 | <filename>sample/Util.Samples.Angular.Material/Services/Abstractions/Systems/IApplicationService.cs
using Util.Applications;
using Util.Samples.Services.Dtos.Systems;
using Util.Samples.Services.Queries.Systems;
namespace Util.Samples.Services.Abstractions.Systems {
/// <summary>
/// 应用程序服务
/// </summary>... |
dCom/Common/IStateUpdater.cs | vukisic/WEB_SCADA | 0 | 7030865 | <gh_stars>0
namespace Common
{
/// <summary>
/// Interface containing logic for updateing connection state and logging.
/// </summary>
public interface IStateUpdater
{
/// <summary>
/// Updates the connection state.
/// </summary>
/// <param name="currentConnectionState... |
DSoft.CraftyClicks.PostCodeApi/PostCodeLookupProvider.cs | newky2k/DSoft.CraftyClicks.PostCodeApi | 0 | 7030866 | <gh_stars>0
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace DSoft.CraftyClicks.PostCodeApi
{
public class PostCodeLookupProvider : IDisposable
{
private PostCodeLookupProviderOptions _o... |
Models/Gdl90GeoAltitude.cs | jeffdamp-wave/fs2ff | 1 | 7030867 | using System;
using GeoidHeightsDotNet;
namespace fs2ff.Models
{
public class Gdl90GeoAltitude :Gdl90Base
{
/// <summary>
/// GDL-90 Ownership Geometric Altitude (1Hz) 5 bytes.
/// Used by the AHRS Altitude bar
/// </summary>
/// <param name="pos"></param>
publi... |
Lib/Neon.Kube/SetupController/ISetupController.cs | jefflill/neonKUBE | 0 | 7030868 | //-----------------------------------------------------------------------------
// FILE: ISetupController.cs
// CONTRIBUTOR: <NAME>
// COPYRIGHT: Copyright (c) 2005-2022 by neonFORGE LLC. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except... |
Sources/Integrations/CognitiveServices/Microsoft.Psi.CognitiveServices.Speech/Service/SpeechEndDetectedMessage.cs | pat-sweeney/psi | 332 | 7030869 | <gh_stars>100-1000
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
namespace Microsoft.Psi.CognitiveServices.Speech.Service
{
/// <summary>
/// Represents a speech.endDetected message from the service.
/// </summary>
internal class SpeechEndDetectedMessa... |
Mirandas-Cinema/Mirandas-Cinema/Views/Actors/Details.cshtml | Perlera89/Mirandas-Cinema | 1 | 7030870 | <reponame>Perlera89/Mirandas-Cinema
<link rel="stylesheet" href="~/css/page/detailCinema.css" />
@model Actor
@{
ViewData["Title"] = "Detalles Actor";
}
<div class="row nav-links justify-content-center" style="margin: 0 auto 55px; width: 90%; max-width:1400px;">
<div class="col-md-10 offset-0 ">
<p>
... |
TLCGen.Parts/TLCGen.Settings/UI/Tabs/Templates/PeriodenTemplatesEditorTabViewModel.cs | PeterSnijders/TLCGen | 6 | 7030871 | using GalaSoft.MvvmLight;
using System.Linq;
using System.Windows.Input;
using TLCGen.Helpers;
using TLCGen.Messaging.Messages;
using TLCGen.Models;
namespace TLCGen.Settings
{
public class PeriodenTemplatesEditorTabViewModel : ViewModelBase
{
#region Fields
#endregion // Fields
#reg... |
Search.cs | calebbernard/GenericSearch | 0 | 7030872 | <gh_stars>0
using GenericSearch.Domains;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GenericSearch
{
enum searchNodeState
{
Undiscovered,
Discovered,
Exhausted
}
public interface ... |
src/MassTransit.Azure.ServiceBus.Core/Contexts/SharedClientContext.cs | eyesis/MassTransit | 0 | 7030873 | <filename>src/MassTransit.Azure.ServiceBus.Core/Contexts/SharedClientContext.cs<gh_stars>0
// Copyright 2007-2018 <NAME>, <NAME>, <NAME>, et. al.
//
// 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
// L... |
b2xtranslator/Common/OfficeGraph/BiffRecords/ExcludeRows.cs | kafkaesqu3/Macrome | 484 | 7030874 | <reponame>kafkaesqu3/Macrome
using System.Diagnostics;
using b2xtranslator.StructuredStorage.Reader;
namespace b2xtranslator.OfficeGraph
{
/// <summary>
/// This record specifies which rows of the data sheet are to be included or excluded from the chart.
/// </summary>
[OfficeGraphBiffRecordAttribut... |
Scripts/DisplayPallet.cs | sophiathekitty/Simple2DMechanics | 2 | 7030875 | <filename>Scripts/DisplayPallet.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class DisplayPallet : MonoBehaviour {
private ColorLayer layer;
private TextMeshProUGUI text;
// Use this for initialization
void Start () {
layer = GetComponent<Color... |
test/oConsoleTest.cs | androidedev/UnityConsole | 0 | 7030876 | <gh_stars>0
using UnityEngine;
using System.Collections;
using oIndieUnity;
public class oConsoleTest : MonoBehaviour
{
// Use this for initialization
void Start()
{
oIndieUnity.oConsole.instance.WriteString("Hi world!!!!");
oIndieUnity.oConsole.instance.WriteString("Hi world with h... |
src/Asa/Models/Activity/Modification.cs | Siketyan/asa | 0 | 7030877 | <filename>src/Asa/Models/Activity/Modification.cs
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using Asa.DbContexts;
namespace Asa.Models.Activity
{
public class Modification : ActivityModelBase<Modification, Modification.ViewModel>
{
[JsonPropertyName("previous")]
public... |
mcs/src/src/lib/netlist/macro/nlm_cd4xxx_lib.cs | fasteddo/mcs | 5 | 7030878 | <filename>mcs/src/src/lib/netlist/macro/nlm_cd4xxx_lib.cs
// license:BSD-3-Clause
// copyright-holders:<NAME>
using System;
using System.Collections.Generic;
namespace mame
{
public static class nlm_cd4xxx_global
{
/*
* CD4001BC: Quad 2-Input NOR Buffered B Series Gate
... |
VueTicketCore/TicketCore.Web/Controllers/VerifyRegistrationController.cs | saineshwar/VueTicket | 7 | 7030879 | <gh_stars>1-10
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System;
using TicketCore.Data.EmailVerification.Command;
using TicketCore.Data.EmailVerification.Queries;
using TicketCore.Web.Helpers;
namespace TicketCore.Web.Controllers
{
public class VerifyRegistrationController : Contro... |
Target Crack/Assets/Best HTTP/Source/SecureProtocol/cms/IDigestCalculator.cs | Bregermann/TargetCrack | 2 | 7030880 | <reponame>Bregermann/TargetCrack<filename>Target Crack/Assets/Best HTTP/Source/SecureProtocol/cms/IDigestCalculator.cs
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Cms
{
internal interface IDigestCalculat... |
GitHub/com.unity.render-pipelines.lightweight/Runtime/Passes/SetupLightweightConstanstPass.cs | 1-10/VisualEffectGraphSample | 2 | 7030881 | using System;
using System.Collections.Generic;
using UnityEngine.Experimental.GlobalIllumination;
using UnityEngine.Rendering;
namespace UnityEngine.Experimental.Rendering.LightweightPipeline
{
/// <summary>
/// Configure the shader constants needed by the render pipeline
///
/// This pass configures ... |
src/FileLogger.cs | salaros/wakatime-revit | 0 | 7030882 | <gh_stars>0
using System;
using System.IO;
using System.Windows.Forms;
using WakaTime;
namespace CodeCave.WakaTime.Revit
{
internal class FileLogger : ILogService
{
protected string logFolder;
public FileLogger(string logFolder)
{
if (string.IsNullOrWhiteSpace(logFolder))
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.