content
stringlengths
23
1.05M
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // 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 // http://...
using System; using Microsoft.VisualStudio.Modeling.Shell; using VSWindows = NuPattern.VisualStudio.Windows; namespace NuPattern.Modeling.Windows { /// <summary> /// Extensions for managing DSL designer windows. /// </summary> [CLSCompliant(false)] public static class WindowExtensions { ...
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Reactive; using System.Reflection; namespace Tx.Windows { public class EtwClassicTypeMap : EtwTypeMap, IPartitionableTy...
using LuaInterface; using UnityEngine; public class TestProtol : MonoBehaviour { const string script = @" local pb = require 'pb' local protoc = require 'protoc' assert(protoc:load [[ syntax = 'proto3'; message Phone { string name = 1; int64 phonenumber = 2; } ...
@page @model IdentityServer.Areas.Admin.Pages.Roles.EditRole.RoleUsersModel @{ ViewData["Title"] = "Role Users"; ViewData["ActivePage"] = EditRoleNavPages.RoleUsers; } <div class="row"> <partial name="_StatusMessage" model="Model.StatusMessage" /> @if (Model.RoleUsers != null && Model.Role...
using System.Net; using System.Net.Sockets; using SMNetwork; namespace SMNetwork.Client { public static class DataClient { public static string Address { get; set; } public static IPHostEntry IpAddressEntry { get; set; } public static int Port { get; set; } public static TcpCl...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerDamage : MonoBehaviour { private class LifeObvs : IGameObserver { PlayerDamage _parent; public LifeObvs(PlayerDamage parent) { _parent = parent; } public void OnNotify() { if(_parent._lifeAmount.Curr...
using System; using System.Collections.Generic; using System.Reactive.Subjects; using System.Text; using Xunit; namespace SampleTest.Reactive { public class SubjectTest { [Fact] public void Subjectを使ってみる() { // Arrange var subject = new Subject<int>(); var values = new List<int>(); var completed = fal...
// Copyright (c) MudBlazor 2021 // MudBlazor licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web...
 namespace tdsm.core.WebInterface.Pages.Admin { /* * Note, Modules are not to send HTML, rather they are to send API information */ [WebModule(Url = "/api/filebrowser", Nodes = new string[] { "tdsm.web.filebrowser" })] public class FileBrowser : WebPage { //TODO simple...
using Microsoft.AspNetCore.Mvc.ModelBinding; using System.Reflection; namespace Voyager { public class BoundProperty { public BindingSource BindingSource { get; set; } public string Description { get; set; } public string Name { get; set; } public PropertyInfo Property { get; set; } public string Property...
using DBLayer.Core.Interface; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Threading; namespace DBLayer.Persistence.Linq { public class SqlQueryable<T> : IQueryable<T>,IOrderedQueryable<T> { protected readonly ...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Osos : MonoBehaviour { Color base1 = new Color(0.95f, 0.87f, 0.81f); Color detalle1 = new Color(0.95f, 0.75f, 0.57f); Color detalle2 = new Color(0.85f, 0.59f, 0.36f); // Start is called before the first fra...
using System; // Write a program that reads a string from the console and lists all different words in the // string along with information how many times each word is found. class WordsCount { static char[] separators = { ' ', ',', '?', '.', '!', ';', '\t', '\r', '\n', '*', '-', '/', ...
using Caliburn.Micro; using ExampleSinglePageApp.Messages; namespace ExampleSinglePageApp.ViewModels { public class ShellViewModel : Conductor<object>.Collection.OneActive, IHandle<ChangePageMessage> { private readonly IServiceLocator _serviceLocator; public ShellViewModel(IEventAggregator ev...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Compass : MonoBehaviour { public Vector3 northDirection; public Transform player; public RectTransform northLayer; void Update() { ChangeNorthDir(); } public void ChangeNorthDir() { ...
using System; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Text; namespace AnZwDev.VSCodeLangServer.Utility { /// <summary> /// Simple timer to be used with `using` to time executions. /// </summary> /// <example> /// An example showing how ExecutionTimer is intend...
// 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. // // Revision history: // // BD - January 2018 // using System; using System.Collections.Generic; using System.IO...
namespace Miruken.Mvc.Wpf.Animation { using System; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; using Mvc.Animation; public class SpinAnimator : ChainAnimator<Spin> { public SpinAnimator(Spin spin) : base(spin) { ...
using System; namespace Sexy { internal static class GlobalMembersFlags { public static void ModFlags(ref int theFlags, FlagsMod theFlagMod) { theFlags = ((theFlags | theFlagMod.mAddFlags) & ~theFlagMod.mRemoveFlags); } public static int GetModFlags(int theFlags, F...
/********************************************* 作者:曹旭升 QQ:279060597 访问博客了解详细介绍及更多内容: http://blog.shengxunwei.com **********************************************/ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using She...
using FileSystem; using FluentAdb; using FluentAdb.Enums; using FluentAdb.Interfaces; using FuckMTP.DeviceConnector.Contracts; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading; using System.Threading.Tasks; namespace FuckMTP.ADB { public sealed class Adb...
using MediatR; namespace SFA.DAS.EmployerCommitments.Application.Commands.TransferApprovalStatus { public sealed class TransferApprovalCommand : IAsyncRequest { public long CommitmentId { get; set; } public long TransferRequestId { get; set; } public long TransferSenderId { get; set; }...
namespace InsanityBot.Tickets.CustomCommands.Internal; using System; using System.Threading; using DSharpPlus.CommandsNext; using TimeSpanParserUtil; internal class CloseCommand { public void ProcessCloseCommand(CommandContext context, Object parameter) { TimeSpan time; if(parameter is TimeSpan) { time ...
using System; namespace Advance.IoC.Components.Services { public class DefaultStatisticsTracking : IStatisticsTracking { public void LoginSuccessful() { Console.WriteLine("Login successful"); } public void LoginFailed() { Console.Wri...
namespace WpfGroupFinder.Models { public class Languages { public Languages(string languageLong, string languageShort, string languageCode) { LanguageLong = languageLong; LanguageShort = languageShort; LanguageCode = languageCode; } public string LanguageLong { get; } public string LanguageShort ...
using System.Runtime.InteropServices; namespace Fugu.IO.Records { [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct CommitFooterRecord { public uint CommitChecksum { get; set; } } }
namespace WDE.Common.Services.QueryParser.Models; public class UnknownSqlThing { public UnknownSqlThing(string raw) { Raw = raw; } public string Raw { get; init; } }
namespace UnityCore { public interface IEncryptedXmlSerializer { bool UseEncryption { get; set; } T DecryptAndDeserialize<T>(string path) where T : ISerializable; void EncryptAndSerialize<T>(string path, object serializableObject) where T : ISerializable; } }
using System.Collections; using System.Collections.Generic; using UnityEngine; public class FrictionSlow : MonoBehaviour { void Start() { Vector2 force; force = new Vector2(0.0f, -50.0f); Rigidbody2D gravRigidBody = GetComponent<Rigidbody2D>(); gravRigidBody.AddForce(force); ...
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using Microsoft.AspNetCore.Hosting; using AspNetCore.SEOHelper.Sitemap; using Microsoft.Extensions.Options; using SFA.DAS.FindEmploymentSchemes.Contentful.Services.Interfaces; namespace SFA.DAS.FindEmploymentSche...
namespace Idfy.Addons.Entities.Organization { public class OrganizationAccountingYearModel { /// <summary> /// Gets or Sets Year /// </summary> public int? Year { get; set; } /// <summary> /// Gets or Sets IncomeStatement /// </summary> p...
#region About and License //======================================================================= // Copyright Andrew Szot 2015. // Distributed under the MIT License. // (See accompanying file LICENSE.txt) //======================================================================= #endregion using System; using Syste...
using System.Threading.Tasks; using EastBancTestAssignment.KnapsackProblem.DAL.Interfaces.Repositories; namespace EastBancTestAssignment.KnapsackProblem.DAL.Interfaces { public interface IUnitOfWork { IBackpackTaskRepository BackpackTaskRepository { get; } Task CompleteAsync(); void Co...
using System; using System.Collections.Generic; using System.Text; using Nom; namespace Nom.Project { public class NomDependency { public NomDependency(String qname, Version version) { QName = qname; Version = version; } public string QName { get; } ...
namespace SnackMachine.Domain { public abstract class Repository<T> where T : AggregateRoot { protected readonly SnackMachineContext Context; public Repository(SnackMachineContext context) { Context = context; } public virtual T GetById(long id) ...
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com using Newtonsoft.Json; using System; namespace Translation.Multillect { class MultillectTranslator { ILog _Logger; WebApi.Web...
// // FoldersViewController.cs // // Author: Jeffrey Stedfast <jeff@xamarin.com> // // Copyright (c) 2013-2015 Xamarin Inc. (www.xamarin.com) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Sof...
using System.Collections.Generic; using RoadSimulator.Scripts.Game.LevelEditor; using RoadSimulator.Scripts.UI.Adapter; using UnityEngine; namespace RoadSimulator.Scripts.UI.View { public class ToolListView : MonoBehaviour, ToolListAdapter.ICallback { [SerializeField] private RectTransform listTransfo...
using System.Reflection; namespace TCX.CallTriggerCmd { [MyPhonePlugins.CRMPluginLoader] public class CallTriggerCmdPluginLoader { private static object lockObj = new object(); private static CallTriggerCmdPlugin instance = null; [MyPhonePlugins.CRMPluginInitializer] publi...
using System; namespace NClang { public enum VisibilityKind { Invalid, Hidden, Protected, Default } }
/* * Copyright © 2012-2016 VMware, Inc. All Rights Reserved. * * 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 http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
using System; using System.Collections.Generic; using System.Text; using TakeMyTime.Models.Models; namespace TakeMyTime.DAL.Interfaces { public interface IProjectTypeRepository : IRepository<ProjectType> { IEnumerable<ProjectType> GetProjectTypesLoaded(); ProjectType GetProjectTypeByIdLoaded(i...
using Xunit; namespace Microsoft.Maui.DeviceTests { [Collection(HandlerTestBase.RunInNewWindowCollection)] public partial class NavigationPageTests : HandlerTestBase { } }
namespace LotteryCoreConsole.Lottery_Calculation.Interfaces { public interface IPairs : ISingles { int Second { get; set; } } }
namespace CopperSharp.Item; /// <summary> /// Represents an item flag, that can be hidden /// </summary> public enum ItemFlag { /// <summary> /// Hides item's enchantments /// </summary> Enchantments = 1, /// <summary> /// Hides item's attribute modifiers /// </summary> Att...
using System; using System.Collections.Generic; namespace OpcaoMPCServidor.DAL.Interfaces { public interface IDAONomeado<T> : IDAO<T> where T : class, new() { List<T> BuscarPorNome(String nome); } }
using System; using System.Collections.Generic; using System.Linq; using NUnit.Framework; using Roadkill.Core.Database; using Roadkill.Core.Database.LightSpeed; namespace Roadkill.Tests.Unit.Database.LightSpeed { [TestFixture] [Category("Unit")] public class FromEntityTests { [Test] public void ...
using UnityEngine; namespace Antura.Animation { public class AutoMove : MonoBehaviour { public Vector3 velocity = new Vector3(-1, -0.1f, -0.2f); public float speedFactor = 1; public void SetTime(float t) { transform.position += speedFactor * velocity * Time.deltaTi...
[TaskCategoryAttribute] // RVA: 0x156880 Offset: 0x156981 VA: 0x156880 [TaskDescriptionAttribute] // RVA: 0x156880 Offset: 0x156981 VA: 0x156880 public class Blend : Action // TypeDefIndex: 11417 { // Fields [TooltipAttribute] // RVA: 0x194200 Offset: 0x194301 VA: 0x194200 public SharedGameObject targetGameObject; /...
using System; using System.Collections.Generic; using System.Runtime.Serialization; using System.Text; namespace Mntone.Nico2.Videos.Dmc { [DataContract] public class ContentSrcIdSet { // res req [DataMember(Name = "content_src_ids")] public IList<ContentSrcId> ContentSrcIds { get;...
using UnityEngine; #if UNITY_EDITOR using UnityEditor; namespace SpaceGraphicsToolkit { [CanEditMultipleObjects] [CustomEditor(typeof(SgtFloatingWarp))] public abstract class SgtFloatingWarp_Editor<T> : SgtEditor<T> where T : SgtFloatingWarp { protected override void OnInspector() { BeginError(Any(t => ...
using System; using System.Collections.Generic; namespace APM.SL { public class Product { // Value Types public DateTime? EffectiveDate { get; set; } public decimal Cost { get; set; } public decimal Price { get; set; } public int ProductId { get; set; } // Reference Types public strin...
using System.Collections.Generic; using System.Text; namespace Essentions { /// <summary> Extension methods for <see cref="StringBuilder" />. </summary> public static class StringBuilderExtensions { /// <summary> Enumerates this <see cref="StringBuilder" /> returning its contents. </summary> ...
@page @model IndexModel @{ } <h1>OptionsConfiguredByDelegate</h1> <h2>Index</h2> <h3>Options Value</h3> <p>SimpleOptionsWithDelegateConfig: @Model.SimpleOptionsWithDelegateConfig</p>
using CSharpSyntaxTree = Microsoft.CodeAnalysis.SyntaxTree; namespace Express.Net.Emit.Bootstrapping { public abstract class Bootstrapper { public abstract CSharpSyntaxTree GetBootstrapper(); } }
using SRATS2017AddIn.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SRATS2017AddIn.Commons { public class AlreadyExistSheetName : Exception { } abstract public class IOOperation { protected static IOOp...
 namespace Salgu.Networking { /// <summary> /// 원격 사용자와의 프로토콜을 정의한다. /// </summary> public interface IPeer { /// <summary> /// 원격 사용자가 접속했을 때. /// </summary> /// <param name="hostId">접속을 받은 호스트의 id</param> /// <param name="connectionId">해당 세션의 id</param> void OnCreated(int hostId, int connectionId); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Pokladna { public interface Irepos { List<PoklZaznam> NactiVse(); List<PoklZaznam> NactiMesic(int rok, int mesic); PoklZaznam NactiZaznam(int idPoklZaznam); ...
namespace QuestionsOfRuneterra.Infrastructure { using AutoMapper; using QuestionsOfRuneterra.Data.Models; using QuestionsOfRuneterra.Models.Answers; public class MappingProfile : Profile { public MappingProfile() { this.CreateMap<Answer, AnswerServiceModel>() ...
using System; using System.Text; using System.Collections.Generic; namespace uwu { public static class Json { #region Fields private const string EMPTY_DICT = "{}"; private const string EMPTY_ENUM = "[]"; private const string NULL = "null"; private const int CAPACITY = 1024; #endregion public stati...
using System; using System.Collections.Generic; using System.Threading.Tasks; namespace BeeHive.DataStructures { /// <summary> /// This structures stores a named list for a Guid key /// The list can contain only IHaveIdentity items and like a dictionary /// stores unique values so duplicate ...
namespace System.IO { public abstract class SpecialDirectory { public abstract string GetPath(); public string GetPath(params string[] SubFolders) { var ret = GetPath(); foreach (var item in SubFolders) { ret = System.IO.Path.Combine(ret, item); ...
namespace AkkaNet.ActorsSample.Models { public class GetMetadataMessage { public GetMetadataMessage(string deviceId) { this.DeviceId = deviceId; } public string DeviceId { get; } } }
// Copyright (c) .NET Core Community. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using Pole.Core.Abstraction; using System; using System.Collections.Generic; using System.Text; namespace Pole.Core { class DefaulTimeHelper : ITimeHelper { ...
namespace CGAL_StraightSkeleton_Dotnet { public class Edge { public Vertex Start { get; private set; } public Vertex End { get; private set; } public EdgeType Type { get; private set; } public Edge(Vertex start, Vertex end, EdgeType type) { Start = start; ...
using ConsoleAppFramework; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; args = new[] { "test" }; var builder = ConsoleApp.CreateBuilder(args); builder.ConfigureServices(x => { x.AddSingleton(typeof(ISingletonPublisher<>), typeof(MessageBroker<>)); }); var app = builder.Bu...
using System; using System.Collections.Generic; using System.Drawing; using System.Numerics; using System.Text; namespace WyMerge2 { class Pixel { public Color color; public Vector2 position; public Pixel(Color color, int x, int y) { this.color = color; ...
using IL2CPU.API.Attribs; namespace Cosmos.Core_Plugs.System.Text { [Plug("System.Text.InternalDecoderBestFitFallbackBuffer, System.Private.CoreLib")] public static class InternalDecoderBestFitFallbackBufferImpl { // See note in EncoderFallbackImpl public static object get_InternalSyncObjec...
using System; namespace Super.Model.Selection.Alterations { public class Configured<T> : IAlteration<T> { readonly Action<T> _configure; public Configured(Action<T> configure) => _configure = configure; public T Get(T parameter) { _configure(parameter); return parameter; } } }
using IWshRuntimeLibrary; using ScanIB.F.BL; using System; using System.IO; using System.Windows.Forms; namespace ScanIB { public partial class Program { public static String username = Environment.UserName; private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger(); ...
using System; using System.Collections.Generic; using System.Text; namespace LogBins.Structures.Lists { public static class SkipListDistances { public static Func<int, int, float> Int32 => new Func<int, int, float>((a,b) => Math.Abs(a - b)); } }
using Nez; namespace ARA2D.Commands { public class RawCommandScript : Component { public string Script; public RawCommandScript(string script) { Script = script; } } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CANSignalControlPanel.Data; using System.Threading; namespace CANSignalControlPanel.Driver { /// <summary> /// CAN Driver "Interface", implement it /// </summary> public abstract c...
namespace FlowStoreBackend.Logic.Models { public record Result(bool Success, string Message); }
using System; using System.Collections.Generic; using System.Linq; namespace bookofspells.Models { public class FakeNewsletterSignupRepository : INewsletterSignup { // instance variables private List<NewsletterSignup> emails = new List<NewsletterSignup>(); // cast List object as IQuer...
using System; using System.Linq.Expressions; using Gamma.Binding.Core; using Gtk; namespace Gamma.GtkWidgets { [System.ComponentModel.ToolboxItem(true)] [System.ComponentModel.Category("Gamma Gtk")] public class yNotebook : Notebook { public BindingControler<yNotebook> Binding { get; private set; } public yN...
using System; using UnityEngine; using HexCasters.DesignPatterns.Observer; using HexCasters.Core.Units.Teams; namespace HexCasters.Hud.Teams { public abstract class TeamColoredComponent : MonoBehaviour { public Team team; private TeamColor teamColor; private IDisposable subscription; protected void Start()...
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using nats_ui.Data; using NLog; namespace nats_ui.Pages.Send { public class SendComponent : ComponentBase { private static Logger Logger { get; } = LogManager.GetCurrentClassLogger(); public class MessageModel ...
using System; using System.Threading; namespace KafkaBusClient.Consumer { public class MessageConsumer : IKafkaMessageConsumer { private Worker worker; /// <summary> /// Start a consumer thread on a topic that send messages to handler /// </summary> /// <param name="bus...
#if NET5_0 #region using System; using System.Runtime.CompilerServices; #endregion namespace RadLibrary { public static class RadLibraryInitializer { [ModuleInitializer] internal static void Initialize() { try { RadUtilities.Initialize(false); ...
using System.Collections.Generic; using AngleSharp; using opieandanthonylive.Data.API.Audible.Query; using opieandanthonylive.Data.API.Audible.Scraping; using opieandanthonylive.Data.API.Common; using opieandanthonylive.Data.API.Infrastructure; using opieandanthonylive.Data.Domain.Audible; namespace opieandanthonyliv...
@model object @inject IJsonHelper JsonHelper <pre class="prettyprint lang-json">@JsonHelper.Serialize(Model)</pre>
namespace Shopify.UIToolkit.Test.Unit { using NUnit.Framework; using Shopify.Tests; using Shopify.Unity.SDK.Editor; using Shopify.Unity.SDK; using Shopify.Unity; using System.Linq; using UnityEngine; using NSubstitute; using UnityEngine.TestTools; using System.Collections.Generic...
/* * If you see this file causing you problems, just delete it. * * The problem is that this script has the original GUID from 2D-Extras so you might encounter GUID collisions * if a different package also does the same thing and includes this script. * * An official fix will be released in the next "breaking" b...
using System; using System.Collections; using System.ComponentModel; using System.Reflection; using System.Xml; namespace Nustache.Core { public abstract class ValueGetter { public static readonly object NoValue = new object(); #region Static helper methods public stati...
using Foundation.Core; using System; using UnityEngine; public class OOPrivilegeSmallItem : ObservableObject { public class Names { public const string Attr_Background = "Background"; public const string Attr_TimesTipOn = "TimesTipOn"; public const string Attr_TimesNum = "TimesNum"; public const string At...
using System; using System.Windows.Forms; using WindowsInterface; namespace SuperClicker { internal class HotKey { private Keys _key; private IntPtr _hWnd; private int _id; public HotKey(Keys key, Form form) { _key = key; _hWnd = form.Ha...
using System; using System.Collections.Generic; using System.Text; namespace Wodsoft.CommandLine { public static class ConsoleCommandColor { public static CommandColor Black = new CommandColor(0); public static CommandColor DarkBlue = new CommandColor(1); public static CommandColor Dar...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DroneChaseState : State<DroneMachine> { public static DroneChaseState Instance { get; private set; } static DroneChaseState() { Instance = new DroneChaseState(); } public override void Enter(DroneM...
using System; using System.Web; namespace PackUtils { /// <summary> /// Uri utility /// </summary> public static class UriUtility { /// <summary> /// Add or replace if exists a query string parameter in Uri /// </summary> /// <param name="uri">Uri - if null, returns...
using System; using Bibim.Asset; namespace Bibim.Animation { [ClassID('e', 'r', 'a', '_')] public sealed class EvalGameAssetRangedSequence : EvalRangedSequenceTemplate<GameAsset, GameAssetSequence> { protected override GameAsset Interpolate(GameAsset a, GameAsset b, float t) { ...
namespace Classic.Auth.Packets.Enums { public enum AuthenticationStatus { Success = 0x00, FailedUnknown0 = 0x01, FailedUnknown1 = 0x02, FailedBanned = 0x03, FailedUnknownAccount = 0x04, FailedIncorrectPassword = 0x05, FailedAlreadyOnline = 0x06, F...
// Copyright (c) Alexandre Beauchamp. All rights reserved. // Licensed under the MIT license. namespace Pandora.Utility.Helpers { public interface IFileHelper { void Copy(string source, string destination, bool overwrite = false); void Create(string path); void Delete(string path); ...
using Microsoft.IdentityModel.Tokens; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Text; namespace ServicePenyewaan.API.ServiceHelpers { public class ValidateTokenBase { public static bool ValidateCurrentToken(string token) { SymmetricSecurityKey mySecurityKey = new SymmetricS...
using System; using System.Collections; using System.Collections.Generic; using System.Workflow.ComponentModel; using System.Runtime.Serialization; using System.Security.Permissions; using System.Workflow.Runtime.Hosting; namespace System.Workflow.Runtime.Tracking { /// <summary> /// Contain a single piece of ...
namespace SuperMassive.Tests.Unit.Helpers { using System; using NUnit.Framework; public class DateHelperTest { [Test] public void ToUnixTimeTest() { const string comparisonFormat = "yyyy/MM/dd HH:mm:ss"; var expected = DateTime.Now; var time...
using GerberLibrary; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; namespace JLCDrop { static class Program { enum Argument {...
namespace Divstack.Company.Estimation.Tool.Payments.Domain.Payments; public interface IPaymentsRepository { Task PersistAsync(Payment payment, CancellationToken cancellationToken = default); Task<Payment?> GetAsync(PaymentId paymentId, CancellationToken cancellationToken = default); }
namespace MyCompany.Crm.TechnicalStuff.ProcessModel { public interface Command : Message { } }