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/6-DataModificationControl/Pages/Shared/_LoginPartial.cshtml
AdamJachocki/Attacks
0
7055847
<filename>src/6-DataModificationControl/Pages/Shared/_LoginPartial.cshtml @using Microsoft.AspNetCore.Identity @using Common.Models @inject SignInManager<SystemUser> SignInManager @inject UserManager<SystemUser> UserManager <ul class="navbar-nav"> @if (SignInManager.IsSignedIn(User)) { <li class="nav-item"> ...
FeedMe/FeedMe.iOS/Renderers/FacebookBannerAdViewController.cs
jollescott/FeedMe.Xamarin
0
7055848
<reponame>jollescott/FeedMe.Xamarin using System; using Facebook.AudienceNetwork; using UIKit; using Xamarin.Forms.Platform.iOS; namespace FeedMe.iOS.Renderers { public partial class FacebookBannerAdViewController : UIViewController { public FacebookBannerAdViewController() : base("FacebookBannerAdVie...
src/Deoxys/Rovers/Report/IRoverReport.cs
furkaandogan/Deoxys
0
7055849
<filename>src/Deoxys/Rovers/Report/IRoverReport.cs namespace Deoxys.Rovers.Report { /// <summary> /// raporlama içşin kullanılcak olan tüm classların türetileceği arayüz /// </summary> public interface IRoverReport { /// <summary> /// raporlanacak rover aracı /// </summary> ...
src/AzureIoTHub.Portal.Server.Tests.Unit/Factories/TableClientFactoryTests.cs
michelin/i4i-iot-hub-portal
2
7055850
// Copyright (c) <NAME>. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace AzureIoTHub.Portal.Server.Tests.Unit.Factories { using System; using FluentAssertions; using NUnit.Framework; using Server.Exceptions; using ...
ClassicalSharp/2D/Screens/Menu/HacksSettingsScreen.cs
Peteys93/ClassicalSharp
0
7055851
// ClassicalSharp copyright 2014-2016 UnknownShadow200 | Licensed under MIT using System; using System.Drawing; using ClassicalSharp.Entities; using ClassicalSharp.Singleplayer; namespace ClassicalSharp.Gui { public class HacksSettingsScreen : MenuOptionsScreen { public HacksSettingsScreen( Game gam...
Assets/Scripts/UI/UI_Bar.cs
Bodzounet/XYZ
0
7055852
<filename>Assets/Scripts/UI/UI_Bar.cs using UnityEngine; using System.Collections; public class UI_Bar : MonoBehaviour { private enum e_type { Life, Armor } public RectTransform frontBar; public RectTransform backBar; private float _barLenght; private Vector3 _min; p...
lib/Markdown/MarkdownDocument.cs
konrad-jamrozik/dotnet-lib
1
7055853
<reponame>konrad-jamrozik/dotnet-lib<filename>lib/Markdown/MarkdownDocument.cs using System; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Wikitools.Lib.Data; using Wikitools.Lib.Primitives; namespace Wikitools.Lib.Markdown; public record MarkdownDocument(Task<object[]> Co...
Deveroom.VisualStudio.Package/Wizards/VsFeatureFileWizard.cs
Philip-Gullick/deveroom-visualstudio
26
7055854
<reponame>Philip-Gullick/deveroom-visualstudio<filename>Deveroom.VisualStudio.Package/Wizards/VsFeatureFileWizard.cs using Deveroom.VisualStudio.Wizards.Infrastructure; using EnvDTE; namespace Deveroom.VisualStudio.Wizards { public class VsFeatureFileWizard : VsSimulatedItemAddProjectScopeWizard<FeatureFileWizard...
src/TileRepeater/TileRepeater.Designer.Server/TemplateAssignmentEditor/TemplateAssignmentViewModel.Factory.cs
KlausLoeffelmann/NetControlDesigners
0
7055855
using Microsoft.DotNet.DesignTools.ViewModels; using System; using WinForms.Tiles.Designer.Protocol; namespace WinForms.Tiles.Designer.Server { internal partial class TemplateAssignmentViewModel { [ExportViewModelFactory(ViewModelNames.TemplateAssignmentViewModel)] private class Factory : View...
SOS/ProjectView.cs
Androoideka/SOS
0
7055856
using System; using System.Windows.Forms; namespace SOS { public partial class ProjectView : Form { private Projekt prj = new Projekt(); private Button[] b = new Button[16]; private string loc; private int n; public ProjectView() { InitializeComponen...
Cavarly Work Personal/Library/PackageCache/com.unity.visualeffectgraph@8.2.0/Editor/Models/Blocks/Implementations/Collision/CollisionBase.cs
Ogethel/Personal-Cavarly-Work
1
7055857
<reponame>Ogethel/Personal-Cavarly-Work using System.Linq; using System.Collections.Generic; using UnityEngine; namespace UnityEditor.VFX.Block { abstract class CollisionBase : VFXBlock { public enum Mode { Solid, Inverted } public enum Rad...
Symbioz.Protocol/Messages/Messages/game/context/roleplay/fight/arena/GameRolePlayArenaFighterStatusMessage.cs
CarlCochet/Symbioz
2
7055858
// Generated on 06/04/2015 18:44:28 using System; using System.Collections.Generic; using System.Linq; using Symbioz.DofusProtocol.Types; using Symbioz.Utils; namespace Symbioz.DofusProtocol.Messages { public class GameRolePlayArenaFighterStatusMessage : Message { public const ushort Id = 6281; pu...
SurgingDemo/02.Domain/MicroService.IRespository.Org/IUserRespository.cs
DotNetExample/Surging.GoodDemo
0
7055859
using MicroService.Core; using MicroService.Data; using System; using System.Collections.Generic; using System.Text; namespace MicroService.IRespository.Org { public interface IUserRespository : IRespositoryBase<MicroService.Entity.Org.User>, IDependency { } }
MediaKit/MediaKit.VisualStateManager/VisualStateManager.cs
vasylmosiiuk/XForms.MediaKit
2
7055860
using System; using System.Collections.Generic; using System.Linq; using MediaKit.Core.Extensions; using Xamarin.Forms; namespace MediaKit.VisualStateManager { /// <summary> /// Allows to manage visual states groups and visual states for VisualElements. /// </summary> public class VisualStateManag...
src/DotNetHelper-Contracts/CustomException/BadCodeException.cs
TheMofaDe/DotNetHelper-Contracts
0
7055861
<filename>src/DotNetHelper-Contracts/CustomException/BadCodeException.cs using System; using System.Runtime.Serialization; namespace DotNetHelper_Contracts.CustomException { /// <inheritdoc /> /// <summary> /// Custom Exception that lets the user know a code change is required to fix this error /// </...
QtSharp.Tests/Program.cs
golddranks/QtSharp
585
7055862
<filename>QtSharp.Tests/Program.cs using System; namespace QtSharp.Tests { public class Program { public static void Main(string[] args) { // TODO Generate Code //var gen = new Generator(); //gen.GenerateCode(); throw new NotImplemente...
DummyWebApp.Core/ResultConstants/CommonResultConstants.cs
Israel-IT/dotnet-mockup-be
0
7055863
namespace DummyWebApp.Core.ResultConstants { public static class CommonResultConstants { /// <summary> /// Represents message when unexpected error was occurred. For example when DB, or some service doesn't response. /// </summary> public const string Unexpected = "UNEXPECTED"; ...
LionJobs/LionJobs.Models/Employee.cs
VelinYordanov/LionJobs
0
7055864
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LionJobs.Models { public class Employee : ApplicationUser { private ICollection...
dotnet/Vernacular/Persistence.nHibernate/dev/PPWCode.Vernacular.nHibernate.I/src/PPWCode.Vernacular.nHibernate.I/Interfaces/IRepository.cs
jandppw/ppwcode
0
7055865
using System; using System.Collections.Generic; using System.Diagnostics.Contracts; using NHibernate; using NHibernate.Criterion; using PPWCode.Vernacular.Persistence.II; using PPWCode.Vernacular.Persistence.II.Exceptions; namespace PPWCode.Vernacular.nHibernate.I.Interfaces { [ContractClass(typeof(...
mscorlib/System/Collections/Comparer.cs
bbqchickenrobot/IL2JS
42
7055866
namespace System.Collections { internal sealed class Comparer : IComparer { public static readonly Comparer Default = new Comparer(); private Comparer() { } public int Compare(object a, object b) { if (a == b) { return 0; ...
src/Algorithms/TimeConversion.cs
TimCollins/HackerRank
0
7055867
<gh_stars>0 using System; namespace Algorithms { public class TimeConversion { public static void SolveIt() { string[] timeParts = Console.ReadLine().Split(':'); if (timeParts[2].EndsWith("PM")) { int convertedHour = timeParts[0] == "12" ? 1...
src/SimasoftCorp.DesafioStone.Aplicacao/Financeiro/Dtos/ClienteDto.cs
gabrielsimas/desafio-stone-01
0
7055868
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SimasoftCorp.DesafioStone.Aplicacao.Financeiro.Dtos { public class ClienteDto { public string Cpf { get; set; } public string Nome { get; set; } public string E...
src/LuceneQueryToSql.Tests/SqlServerQueryBuilderTests.cs
tomvonclef/LuceneQueryToSql
4
7055869
<filename>src/LuceneQueryToSql.Tests/SqlServerQueryBuilderTests.cs using NUnit.Framework; namespace LuceneQueryToSql.Tests { [TestFixture] public class SqlServerQueryBuilderTests { [Test] public void BuildTermQuery_ValidInput_ValidSql() { // Arrange var sqlQ...
gl.Version_3_3.cs
whaqzhzd/OpenGL.Core
14
7055871
#region Copyright and License // Copyright (c) 2013-2014 The Khronos Group Inc. // Copyright (c) of C# port 2014 by Shinta <<EMAIL>> // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and/or associated documentation files (the // "Materials"), to deal in the Material...
Restaurant.Web.Infrastructure.Tests/MealRelatedValidationAttributesTests.cs
PanayotPetrov/Restaurant
0
7055873
<gh_stars>0 namespace Restaurant.Web.Infrastructure.Tests { using System.ComponentModel.DataAnnotations; using Moq; using Restaurant.Web.Infrastructure.ValidationAttributes; using Xunit; [Collection("Services")] public class MealRelatedValidationAttributesTests { private readonly ...
Smpp.NET/Elements/broadcast_content_type.cs
JackyChiou/smpp.net
30
7055874
<filename>Smpp.NET/Elements/broadcast_content_type.cs using System; using JulMar.Smpp.Utility; namespace JulMar.Smpp.Elements { /// <summary> /// This identifies the network type for a broadcast_content_type /// </summary> public enum TypeOfNetwork { /// <summary> /// Generic SMPP ...
test/Dockhand.Test/Models/DockerImageTests/RemoveAsyncTests.cs
matt-jenner/dockhand
0
7055875
using System.IO; using System.Threading; using System.Threading.Tasks; using Dockhand.Client; using Dockhand.Dtos; using Dockhand.Exceptions; using Dockhand.Interfaces; using Dockhand.Test.Builders; using FluentAssertions; using NSubstitute; using NSubstitute.ExceptionExtensions; using NUnit.Framework; namespace Dock...
src/server/Catan.Test/Helpers/Randomizer_ThrowDices.cs
VinhoSantos/Catan
0
7055876
using Catan.Core.Helpers; using FluentAssertions; using Xunit; namespace Catan.Test.Helpers { public class Randomizer_ThrowDices { [Fact] public void It_returns_a_number_between_1_and_12() { for (var i = 0; i < 1000; i++) { var eyes = Randomizer.T...
AcceptQueue/PropertiesScreen.cs
alexandervallejo/League-of-Legends-Queue-Watcher
2
7055877
using log4net; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace LOL.AcceptQueue { public partial class PropertiesS...
Assets/SubmarineMirageFramework/Scripts/Core/Event/Event/SMEvent.cs
gforestshade/TatemonSugorokuGame
0
7055878
//--------------------------------------------------------------------------------------------------------- // ▽ Submarine Mirage Framework for Unity // Copyright (c) 2020 夢想海の水底より(from Seabed of Reverie) // Released under the MIT License : // https://github.com/FromSeabedOfReverie/SubmarineMirageFrameworkForUnity/...
CpkHeader.cs
JasonStein/Cpk.Net
1
7055879
// --------------------------------------------------------------------------------------------- // Copyright (c) 2021-2022, <NAME>. All rights reserved. // Licensed under the MIT License. See LICENSE.txt in the project root for license information. // -----------------------------------------------------------------...
src/AVM/AVM.Tests/TestUtilities.cs
haapanen/avm
0
7055880
<reponame>haapanen/avm using System; using System.Collections.Generic; using System.Text; using AVM.Azure; using AVM.Models; using Newtonsoft.Json.Linq; using NSubstitute; namespace AVM.Tests { public static class TestUtilities { internal static JObject CreateValidReleaseEnvironment() { ...
Source/KyGunCo.Counterpoint.Sdk/Configuration/UserKgcItemChangesQueueConfiguration.cs
kygunco/KyGunCo.Counterpoint
0
7055881
// <auto-generated> using KyGunCo.Counterpoint.Sdk.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace KyGunCo.Counterpoint.Sdk.Configuration { // USER_KGC_ITEM_CHANGES_QUEUE public class UserKgcItemChangesQueueConfiguration : IEntityTypeConfiguratio...
CDS.Core.Client.BusinessLayer/SYS/SYS_Layout.cs
RetroRabbit/CDS-Core
1
7055882
using System; using System.Collections.Generic; using Microsoft.EntityFrameworkCore; using System.Linq; using System.Text; using System.Threading.Tasks; using DB = CDS.Core.Client.DataAccessLayer.DB; using static CDS.Core.Client.BusinessLayer.DataContext; namespace CDS.Core.Client.BusinessLayer.SYS { public class...
Daramkun.Misty.Core/Mathematics/Matrix4x4.Calculate.cs
Daramkun/Misty
0
7055883
<reponame>Daramkun/Misty using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Daramkun.Misty.Mathematics { public partial struct Matrix4x4 { public static Matrix4x4 operator + ( Matrix4x4 v1, Matrix4x4 v2 ) { Matrix4x4 result; Add ( ref v1, ref v2, out result ); return r...
camunda-bpm-platform-net/engine/src/test/java/org/camunda/bpm/engine/test/api/history/HistoryServiceAsyncOperationsTest.cs
luizfbicalho/Camunda.NET
6
7055885
<gh_stars>1-10 using System; using System.Collections.Generic; /* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda lice...
src/Notification/Elect.Notification.OneSignal/Models/Notifications/DelayedOptionEnum.cs
nminhduc/Elect
1
7055886
#region License //-------------------------------------------------- // <License> // <Copyright> 2018 © <NAME> </Copyright> // <Url> http://topnguyen.net/ </Url> // <Author> Top </Author> // <Project> Elect </Project> // <File> // <Name> DelayedOptionEnum.cs </Name> // <Created> 19/...
aspnet-core/src/test2.Application/DanhMuc/TinhThanhApp/Dto/GetTinhThanhForEditOutput.cs
ngocbich-99/CRUDTinhThanhV1
0
7055887
<filename>aspnet-core/src/test2.Application/DanhMuc/TinhThanhApp/Dto/GetTinhThanhForEditOutput.cs namespace test2.QLDM.DMTinhThanh { public class GetTinhThanhForEditOutput { public string Ma { get; set; } public string Ten { get; set; } public string GhiChu { get; set; } } }
fxpa/fxpa/Analyzer/Indicator/Custom/BreakOutCustom.cs
harryho/fx-trading-platform-prototype
0
7055888
// ----- // GNU General Public License // The Open Forex Platform is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. // The Open Forex P...
CtlConcept.cs
BuildingSMART/IfcDoc
29
7055889
<gh_stars>10-100 // Name: CtlConcept.cs // Description: Concept diagram editor // Author: <NAME> // Origination: Work performed for BuildingSmart by Constructivity.com LLC. // Copyright: (c) 2013 BuildingSmart International Ltd. // License: http://www.buildingsmart-tech.org/legal using System; using...
Script/gameCount.cs
Sharkbyteprojects/Hovercar-2
0
7055890
<filename>Script/gameCount.cs<gh_stars>0 using System.Collections; using System.Collections.Generic; using UnityEngine; public class gameCount : MonoBehaviour { void Start() { int oldv = PlayerPrefs.GetInt("cnall"); PlayerPrefs.SetInt("cnall", oldv+1); } }
NorthwindWindowsStoreService/NorthwindWindowsStoreService/Controllers/Api/Data/SuppliersApiController.cs
krzysztofkolek/NorthwindWindowsStore
0
7055891
 namespace NorthwindWindowsStoreService.Controllers.Api.Data { using NorthwindWindowsStore.Service; using System.Web.Http; [RoutePrefix("Suppliers")] public class SuppliersApiController : BaseApiController { [Route("GetAll")] public IHttpActionResult GetAllSuppliers() { ...
examples/09-cosmos-db/WebApi.Tests/Models/UsersResponse.cs
SellerCloudTeam/graphql-net
800
7055892
using Newtonsoft.Json; using WebApi.Models; namespace WebApi.Tests.Models { public class UsersResponse { [JsonProperty("users")] public User[] Users { get; set; } } }
src/libraries/System.Runtime.Loader/tests/ApplyUpdateTest.cs
thomsj/runtime
9
7055893
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Xunit; namespace System.Reflection.Metadata { /// /// The general setup for ApplyUpdate tests is: /// /// Each test Foo has a corresponding assembly under ...
SmartCardApi/Cryptography/Encrypted3DES.cs
kogoia/MRTD.NET
14
7055894
<reponame>kogoia/MRTD.NET using System.Security.Cryptography; using SmartCardApi.Infrastructure; using SmartCardApi.Infrastructure.Interfaces; namespace SmartCardApi.Cryptography { public class Crypted3DES : IBinary { private readonly IBinary _text; private readonly ICryptoTransform _cTransfor...
topologicalSort/csharp/sampl.cs
pivandco/data_models
2
7055895
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TopologicalSort { public class Task { public string Message; } class sampl { static void Main(string[] args) { List<Task> tasks = new L...
src/Tests/Core/TestFramework/BackgroundStressTestThread.cs
duaneking/WheelMUD
0
7055896
//----------------------------------------------------------------------------- // <copyright file="BackgroundStressTestThread.cs" company="WheelMUD Development Team"> // Copyright (c) WheelMUD Development Team. See LICENSE.txt. This file is // subject to the Microsoft Public License. All other rights reserved...
DotKEGG/Databases/ReactionDb.cs
Rabadash8820/DotKEGG
0
7055897
<filename>DotKEGG/Databases/ReactionDb.cs namespace DotKEGG { /// <summary> /// Represents the <token>ReactionDbLink</token> database. /// </summary> /// <seealso cref="RNumber"/> /// <seealso cref="LigandDb"/> /// <seealso cref="KeggId"/> /// <seealso cref="KeggDb"/> /// <seealso cref...
xamarin/forms/DynamicList/DynamicList/Crud/NewItemViewModel.cs
RLittlesII/ReactiveUI.Sandbox
8
7055898
using System; using System.Collections.Generic; using System.Linq; using System.Reactive; using System.Reactive.Disposables; using System.Reactive.Linq; using System.Reactive.Threading.Tasks; using ReactiveUI; using Rg.Plugins.Popup.Contracts; using Rocket.Surgery.Airframe.Synthetic; namespace DynamicList.Crud { p...
Models/ShardableData.cs
BrightChain/NeuralFabric
0
7055899
using NeuralFabric.Interfaces; using STH1123.ReedSolomon; namespace NeuralFabric.Models; public class ShardableData<TObject> where TObject : IReplicatedSerializable<TObject> { private readonly GenericGF _galoisField; private readonly ReedSolomonEncoder _reedSolomonEncoder; public readonly TObject Data...
Databases Advanced - Entity Framework Core/Best Practices and Architecture/BusTickets/BusTickets.Data/Migrations/BusTicketsContextModelSnapshot.cs
RAstardzhiev/SoftUni-C-
91
7055900
<filename>Databases Advanced - Entity Framework Core/Best Practices and Architecture/BusTickets/BusTickets.Data/Migrations/BusTicketsContextModelSnapshot.cs namespace BusTickets.Data.Migrations { using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.Entity...
CSharp/CC-Lib/Test/MatrixTest.cs
SgtDomo/CC_Lib
3
7055901
using CC_Lib.ExtensionMethods; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Test { [TestClass] public class MatrixTest { private int[,] _testMatrix; private int[,] _emptyMatrix; private int[][] _testArray2D; private int[][] _emptyArray2D; [TestIni...
src/Services/Google/GoogleAccount.API/Infrastructure/Exceptions/GoogleAccountDomainException.cs
lefevbre-organization/eShopOnContainers
0
7055902
using System; namespace Lefebvre.eLefebvreOnContainers.Services.Google.Account.API.Infrastructure.Exceptions { /// <summary> /// Exception type for app exceptions /// </summary> public class GoogleAccountDomainException : Exception { public GoogleAccountDomainException() { } ...
src/Xenial.Framework.TokenEditors/Model/GeneratorUpdaters/TokenObjectsEditorModelGeneratorUpdater.cs
biohazard999/Xenial.Framework
34
7055903
using System; using System.Linq; using DevExpress.ExpressApp.Model; using DevExpress.ExpressApp.Model.Core; using DevExpress.ExpressApp.Model.NodeGenerators; using DevExpress.Persistent.Base; using Xenial.Framework.Model.Core; using Xenial.Framework.StepProgressEditors.Model.GeneratorUpdaters; using Xenial.Framework...
src/EIRA.Application/MyQuestionnaireManagement/Dto/MyQuestionnaireSupportingDocumentDto.cs
gladiatormaximusty/Questionnaire-Backend
0
7055904
<filename>src/EIRA.Application/MyQuestionnaireManagement/Dto/MyQuestionnaireSupportingDocumentDto.cs using Abp.Application.Services.Dto; using Abp.AutoMapper; using EIRA.Table; namespace EIRA.MyQuestionnaireManagement.Dto { [AutoMap(typeof(SupportingDocument))] public class MyQuestionnaireSupportingDocumentDt...
Intersect (Core)/ColorF.cs
Justn53/Intersect-Engine-Shoppe
0
7055905
namespace Intersect { public class ColorF { public ColorF() { } public ColorF( float a, float r, float g, float b ) { A = a; R = r; G = g; B = b; } public ColorF( float r, float g, float b ) { ...
Assets/Scripts/UI/Dialogue/PictureAnimate.cs
BrothersStudio/sports_2
1
7055906
<filename>Assets/Scripts/UI/Dialogue/PictureAnimate.cs using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; public class PictureAnimate : MonoBehaviour { private TMP_Animated animatedText; private bool moved = false; private float move_amount = 10f; private Vect...
BeginToCodeWithCSharp/BeginToCodeWithCSharp/Chapters/Chapter 08/Ch08_06_GetValue.cs
BeginToCodeSnaps/DemoCode
4
7055907
<reponame>BeginToCodeSnaps/DemoCode using SnapsLibrary; class Ch08_06_GetValue { int GetValue(string prompt, int min, int max) { int result; do { result = SnapsEngine.ReadInteger(prompt); } while (result < min || result > max); return result; } pu...
TextRPG/SpellBook.cs
AlCh3mi/TextRPG
0
7055908
using System; using System.Collections.Generic; using ConsoleApplication1.Characters; using ConsoleApplication1.Spells; namespace ConsoleApplication1 { public class SpellBook { public List<Spell> Spells; private readonly Character Owner; private Random random; public SpellBo...
BlackBox.Tests/CodeGeneration/AppendMethodToTestWriterTest.cs
follesoe/BlackBoxRecorder
2
7055910
using BlackBox.CodeGeneration.Writer; using BlackBox.Tests.Fakes; using Xunit; namespace BlackBox.Tests.CodeGeneration { public class AppendMethodToTestWriterTest : BDD<AppendMethodToTestWriterTest> { [Fact] public void Can_add_new_recording_after_saving_the_test() { Given...
Intersect.Client.Framework/Gwen/Skin/Simple.cs
Justn53/Intersect-Engine-Shoppe
0
7055911
<reponame>Justn53/Intersect-Engine-Shoppe using System; using Intersect.Client.Framework.GenericClasses; namespace Intersect.Client.Framework.Gwen.Skin { /// <summary> /// Simple skin (non-textured). Deprecated and incomplete, do not use. /// </summary> [Obsolete] public class Simple : Skin....
Source/OxyPlot/Manipulators/ZoomStepManipulator.cs
ylatuya/oxyplot
10
7055913
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ZoomStepManipulator.cs" company="OxyPlot"> // The MIT License (MIT) // // Copyright (c) 2012 <NAME> // // Permission is hereby granted, free of charge, to any person o...
src/Microsoft.FamilyShow/Controls/FamilyData/FamilyDisplayListView.cs
VincentH-Net/FamilyShow2022
36
7055914
/* * Derived class that filters data in the diagram view. */ using Microsoft.FamilyShowLib; using System.Diagnostics.CodeAnalysis; namespace Microsoft.FamilyShow.Controls.FamilyData { [SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses")] class FamilyDisplayListView : FilterSortL...
PTZRemoteCameraListener/ListenerMainWindow.xaml.cs
shanselman/PanTiltZoomSystem
16
7055915
using System; using System.Collections.Generic; using System.Configuration; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; usin...
EasyTalents/Controllers/UserController.cs
AlanDuOl/ITTalents
0
7055916
using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using EasyTalents.ViewModels; using EasyTalents.Models; using EasyTalents.Repositories; using Microsoft.Extensions.Logging; using System.Security.Claims; using Microsoft.AspNetCore.Authorization; namespace E...
Src/src/Couchbase.Linq/BucketContext.cs
RossMerr/CouchbaseNetLinq
0
7055917
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Reflection; using System.Threading; using Couchbase.Configuration.Client; using Couchbase.Core; using Couchbase.Core.Buckets; using Couchbase.Linq.Filters; u...
Assets/Scripts/Game/Effects/EffectTriggerComponents/FloatingTextEffectTriggerComponent.cs
pdxparrot/ssjJune2021
1
7055918
<reponame>pdxparrot/ssjJune2021 using JetBrains.Annotations; using pdxpartyparrot.Core.Effects.EffectTriggerComponents; using pdxpartyparrot.Game.UI; using UnityEngine; namespace pdxpartyparrot.Game.Effects.EffectTriggerComponents { public class FloatingTextEffectTriggerComponent : EffectTriggerComponent { ...
Src/OneLine/Services/Notification/Notification.cs
arivera12/OneLine
11
7055919
using BlazorNotification; using Microsoft.Extensions.DependencyInjection; using Shiny.Notifications; namespace OneLine.Services { public class Notification : INotification { public IBlazorNotificationService BlazorNotificationService { get; set; } public INotificationManager NotificationManage...
Lingu.Sdk/Build/SetsBuilder.cs
knutjelitto/Lingu
0
7055920
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Lingu.Automata; using Lingu.Grammars; using Lingu.LR; using Lingu.Runtime.Parsing; #nullable enable namespace Lingu.Build { public class SetsBuilder { public SetsBuilder(Gr...
Core/Exceptions/BaseException.cs
IBAS0742/iGeospatial_change
1
7055922
//=============================================================================== // Microsoft Exception Management Application Block for .NET // http://msdn.microsoft.com/library/en-us/dnbda/html/emab-rm.asp // // BaseException.cs // This file contains the definition for the BaseException. // For more information see ...
aliyun-net-sdk-cloudwf/Cloudwf/Model/V20170328/ListApStatusRequest.cs
brightness007/unofficial-aliyun-openapi-net-sdk
2
7055923
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Juqian.Winxin/Services/WeiXinSdk.cs
690486439/Orchard.WeChat
58
7055924
using Juqian.Winxin.Models; using Orchard; using System; using System.Collections.Generic; using System.Linq; using System.Web; using Orchard.ContentManagement; using Orchard.Localization; using System.Threading; using Orchard.UI.Notify; using Orchard.MediaLibrary.Models; using System.Net; using System.Web.Helpers; n...
Sources/uNite/Ordina.Ncore.Unite/Ordina.Ncore.Unite/App.xaml.cs
ordina-ncore/uNiteApp
0
7055925
<reponame>ordina-ncore/uNiteApp<filename>Sources/uNite/Ordina.Ncore.Unite/Ordina.Ncore.Unite/App.xaml.cs using Ordina.Ncore.Unite.Views; using Prism.DryIoc; using Prism.Logging; using Xamarin.Forms; namespace Ordina.Ncore.Unite { public partial class App : PrismApplication { public static new App Curr...
MonkeyConf/Features/Bindings/BindingsViewModel.cs
jorgediegocrespo/MonkeyConf2021
0
7055926
using MonkeyConf.Base; using ReactiveUI; namespace MonkeyConf.Features.Bindings { public class BindingsViewModel : BaseViewModel { public int progress; public BindingsViewModel() { progress = 50; } public int Progress { get => progress; ...
Source/Engine/AGS.Engine/Rooms/RoomSizeProviders/RoomCustomLimits.cs
tzachshabtay/MonoAGS
27
7055927
using AGS.API; namespace AGS.Engine { [ConcreteImplementation(DisplayName = "Custom Limits")] public class RoomCustomLimits : IRoomLimitsProvider { RectangleF _customLimits; public static readonly RectangleF MaxLimits = new RectangleF(-float.MaxValue, -float.MaxValue, float.M...
src/core/Bari.Core/cs/Model/Loader/YamlReferenceAliasesLoader.cs
gavrail/bari
5
7055928
using System; using System.Collections.Generic; using Bari.Core.UI; using YamlDotNet.RepresentationModel; namespace Bari.Core.Model.Loader { /// <summary> /// Loads <see cref="ReferenceAliases"/> parameter block from YAML files /// </summary> public class YamlReferenceAliasesLoader : YamlProjectParame...
src/API/LeadershiProfileAPI.Tests/Features/Search/SearchSchoolFilterTests.cs
Ed-Fi-Exchange-OSS/Leadership-Profile
2
7055929
<filename>src/API/LeadershiProfileAPI.Tests/Features/Search/SearchSchoolFilterTests.cs using System.Linq; using System.Threading.Tasks; using LeadershipProfileAPI.Data.Models.ProfileSearchRequest; using LeadershipProfileAPI.Features.Search; using LeadershipProfileAPI.Tests.Extensions; using Shouldly; using Xunit; nam...
src/prod/src/managed/Api/src/System/Fabric/Common/RestartReplicaOrInstanceAction.cs
gridgentoo/ServiceFabricAzure
2,542
7055931
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ namespace System.Fabric.Common...
src/Common/XamarinFormsClean.Common.Data/Source/Local/DataSource/Interface/ISingleLocalDataSource.cs
Bhekinkosi12/Xamarin.Forms-CleanArchitecture
16
7055932
<gh_stars>10-100 using System; using System.Reactive; using XamarinFormsClean.Common.Data.Model.Local; using XamarinFormsClean.Common.Data.Utils; namespace XamarinFormsClean.Common.Data.Source.Local.DataSource.Interface { public interface ISingleLocalDataSource<T> : ILocalDataSource where T : BaseData { ...
src/Stryker.Core/Stryker.Core/Initialisation/ProjectComponents/ProjectComponent.cs
perdignus/stryker-net
0
7055933
using Stryker.Core.Mutants; using System.Collections.Generic; using System.Linq; namespace Stryker.Core.Initialisation.ProjectComponent { public abstract class ProjectComponent : IReadOnlyInputComponent { public string Name { get; set; } public abstract IEnumerable<Mutant> Mutants { get; set; ...
IbanLib.Countries/Countries/MD.cs
epreviati/iban-lib
0
7055935
namespace IbanLib.Countries.Countries { public class MD : ACountry { public override string Name { get { return "Moldova"; } } public override string Iso3166 { get { return "MD"; } } public override string BankCodeStructure ...
DataTypesAndVariablesLab/01.CenturiesToMinutes/01.CenturiesToMinutes.cs
NikiSpasov/Progr_Fundamentals
0
7055936
using System; class Program { static void Main() { sbyte centuries = sbyte.Parse(Console.ReadLine()); int years = centuries * 100; int days = (int)(years * 365.2422); int hours = days * 24; int minutes = hours * 60; Console.WriteLine($"{centuries} centuries = {ye...
RetailStore/RetailStore.Tests/SellOneProductTests.cs
angellaa/RetailStoreSpike
0
7055937
using System.Collections.Generic; using NUnit.Framework; namespace RetailStore.Tests { public class SellOneProductTests { private Screen m_Screen; private RetailStore m_RetailStore; [SetUp] public void SetUp() { var inventory = new Inventory(new Dictionary<...
src/core/Replikit.Abstractions/src/Common/Features/HasFeaturesHelper.cs
Replikit/Replikit
2
7055938
using Replikit.Abstractions.Common.Exceptions; namespace Replikit.Abstractions.Common.Features; public static class HasFeaturesHelper { public static Exception CreateUnsupportedException<TFeatures>(IHasFeatures<TFeatures> hasFeatures, TFeatures feature) where TFeatures : Enum { if (hasFeatures...
src/PackageManagement.UI/DetailControlModel.cs
uncategorized-playground/NuGet.PackageManagement
6
7055939
<filename>src/PackageManagement.UI/DetailControlModel.cs // 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; using System.Collections.Generic; using System.ComponentModel; using System.Linq...
Opus/UI/Analysis/SidebarAnalyzer.cs
gtw123/OpusSolver
43
7055940
using System.Collections.Generic; using System.Drawing; using static System.FormattableString; namespace Opus.UI.Analysis { /// <summary> /// Analyzes the sidebar on the left side of the game window. /// </summary> public class SidebarAnalyzer { private static readonly log4net.ILog sm_log ...
CSharp/ULearn/Risovatel/MainForm.cs
VsIG-official/Study-Projects
2
7055941
// Licensed to the VsIG under one or more agreements. // VsIG licenses this file to you under the MIT license. using System; using System.Drawing; using System.Windows.Forms; namespace RefactorMe { public class MainForm : Form { private const int Interval = 50; private readonly Timer timer; ...
Apollo/Devices/Switch.cs
vaaski/apollo-studio
172
7055942
<filename>Apollo/Devices/Switch.cs using System.Collections.Generic; using System.IO; using System.Linq; using Apollo.Core; using Apollo.DeviceViewers; using Apollo.Elements; using Apollo.Structures; using Apollo.Undo; namespace Apollo.Devices { public class Switch: Device { int _target = 1; publi...
src/WebOsTv.Net/Responses/Apps/OpenAppResponse.cs
GrantByrne/WebOsTv.Net
3
7055943
<filename>src/WebOsTv.Net/Responses/Apps/OpenAppResponse.cs namespace WebOsTv.Net.Responses.Apps { public class OpenAppResponse : ResponseBase { public string Id {get; set; } public string SessionId { get; set; } } }
src/Discord.Net/Net/Queue/RestRequest.cs
Joe4evr/Discord.Net
0
7055944
using Discord.Net.Rest; using System; using System.Collections.Generic; using System.IO; using System.Threading; using System.Threading.Tasks; namespace Discord.Net.Queue { internal class RestRequest : IQueuedRequest { public IRestClient Client { get; } public string Method { get; } pu...
OOP/Lab-07/Problem-02-Car/Program.cs
emilia98/TU-OOP
0
7055945
using System; namespace Problem_02_Car { class Program { static void Main() { Car car1 = new Car("Golf", "Dark Blue", "EB 1234 BK"); Car car2 = new Car(); Console.WriteLine(car1); Console.WriteLine(car2); car2.Make = "BMW"; ...
Source/Libraries/Tests/GSF.SortedTreeStore.Test/IO/BinaryStreamTest.cs
contributor51/openHistorian
1
7055946
<reponame>contributor51/openHistorian //****************************************************************************************************** // BinaryStreamTest.cs - Gbtc // // Copyright © 2014, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more ...
Modules/SF.Module.Backend.Data/Entitys/DepartmentEntity.cs
blueskybcl/SF-Boilerplate
74
7055947
using System; using SF.Entitys.Abstraction; namespace SF.Module.Backend.Data.Entitys { public class DepartmentEntity : BaseEntity { #region 实体成员 /// <summary> /// 机构主键 /// </summary> public long? OrganizeId { get; set; } /// <summary> /// 父级主键 ...
PracticaEduardAristizabal/Form2.cs
mauriciomejiae/Super-xito-sistema-de-inventarios-
2
7055948
/* Planteamiento del problema: El Almacén Superéxito, requiere realizar una aplicación para llevar el control de su inventario que contenga una interfaz gráfica de usuario que permita a través de opciones, registrar, eliminar productos y salir de la aplicación. Para el registro de productos se requiere el código,...
Views/Gantt/GanttScheduleModes.cshtml
syncfusion/aspnet-mvc-ej1-demos
3
7055949
<reponame>syncfusion/aspnet-mvc-ej1-demos @section MetaTags{ <meta name="description" content="This example illustrates the automatic and manual task scheduling modes in the Syncfusion Gantt chart control."> } @section SampleHeading{<span class="sampleName">Gantt-Timescale Modes-ASP.NET MVC-SYNCFUSION</span>} @sec...
SecondDesktop/SecondDesktopMessagerDll/SecondDesktopMessager.cs
Mingxuel/SecondDesktop
9
7055950
<reponame>Mingxuel/SecondDesktop<gh_stars>1-10 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SecondDesktopMessagerDll { public class SecondDesktopMessager { public delegate void CreateSubAppDelegate(string AppUID, int Wind...
sdk/dotnet/GetKeyPrefix.cs
pulumi/pulumi-consul
3
7055951
// *** 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 System.Threading.Tasks; using Pulumi.Serialization; names...
Utils/IObjectWithPropertiesByType.cs
actionk/UnityExtras
4
7055952
using System; namespace Plugins.Shared.UnityMonstackCore.Utils { public interface IObjectWithPropertiesByType<TProperty> : IObjectWithProperties<Type, TProperty> { T AddProperty<T>() where T : TProperty, new(); bool RemoveProperty<T>() where T : TProperty; T GetProperty<T>() where T : ...
src/Rezolver/Options/FetchAllMatchingGenerics.cs
LordZoltan/Rezolver
14
7055953
// Copyright (c) Zolution Software Ltd. All rights reserved. // Licensed under the MIT License, see LICENSE.txt in the solution root for license information using System; namespace Rezolver.Options { /// <summary> /// A boolean option for target containers that controls which registrations will be returned ...
AecPrivateCloud.ALL/Client/AecCloud.Client/Views/PersonalInfoSettingView.xaml.cs
FinchYang/test
1
7055954
 namespace AecCloud.Client.Views { /// <summary> /// PersonalInfoSettingView.xaml 的交互逻辑 /// </summary> public partial class PersonalInfoSettingView { public PersonalInfoSettingView() { InitializeComponent(); } } }