content
stringlengths
23
1.05M
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading; using System.Windows.Forms; using DeOps.Implementation; using DeOps.Implementation.Transport; namespace DeOps.Interface.Settings { pu...
using SwaggerWcf.Test.Service.Data; using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel; using System.Web; namespace SwaggerWcf.Test.Service { [ServiceContract] public interface IAuthorService : IBaseService, IBaseCRUDService<Author> { } }
@using MortgageCalc.Core.Models; @model AmortizationSchedule @{ var anyPMI = Model.MonthlyPayments[0].PMI > 0; } <table class="table table-bordered table-sm table-hover table-responsive"> <thead> <tr> <th>Year</th> <th>Month</th> <th>Principal</th> <t...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace V3 { public class Selector : PanelBase { [SerializeField] private Button[] buttons; [SerializeField] private float r = 120f; private float angle; public void InitButtonPos...
namespace MLG2007.Helper.CalendarStore { partial class Calendars { partial class CalendarsDataTable { } } }
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class StartGameButton : MonoBehaviour { public GameObject game_ui; public GameObject hide_ui; public Text colour_text; public void StartGame() { game_ui.SetActive(true); colo...
namespace Leak.Extensions { public interface MoreMapping { void Add(string code, MoreHandler handler); } }
namespace Bandersnatch { public static class Pipeline { } }
namespace Book.Views.Samples.Chapter18.Sample01 { using System; using System.Reactive.Disposables; using System.Reactive.Linq; using System.Windows; using ReactiveUI; using ViewModels.Samples.Chapter18.Sample01; public partial class ChildView : ReactiveUserControl<ChildViewModel> { ...
namespace TezosPayments.DependencyInjection; public interface ITezosPaymentsProvider { ITezosPayments GetTezosPayments(string name); }
using UnityEngine; namespace ScriptableEvents.Listeners { [AddComponentMenu("Scriptable Events/Long Scriptable Event Listener", 2)] public class LongScriptableEventListener : BaseScriptableEventListener<long> { } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Archimedes.Patterns { /// <summary> /// Generic EventData /// </summary> /// <typeparam name="T">Type of submited Value</typeparam> public class EventArgs<T> : EventArgs { public EventArgs(T...
using System; using System.Collections.Generic; using System.Text; using FastReport.Utils; namespace FastReport.Data { public class SQLiteAssemblyInitializer : AssemblyInitializerBase { public SQLiteAssemblyInitializer() { RegisteredObjects.AddConnection(typeof(SQLiteDataConnection)...
using PostSharp.Aspects; using PostSharp.Serialization; using PostSharpExceptionHandling.Attributes.Common.ExceptionHandling; namespace PostSharpExceptionHandling.Example.Attributes.ExceptionHandling { [PSerializable] internal class ChangeSalaryWithInadmissibleValueAttribute : LoggingExceptionHandlerAttribute { ...
using System; namespace DbBridge.Classes { public class Alias { private string _alias; private string _column; public Alias(string column, string alias) { if (string.IsNullOrEmpty(alias)) throw new ArgumentException("Alias can not be empty."); _alias = alias; _column = column; } public o...
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using EcmaScript.NET; using Yahoo.Yui.Compressor; using YuiCompressionType = Yahoo.Yui.Compressor.CompressionType; using BundleTransformer.Core; using BundleTransformer.Core.Assets; using Bun...
namespace StrategyPattern._3_DuckBehaviorImplementation.Behaviors.Fly; public class FlyBehavior : IFlyBehavior { public string Fly() { return "Flying"; } }
using System; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using Microsoft.Build.Framework; using Logger = SharpGen.Logging.Logger; using Task = Microsoft.Build.Utilities.Task; namespace SharpGenTools.Sdk.Tasks { public abstract class SharpTaskBase : Task, ICancelableTask { ...
namespace МоитеГуми.Models.Connection { using static Data.Models.DataConstatnt.Connection; public class ConnectionViewModel { public string connection { get; set; } } }
using System; using System.Collections.Generic; using System.Text; using FluentAssertions; using Xunit; namespace ShoppingCart.Tests { public class CartItemTest { [Fact] public void Ctor_ShouldCreate() { var arrange = new CartItem(new Product("product", 15, new Category("c...
using System; using System.IO; namespace Threats.Filesystem.CreateFile { class Program { static string execPath; static string rootPath; static Program() { execPath = Environment.CurrentDirectory; //execPath = Path.GetDirectoryName(new Uri(typeof(Progra...
using UnityEngine; namespace U3Gear.Library.Engine.Cameras { public abstract class BaseCamerasCtrl : MonoBehaviour { /// <summary> /// Awake is called when the script instance is being loaded. /// </summary> protected virtual void Awake() { } /// <su...
namespace OSC.Net.Model.GetDateTime { /// <summary> /// GetDateTime command options class. /// </summary> public class Options { /// <summary> /// Gets or sets dateTimeZone. /// </summary> public string dateTimeZone { get; set; } } }
namespace FakeItEasy.Tests.Core { using System.Collections.Generic; using System.Linq; using FakeItEasy.Core; public class EnumerableOfFakeCallsFactory : DummyFactory<IEnumerable<IFakeObjectCall>> { protected override IEnumerable<IFakeObjectCall> Create() { ret...
namespace Armut.Iyzipay.Request { public class CreateThreedsPaymentRequest : BaseRequest { public string PaymentId { get; set; } public string ConversationData { get; set; } public override string ToPKIRequestString() { return ToStringRequestBuilder.NewInstance() ...
using System.Threading.Tasks; namespace SharkFramework { public interface IServiceSingleton { Task InitializeAsync(); } }
namespace Ndapi.Enums { public enum AlertButton { Button1 = NdapiConstants.D2FC_DFAL_BTN1, Button2 = NdapiConstants.D2FC_DFAL_BTN2, Button3 = NdapiConstants.D2FC_DFAL_BTN3 } public enum Justification { Left = NdapiConstants.D2FC_JUST_LEFT, Right = NdapiConst...
using SFA.DAS.Assessor.Functions.Domain.Interfaces; using SFA.DAS.Assessor.Functions.Domain.Print.Types; namespace SFA.DAS.Assessor.Functions.Domain.Print.Interfaces { public interface IPrintRequestCommand : IQueueCommand<CertificatePrintStatusUpdateMessage> { } }
public enum TileType { None, Normal, Grass, Ice, Bumper, Plateform }
using Common.Http.Interface; using Common.Http.Wrapper; using System.Net; namespace Common.Http { public class HttpWebRequestFactory : IHttpWebRequestFactory { public IHttpWebRequest Create(string uri) { return new WrapHttpWebRequest((HttpWebRequest)WebRequest.Create(uri)); ...
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace HandDVR { public class BioIKTarget : MonoBehaviour { public Transform HandBone; public Transform HandPosition; public Transform Finger; public float HandScale; void LateUpdate() ...
using System.Text.RegularExpressions; namespace IxMilia.Dxf { internal class DxfEncodingHelper { private static readonly Regex DxfCodePagePattern = new Regex(@"^ANSI_(\d+)$", RegexOptions.IgnoreCase); public static bool TryParseEncoding(string encodingName, out int codePage) { ...
using UnityEngine; using UnityEditor; namespace Community.UI { #if UNITY_EDITOR ///----------------------------------------------------------------------- /// <copyright file="ReadOnlyAttribute.cs"> /// Code by andyman from Unity Answers: /// http://answers.unity3d.com/questions/489942/how-to...
@model dynamic <a asp-action="Edit" asp-controller="Admin" asp-route-id="@Model.Name" class="btn btn-primary btn-sm">@T["Edit"]</a> <a asp-action="Delete" asp-controller="Admin" asp-route-id="@Model.Name" class="btn btn-danger btn-sm" itemprop="RemoveUrl UnsafeUrl">@T["Delete"]</a>
using Microsoft.EntityFrameworkCore; using Secure.SecurityDoors.Data.Enums; using Secure.SecurityDoors.Data.Models; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; namespace Secure.SecurityDoors.Logic.Specifications { /// <summary> /// DoorReader specification. ...
namespace PhilipDaubmeier.DigitalstromClient.Model.Structure { public class StructureResponse : IWiremessagePayload { public Apartment Apartment { get; set; } = new Apartment(); } }
using System; namespace Sunburst.Win32UI.Interop { public struct LOGBRUSH { public uint lbStyle; public int lbColor; public IntPtr lbHatch; } }
// Copyright (c) Arun Mahapatra. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Noted.Extensions.Libraries.Kindle { using System; using Noted.Core.Models; public class Clipping { public Clipping() => this.Pag...
namespace Dissonance.Engine.Graphics { public enum CullMode { Off, Front = 1028, Back = 1029, Both = 1032 } }
using System; using System.Collections.Generic; using System.Data; using System.Data.SQLite; using System.Windows.Forms; namespace DAL { class SQLiteDatabase { String dbConnection; // Default Constructor for SQLiteDatabase Class. public SQLiteDatabase() { dbConnec...
using System; using System.IO; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using JetBrains.Annotations; namespace ldy985.BinaryReaderExtensions { /// <summary>Extension methods for <see cref="BinaryReader" />.</summary> public static partial class BinaryReaderExtension...
namespace Lounge.Services.Users.Models.ConnectionEntities { public class ModelConstants { public class Connection { public const int MaxNotesLength = 24; } } }
using System; namespace Com.Game.Data { [Serializable] public class SysSkillDescVo { public string unikey; public string skill_id; public string 不解析; public int effect_num; public string effect_desc1; public string effect_num1; public string effect_desc2; public string ef...
using System; using System.Collections.Generic; namespace Plus.Domain.Entities { /// <summary> /// Entity /// </summary> [Serializable] public abstract class Entity : Entity<int>, IEntity { } /// <summary> /// Entity /// </summary> /// <typeparam name="TPrimaryKey"></type...
using Android.Graphics; namespace Microsoft.Band.Tiles.Pages { public partial class Icon { public Color Color { get { return new Color(GetColor()); } set { SetColor(value); } } public ElementColorSource ColorSource { get { return GetC...
using NUnit.Framework; using Pixelator.Api.Codec.Layout.Padding; namespace Pixelator.Api.Tests.Codec.Layout.Padding { [TestFixture] class IsoPaddingTest : PaddingTest { protected override Api.Codec.Layout.Padding.Padding Padding { get { return new IsoPadding(); } } ...
using System.Linq; using PhotoShare.Client.Core.Dtos; using PhotoShare.Models; using PhotoShare.Services.Contracts; namespace PhotoShare.Client.Core.Commands { using System; using Contracts; public class AddFriendCommand : ICommand { private readonly IUserService userService; public A...
using System; using System.Linq; using ReMi.BusinessEntities.Exceptions; using ReMi.BusinessLogic.ReleasePlan; using ReMi.Commands.Metrics; using ReMi.Commands.ReleaseCalendar; using ReMi.Commands.ReleasePlan; using ReMi.Contracts.Cqrs.Commands; using ReMi.Contracts.Cqrs.Events; using ReMi.DataAccess.BusinessEntityGate...
using System.ComponentModel; namespace LinqAn.Google.Metrics { /// <summary> /// The total revenue from purchased product items. /// </summary> [Description("The total revenue from purchased product items.")] public class ItemRevenue: Metric<decimal> { /// <summary> /// Instantiates a <seealso cref="ItemRe...
using UnityEngine; using UnityEngine.Events; using System; namespace Leap.Unity.Interaction { /** * Add an InteractionHandEvents component to an interactable object to expose * standard Unity event dispatchers for the onHandGrasp and onHandRelease events. * The events become accessible in the Unity inspector...
//TODO: License for samples/tutorials ??? namespace FoundationDB.Samples.Benchmarks { using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.IO; using System.Threading; using System.Threading.Tasks; using Doxense.Mathematics.Statistics; using FoundationDB.Cl...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; namespace Develappers.BillomatNet.Queries { public class SupplierFilter ...
using System; using System.Windows.Input; namespace BrightSharp.Commands { public class RelayCommand : ICommand { private readonly Action _methodToExecute; private readonly Action<object> _methodToExecuteWithParam; private readonly Func<object, bool> _canExecuteEvaluator; publ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Log4Pro.IS.TRM.DAL { /// <summary> /// Csomagolási egység státusz /// </summary> public enum PackagingUnitStatus { /// <summary> /// Létrehozva /// ...
using System.Collections.Generic; using System.Linq; using HearthDb.Enums; namespace HearthDb.Deckstrings { public class Deck { /// <summary> /// DbfId of the hero. Required. /// This can be a specific hero for a class, i.e. Medivh over Jaina. /// </summary> public int HeroDbfId { get; set; } /// <summa...
using System; using System.Collections.Generic; using Avalonia; using Avalonia.Controls; using Avalonia.Input; using Avalonia.Input.Raw; using Avalonia.Platform; using Avalonia.Rendering; using Avalonia.Threading; using Consolonia.Core.Drawing.PixelBuffer; using Consolonia.Core.Dummy; namespace Consolonia.Core.Infrast...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Avalonia.Platform; namespace AvaloniaEdit.AvaloniaMocks { public class MockRuntimePlatform : IRuntimePlatform { IUnmanagedBlob IRuntimePlatform.AllocBlob(int size) { ...
using CssUI.Internal; namespace CssUI.HTML { [MetaEnum] public enum EEncType : int {/* Docs: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formenctype */ /// <summary> /// /// </summary> [MetaKeyword("application/x-www-form-urlencoded")] ...
using NUnit.Framework; using Ploeh.AutoFixture; using Podcaster.UnitTests.Base; using Podcaster.Web.Models.Account; namespace Podcaster.UnitTests.WebClient.ViewModels.Account { [TestFixture] public class ExternalLoginConfirmationViewModelTests : BaseTestClass { [Test] public void Setters...
@inherits ViewPage<Durwella.UrlShortening.Web.ServiceModel.HelloResponse> <h2 style="color:green">@Model.Result</h2> <p><a href="/">&lt; home</a></p>
namespace P02.VehiclesExtension { using P02.VehiclesExtension; using P02.VehiclesExtension.Models; using System; public class StartUp { public static void Main() { string[] carArgs = Console.ReadLine().Split(); double carFuelQuantity = double.Parse(carArgs[...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OSGeo.MapGuide.Test.Common { /// <summary> /// A simple logger interface /// </summary> public interface ITestLogger : IDisposable { ...
using System; using System.Collections; using System.Collections.Generic; namespace Flinq { public static class FlinqIListExtensions { public static T FirstOrDefault<T>(this IList<T> list) { if(list == null) throw new ArgumentNullException("list"); if(list.Count == 0) return default(T); return list[0...
using Xunit; public class SentenceTest { [Fact] public void OneWordWithOneVowel() => Assert.Equal("a", Sentence.WordWithMostVowels("a")); [Fact] public void OneWordWithOneVowelAndOneConsonant() => Assert.Equal("oh", Sentence.WordWithMostVowels("oh")); [Fact] public void OneWor...
using System.Numerics; namespace PersistentPlanet.Controls.Controls { public interface IAxisUpdatedEvent { Vector2 Axis { get; set; } } }
using Portal.Service.Implements; using Portal.Service.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace Site.OnlineStore.Areas.Admin.Controllers { public class HomeController : BaseManagementController { #region Properties ...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MaterialAnimator : MonoBehaviour { public AnimationCurve valueSpectrum = new AnimationCurve(new Keyframe(0f, 0f), new Keyframe(1f, 1f)); public Material material; public string propertyName; //private Color b...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MetroLog.Targets { public class LogReadQuery { public bool IsTraceEnabled { get; set; } public bool IsDebugEnabled { get; set; } public bool IsInfoEnabled { get...
using System.Text.Json; namespace Onebot.Protocol.Extensions { public static class JsonElementExtensions { public static T GetObject<T>(this JsonElement element, JsonSerializerOptions options = null) => JsonSerializer.Deserialize<T>(element.GetRawText(), options ?? new JsonSerializerOptions...
using System; using System.Runtime.Serialization; namespace SharpRemote.CodeGeneration.Serialization.Binary { /// <summary> /// Classifies messages into method calls and -results. /// </summary> [Flags] [DataContract] internal enum MessageType2 : byte { /// <summary> /// The method is a call and ca...
using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using YouTubeCleanupTool.Domain.Entities; namespace YouTubeCleanupTool.Domain { public interface IYouTubeCleanupToolDbContext { Task<List<PlaylistItemData>> GetPlaylistItems(); Task<List<PlaylistD...
using Xamarin.Forms; namespace MagicGradients.Toolkit.Controls { public class TextContent : Label { public TextContent() { HorizontalOptions = LayoutOptions.Fill; VerticalOptions = LayoutOptions.Fill; HorizontalTextAlignment = TextAlignment.Center; ...
using System; using System.Collections; namespace TeslaCanBusInspector.Common { public static class BitArrayConverter { public static short ToInt16(byte[] bytes, int bitOffset, byte bitLength) { const int maxBits = sizeof(short) * 8; Guard(bytes, bitOffset, bi...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class NoteObject : MonoBehaviour { public bool canBePressed; public KeyCode keyToPress; public GameObject hitEffect, missEffect; // Update is called once per frame void Update() { if (Input.GetKeyD...
using Autofac; using EmberKernel.Services.EventBus; namespace EmberKernel.Services.Statistic.DataSource.SourceManager { public interface IEventSourceManager : IKernelService { void Track<TEvent>(ILifetimeScope scope) where TEvent : Event<TEvent>; void Untrack<TEvent>() where TEvent : Event<TEv...
using System; namespace VPX.ApiModels { public class UserWithoutGroupModel { public Guid Value { get; set; } public string Display { get; set; } } }
using Goomer.Services.Data.Contracts; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Kendo.Mvc.Extensions; using Kendo.Mvc.UI; using Goomer.Web.Infrastructure.Mapping; using Goomer.Web.Areas.Administration.Models; namespace Goomer.Web.Areas.Administrat...
using System; using System.Collections.Generic; using WhiteRabbit.SampleApp.Interfaces; namespace WhiteRabbit.SampleApp.Infrastructure.Messaging { public class CommandDispatcher : DispatcherBase<ICommandHandler> { public CommandDispatcher(IEnumerable<ICommandHandler> handlers) : base(type...
using System; namespace EvolutionSimulation.FSM.Creature.Transitions { /// <summary> /// This transition is for males creatures and is to go to a female /// who is in heat. /// Wander -> Go to mate /// </summary> class GoToMateTransition : CreatureTransition { public GoToMateTransi...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Numerics; namespace Encryptior { public class Models { public class ProjectData { public string EncryptedFilename { get; set; } public strin...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Undesirable_Communication.Model.Connection; using Undesirable_Communication.Model.Connection.Outgoing; namespace Undesirable_Communication.Model.ChatMessage.Outgoing { public class OutgoingMessageList { public I...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MohyoButton.Models { public class KeyInfo { /// <summary> /// Consumer Key /// </summary> public string ConsumerKey; /// <summary> /// C...
using System; using System.Collections.Generic; using System.Linq; using DOL.WHD.Section14c.Business.Factories; using DOL.WHD.Section14c.Domain.Models; using DOL.WHD.Section14c.Domain.Models.Submission; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace DOL.WHD.Section14c.Test.Business.Factories { [Tes...
using System; using RippleLibSharp.Transactions; namespace RippleLibSharp.Nodes { public class RippleFieldGroup { public UInt32 Flags { get; set; } public string Account { get; set; } public string Owner { get; set; } public RippleCurrency Balance { get; set; } public stri...
using System; using System.Collections.Generic; using System.Text; namespace MyMeetUp.Logic.Entities.Enums { public enum ERegistrationStatus { Preregistration=0, Registered=1, Canceled=2, Forbidden=3 } }
using System; using System.Collections.Generic; using System.Text; using Microsoft.Extensions.Logging; // ReSharper disable once CheckNamespace namespace Microsoft.Azure.WebJobs.Script.Diagnostics { /// <summary> /// <see cref="ILoggerProvider"/> to verify if the surrogate of the real provider doesn't get rem...
namespace Sudoku.UI.Data.ValueConverters; /// <summary> /// Defines a converter that can convert an <see cref="int"/> value to a <see cref="string"/>. /// </summary> public sealed class Int32ToStringConverter : IValueConverter { /// <inheritdoc/> public object Convert(object value, Type targetType, object? paramete...
/* Linked list data structure example Copyright 2017, Sjors van Gelderen */ using System; using System.Collections.Generic; namespace Program { // Linked list data structure and associated functionality class LinkedList<T> where T : IEquatable<T> { public T Value { get; set; } public LinkedList<T> N...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace Tinkar.Protobuf.XUnitTests { internal static class NativeMethods { public static void PreventSleep() { SetThreadExecu...
/* * DAWN OF LIGHT - The first free open source DAoC server emulator * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any lat...
/* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
using Heartbeat.Runtime.Analyzers.Interfaces; using Heartbeat.Runtime.Proxies; using Microsoft.Extensions.Logging; namespace Heartbeat.Runtime.Analyzers { public sealed class HttpWebRequestAnalyzer : ProxyInstanceAnalyzerBase<HttpWebRequestProxy>, ILoggerDump { public HttpWebRequestAnalyzer(RuntimeCont...
using Microsoft.EntityFrameworkCore; using SerieFlix.Domain.Entities; using SerieFlix.Repository.Context; using System.Collections.Generic; namespace SerieFlix.Tests.MockData.Repository { public static class DbContextMock { public static SerieFlixContext GetContext() { var options ...
using Xunit; namespace PreMailer.Net.Tests { public class StyleClassTests { [Fact] public void SingleAttribute_ShouldNotAppendSemiColonToString() { var clazz = new StyleClass(); clazz.Attributes["color"] = CssAttribute.FromRule("color: red"); ...
using System; using Ephimes.Domain.Entities; using Ephimes.Domain.Interfaces.Repositories; using Ephimes.Domain.Interfaces.Services; namespace Ephimes.Domain.Services { public class UsuarioService : IUsuarioService { public UsuarioService(IUsuarioRepository repository) { Repository...
using System; using System.Collections.Concurrent; using System.Linq; using System.Threading.Tasks; namespace DepsWebApp.Services { internal class AccountService: IAccountService { private readonly BlockingCollection<string> _accounts = new BlockingCollection<string>(); ///<inheritdoc...
using System.Windows.Input; namespace BookShuffler.ViewModels { public class MainWindowCommands { public ICommand SaveProject { get; set; } public ICommand NewProject { get; set; } public ICommand OpenProject { get; set; } public ICommand ImportMarkdown { get; set; } pub...
#if ANDROMEDA_SERIALIZER_CBOR||UNITY_EDITOR using Dahomey.Cbor; using Dahomey.Cbor.Util; using System.IO; using UnityEngine; namespace Andromeda.Saving.Cbor { [AddComponentMenu("")] public class CborSavingSystem : SavingSystemBase { protected override GameState LoadFile(string saveFile) ...
using System.Text.Json.Serialization; namespace MinimalBFF.Adapters.OpenWeatherMap; public class OpenWeatherMapResponse { public double Lat { get; set; } public double Lon { get; set; } public string Timezone { get; set; } [JsonPropertyName("timezone_offset")] public int TimezoneOffset { get; set;...
using System; namespace HandControl.Services { public static class UnixTimestampConverter { /// <summary> /// Выполняет преобразование DateTime в Unix timestamp. /// </summary> /// <returns>Unix time.</returns> public static long DateTimeToUnix(DateTime time) ...