content
stringlengths
23
1.05M
using System; using System.Collections.Generic; using System.Linq; using System.Text; using KLib; namespace TestApp.Tests { class Test001 { const string TYPE_1_MESSAGE = "NTLM TlRMTVNTUAABAAAAA7IAAAoACgApAAAACQAJACAAAABMSUdIVENJVFlVUlNBLU1JTk9S"; const string TYPE_2_MESSAGE = "NTLM TlRMTVNTUAA...
using System; using System.Collections.Generic; using System.Linq; namespace GentleWare.Krypto { public static class KryptoNode { public static IKryptoNode Create(OperatorType opr, params IKryptoNode[] nodes) { IKryptoNode node; switch (opr) { case OperatorType.Add: node = new AddNode(nodes); ...
namespace VSharp.Models.Monitoring { internal interface IVideoMonitorTask : IMonitorTask { int VideoSeq { get; set; } } }
namespace Kodefoxx.Studying.CsDesignPatterns.Iterator.News { /// <summary> /// Defines an iterator for <typeparam name="T"></typeparam>. /// </summary> /// <typeparam name="T">The type of instances the iterator cycles though.</typeparam> public interface IIterator<T> { /// <summary> ...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class RoateAtapoint : MonoBehaviour { public float degreesPerSec = 360f; void Start() { } void Update() { float rotAmount = degreesPerSec * Time.deltaTime; float curRot = transform.localRotati...
namespace ClientSite.OAuth2 { public static class OAuth2Constants { public const string AuthenticationSchemeOfCookie = "lnh"; public const string AuthenticationSchemeOfQQ = "qq"; public const string AuthenticationSchemeOfGithub = "github"; } }
using UniRx; using UniRx.Async; using UnityARKitPluginExtensions; using UnityEngine; using UnityEngine.UI; using UnityEngine.XR.iOS; using UnityMultipeerConnectivity; public class MultipeerWorldMapSender : MonoBehaviour { [SerializeField] Button sendWorldMapButton; void Start() { ...
using Orleans; using System; using WPFDemoCore.Enums; using WPFDemoCore.Interfaces; namespace WPFDemo.Models { public class ServiceManager : IServiceManager { private readonly IGrainFactory grainFactory; public ServiceManager(IGrainFactory grainFactory) { this.grainFactory...
namespace AliceAppraisal.Models { public class SlotData { public string Value { get; set; } public string Token { get; set; } public bool HasData { get; set; } public static SlotData Empty = new SlotData() { HasData = false }; } }
// <copyright file="IMetricsOutputFormatter.cs" company="App Metrics Contributors"> // Copyright (c) App Metrics Contributors. All rights reserved. // </copyright> using System.IO; using System.Threading; using System.Threading.Tasks; namespace App.Metrics.Formatters { public interface IMetricsOutputFormatter ...
namespace PracticeInterfaceSegregationPrinciple.Sample2.AfterISP { public class Car : ICar { public string Drive() { return this.GetType().Name + " Drive"; } } }
namespace Kryptos { public class Jwt { public static string Decode(string text) { var parts = text.Split('.'); var header = Base64Url.Decode(parts[0]); var payload = Base64Url.Decode(parts[1]); var signature = $"{{{parts[2]}}}"; return...
using System.Collections.Generic; using System.ComponentModel; using MemberService.Data.ValueTypes; namespace MemberService.Pages.Signup { public class SignupInputModel { [DisplayName("Danserolle")] public DanceRole Role { get; set; } [DisplayName("Partners e-post")] public str...
using Newtonsoft.Json; namespace Magento.RestClient.Data.Models.Bulk { public partial class RequestItem { [JsonProperty("id")] public long Id { get; set; } [JsonProperty("data_hash")] public string DataHash { get; set; } [JsonProperty("status")] public string Status { get; set; } } }
using Application.Business.Exceptions; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.DependencyInjection; using System; using System.Linq; using System.Net; namespace Application.Website.Filters {...
namespace NBaseRepository.ADO { using System; using System.Data.SqlClient; public static class SqlDataReaderExtensions { public static Guid ToGuid(this SqlDataReader reader, int position) { return Guid.Parse(reader.ToString(position)); } public static strin...
using System; using System.Collections.Generic; using System.Text; namespace mxProject.TokenAuthentication { /// <summary> /// Pair of access token and refresh token. /// </summary> public class TokenPair : ITokenPair { /// <summary> /// Create a new instance. /// </summa...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; namespace CodePlexDocGenerator { /// <summary> /// This class is used to represent information /// of a ComLib component as that is defined /// in the _Examples.xml file. /// </summary> pub...
//----------------------------------------------------------------------- // <copyright file="TimeoutsSpec.cs" company="Akka.NET Project"> // Copyright (C) 2009-2021 Lightbend Inc. <http://www.lightbend.com> // Copyright (C) 2013-2021 .NET Foundation <https://github.com/akkadotnet/akka.net> // </copyright> //-...
using System.Collections.Specialized; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using Dadata.Model; namespace Dadata { public class SuggestClientAsync : ClientBaseAsync, ISuggestClientAsync { protected const string BASE_URL = "https://suggestions.dadata.ru/suggestion...
namespace NetCore8583 { public interface ICustomField { /// <summary> /// Decodes a custom field value /// </summary> /// <param name="value"></param> /// <returns></returns> object DecodeField(string value); /// <summary> /// Encode a cu...
using Microsoft.VisualBasic; using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Diagnostics; //----------------------------------------------------------------- // Copyright (c) Bill McCarthy. // This code and information are provided "as is" without warranty //...
using Gw2Sharp.WebApi.V2.Models; namespace Gw2Sharp.WebApi.V2.Clients { /// <summary> /// A client of the Guild Wars 2 API v2 achievements endpoint. /// </summary> public interface IAchievementsClient : IBulkExpandableClient<Achievement, int>, ILocalizedClient, IPaginatedClient<...
namespace EA.Weee.Core.AatfReturn { using System.ComponentModel.DataAnnotations; public enum ReportOnQuestionEnum { [Display(Name = "Weee Received")] WeeeReceived = 1, [Display(Name = "Weee Sent On")] WeeeSentOn = 2, [Display(Name = "Weee Reused")] WeeeReuse...
using System; using Windows.Foundation; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; using Windows.UI.Xaml.Markup; using Windows.UI.Xaml.Media; namespace Template10.Controls { [TemplatePart(Name = nameof(PART_THUMB), Type = typeof(Thumb))] [ContentProperty(...
using System.Xml.Linq; namespace DocxTemplater.Extensions { internal static class XAttributeExtensions { public static XAttribute Clone(this XAttribute attribute) { return new XAttribute(attribute); } } }
using System; using System.Collections.Generic; using VRage; using VRage.Utils; namespace DarkHelmet.BuildVision2 { public sealed partial class BvServer { private class CallbackManager { private readonly Dictionary<int, Action<byte[]>> callbackMap; private List<MyTuple<...
namespace Unity.VisualScripting { /* Implementation notes: * * IUnitConnection cannot implement IConnection<IUnitOutputPort, IUnitInputPort> because * the compiler will be overly strict and complain that types may unify. * https://stackoverflow.com/questions/7664790 * * Additionally, u...
using UnityEngine.Timeline; namespace PixelWizards.LightmapSwitcher { [TrackClipType(typeof(LightmapSwitchAsset))] [TrackBindingType(typeof(LevelLightmapData))] public class LightmapSwitchTrack : TrackAsset {} }
using System; using System.Threading.Tasks; namespace Presentation { public class Exceptions { public async Task DownloadA() { await Task.Delay(1000); throw new ArgumentException(nameof(DownloadA)); } public async Task DownloadB() { ...
using MaterialDesignThemes.Wpf; using System; using System.Collections.Generic; using System.Text; using System.Windows.Controls; namespace CTournament.Errors { public class Error { public Error() { CreatedDate = DateTime.Now; } public Error(string message) : this(...
using System; using System.Collections.Generic; using System.Text; namespace Comzept.Genesis.NetRix.PlugIns.SpellChecker.Dictionary { /// <summary> /// List of languages currently supported. /// </summary> public enum LanguageType { English = 0, Dutch = 1, French = 2, ...
namespace MapGeneration.Interfaces.Core.LayoutOperations { using System.Collections.Generic; /// <summary> /// Represents layout operations that are meant to work with corridors. /// </summary> /// <typeparam name="TLayout"></typeparam> /// <typeparam name="TNode"></typeparam> public interface ILayoutOperation...
using UnityEngine; namespace RTEditor { /// <summary> /// Contains functions which can be useful when working with the 'Application' class. /// </summary> public static class ApplicationHelper { #region Public Static Functions /// <summary> /// Quits the applicat...
using Eto.Drawing; using System.IO; using System.Reflection; namespace Pablo.Formats.Character.Types { public class Atascii : CharacterFormat { public Atascii(DocumentInfo info) : base(info, "atascii", "ATASCII", "ata") { } public override void FillSauce(Sauce.SauceInfo sauce, CharacterDocument document)...
using NHM.Common; namespace NHMCore.Configs { public class MiningProfitSettings : NotifyChangedBase { public static MiningProfitSettings Instance { get; } = new MiningProfitSettings(); private MiningProfitSettings() { } public bool IsMinimumProfitProfitEnabled => !MineRegardl...
using Microsoft.Extensions.Logging; using OmniSharp.FileSystem; using OmniSharp.Options; using OmniSharp.Services; using System.Linq; using TestUtility; using Xunit; namespace OmniSharp.Tests { public class FileSystemHelperFacts { [Fact] public void FileSystemHelperFacts_CanExcludeSearchPath_F...
// 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 Xunit; namespace ManagedTests.DynamicCSharp.Conformance.dynamic.namedandoptional.decl.strct.strct01.strct01 {...
using System.Data.Entity.Migrations; namespace CcAcca.BaseLibrary.DemoMigrations.Migrations { public sealed class Configuration : DbMigrationsConfiguration<DemoDbContext> { public Configuration() { // we don't want to have to scafold migrations for the classes that we're using ...
using CodeModel.Graphs; using CodeModel.RuleEngine; namespace CodeModel.Extensions.DomainModel.Rules { public class DirectAggregateReferenceViolation : Violation, INodeViolation { public Node Node { get; private set; } public AggregateNode ReferencedAggregate { get; private set; } pub...
@model CompositeHealthCheckResult @{ ViewData["Title"] = "Home Page"; } <div> <h6 class="pull-right">Elapsed time: @( ViewBag.ExecutionTime.Milliseconds )ms</h6> <h1>Overall status: <em>@Model.CheckStatus</em></h1> <br /> @{ await Html.RenderPartialAsync("StatusTable", Model.Results); } <br...
using System.Linq; using Microsoft.SharePoint.Client; namespace Bugfree.Spo.Cqrs.Core.Extensions { // deliberately not created as extension methods on ListCollection because of different semantics // compared to GetById and GetByTitle public class ListExtensions { public List GetListB...
using Kachuwa.Security; using Microsoft.AspNetCore.Razor.TagHelpers; namespace Kachuwa.Web.TagHelpers { /// <summary> /// Tag helper for adding a nonce to /// inline scripts and styles. /// </summary> [HtmlTargetElement("script", Attributes = "asp-add-nonce")] [HtmlTargetElement("style", Attrib...
namespace Horse.Messaging.Server.Cache { /// <summary> /// Result object for cache operation /// </summary> public class CacheOperation { /// <summary> /// Cached item /// </summary> public HorseCacheItem Item { get; } /// <summary> /// Result code ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Bigtree.Algorithm.HiddenMarkovModel.Topology { public interface ITopology { int Create(out double[,] logTransitionMatrix, out double[] logInitialState); } }
using MediatR; using NetCoreWebTemplate.Application.Common.Exceptions; using NetCoreWebTemplate.Application.Common.Interfaces; using NetCoreWebTemplate.Application.Common.Models; using System.Threading; using System.Threading.Tasks; namespace NetCoreWebTemplate.Application.Identity.Commands.Login { public class L...
using System.Management.Automation; using dotnetlink; namespace dotnetlinkps.Routes { [Cmdlet(VerbsCommon.Remove, "Route")] public class RemoveRoute : PSCmdlet { private NetlinkSocket _socket; [Parameter] public Route Route { get; set; } protected override void BeginProcessing() ...
namespace CodeHollow.FeedReader.Parser { using System.Xml.Linq; using Feeds; internal class AtomParser : AbstractXmlFeedParser { public override BaseFeed Parse(string feedXml, XDocument feedDoc) { AtomFeed feed = new AtomFeed(feedXml, feedDoc.Root); return feed;...
using Library.Domain; using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; using Microsoft.AspNetCore.Mvc.Rendering; using System.ComponentModel.DataAnnotations; namespace Library.MVC.ViewModels { public class BookDetailsViewModel { public BookDetails? BookDetails { get; set; } [ValidateNev...
using System; using BenchmarkDotNetAnalyser.Aggregation; using BenchmarkDotNetAnalyser.Benchmarks; using BenchmarkDotNetAnalyser.Commands; using BenchmarkDotNetAnalyser.Instrumentation; using BenchmarkDotNetAnalyser.IO; using FluentAssertions; using McMaster.Extensions.CommandLineUtils; using Xunit; namespace Benchma...
using ServerFlex.API.Operations; namespace ServerFlex.API { public interface IApiClient { #region Properties /// <summary> /// Gets the API operations for accounts. /// </summary> IAccountOperations Accounts { get; } /// <summary> /// Gets the API opera...
// Problem 8. Extract sentences // Write a program that extracts from a given text all sentences containing given word. // Example: // The word is: in // The text is: // We are living in a yellow submarine. // We don't have anything else. Inside the submarine is very tight. // So we are drinking all the day. We ...
using Domain.IntrastructureInterface; namespace Domain.Domain.Issue { /// <summary> /// Issue用サービス /// </summary> class IssuesService { /// <summary> /// APIから最新のIssue情報を取得、差分の情報を返す /// </summary> /// <param name="issueRepository">Issueリポジトリインスタンス</param> /// <param name="ap...
using System; namespace SRConnection { public static class BinaryUtil { public static void Write(byte value, byte[] buf, ref int offset) { buf[offset++] = (byte)(value); } public static void Write(short value, byte[] buf, ref int offset) { buf[offset++] = (byte)(value); buf[offset++] = (byte)(va...
using System; namespace GridProteinFolding.Interfaces { public interface IProcess { IDataToProcess DataToProcess { get; set; } System.Data.Objects.DataClasses.EntityReference<IDataToProcess> DataToProcessReference { get; set; } DateTime date { get; set; } Guid guid { g...
using UnityEngine; using System.Collections; public class ReloadGame : MonoBehaviour { public void Reload() { Application.LoadLevel (Application.loadedLevel); } }
using Topshelf.Runtime; namespace VaraniumSharp.Monolith.Interfaces { /// <summary> /// topShelfConfiguration for TopShelf service /// </summary> public interface ITopShelfConfiguration { #region Properties /// <summary> /// The description of the service that will be displ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace AZUSA { //事件記錄 class ActivityLog { static Queue<string> log = new Queue<string>(); static FileStream logfile = new FileStream("log.txt", FileMode.OpenOrCreate); static S...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Net; using System.Threading.Tasks; using Azure; using Azure.Storage; using Azure.Storage.Blobs; u...
namespace CreativeCoders.SysConsole.CliArguments.UnitTests.Commands { public class TestOptionForCommand { } }
using System; using System.IO; namespace Util { class FileUtil { //vars public static readonly string CWD = Directory.GetCurrentDirectory(); public static readonly char SEPARATOR = Path.DirectorySeparatorChar; //constructor public FileUtil() { } //public public static bool exists(string path) { ...
using System; using System.Collections.Generic; using System.Text; using Windows.UI.Xaml.Media; using Windows.UI.Xaml; // Keep this formatting (with the space) for the WinUI upgrade tooling. using Microsoft .UI.Xaml.Controls; namespace Windows.UI.Xaml.Controls { public partial class ProgressRing : Control { } }
using System.IO; using System.Runtime.CompilerServices; using Newtonsoft.Json; namespace NetTopologySuite.IO.Converters { internal static class Utility { internal static void SkipComments(this JsonReader reader) { // Skip comments while (reader.TokenType == JsonToken.C...
using Xunit; namespace csharp { /// <summary> /// A demonstration of how structs are great for simple objects, /// and can be more lightweight than class alternatives. /// </summary> public class Struct { struct CoordinatesValueType { public int X; public...
using System.IO; using System.Threading.Tasks; using Seq.Api; using SeqCli.EndToEnd.Support; using Serilog; using Xunit; namespace SeqCli.EndToEnd.Ingest { // ReSharper disable once InconsistentNaming public class NDJsonIngestionTestCase : ICliTestCase { public async Task ExecuteAsync( ...
public class Document { public string name { get; set; } public string charset { get; set; } public object reference { get; set; } public string data { get; set; } }
using System; using System.IO; using System.Threading.Tasks; using BaGet.Protocol; using BaGet.Protocol.Models; using Microsoft.AspNetCore.Mvc.Testing; using NuGet.Versioning; using Xunit; using Xunit.Abstractions; namespace BaGet.Tests { /// <summary> /// Uses BaGet's client SDK to interact with the BaGet tes...
using System; using System.Windows.Forms; using NETTrace.Core; using NETTrace.Core.Auxiliary; using NETTrace.Core.Communication; namespace NETTrace.GUI.Forms { public partial class MainForm : Form { private HostCommServer _srv; public MainForm() { InitializeComponent(); ...
using System.Globalization; namespace Manatee.Trello.Internal.Searching { internal class EditedSearchParameter : ISearchParameter { public static readonly EditedSearchParameter Day = new EditedSearchParameter("day"); public static readonly EditedSearchParameter Week = new EditedSearchParameter("week"); ...
using System; using UnityEngine; using System.Xml; using System.Collections.Generic; using BlGame.Resource; /* 枚举值必须和服务器保持一一对应*/ public enum TASK_TIME_TYPE { TTT_Infinite, TTT_Daily, }; /* 枚举值必须和服务器保持一一对应*/ public enum TASK_TYPE { TT_None, TT_KillPlayer,//击杀玩家 TT_KillXiaobin,//击杀小兵 TT_KillMonster,/...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using XLabs.Sample.ViewModel; namespace XLabs.Sample.Pages { public partial class LoginPage : ContentPage { public LoginPage() { InitializeCompo...
using System; using System.Collections.Generic; using System.Text; using QuickGraph; namespace Common { public class RegionSegment : IEdge<Vec2d> { #region IEdge<Vec2d> Members public Vec2d Source { get { return start; } set { start = value; } } ...
using UnityEngine; namespace Signals.Common { [CreateAssetMenu(menuName = nameof(Signals) + "/" + nameof(Vector2IntSignal))] public class Vector2IntSignal : Signal<Vector2Int, Vector2IntEvent> { } }
/* * Copyright (c) 2016-2019 Russ 'trdwll' Treadwell. All rights reserved. * Licensed under the MIT License. See LICENSE.md 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; namespace Heartbe...
using FMOD; using SupersonicSound.Wrapper; using System; namespace SupersonicSound.LowLevel { class CallbackHandler { private readonly ChannelControl _fmod; // This field exists to keep the registered callback alive as long as necessary // ReSharper disable NotAccessedField.Local ...
namespace Core.Linq; /// <summary> /// Provides extension methods similar to those in <see cref="System.Linq.Enumerable"/> for /// classes that implement <see cref="IEnumerable{T}"/>. /// </summary> public static partial class Enumerable { }
using System.Collections; using System.Collections.Generic; using UnityEngine; public static class InputNames { // Camera Movement public static string dragView = "MainClick"; public static string zoomAxis = "ScrollWheel"; // Article Interaction public static string dragArticle = "MainClick"; ...
using System.Collections.Generic; namespace Destiny.Core.Flow.Dtos.Menu { public class SelectedItem<TData, TSelectedType> { public SelectedItem() { ItemList = new List<TData>(); } public List<TData> ItemList { get; set; } public IEnumerable<TSelectedType> S...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Tile : MonoBehaviour { public float spriteSize; public Sprite[] rectoSprites; public Sprite[] versoSprites; [HideInInspector] public bool isRecto; [HideInInspector] public int xPos; [HideInInspector] public int yPos; ...
using Duck.Serialization; namespace Duck.Scene.Components; [AutoSerializable] public partial struct ParentComponent { public int ParentEntityId = default; }
using NDash.Tests.TestClasses; using System.Collections.Generic; using System.Dynamic; using Xunit; namespace NDash.Tests { public class PickByTests { public class Arity1 { public class DictionaryVariant { [Fact] public void should_pick_m...
using System; using System.Collections.Generic; using System.Text; namespace IPAddressReporter.Logic.Services.GoDaddyDNSUpdateService.Models { public class DNSRecordRequest { public string Data { get; set; } public int Port { get; set; } public int Priority { get; set; } public string Protocol { get; set; }...
using UnityEngine; public static class CustomGizmos { public const float TAU = 6.28318530718f; public static Vector2 GetUnitVectorByAngle(float angRad) { return new Vector2(Mathf.Cos(angRad), Mathf.Sin(angRad)); } public static void DrawWireCircle(Vector3 pos, Quaternion rot, float radius, int detail = 32) { ...
using RimWorld; using System; using UnityEngine; using Verse; namespace EdB.Interface { public class GlobalControls { public const float Width = 134f; private const int VisibilityControlsPerRow = 5; private static readonly int TempSearchNumRadialCells = GenRadial.NumCellsInRadius(2.9f); pri...
using System.Numerics; using Polkadot.BinarySerializer; using Polkadot.Source.Utils; using Polkadot.Utils; namespace NftUnity.Extensions { public static class ConvertExtensions { public static byte[] ToCompactBytes(this uint value) { return Scale.EncodeCompactInteger(value).Bytes; ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using SmartGrid.Data; using SmartGrid.Models; namespace SmartGrid.Controllers { [ApiController] [Route("api/[controller]")] public class Set...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SharpLua.Ast.Expression { public class AnonymousFunctionExpr : Expression { public List<Statement.Statement> Body = null; public bool IsVararg = false; public List<Variable> Arguments = new ...
using System; using System.Collections.Generic; using System.IO; using UberStrok.Core.Serialization; namespace UberStrok.Realtime.Client { public class CommPeerOperations { public CommPeerOperations(BasePeer peer, byte id) { if (peer == null) throw new A...
#if UNITY_2017_1_OR_NEWER using System; using UnityEngine; using UnityEngine.Playables; using UnityEngine.Timeline; using Com.LuisPedroFonseca.ProCamera2D; [Serializable] public class PC2DAddOrRemoveCameraTargetClip : PlayableAsset, ITimelineClipAsset { public PC2DAddOrRemoveCameraTargetBehaviour template = new PC2DA...
using System; using System.Numerics; using System.Reflection; using System.Runtime.CompilerServices; namespace Common.DataStructures { public interface IUnmanagedArithmetics { } public abstract class UnmanagedArithmetics<T> : IUnmanagedArithmetics where T : unmanaged { private static UnmanagedArithmetic...
using Shinobytes.Ravenfall.RavenNet.Models; using System; using UnityEngine; public class InventoryPanel : MonoBehaviour { [SerializeField] private InventoryItemSlot[] inventoryItemSlots; [SerializeField] private InventoryItemTooltip tooltip; [SerializeField] private TMPro.TextMeshProUGUI lblCoins; p...
using System; using System.Threading.Tasks; namespace Flamingo.Filters.Async { public interface IFilterAsync<T> { public Func<T, Task<bool>> Filter { get; } public Task<bool> IsPassed(T inComing); } }
using System; using System.ServiceModel; using Microsoft.Practices.Unity; using wslyvh.Core.Service.Host.Unity; namespace wslyvh.Core.Samples.Service.Host { public class Program { static void Main(string[] args) { var container = new UnityContainer(); container.Register...
// Copyright 2017-2020 Elringus (Artyom Sovetnikov). All Rights Reserved. namespace Naninovel { public enum CharacterLookDirection { Center, Left, Right } }
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Megumin; using NUnit.Framework; using System.Buffers; namespace UnitFunc { [TestFixture] public class UnitSpan { [Test] public void TestRemoveAllInt() { Dictionary<int...
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Research.Data.Mapping { /// <summary> /// Represents a Professor mapping configuration /// </summary> public partial class ProfessorMap : ResearchEntityTypeConfiguration<Professor> { #regi...
//----------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Dispatcher { using System; using System.Runtime; using ...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class rocket : MonoBehaviour { public float lifetime; public float destroytime = 10f; void Update() { lifetime += Time.deltaTime; if (lifetime >= destroytime) { ...
namespace CodeBase.Off.Core.Services { using System.Collections.Generic; using CodeBase.Off.Core.Domain; public interface ITeamMemberService { bool Exists(int userId); TeamMember Get(int userId); List<TeamMember> GetList(); void Save(TeamMember member); void Delete...
 namespace BankAccounts { using System; public class DepositAccount : Account, IMoneyOperatable { //Methods public decimal Deposit(decimal sum) { if (sum < 0) { throw new ArgumentException("You can't deposit negative amount of money!"); ...