content
stringlengths
23
1.05M
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.Events; [System.Serializable] public class FloatEvent : UnityEvent<float> {} public class UIImageCycle : MonoBehaviour { public Sprite[] images; int _imageIndex = 0; public FloatEvent o...
using System; using System.IO; using System.Security.Cryptography; using System.Text; namespace DotnetCity.Cryptography { public interface ICrypto { string Encrypt(string plainText, string key, string iv); string Decrypt(string cipherText, string key, string iv); } public class Crypto ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; using System.Xml.Serialization; using ZbW.Testing.Dms.Client.Services.Interfaces; namespace ZbW.Testing.Dms.Client.Services { public class XmlHandler : ISerializat...
using System; using System.Collections.Generic; using UnityEngine; public class ListenerDelegate { public List<int> listenerIds; public List<Action<int>> callbacks; public void Add(int listenerId, Action<int> callback) { if (listenerIds == null) { listenerIds = new List<in...
using System; using System.Linq; namespace CodeSaber.Shrepl { public abstract class TextArea { private readonly int _displayLineIndex; protected readonly string NewLine; protected readonly string TabString = " "; protected TextArea(string newLine, int displayLineIndex) ...
using System; using System.Collections.Generic; using System.Text; namespace LoreHub.DialogSystem.Tests { internal class TestContent : IContent { public string Text { get; private set; } public TestContent() { this.Text = string.Empty; } public TestContent(string text) ...
using System; using System.Collections.Generic; using System.Linq; using Xunit; public class AccumulateTests { [Fact] public void Empty_accumulation_produces_empty_accumulation() { Assert.Equal(new int[0], new int[0].Accumulate(x => x * x)); } [Fact(Skip = "Remove this Skip property to run...
using System; using FluentAssertions; using Vogen.Tests.Types; using Xunit; namespace Vogen.Tests; public class RecordClassCreationTests { [Fact] public void Creation_Happy_Path_MyInt() { MyRecordClassInt vo1 = MyRecordClassInt.From(123); MyRecordClassInt vo2 = MyRecordClassInt.From(123); ...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; [System.Serializable] public class Quest { public string description; public ItemObject Reward; public int rewardAmount; public Sprite rewardSprite; public QuestGoal goal; public bool ...
using UnityEngine; using UnityEngine.UI; public class SceneRoot : MonoBehaviour { public Camera Camera; public Bootstrap Bootstrap; public DragHandlePanel DragHandler; public Slider Slider; public Text FpsText; public Text CountText; private void Start() { Application.target...
using System; using Xamarin.Forms; using Conference.DataObjects; using System.Linq; using System.Windows.Input; using System.Threading.Tasks; using MvvmHelpers; using FormsToolkit; namespace Conference.Clients.Portable { public class SpeakerDetailsViewModel : ViewModelBase { public Speaker Sp...
using System; using System.Collections.Generic; using System.Text; namespace SFA.DAS.Campaign.Domain.Content.HtmlControl { public class Tabs : IHtmlControl { public Tabs() { TabbedContents = new List<TabbedContent>(); } public IEnumerable<TabbedContent> TabbedConten...
using System.Collections.Generic; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; namespace WebConferenceClient { public sealed partial class MainPage : Page { private List<HamburgerMenuItem> MenuItemList = new List<HamburgerMenuItem>(new[] { new HamburgerMenuItem() ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Site.Models { public class BuckwheatItem { public string name { get; set; } public float price { get; set; } public string shopName { get; set; } public string imgUrl { ge...
using Kerberos.NET.Entities; using System.Collections.Generic; using System.Linq; using System.Security.Claims; namespace Kerberos.NET { public class KerberosIdentity : ClaimsIdentity { internal KerberosIdentity( IEnumerable<Claim> userClaims, string authenticationType, ...
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Configuration; using System.IO; namespace MVCBlog.Core.Entities { /// <summary> /// Represents an Image. /// </summary> public class Image : EntityBase { /// <summary> /// ...
using Microsoft.VisualStudio.TestTools.UnitTesting; using RepoDb.Extensions; using RepoDb.SQLite.System.IntegrationTests.Models; using RepoDb.SQLite.System.IntegrationTests.Setup; using System; using System.Data.SQLite; using System.Linq; namespace RepoDb.SQLite.System.IntegrationTests.Operations.SDS { [TestClass...
// Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Collections.Generic; using NodaTime; using Npgsql; using NUnit.Framework; using PostgreSQLCopyHelper.Test; using PostgreSQLCopyHelper.Test.Extensions; namespace PostgreSQLCopyHelper.NodaTime.Test { ...
// Copyright (c) The Avalonia Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using Xunit; // Required to avoid InvalidOperationException sometimes thrown // from Splat.MemoizingMRUCache.cs which is not thread-safe. // Thrown when ...
namespace Discord.Audio { internal enum OpusSignal : int { Auto = -1000, Voice = 3001, Music = 3002, } }
using System.Collections; using System.Collections.Generic; using UnityEngine; public enum Difficulty { EASY, NORMAL, HARD };
using System; using System.Collections.Generic; using System.Text; namespace EnCor.Security { public sealed class SecurityModule : Module, ISecurity { private readonly IList<IAuthenticationProvider> _authenticationProviders; private readonly IList<IAuthenticationAdapter> _authenticationAdapte...
#nullable enable namespace BizHawk.Client.Common { public static class PolarRectConversion { /// <param name="r">radial displacement in range <c>0..181</c> (this is not asserted)</param> /// <param name="θ">angle (in degrees) in range <c>0..359</c> (this is not asserted)</param> /// <returns>rectangular (Carte...
using System; using System.Linq; internal static class Solution { /// <summary> /// Reads a record of int fields and return it as an array. /// </summary> /// <returns>An array representing the record.</returns> private static int[] GetRecord() => Array.ConvertAll(Console.ReadLine().Tri...
using Newtonsoft.Json; namespace NotionVisualizer.Generator.Cytoscape { public class Configuration { [JsonProperty("layoutName")] public string LayoutAlgorithm { get; set; } } }
using Joker.Repositories; namespace Campaign.Domain.CampaignAggregate.Repositories; public interface ICampaignRepository : IRepository<Campaign> { Task<Campaign> GetByIdAsync(Guid id); Task UpdateMerchantNameAsync(Guid merchantId, string merchantName); Task UpdateStoreNameAsync(Guid storeId, string storeN...
using Ignite.Areas.Admin.Controllers; using Ignite.Areas.Admin.Services.Interfaces; using Ignite.Data.Models; using Microsoft.AspNet.Identity; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using TestStack.FluentMVCTesting; namespace Ignite.Tests.Admin.Controllers.AssignmentControllerTests { [Test...
/**************************************************************************** Functions for interpreting c# code for blocks. Copyright 2016 sophieml1989@gmail.com 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...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PSFramework.Parameter { /// <summary> /// The kind of object that was bound to the parameter class /// </summary> public enum ComputerParameterInputType { /// <summ...
using RestEase; namespace Samples.HelloCart.V4; [BasePath("product")] public interface IProductClientDef { [Post("edit")] Task Edit([Body] EditCommand<Product> command, CancellationToken cancellationToken); [Get("get")] Task<Product?> Get(string id, CancellationToken cancellationToken); } [BasePath("...
using System; using ObjCRuntime; using Foundation; namespace MediaAccessibility { #if XAMCORE_4_0 [Static] interface MACaptionAppearance { [iOS (7,0)][Mac (10,9)] [Notification] [Field ("kMACaptionAppearanceSettingsChangedNotification")] NSString SettingsChangedNotification { get; } } #endif [Static] i...
using System; using System.Threading; using System.Threading.Tasks; using System.Linq; using System.Diagnostics; namespace Lab15Tasks { class Program { static void Main(string[] args) { var stopwatch = new Stopwatch(); stopwatch.Start(); //create anonymous m...
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using static Tocsoft.GraphQLCodeGen.CodeGeneratorSettingsLoader; using static Tocsoft.GraphQLCodeGen.CodeGeneratorSettingsLoader.SchemaSource; namespace Tocsoft.GraphQLCodeGen.SchemaIntrospection { public interface II...
namespace DeepNestLib { public interface IPlacementConfig { double ClipperScale { get; set; } double CurveTolerance { get; set; } bool ExportExecutions { get; set; } string ExportExecutionPath { get; set; } bool MergeLines { get; set; } PlacementTypeEnum PlacementType { get; set; } ...
using System; using System.Collections; using System.ComponentModel; using System.Drawing; using System.Data; using System.Windows.Forms; namespace MiniMVP.Controls { /// <summary> /// Summary description for UserControl1. /// </summary> public class SpinningProgress : System.Windows.Forms.UserControl { private...
using System; using System.Collections.Generic; namespace BrewBot.Config { internal class BrewBotConfiguration { public BrewBotConfiguration() { MessagesToSend = new List<string>(); SecondsBetweenMessageSend = DEFAULT_MESSAGE_INTERVAL; CustomCommandPrefix = DEFAULT_COMMAND_PREFIX; SubscriberTitle = ...
using System; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Security.Principal; using System.Text; using System.Threading; using System.Windows.Forms; using Config; using msvpc; using Properties; public partial class Main : Form { private readonly Random _random = new Random...
using System; using System.Collections.Generic; using System.IO; using System.Security.Cryptography; using System.Text; namespace MedabotsRandomizer { public static class Utils { // Return a byte array as a sequence of hex values. public static string BytesToString(byte[] bytes) { ...
using System.Collections.Generic; using System.Runtime.CompilerServices; using JetBrains.Annotations; namespace SkbKontur.Graphite.Client.Pooling.Utils { internal class ObjectReferenceEqualityComparer<T> : EqualityComparer<T> where T : class { public override bool Equals([CanBeNull] T x, [CanBeNull] ...
using System; using System.Threading.Tasks; using SFA.DAS.ApplyService.Domain.Entities; namespace SFA.DAS.ApplyService.Domain.Interfaces { public interface IAppealRepository { void Add(Appeal entity); Task<Appeal> GetByOversightReviewId(Guid oversightReviewId); } }
///////////////////////////////////////////////////////////////////////////// // <copyright file="OrderedContractResolver.cs" company="Digital Zen Works"> // Copyright © 2019 - 2021 Digital Zen Works. All Rights Reserved. // </copyright> ///////////////////////////////////////////////////////////////////////////// us...
using JWLibrary.ServiceExecutor; namespace Service.Accounts { public abstract class AccountServiceBase<TOwner, TRequest, TResult> : ServiceExecutor<TOwner, TRequest, TResult> where TOwner : AccountServiceBase<TOwner, TRequest, TResult> { } }
// <copyright file="TimerItem.cs" company="Theta Rex, Inc."> // Copyright © 2021 - Theta Rex, Inc. All Rights Reserved. // </copyright> // <author>Joshua Kraskin</author> namespace TimerApp.Domain { /// <summary> /// Model for TimerItem. /// </summary> public class TimerItem { /// <summ...
// SF API version v50.0 // Custom fields included: False // Relationship objects included: True using System; using NetCoreForce.Client.Models; using NetCoreForce.Client.Attributes; using Newtonsoft.Json; namespace NetCoreForce.Models { ///<summary> /// Individual ///<para>SObject Name: Individual</para> ///<para...
using System; using System.Collections.Generic; using System.Text; using ZoneFiveSoftware.Common.Data.Fitness; using GK.AttackPoint; using System.Xml.Serialization; namespace GK.SportTracks.AttackPoint { public class StHeartZoneCategory { private IZoneCategory _instance; public S...
using Microsoft.AspNetCore.Http; using System; namespace SampleServices { public class MyCustomService { private IHttpContextAccessor contextAccessor; public MyCustomService(IHttpContextAccessor contextAccessor) { this.contextAccessor = contextAccessor; } ...
public enum AgentStateType { Idle, Move, Interact, Attack, Gather, Build, Haul }
// Licensed to the Blazor Desktop Contributors under one or more agreements. // The Blazor Desktop Contributors licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace BlazorDesktop.Hosting; /// <summary> /// Contains a set of constants representin...
@model IEnumerable<DAL.TapLog> @{ ViewBag.Title = "Index"; } <h2>Tag Tap Logs</h2> <p> @Html.ActionLink("Search By Date", "SearchByDate") </p> @using (Html.BeginForm("Index", "TapLog", FormMethod.Get)) { <div class="form-horizontal"> <h4>Search By Student ID</h4> <hr /> <div cla...
namespace Gecko.WebIDL { using System; public class SpeechGrammarList : WebIDLBase { public SpeechGrammarList(mozIDOMWindowProxy globalWindow, nsISupports thisObject) : base(globalWindow, thisObject) { } public uint Le...
/*<FILE_LICENSE> * Azos (A to Z Application Operating System) Framework * The A to Z Foundation (a.k.a. Azist) licenses this file to you under the MIT license. * See the LICENSE file in the project root for more information. </FILE_LICENSE>*/ using System; using System.Collections.Generic; using System.Linq; using S...
using PublishR.Abstractions; using PublishR.Models; using PublishR.Social; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Web; using System.Web.Mvc; namespace PublishR.Starter.PublicWebApp.Controllers { public class HomeController : Controller { ...
/* Box2D.NetStandard Copyright © 2020 Ben Ukhanov & Hugh Phoenix-Hulme https://github.com/benzuk/box2d-netstandard Box2DX Copyright (c) 2009 Ihar Kalasouski http://code.google.com/p/box2dx // MIT License // Copyright (c) 2019 Erin Catto // Permission is hereby granted, free of charge, to any person obtaining a...
// System.Net.Sockets.MulticastOptionTest.cs // // Authors: // Gert Driesen (drieseng@users.sourceforge.net) // // Copyright (c) 2009 Gert Driesen // using System; using System.Net; using System.Net.Sockets; using NUnit.Framework; namespace MonoTests.System.Net.Sockets { [TestFixture] public class MulticastOptionT...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.Text; using Contoso.Provisioning.Hybrid.Contract; namespace Contoso.Provisioning.Hybrid.Web { // NOTE: You can use the "Rename" command on the "Refactor" menu to change t...
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.IO; using System.IO.Compression; using System.Linq; namespace TestHelpers { public static class TestUtilities { public static S...
namespace OPCAIC.GameModules.Interface { /// <summary> /// Represents results of calling game module entry points. /// </summary> public enum GameModuleEntryPointResult { /// <summary> /// Unknown result, should never occur. /// </summary> Unknown, /// <summary> /// Stage of the game modu...
using System.Collections.Generic; using System.Threading; using KittyHawk.MqttLib; using KittyHawk.MqttLib.Interfaces; using KittyHawk.MqttLib.Messages; using KittyHawk.MqttLib.Net; using KittyHawk.MqttLib.Plugins.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; namespace KittyHawk.MqttLib_Test...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EntityFrameworkMy.Database.Core { public class QueryData { public void Insert() { StringBuilder Builder = new StringBuilder(); Builder.Append("I...
using System; using System.Reflection; using UnityEditor; namespace Depra.Toolkit.Serialization.SerializeReferenceExtensions.Editor { public static class ManagedReferenceUtility { public static Type GetManagedReferenceFieldType(this SerializedProperty property) { if (property.prope...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ShipGame { class AI { private int cursorRow = 0; private int cursorCol = 0; private CoordinateSystem cs = new CoordinateSystem(22, 5); //public string[...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Beyova.Media.Exif { /// <summary> /// Enum ExifDataTypes /// </summary> public enum ExifDataTypes : short { /// <summary> /// The unsigned byte /// ...
using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.RegularExpressions; namespace ProjectModels { /// <summary> /// Manipulate a *.sln file. /// </summary> public class Solution : Item { public Solution(string slnPath) : base(slnPath) ...
using System; using System.Collections.Generic; using System.Text; using System.Web; using System.Diagnostics; namespace IIS_MOD_REQDATA { public class IIS_MOD_REQDATA : IHttpModule { TraceSource tsStatus; public void Init(HttpApplication application) { application.EndRequ...
namespace Pipelyne.Core { public interface ITransformer { string Name { get; } ContentItem Transform(TransformRequest request); } }
namespace Spax { /** * @brief Information about a 2D cast hit. **/ public class FPRaycastHit2D { public FPCollider2D collider; public FPRigidBody2D rigidbody; public FPTransform2D transform; public FPRaycastHit2D(FPCollider2D collider) { this.collider =...
@using ContosoUniversity.EntityFrameworkCore.Store @using ContosoUniversity.EntityFrameworkCore.Store.Models @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @addTagHelper *, Balea
namespace MyNiubizApp.Models { public class SessionRequestModel { public string channel { get; set; } public int amount { get; set; } public Antifraud antifraud { get; set; } } public class MerchantDefineData { public string MDD15 { get; set; } public string...
using System; using System.Diagnostics.CodeAnalysis; using Microsoft.VisualStudio.TestTools.UnitTesting; using Renci.SshNet.Common; namespace Renci.SshNet.Tests.Classes.Common { [TestClass] [SuppressMessage("ReSharper", "InvokeAsExtensionMethod")] public class ExtensionsTest_TrimLeadingZeros { ...
 @{ ViewBag.Title = "AuthorizeAction"; } <h2>AuthorizeAction</h2> <li>@ViewBag.Message</li>
namespace UnityEngine.Rendering.HighDefinition { /// <summary> Buffers available in HDRP </summary> public enum AOVBuffers { /// <summary>Color buffer that will be used at the end, include post processes.</summary> Output, /// <summary>Color buffer that will be used before post proce...
using System.Data; using System.Data.Entity; using System.Data.Entity.Migrations; using System.Threading.Tasks; using SimpleSettings.Conventions; namespace SimpleSettings { public class DataContext : DbContext { /// <summary> /// Event delegate for the OnAfterDataContextInitalized event. ...
namespace LinuxTerminalEmulatorUI; public static class LocateFile { public static void LocateFileCommand(this MainWindow mainwindow) { var path = LineModel.LastLineDirectory; var command = LineModel.LastLineCommand; var cutCommand = command.Substring(7); var pathLength = path.L...
using System; using FlatRedBall; using FlatRedBall.Math; using FlatRedBall.Collections; using FlatRedBall.Instructions; using System.Collections; using System.Collections.Generic; using SpriteEditor.SEPositionedObjects; using SpriteEditor.Gui; namespace SpriteEditor { /// <summary> /// Summary description for Edito...
// Copyright (c) 2021 homuler // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. using UnityEngine; namespace Mediapipe.Unity { public class AutoFit : MonoBehaviour { [System.Serializable] public enum Fit...
using System; using System.Collections.Generic; namespace ParkAppCore.Repositorio { public interface IRepository<T> { bool Insert(T obj); bool Remove(T obj); bool Update(T obj); IList<T> Find(); T Find(int id); } }
 using System; using System.Configuration; using System.IO; using Microsoft.Practices.ObjectBuilder2; using System.Linq; namespace Microsoft.Practices.Unity.TestSupport.Configuration { public class ConfigFileLoader<TResourceLocator> { private System.Configuration.Configuration configuration; ...
using System; using System.Reflection; using System.Reflection.Emit; namespace FakeProvider { static class Helper { #region Data private static int TypeCounter = 0; internal static ModuleBuilder ModuleBuilder { get; set; } #endregion #region Inside public s...
namespace hase.DevLib.Framework.Contract { public interface IService<TRequest, TResponse> : IRequestResponseCommand<TRequest, TResponse> where TRequest : class where TResponse : class { } }
// // Copyright Seth Hendrick 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // using System; using System.Collections.Generic; using System.IO; using SethCS.Basic; namespace Filesin...
namespace Market_Store { public interface ICard { string Owner { get; set; } decimal Turnover { get; set; } double DiscountRate { get; set; } } }
// Copyright 2021 Esri. // // 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 applicable law or agreed to in writing, software...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace FamilyLocator.Core.Locators { public interface IFamilyMemberLocator { string GetLocation(); } }
namespace MagicGradients.Tests.Mock { internal class MockTicker : Xamarin.Forms.Internals.Ticker { bool _enabled; protected override void EnableTimer() { _enabled = true; while (_enabled) { SendSignals(16); } } ...
using UnityEngine; using UnityPooler; namespace UnityPoolerTest { public class TestScript : MonoBehaviour, IGameObjectPoolable { private void OnEnable() { Debug.Log("obj get!"); } private void OnDisable() { Debug.Log("obj released!"); } public virtual void OnObjectCreated() { Debug.Log("o...
using System; using System.Collections.Generic; using Orleans; namespace ChatGrainInterfaces { public interface IMessageHub : IGrainObserver { void Notify(Message msg, List<Guid> targetsId); } }
using BookStore.API.Models; using Microsoft.AspNetCore.JsonPatch; using System.Collections.Generic; using System.Threading.Tasks; namespace BookStore.API.Repository { public interface IBookRepository { Task<List<BookModel>> GetAllBooksAsync(); Task<BookModel> GetBookByIdAsync(int boo...
// Copyright (c) Dapplo and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Runtime.Serialization; namespace Dapplo.HttpExtensions.OAuth { /// <summary> /// Container for the OAuth token / ...
// Copyright (C) 2006-2010 Jim Tilander. See COPYING for and README for more details. using System; using EnvDTE; using EnvDTE80; using Microsoft.VisualStudio.CommandBars; namespace Aurora { public abstract class CommandBase { private readonly Plugin mPlugin; private readonly string mName; priva...
using NUnit.Framework; using System; using System.Collections.Generic; using ObjectsComparer.Tests.TestClasses; namespace ObjectsComparer.Tests { [TestFixture] public class EnumerablesComparerTests { [Test] public void FirstParameterNotEnumerable() { var comparer = new ...
using Xunit; namespace RecordsetNet.Tests { public class HelperTests { public ADODB.Recordset CreateRecordset() { var rs = new ADODB.Recordset(); rs.Fields.Append("BoolValue", ADODB.DataTypeEnum.adBoolean); return rs; } [Fact] ...
using System; namespace Dx29.Web { public class SharedResource { } }
using System; using System.Linq; public class Rotate_and_Sum { public static void Main() { var inputArr = Console.ReadLine() .Split(' ') .Select(int.Parse) .ToArray(); var numberOfRotations = int.Parse(Console.ReadLine()); var rotatedArr = new int[...
// -------------------------------------------------------------------------------------------- // Version: MPL 1.1/GPL 2.0/LGPL 2.1 // // The contents of this file are subject to the Mozilla Public License Version // 1.1 (the "License"); you may not use this file except in compliance with // the License. You may obta...
namespace AuctionHub.Web.Models.Product { using System.ComponentModel.DataAnnotations; using static AuctionHub.Data.DataConstants; public class ProductViewModel { public int Id { get; set; } [Required] [MinLength(ProductNameMinLength)] [MaxLength(ProductNameMaxLength)]...
using System; namespace ModernSlavery.WebUI.Account.Models { [Serializable] public class ChangeEmailStatusViewModel { public string OldEmail { get; set; } public string NewEmail { get; set; } } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DBConnectionLib { [Serializable] public class UnknownUsernameException : Exception { public UnknownUsernameException() { } public UnknownUsernameE...
using System; using System.Collections.Generic; using System.IO; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; namespace Vostok.Graphite.Client { internal class GraphiteConnection : IDisposable { private readonly TcpClient client; private readonly StreamWriter writ...
using System; using Xunit; using Info.Blockchain.API.Client; namespace Info.Blockchain.API.Tests.UnitTests { public class TransactionTests { [Fact] public async void GetTransaction_BadIds_ArgumentExecption() { await Assert.ThrowsAsync<ArgumentNullException>(async () => { using (BlockchainApiHelper a...
using hardware.projectmanager; namespace inventory_server.Helper { /// <summary> /// singleton /// </summary> public class InventoryHelper { static AppHost _appHost; public static void Start(string url) { _appHost = new AppHost(); _appHost.Init(); ...