text
stringlengths
13
6.01M
using System; using System.Threading; using System.Web.Mvc; namespace DevExpress.Web.Demos { public partial class DataViewController : DemoController { public ActionResult CustomCallback() { Session["SortCommand"] = String.Empty; return DemoView("CustomCallback", Cameras.GetData())...
using Sentry.Extensibility; using Sentry.Integrations; namespace Sentry.Internal.DiagnosticSource; internal class SentryDiagnosticListenerIntegration : ISdkIntegration { public void Register(IHub hub, SentryOptions options) { if (!options.IsPerformanceMonitoringEnabled) { options.L...
using System; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Media; using System.Windows.Media.Imaging; namespace MinecraftToolsBoxSDK { /// <summary> /// JsonSelectorEditor.xaml 的交互逻辑 /// </summary> public partial class JsonSelectorEditor : G...
namespace BoatRacingSimulator.Interfaces { using Enumerations; public interface IBoat : IModelable { int Weight { get; } bool IsMotorBoat { get; } BoatType BoatType { get; } double CalculateRaceSpeed(IRace race); } }
namespace Alabo.Extensions { public static class BoolExtensions { public static string GetHtmlName(this bool value) { var result = string.Empty; if (value) { result = @"<span class='m-badge m-badge--wide m-badge--success'>是</span>"; } else { ...
using System.ComponentModel.DataAnnotations; using HiLoSocket.Builder.Server; using NUnit.Framework; using Shouldly; namespace HiLoSocketTests.Builder.Server { [TestFixture] [Category( "ServerBuilderTests" )] public class ServerBuilderTests { [Test] public void Build_NullLocalIpEndPoin...
using ISE.SM.Common.Message; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SecurityClient { public class TokenContainer { private static IdentityToken Token = null; public static void SetToken(IdentityToken token) ...
using System; using System.Collections.Generic; using System.Text; namespace Task_01_2 { class A { public void GetA() { Console.WriteLine("This is type A."); } } class B : A { new public void GetA() { Console.WriteLine("This is type ...
namespace ReproBox.Tests { using System; using System.Diagnostics; using System.IO; using Microsoft.VisualStudio.TestTools.UnitTesting; using TestStack.White; using TestStack.White.UIItems; using TestStack.White.WindowsAPI; [TestClass] public class UnitTest { [TestMet...
using System; using System.IO; using System.Threading; // using System.Threading.Tasks; using Cysharp.Threading.Tasks; // System.Threading.Tasks の代わりにこちらをusingする using UnityEngine; namespace UniTaskSample { public class UniTaskSample : MonoBehaviour { [SerializeField] private string _path; // ...
using System; using System.Security.Cryptography; using System.Threading.Tasks; namespace gView.Server.AppCode { public class TaskQueue_old<T> { public delegate Task QueuedTask(T parameter); private long ProcessId = 0; private long ProcessedTasks = 0; private int RunningTasks ...
using Api.Daos; using Api.Models; using System; using System.Linq; using System.Threading.Tasks; using System.Web.Http; namespace Api.Controllers { public class PedidosController : ApiController { // GET: Pedidos public async Task<IHttpActionResult> Get() { try ...
using System.Collections.Generic; // ReSharper disable InconsistentNaming namespace Properties.Infrastructure.Rightmove.Objects { public class RmrtdfBranchPropertyList { public string request_id { get; set; } public string message { get; set; } public bool success { get; set; } ...
using gView.Framework.Data; using gView.Framework.Data.Metadata; using gView.Framework.FDB; using gView.Framework.Geometry; using gView.Framework.IO; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace gView.DataSources.Fdb.SQLite { [gView.Framework.system.RegisterPlugIn("36DEB...
using System; using Xamarin.UITest; using Xamarin.UITest.Queries; using Xamarin.UITest.Android; using System.Reflection; using System.Linq; using System.Collections; using System.Collections.Generic; namespace Devneval.UITest.AppElement { internal abstract class Element { protected readonly IApp _app;...
using UnityEngine; using Unity.Entities; using Unity.Mathematics; using System.Collections.Generic; [RequiresEntityConversion] public class WeaponPickupAuthoring : MonoBehaviour, IConvertGameObjectToEntity, IDeclareReferencedPrefabs { [SerializeField] private int damage = 0; [SerializeField] private int ammoCount = ...
using Abp.Domain.Services; using System; using System.Collections.Generic; using System.Text; namespace Dg.KMS.People { public class PersonManger:IDomainService { } }
using System; using System.IO; namespace ComplexLib { public static class Ex { public static void WriteBin(this Complex c, string fileName) { using (BinaryWriter binaryWriter = new BinaryWriter(File.Create(fileName))) { binaryWriter.Write(c.Real); ...
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using Zlib; using Zlib.Core; namespace Zlib.Combat { public class GunHandler : MonoBehaviour { [SerializeField] Weapon CurrentWeapon = null; [SerializeField] Transform GunHolster = null; [Seria...
using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Runtime.Serialization; namespace Tools { [Serializable] public class Fraction : IEquatable<Fraction>, ISerializable { [MethodImpl(MethodImplOptions.AggressiveInlining)] private static int GC...
using System; using aairvid.Utils; using Android.App; using Android.Graphics; using Android.OS; using Android.Views; using Android.Widget; using Java.IO; using libairvidproto.model; using System.Linq; namespace aairvid.History { public class RecentlyViewedFragment : ListFragment { privat...
using System; using System.Collections.Generic; using System.Linq; /* * tags: adhoc * Time(n^2), Space(1) */ namespace leetcode { public class Lc782_Transform_to_Chessboard { /// <summary> /// 1. The 4 corners of any rectangle inside a chessboard must be 4 ones, or 4 zeroes, or 2 ones and 2...
namespace Exercises.Models.Queries { using System; using System.Data.Entity; using System.Linq; using CodeFirstFromDatabase; /// <summary> /// Problem05 - Employees from Seattle /// </summary> public class EmployeesFromSeattle : Query<SoftuniContext> { public override strin...
using System; namespace Meetup.Sagas.Contracts { public interface ItemAdded { string Username { get; } DateTime Timestamp { get; } } public interface CheckedOut { string Username { get; } DateTime Timestamp { get; } } public interface ShowSadPuppy ...
 using ND.FluentTaskScheduling.Command.asyncrequest; using ND.FluentTaskScheduling.Model; using ND.FluentTaskScheduling.Model.enums; using ND.FluentTaskScheduling.Model.request; using ND.FluentTaskScheduling.Model.response; using ND.FluentTaskScheduling.TaskInterface; using Newtonsoft.Json; using Quartz; usin...
namespace WindowsFormsApp1 { class ConfirmData { public bool Res { get; set; } } }
using System; using System.Numerics; namespace Algorithms.HackerRank.ExtraLongFactorials { class ExtraLongFactorials { static BigInteger Factorial(int n) { if (n > 1) { return n * Factorial(n - 1); } return n; } ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MergeLists { class Program { static void Main(string[] args) { int []a = {10,9,8,3,1,-10,-15,-20,-25,-30,-35}; int []b = {20,15,4,2,-1 ,-2,-3}; int[] c = merge...
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace InventoryControl.Models { public class Supplier { public int Id { get; set; } public string Name { get; set; } public string Address { get; set; } public int SupplierNum { get;...
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 System.Data.OleDb; namespace Management_Plus { public partial class CompenyList : Form { public Co...
using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.AspNet.Mvc.Rendering; using Microsoft.AspNet.Mvc.ViewFeatures; using Microsoft.AspNet.Mvc.ViewComponents; using Microsoft.AspNet.Razor.Runtime.TagHelpers; namespace SciVacancies.WebApp { [HtmlTargetElement("checkboxing", Attri...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Panel_LevelFailed : BasePanel { }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sample.Commands { public class AddTwoNumbers : ICommand<int> { public int A { get; private set; } public int B { get; private set; } public AddTwoNumbers(int a...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ClipModels { static class ServiceLayer { //converts HH:MM:SS string format to (int) number of actual seconds. internal static int stringToSecondsRounded(string duration) { in...
using UnityEngine; using VRTK; using System.Collections; /// <summary> /// Fix the coal spawner by "hitting" it 3 times /// </summary> public class FixCoalSpawner : MonoBehaviour { private int count = 0; private const int countNeeded = 3; /// <summary> /// Create the custom event /// </summary> ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using POSServices.Data; using POSServices.PosMsgModels; namespace POSServices.WebAPIBackendController { [Route("api...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TECF; [CreateAssetMenu(menuName = "FSM/States/ActionPhase")] public class SActionPhase : IState { public override void Initialise(StateManager a_controller) { // Show dialog panel //Refer...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SendClippingPlaneInfo : MonoBehaviour { public string PositionKeyword; public string PlaneNormalKeyword; public string ClipPlaneEnableKeyword; public bool jobON = false; // Update is called once per frame ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; using System.Windows.Forms; using Kingdee.CAPP.Model; namespace Kingdee.CAPP.UI.Common { /// <summary> /// 排序的逻辑 /// </summary> public class NodeSorter: IComparer { /// <summary>...
 namespace ServerCommonLibrary { /// <summary> /// RawRequest holds the informations about a request /// </summary> public class RawRequest { //#### Client connection public SocketConnection Connection { get; set; } //#### the request data public byte[] RawData { g...
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 System.Net; using System.Net.Sockets; namespace WindowsFormsApplication1 { public partial class Consulta : Form { ...
using DAL; using DTO; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BLL { public class IntercapiManager { public static DemandeIntercapi SendRequestIntercapi(int IdIntercapi, String Name, String Firstname, String Email, St...
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Markup; namespace Algorithm_Prim { class Program { static void Main(string[] args) { Initialization(); Pr...
using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; public class SceneData { private List<string> _name; private List<Vector3> _position; private List<Vector3> _rotation; private List<Vector3> _scale; private List<int> _layer; pr...
using EE; using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Data; using DAL; namespace MPP { public class MPPObjetivo { public bool Alta_Objetivo(EEObjetivo objetivo) { Acceso Datos = new Acceso(); Hashta...
using System.Linq; using Mastermind; using Mastermind.NET.Models; using NUnit.Framework; namespace MastermindTests { public class GameStateTests { [Test] public void RandomNumbersGeneratedCorrectly() { var state = new GameState(); Assert.AreEqual(state.Numbers.Count, 4, "Game state should ...
using System; using System.Collections.Generic; using System.Linq; using System.Web.UI.WebControls; using System.Data; using System.Data.OleDb; using Sind.BLL; using Sind.BLL.Excel; using Sind.Model; using Sind.Web.Publico.Controles; using Sind.Web.Publico.Helpers; namespace Sind.Web.Cadastros { public partial cl...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using WebUI.Entity; namespace WebUI.Data.Abstract { public interface IAbilityRepository { Ability GetById(int abilityId); IQueryable<Ability> GetAll(); void AddAbility(Ability ability); ...
using System; using Xunit; using System.Collections.Generic; using System.Collections; using ImagoCore.Models.Strategies; using ImagoCore.Models; namespace ImagoCore.Tests.Models.Strategies { public class FertigkeitVeraendernServiceTest { private readonly FertigkeitVeraendernService _service; ...
using System.Collections.Generic; namespace NBatch.Main.Readers.FileReader.Services { public interface IFileService { IEnumerable<string> ReadLines(long startIndex, int chunkSize); } }
using Cs_Gerencial.Dominio.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cs_Gerencial.Dominio.Interfaces.Servicos { public interface IServicoNacionalidadesOnu: IServicoBase<NacionalidadesOnu> { NacionalidadesOnu ...
/* Menu.cs * Author: Agustin Rodriguez */ using System; using System.Collections.Generic; using System.Text; namespace DinoDiner.Menu { /// <summary> /// this class contains properties for menu items such as entrees, drinks, and sides. /// </summary> public class Menu { /// <summary> ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WeaklySmartUMLMaker.Fabrics; namespace WeaklySmartUMLMaker { public static class FigureFabricCreator { private static Dictionary<ActionType, Type> _operations = new ...
using System.Collections; using System.Collections.Generic; using UnityEngine; using System; using UnityEngine.SceneManagement; #if UNITY_EDITOR using UnityEditor; public class RoomEffectEditor : EditorWindow { #region Exemples //Exemple /* string myString = "Hello World"; bool groupEnabled; ...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Threading; using System.Threading.Tasks; namespace WebTest { public partial class test : System.Web.UI.Page { protected void Page_Load(object sender,...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.Common; using System.Data; using System.Data.SqlClient; using ConsoleApp1.SqlConn; namespace ConsoleApp1 { class InsertData { public static void Insert() { ...
using System.Web.Mvc; using System; using Foundry.Security; using Foundry.Website.Extensions; namespace Foundry.Website.Controllers { [UserFilter, ViewModelUserFilter] public abstract partial class FoundryController : Controller { public const string VIEW_MESSAGE_KEY = "Message"; ...
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using Engine.Events; public class BaseGameUIPanelResultsBase : MonoBehaviour { public UILabel totalScore; public UILabel totalScoreSmarts; public UILabel totalScores; public UILabel totalCoins; public UILabel totalT...
using System.Collections; using System.Collections.Generic; using UnityEngine; /* Class for fixing the aspect ratio of the screen to 1:1 (for gameplay reasons: map is squared). * For now, since the game doesn't allow resizing of the window, we only need to fix the ratio on Start. */ [RequireComponent(typeof(Camera...
namespace ParkingSystem.Tests { using NUnit.Framework; using System; using System.Linq; public class SoftParkTest { [SetUp] public void Setup() { } [Test] public void TestPropertyGettersWorkCorrectly() { Car car = new Car("Vw", "...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Euler_Logic.Problems.AdventOfCode.Y2021 { public class Problem23 : AdventOfCodeBase { private List<Pod> _pods; private Pod[] _locations; private Dictionary<string, ulong> _hash; private ...
using iSukces.Code.Interfaces; namespace iSukces.Code.Irony { public class SimpleCodeExpression : ICsExpression { public SimpleCodeExpression(string code) => Code = code; public string GetCode(ITypeNameResolver resolver) => Code; public string Code { get; } } }
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ArkSavegameToolkitNet { public class ArkStringCache { private ConcurrentDictionary<string, string> _items; public ArkStringCache()...
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using DG.Tweening; [RequireComponent(typeof(Panel))] public class UIPlayerPointsList : MonoBehaviour { public static UIPlayerPointsList instance; public VerticalLayoutGroup playerList; privat...
using DChild.Gameplay; using DChild.Gameplay.Objects; using Sirenix.OdinInspector; using UnityEngine; public class AutoStep : MonoBehaviour { [SerializeField] [TabGroup("Sensors")] private RaycastSensor m_upperSensor; [SerializeField] [TabGroup("Sensors")] private RaycastSensor m_lowerSensor; ...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; namespace Overall { public class MenuController : MonoBehaviour { public static MenuController instance; // Outlets public GameObject welcomeMenu; public Ga...
using FluentNHibernate.Conventions; using FluentNHibernate.Conventions.Inspections; using FluentNHibernate.Conventions.AcceptanceCriteria; using FluentNHibernate.Conventions.Instances; namespace Profiling2.Infrastructure.NHibernateMaps.Conventions { public class StringClobColumnConvention : IPropertyConvention, I...
using DChild.Gameplay.Objects.Characters; using UnityEngine; namespace DChild.Gameplay.Player { public class PlayerDoubleJump : CharacterJump, IDoubleJump, IPlayerBehaviour { [SerializeField] private bool m_isEnabled; private bool m_canDoubleJump; private bool m_restrictHighJum...
using gView.Framework.Geometry; using System.Collections.Generic; using System.Data; namespace gView.Framework.FDB { public interface ISpatialIndex { bool InitIndex(string FCName); bool InsertNodes(string FCName, List<SpatialIndexNode> nodes); DataTable QueryIDs(IEnvelope env); } ...
using Cs_Gerencial.Dominio.Entities; using Cs_Gerencial.Dominio.Interfaces.Repositorios; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cs_Gerencial.Infra.Data.Repositorios { public class RepositorioTabelaCustas : RepositorioBase<Tabel...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CodingTest { /// <summary> /// Class that wraps a dictionary of string and Record and provides functionality /// to Add to dict if a key is not already present, elsewise the 'Added...
using Genesys.WebServicesClient.Components; using Genesys.WebServicesClient.Sample.Agent.WPF.Properties; using System; using System.Collections.Generic; using System.ComponentModel; using System.Dynamic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Cont...
using System.Net; namespace AxiEndPoint.EndPointClient { public interface IEndPoint { /// <summary> /// Отправляет данные на сервер и возвращает ответ /// </summary> /// <param name="data"></param> /// <returns></returns> ResponseData Send(RequestData data); ResponseData Send(RequestData data, IPEndP...
using Sentry.Extensibility; using Sentry.Internal.Extensions; using Sentry.Protocol.Envelopes; namespace Sentry.Internal.Http; internal class CachingTransport : ITransport, IAsyncDisposable, IDisposable { private const string EnvelopeFileExt = "envelope"; private readonly ITransport _innerTransport; priv...
using Sales.ViewModels; using System.Windows.Controls; namespace Sales.Views.SaleViews { public partial class SaleOfferDisplayUserControl : UserControl { public SaleOfferDisplayUserControl() { InitializeComponent(); Unloaded += (s, e) => ViewModelLocator.Cleanup("SaleOf...
using UnityEngine; using System.Collections; namespace Game.UI.Component { [RequireComponent(typeof(Canvas))] /// <summary> /// 游戏中的主要画布,用于游戏play时的主界面服务; /// </summary> /// <remarks>挂载在主Canvas上即可实现单例获取</remarks> public class MainGameCanvas : MonoBehaviour { //如果有指定UIContai...
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using CEMAPI.BAL; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using CEMAPI.Models; using System.Net.Mail; using System.Reflection; using CEMAPI.DAL; namespace CEMAPI.Controllers { ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Data.SqlClient; namespace movie_guide_module_3 { public partial class Form13 : Form ...
namespace E { /// <summary> /// 列转换类型 /// </summary> public enum ColumnNameCaseType { /// <summary> /// 默认不做处理 /// </summary> Default = 0, /// <summary> /// 转大写 /// </summary> Upper = 1, /// <summary> /// 转小写 //...
using Tools; namespace _039 { static class Program { static void Main(string[] args) { Decorators.TimeItAccurate(Solve, 2000, 100); } private static int Solve(int upperLimit) { var solutions = new int[upperLimit + 1]; for (int perime...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SceneTrans : BasePanel { public void HideOver() { UIManager.GetInstance().HidePanel("SceneTrans"); Destroy(gameObject); } }
using System; using StardewValley; using StardewValley.Locations; using StardewModdingAPI; using System.Linq; namespace StardewNotification { public class GeneralNotification { public void DoNewDayNotifications(ITranslationHelper Trans) { CheckForBirthday(Trans); CheckF...
using Microsoft.AspNet.Identity; using Microsoft.Owin; using Microsoft.Owin.Security.Cookies; using Owin; using SolarSystemWeb.Models.Identity; namespace SolarSystemWeb { public class Startup { public void Configuration(IAppBuilder app) { // настраиваем контекст и менед...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Reflection; using System.ComponentModel; namespace Supermarket.API.Extensions { public static class EnumExtensions { /*First we define a generic method(a method that can receive more than onc...
using System; namespace MainTool.Exceptions { public class FlowImpossibleException : Exception { public FlowImpossibleException(string message) : base(message) { } } }
namespace Ach.Fulfillment.Business { using System.Collections.Generic; using Data; public interface IAchTransactionManager : IManager<AchTransactionEntity> { void ChangeAchTransactionStatus(List<AchTransactionEntity> transactions, AchTransactionStatus status); void SendAchTransactionN...
using System.Net; namespace Org.Common.Exception { public class DuplicateEtityException : OperationException { public DuplicateEtityException(string message) : base(message, (int)HttpStatusCode.Conflict) { } } }
using System; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Data.SqlTypes; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading; using System.Web.Security; using System.Web.UI.WebControls; public class Dashboard { public bool suc...
namespace Application.Views.Admin { using System.Collections.Generic; using System.Text; using Common; using Common.Utilities; using Models.ViewModels; using SimpleMVC.Interfaces.Generic; public class Games : IRenderable<IEnumerable<AdminGamesViewModel>> { private readonly stri...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using System.Windows.For...
using Microsoft.VisualStudio.TestTools.UnitTesting; using Upgrader.SqlServer; namespace Upgrader.Test.SqlServer { [TestClass] public class IndexInfoSqlServerTest : IndexInfoTest { public IndexInfoSqlServerTest() : base(new SqlServerDatabase(AssemblyInitialize.SqlServerConnectionString)) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using System.Net.Http; using System.Net.Http.Json; using Microsoft.AspNetCore.Components.Forms; using Microsoft.AspNetCore.Components.Routing; using Microsoft.AspNetCore.Components.Web...
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace BanjoBotCore.persistence { //TODO: Refactor DatabaseController //Also https://stackoverflow.com/questions/46010003/asp-net-core-2-0-value-cannot-be-null-parameter-name-connectionstring public interfa...
using System; using System.Collections.Generic; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Orleans.Hosting; using Orleans.TestingHost; using StackExchange.Redis; namespace Orleans.Reminders.Redis.Tests { public class ClusterFixture : IDisposable { private rea...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; namespace Рекурс.С_из_n_по_k { class Program { static int Cnk(int n, int k) { if (k == 0) {return 1;} if (n == k) { ret...
using System; using System.Xml; namespace pjank.BossaAPI.Fixml { public enum OrdRejectReason { /* BrokerOption = 0, UnknownSymbol = 1, ExchangeClosed = 2, OrderExceedsLimit = 3, TooLateToEnter = 4, UnknownOrder = 5, DuplicateOrder = 6, DuplicateVerbOrder = 7, StaleOrder = 8, T...
using System.Reflection; namespace Mapper.Utils { public class PropertyMap { public PropertyInfo SourceProperty { get; set; } public PropertyInfo TargetProperty { get; set; } } }
public class Solution { public int Rob(int[] nums) { if (nums.Length == 1) return nums[0]; return Math.Max(Rob(nums, 0, nums.Length - 2), Rob(nums, 1, nums.Length - 1)); } public int Rob(int[] nums, int start, int end) { if (start == end) return nums[start]; int prev1 = ...
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; public class SlotManager : MonoBehaviour, IPointerClickHandler { [Header("Slot UI")] public Text StackText; private Stack<ItemDatabase> ItemStack; public ...
using System.Collections.Generic; using UnityEngine; public class HotbarController : MonoBehaviour { public int HotbarSlotSize => gameObject.transform.childCount; private List<ItemSlot> hotbarSlots = new List<ItemSlot>(); KeyCode[] hotbarKeys = new KeyCode[] { KeyCode.Alpha1, KeyCode.Alpha2, KeyCode.Alpha3, Ke...