content
stringlengths
23
1.05M
using Stylet; using System.Collections.Generic; using SimpleDICOMToolkit.Infrastructure; namespace SimpleDICOMToolkit.Models { public class DicomObjectLevel : IDicomObjectLevel { public string Text { get; } public string UID { get; } public bool HasChildren => Children.Count > 0; ...
namespace Boleto.Domain.Entidades { public class JsonContent { public Requisicao Requisicao { get; set; } public Resposta Resposta { get; set; } } }
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Using_Example { class myClass : IDisposable { public StreamReader reader; public void Dispose() { //Cleanup unmanaged resources ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigati...
using System; using System.Net; namespace LBHFSSPublicAPI.V1.Infrastructure { /// <summary> /// Addresses API Context Response. Gateway requires the status code to do decisions on, /// and json string it could deserialize. It should be the Context's responsibility to /// transform a byte stream into a ...
using Plus.Dependency; namespace Plus.Domain.Repositories { /// <summary> /// IRepository /// </summary> public interface IRepository : ITransientDependency { } }
// Copyright (c) Microsoft Corporation // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json.Linq; using Newtonsoft.Json; namesp...
using System; using System.Collections.Generic; using System.Text; using Newtonsoft.Json; using Slack.NetStandard.WebApi; namespace Slack.NetStandard.Objects { public class Invite { [JsonProperty("id")] public string ID { get; set; } [JsonProperty("date_created",NullValueHandling = Nu...
using Microsoft.AspNetCore.SignalR; using PVScan.Domain.DTO.Barcodes; using PVScan.Domain.DTO.Users; using PVScan.Domain.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace PVScan.API.Hubs { public class UserInfoHub : Hub { // Current us...
using System; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using R5T.L0011.T001; using SyntaxFactory = Microsoft.CodeAnalysis.CSharp.SyntaxFactory; namespace System { public static partial class ISyntaxFactoryExtensions { public sta...
using System.Web.Mvc; using System.Web.Routing; using Nop.Web.Framework; using Nop.Web.Framework.Mvc; namespace Nop.Admin.Models.Shipping { public partial class ShippingRateComputationMethodModel : BaseNopModel { [NopResourceDisplayName("Admin.Configuration.Shipping.Providers.Fields.FriendlyName")] ...
// 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.Security.Claims; using System.Security.Principal; namespace Microsoft.Owin.Security.Infrastructure { /// <summary> ...
namespace Unity.Tests.TestSupport { public class SpecialLogger : ILogger { } }
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using sspx.core; using sspx.core.entities; using sspx.core.interfaces; namespace sspx.web.Controllers { public class ProtocolController : Controller ...
using System; namespace SlrrLib.Model { public class BinaryRpkHeader : FileEntry { protected static readonly int offsetSignature = 0; protected static readonly int sizeSiganture = 4; protected static readonly int offsetVersion512 = 4; protected static readonly int offsetExterna...
using System.ComponentModel.DataAnnotations.Schema; using System.Runtime.Serialization; namespace Bean.POCO { [DataContract(IsReference = true)] public class BasePOCO { [NotMapped] public bool IsNew { get; set; } = false; } }
using WinBiometricDotNet.Interop; namespace WinBiometricDotNet { /// <summary> /// The <see cref="OperationType"/> enumeration specifies the type of asynchronous operation being performed. /// </summary> public enum OperationType : uint { /// <summary> /// No operatio...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using CnrsUniProv.OCodeHtm; using System.IO; namespace TestApp { class TestApp { static void Main(string[] args) { SensorGaborFilterTest(3); } static void SensorGaborFilterTest(...
using System; using System.Collections.Generic; using System.Linq.Expressions; namespace RentThatBike.Web.ServiceModel.Types { public interface IBicyleRepository { List<Bicycle> GetAll(); List<Bicycle> Get(Expression<Func<Bicycle, bool>> condition); Bicycle Single(Expression<Func<Bicycl...
using System.Reactive.Disposables; using Avalonia.Markup.Xaml; using Avalonia.ReactiveUI; using PlcMonitor.UI.ViewModels; using ReactiveUI; namespace PlcMonitor.UI.Views { public class ProjectView : ReactiveUserControl<ProjectViewModel> { public ProjectView() { this.WhenActivated(di...
using JetBrains.Annotations; using UnityEngine; namespace Silphid.Extensions { public static class ScreenOrientationExtensions { /// <summary> /// Returns true if the ScreenOrientation is Portrait or PortraitUpsideDown /// </summary> [Pure] public static bool IsPortrait...
using System; using Microsoft.WindowsAzure.MobileServices.Query; using Microsoft.WindowsAzure.MobileServices.TestFramework; namespace Microsoft.WindowsAzure.MobileServices.Test.UnitTests.OData { [Tag("unit")] [Tag("odata")] public class ODataExpressionParserTest : TestBase { [TestMethod] ...
using BenchmarkDotNet.Attributes; using JM.LinqFaster; namespace BenchmarksCore.Repeat { public partial class Repeat : BenchmarksBase { [Benchmark] public int[] RepeatFast() => LinqFaster.RepeatArrayF(5, TEST_SIZE); } }
using System; using System.Collections.Generic; using Xunit.Abstractions; using Xunit.Sdk; #if XUNIT_FRAMEWORK public class SpyMessageBus : IMessageBus #else public class SpyMessageBus : LongLivedMarshalByRefObject, IMessageBus #endif { readonly Func<IMessageSinkMessage, bool> cancellationThunk; public SpyMessageB...
 using System; using System.Collections.Generic; using Terraria; using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; namespace GoldensMisc.Items.Consumable { public class InertStone : ModItem { public override bool IsLoadingEnabled (Mod mod) { return ModContent.GetInstance<ServerConfig>...
using System; using ObjCRuntime; [assembly: LinkWith ("libdtdev.a", LinkTarget.ArmV7 | LinkTarget.Arm64 | LinkTarget.Simulator | LinkTarget.Simulator64, Frameworks = "ExternalAccessory CoreBluetooth AVFoundation MediaPlayer", IsCxx = true, SmartLink = true, ForceLoad = true)]
using System; using Xunit; namespace VulkanCore.Tests { public unsafe class InteropTest { [Fact] public void AllocZeroBytes() { IntPtr handle = Interop.Alloc(0); Assert.Equal(IntPtr.Zero, handle); } [Fact] public void AllocStringToPtr() ...
using System; using System.Collections.Generic; namespace engine.core { using Callback = Action<object>; sealed public class StateListener { public int Id { get; } private Callback _callback; public StateListener(int id, Callback callback) { Id = id; ...
using AngleSharp.Dom; using AngleSharp.Html.Parser; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; namespace Notadesigner.Scraper.Transformations { public abstract class ElementExtractor : IElementExtractor { public abstract string Elemen...
using System.Collections.Concurrent; using System.Collections.Generic; namespace Titan.Core { public enum SystemStats { PreUpdate, FixedUpdate, Update, PostUpdate } public class SystemStat { public double PreUpdate; public double FixedUpdate; ...
using MicroService.TeamService.Models; using MicroService.TeamService.Repositories; using Servicecomb.Saga.Omega.Abstractions.Transaction; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace MicroService.MemberService.Services { /// <summary> /// 团队服务实现 ...
using System.Collections.Generic; namespace ELearning.Application.Assignments.Queries.GetAssignmentEvaluationsListById { public class AssignmentEvaluationsListViewModel { public IList<AssignmentEvaluationLookupModel> AssignmentEvaluations { get; set; } } }
using System.Linq; using CefSharp; using TweetLib.Browser.CEF.Interfaces; namespace TweetImpl.CefSharp.Adapters { sealed class CefFileDialogCallbackAdapter : IFileDialogCallbackAdapter<IFileDialogCallback> { public static CefFileDialogCallbackAdapter Instance { get; } = new CefFileDialogCallbackAdapter(); privat...
using System; using System.Collections; namespace Nini.Util { /// <include file='OrderedListEnumerator.xml' path='//Class[@name="OrderedListEnumerator"]/docs/*' /> public class OrderedListEnumerator : IDictionaryEnumerator { #region Private variables int index = -1; ArrayList list; #endregion #region Con...
// // Author: // Aaron Bockover <abock@xamarin.com> // // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using Foundation; using AppKit; using Xamarin.Interactive.I18N; namespace Xamarin.Interactive.Client.Mac { partial class SessionWindowTabViewCont...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.VR; using UnityEngine.Events; using System; using Klak.Wiring; [ModelBlock("Transfer/Body/Arm Decouple","TxArm_Decouple", 200)] //[BlockVisuals("TxArm_Decouple", 150)] public class ArmDecoupleNode : BlockBase { public...
using Microsoft.SqlServer.Server; using System.Text.RegularExpressions; /// <summary> /// https://blogs.msdn.microsoft.com/sqlclr/2005/06/29/working-with-regular-expressions/ /// </summary> public partial class RegEx { [SqlFunction(IsDeterministic = true, IsPrecise = true)] public static bool Match(string sour...
using CyberCAT.Core.Classes.Mapping; namespace CyberCAT.Core.Classes.DumpedClasses { [RealName("MeshAppearanceDeviceOperation")] public class MeshAppearanceDeviceOperation : DeviceOperationBase { [RealName("meshesAppearence")] public CName MeshesAppearence { get; set; } } }
using System; using System.IO; using System.Xml; using System.Xml.Linq; using System.Windows; using System.Collections.Generic; using System.ComponentModel; using ResourceTypes.Wwise; namespace ResourceTypes.Wwise.Helpers { [TypeConverter(typeof(ExpandableObjectConverter))] public class FXBase { [...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Networking; public abstract class FunctionalItem : MonoBehaviour, PlayerComponent { protected PlayerScript player; public void SetPlayer(PlayerScript player) { this.player = player; } public ItemType type; publ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace AesEncrypter { class EncryptionManager { private byte[] InitVector = new byte[16]; private string mInitVectorAsStri...
using System; using FubuMVC.Core.Runtime; namespace FubuMVC.HelloWorld { public class AsyncExceptionHandler : IExceptionHandler { private readonly IOutputWriter _output; public AsyncExceptionHandler(IOutputWriter output) { _output = output; } public bool S...
using System.Windows; namespace PandaPlayer.DiscAdder.Views { public partial class DiscAdderView : Window { public DiscAdderView() { InitializeComponent(); } } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SummerShopping { class Program { static void Main(string[] args) { //read int budget = int.Parse(Console.ReadLine()); double towelPr...
using Firebase.sample.Services; using Firebase.sample.Services.Implementation; using Firebase.sample.Views; using GalaSoft.MvvmLight.Command; using System; using System.Collections.Generic; using System.Diagnostics; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace Firebase.sample.ViewMo...
using System; using System.Collections.Generic; using System.Threading.Tasks; using Avalonia.Controls; using Avalonia.Markup.Xaml; using Avalonia.Styling; using FluentAvalonia.UI.Controls; using ComboBox = Avalonia.Controls.ComboBox; namespace Nickvision.Avalonia.Controls { public class ComboBoxDialog : ContentDia...
using System.Collections; using UnityEditor; using UnityEditor.IMGUI.Controls; using UnityEngine; using static UnityEditor.IMGUI.Controls.CapsuleBoundsHandle; namespace GanyuEditor.Physics { public class CapsuleShape : CollisionShape { public float Radius = 1; public float Height = 2; ...
using System; using System.Runtime.Serialization; using SadConsole.UI.Controls; using SadRogue.Primitives; namespace SadConsole.UI.Themes { /// <summary> /// The theme of the slider control. /// </summary> [DataContract] public class ScrollBarTheme : ThemeBase { /// <summary> ...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.Azure.EventHubs { using System; /// <summary>Represents the approximate receiver runtime information for a logical partition of an Event H...
namespace commercetools.Sdk.Domain.Carts { public class ScoreShippingRateInputDraft : ScoreShippingRateInputBase, IShippingRateInputDraft { } }
namespace MusicallyApi.Data.Responses { public class OperationFollow { public bool success { get; set; } public bool fallback { get; set; } public bool result { get; set; } public long timestamp { get; set; } public bool fail { get; set; } } }
namespace MassTransit.GrpcTransport.Integration { using System; using Contexts; using Metadata; public class GrpcHostNodeContext : NodeContext { public GrpcHostNodeContext(Uri nodeAddress) { NodeAddress = nodeAddress; SessionId = NewId.NextGuid(); ...
using System.Threading.Tasks; using Sinc.Storage.Models; using Sinc.Storage.Services; namespace Sinc.Storage { public class Storage : IStorage { private readonly IStoredPlaylistService _storedPlaylistService; public Storage(IStoredPlaylistService storedPlaylistService) { ...
using System; using ikSharp.Extensions; using System.Linq; using System.Xml.Linq; namespace ikSharp.Models.Joint { public class Axis { public Axis(XElement node) { Xyz = node.Attribute("xyz") != null ? node.Attribute("xyz").ReadDoubleArray() : null; } public double[] Xyz { get; set; } } }
// Copyright (c) 2019 Lykke Corp. // See the LICENSE file in the project root for more information. using System.Linq; using Autofac; using JetBrains.Annotations; using MarginTrading.Backend.Core; using MarginTrading.Common.Services; using MarginTrading.AssetService.Contracts; using MarginTrading.AssetService.Contrac...
namespace System.Workflow.ComponentModel.Serialization { using System; using System.Xml; using System.Runtime.Serialization; using System.Reflection; using System.IO; using System.Runtime.Serialization.Formatters.Binary; using System.Collections; using System.Collections.Generic; #r...
#region snippetFull using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.EntityFrameworkCore; using RazorPagesMovie.Models; #region snippet namespace RazorPagesMovie.Pages.Movies { #pragma warning disable CS8618 #pragma warning disable CS8604 #region snippet2 public class IndexModel : PageModel { ...
using Acr.UserDialogs; using FFImageLoading.Forms.Platform; using Foundation; using Lottie.Forms.Platforms.Ios; using MvvmCross.Forms.Platforms.Ios.Core; using OxyPlot.Xamarin.Forms.Platform.iOS; using UIKit; namespace StarWarsSample.Forms.iOS { [Register(nameof(AppDelegate))] public partial class AppDelegate...
using Firebase.Database; namespace TinyXamarinFirebase.Forms.Droid { public class AndroidFirebaseMutableData<T> : FirebaseMutableData<T> { private readonly MutableData mutableData; public AndroidFirebaseMutableData() { } internal AndroidFirebaseMutableData(MutableDat...
/* This code is derived from jgit (http://eclipse.org/jgit). Copyright owners are documented in jgit's IP log. This program and the accompanying materials are made available under the terms of the Eclipse Distribution License v1.0 which accompanies this distribution, is reproduced below, and is available at http://www...
using System; namespace Sustainsys.Saml2.Metadata { public class Endpoint { public Uri Binding { get; set; } public Uri Location { get; set; } public Uri ResponseLocation { get; set; } public Endpoint() { } public Endpoint(Uri binding, Uri location) { Binding = binding; Location = location; ...
using HomeHunter.Data; using HomeHunter.Domain; using HomeHunter.Services.Contracts; using System.Linq; using System.Threading.Tasks; namespace HomeHunter.Services { public class VillageServices : IVillageServices { private readonly HomeHunterDbContext context; public VillageServices(HomeHunt...
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class WorkSpaceStarter : MonoBehaviour { [SerializeField] private Drink _drink; private void Start() { OrderCreationEvents.Instance.StartCreatingDrink(_drink); } }
using Newtonsoft.Json; namespace TamaChanBot.Core.Settings { public abstract class Settings { [JsonIgnore] public string DefaultPath { get; protected set; } public abstract Settings LoadFromFile(string filepath); public abstract void SaveToFile(string filepath); public virtua...
using System.Text; using Newtonsoft.Json; namespace Meiswinkel.NightScoutReporter.NightScoutContracts { public class Threshold { /// <summary> /// High BG range. /// </summary> [JsonProperty(PropertyName = "bg_high")] public int? BgHigh { get; set; ...
using Leftware.Common; using Leftware.Tasks.Core; using Leftware.Tasks.Core.TaskParameters; using Leftware.Tasks.Core.TaskParameters.Conditions; using Spectre.Console; namespace Leftware.Tasks.Impl.General.Files; [Descriptor("Files - Validate JSON Schema")] internal class ValidateJsonSchemaTask : CommonTaskBase { ...
using System; using UnityEngine; using UnityEngine.Events; using UnityEngine.EventSystems; using UnityEngine.UI; namespace LccModel { [Serializable] public class LongClickEvent : UnityEvent { } public class LongClickButton : Button { private DateTime _first; private DateTime _second; ...
using System; using System.Security.Cryptography; using Eshava.Core.Security.Hash.Interfaces; namespace Eshava.Core.Security.Hash { public class HashAlgorithmEngine : IHashAlgorithmEngine { private readonly HashAlgorithm _hashProvider; public HashAlgorithmEngine(HashAlgorithm hashProvider) { _hashProvider...
using System.Linq; using NUnit.Framework; using Xero.Api.Infrastructure.Exceptions; using Xero.Api.Payroll.Australia.Model; namespace PayrollTests.AU.Integration.ValidationErrors { public class AUPayrollValidationErrors : ApiWrapperTest { [Test] public void Validation_errors_are_returned_from_...
using Cisco.Api.Data.SerialNumberToInfo; using Refit; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace Cisco.Api.Interfaces { /// <summary> /// Serial number to info calls /// </summary> public interface ISerialNumberToInfo { /// <summary> /// Gets coverage st...
using System.Collections; using System.Collections.Generic; namespace Ichi.Clicker { public abstract class Status<T> { protected T Value { get; private set; } public T NextValue { get; private set; } private IStatusCalculator<T> calculator; public Status(IStatusCalculator<T> ca...
using Anetta.ServiceConfiguration; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; namespace ConsoleApp.Services { public class SampleServiceWithConfiguratorConfigurator : IServiceConfigurator { public void Configure(IServiceCollection services, IConfiguration...
using Natasha; using System; using System.Reflection; namespace DeepClone.Model { /// <summary> /// 构建信息 /// </summary> public class BuilderInfo { public Type DeclaringType; public string DeclaringTypeName; public string DeclaringAvailableName; public Type Member...
// 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.ComponentModel.Composition; using System.Threading; using System.Threading.Tasks; using NuGet.VisualStudio; namespace NuGet....
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Configuration; using Dynamcis365Service.Models; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Query; namespace Dynamcis365Service.Services { public class CreateLeadService { #region Declarartions ...
using System.Net; namespace TheQ.DexiIo.Client.Implementation { /// <summary> /// Cloud Response details /// </summary> public class Response { public string Content { get; set; } public WebHeaderCollection Headers { get; set; } public HttpStatusCode StatusCode { get; set; } public string StatusDesc...
namespace PrisonersDilemma.Website.ViewModels.Home { using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using PrisonersDilemma.Domain; using PrisonersDilemma.Website.Controllers; /// <summary> /// The model for the <see cref="HomeController.Index"/> action...
using System; using System.Collections.Generic; using System.Text; namespace HGV.Tarrasque.ProcessHeroes.Models { public class HeroComboStat { public int Id { get; set; } public int Picks { get; set; } public int Wins { get; set; } public void Update(bool victory) { ...
namespace WiinUSoft.Inputs { public static class Flags { public const string RUMBLE = "RUMBLE"; } }
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; public class GameLine : MonoBehaviour, IReleasely { public UnityEvent LineInitialized; public UnityEvent LineReleased; public GameObject Background; public GameObject PrefabForPulling; priv...
using MatterHackers.Plugins.X3GDriver; using MatterHackers.SerialPortCommunication.FrostedSerial; namespace MatterHackers.MatterControl.Plugins.X3GDriver { public class X3GFrostedSerialPortFactory : FrostedSerialPortFactory { override protected string GetDriverType() => "X3G"; public override IFrostedSerialPor...
using Models; using System.Collections.Generic; namespace Core.Contracts { public interface ILoadFlights { List<Flight> GetFlights(); void SaveFlight(Flight flight); Flight GetFlight(string flightName); } }
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.Linq; using Microsoft.OData.Client; using ODataSingletonSample.Client; namespace SingletonClientSample.Client { public class Pr...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; namespace Agridea.Diagnostics.Logging { public class ProgressIndicator { private int max_; private int counter_; public static event EventHandler<ProgressIndicatorEventArgs> ...
using System; using System.ComponentModel.Composition; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Threading; using GitHub.Exports; using GitHub.ViewModels.Dialog.Clone; namespace GitHub.VisualStudio.Views.Dialog.Clone { [ExportViewFor(typeof(IRepositorySelectViewModel))] [...
namespace Cavity.Types { public abstract class AbstractBaseClass1 { public abstract bool AutoAbstract { get; set; } } }
using System; using System.Threading; using System.Threading.Tasks; using NClap.Metadata; namespace SmartGlass.Cli { internal class DiscoverCommand : Command { public override async Task<CommandResult> ExecuteAsync(CancellationToken cancel) { var devices = await Device.DiscoverAsync...
using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Security.Claims; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; using masz.Dtos.Tokens; using masz.Events; using masz.Exceptions; using masz.Models; using Microsoft.Extensions.Loggin...
namespace BakedGoods.Dependency.Exjection.Abstractions.Services { /// <summary> /// Interface for scoped serices /// </summary> public interface IScopedService : IInjectableService { } }
using UnityEngine; namespace ManyTools.Events { [CreateAssetMenu(fileName = CreateMenus.AnimationCurveEventFilename, menuName = CreateMenus.AnimationCurveEventMenu, order = CreateMenus.AnimationCurveEventOrder)] public class AnimationCurveEvent : GameEvent<AnimationCurve> { } }
using System; namespace UtiLib.IO.Translation { public static class LanguageExtensions { public static string ToShortForm(this Language language) { var langMap = SharedPreferences.LanguageMap; if (langMap.TryGetValue(language, out var mode)) { ...
using System; using System.Text; // using MiscUtil.Conversion; public static class Extensions { public static string ToByteString(this byte[] byteArray) { var sb = new StringBuilder("("); for (var i = 0 ; i < byteArray.Length ; i++) { sb.Append(byteArray[i]); if ...
namespace MAVN.Service.AdminAPI.Domain.Services { public interface ISettingsService { string GetTokenName(); string GetBaseCurrency(); bool IsPublicBlockchainFeatureDisabled(); bool IsPhoneVerificationDisabled(); string GetReferralUrlTemplate(); bool IsDemoOn(); ...
using System; namespace homm { partial class BattleModule { bool isRunning; Coord mapPrintPos; BattleMap map; Army pl, pr, currPlayer; ArrowBattle arrow; public ref Army Play() { SingleLogBattle.log.LogNewLine("Battle started " + pl.hero.name + " vs " + pr.hero.name); InitScreen(); PrintCurr...
 namespace KittenApp.Data { using KittenApp.Models; using Microsoft.EntityFrameworkCore; public class KittenAppContext : DbContext { public DbSet<User> Users { get; set; } public DbSet<Kitten> Kittens { get; set; } public DbSet<Breed> Breeds { get; set; } protected o...
namespace EventStore.Core.Services.PersistentSubscription.ConsumerStrategy { public enum ConsumerPushResult { Sent, Skipped, NoMoreCapacity } }
namespace computational_graph.Layer { public interface Layer { dynamic Forward(dynamic x); dynamic Backward(dynamic dout); } }
#region Copyright (c) OPTANO GmbH // //////////////////////////////////////////////////////////////////////////////// // // OPTANO GmbH Source Code // Copyright (c) 2010-2021 OPTANO GmbH // ALL RIGHTS RESERVED. // // The entire contents of this file is protected by German and // Internati...
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Data; namespace Sequence.Test.UI { public class LogMultiConverter : IMultiValueConverter { public object Convert(object[] values, Type ta...
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. using System; using System.Diagnostics.CodeAnalysis; using System.Net.Http; using Microsoft.Owin; using Microsoft.Owin.Security; using Owin.Security.Providers.Yahoo.Messages; namespace...