content
stringlengths
23
1.05M
// Copyright © Neodymium, carmineos and contributors. See LICENSE.md in the repository root for more information. using System.Collections.Generic; namespace RageLib.Resources.GTA4.PC.Bounds { public class PhBoundCapsule : PhBound { public override long BlockLength => base.BlockLength; // s...
using Finbuckle.MultiTenant; using System; namespace JobSite.Domain { //[MultiTenant] public class Job { public Guid JobId { get; set; } public string JobTitle { get; set; } public Guid RecruiterId { get; set; } public DateTime Created { get; set; } public DateTime?...
namespace Zeus.Storage.Models.Alerts { /// <summary> /// Alert template name. /// </summary> public sealed class AlertsTemplate { /// <summary> /// Template content. /// </summary> public string Content { get; set; } /// <summary> /// Template syntax...
using System; using System.Globalization; using Xamarin.Forms; namespace BoardGameMeet.Views.Converters { public class CountToVisibilityConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value is int count...
using System; using System.Text; namespace Sepes.Common.Exceptions { public class ProvisioningException : Exception { public bool DeleteFromQueue { get; set; } public int? PostponeQueueItemFor { get; set; } public string NewOperationStatus { get; set; } public bool Proceed...
namespace FFXIVClientStructs.FFXIV.Client.Game.Event; [StructLayout(LayoutKind.Explicit, Size = 0x50)] public struct LuaActorModule { [FieldOffset(0x00)] public ModuleBase ModuleBase; [FieldOffset(0x40)] public StdMap<long, LuaActor> ActorMap; }
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.CommandLine; using System.Linq; using Microsoft.Quantum.Simulation.Core; using static System.Reflection.BindingFlags; namespace Microsoft.Quantum.CsharpGenerati...
using System; using System.Collections.ObjectModel; using System.Data; using SmartScheduler.Core.Data; namespace SmartScheduler.Core { public interface IAttendeeRetriever { Collection<Attendee> Retrieve(); } public class AttendeeRetriever : IAttendeeRetriever { private readonly IE...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Mediation.Interfaces; namespace Mediation.PlanTools { [Serializable] public class Term : ITerm { private string variable; private string constant; private string type; // Terms may have a variable symbol. public...
using System.Reflection; // Version information for an assembly consists of the following four values: // // We use Semantic Versioning: http://semver.org/ // Given a version number MAJOR.MINOR.PATCH.REVISION, increment the: // // MAJOR Version - When you make incompatible API changes, // MINOR Version - ...
using System; using System.Linq; using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.Spreadsheet; namespace RetrieveCellValue { class Program { static void Main(string[] args) { // Place a double value into A1, a date into A2, a string into A3, and a TRUE value into A...
using System; using System.Linq.Expressions; using Topics.Radical.Linq; using Topics.Radical.ComponentModel.ChangeTracking; namespace Topics.Radical.Model { //public static class MementoPropertyMetadataBuilder //{ // public class TypedMementoPropertyMetadataBuilder<T> // { // public MementoPropertyM...
using System; using System.Collections.Generic; using UnityEngine; namespace SPEngine { public class Design { public Guid guid; public string name; // user-provided name of this point-design public char familyLetter; public Family family; public int tl; public float thrust; public int ignitions; pub...
using ServiceQuotes.Application.DTOs.CustomerAddress; using ServiceQuotes.Application.Filters; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace ServiceQuotes.Application.Interfaces { public interface ICustomerAddressService : IDisposable { Task<List<GetCustomerAd...
using System; using System.Net; namespace Leak.Sockets.Tests { public class EchoServer : IDisposable { private readonly TcpSocket socket; public EchoServer(SocketFactory factory) { socket = factory.Tcp(); socket.Bind(IPAddress.Loopback); } publ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ExtTs.Processors { [Flags] public enum ExtJsToolkit { UNKNOWN = 0, CLASSIC = 1, MODERN = 2, } }
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MouseGearPlacer : MonoBehaviour { public List<GameObject> gearsToPlaceDown; private Queue<GameObject> gearQueue; private GameObject currentGearToPlaceDown; private GameObject previousGear = null; public static int PLAC...
using Lucene.Net.Support; using System.Collections.Generic; /* Egothor Software License version 1.00 Copyright (C) 1997-2004 Leo Galambos. Copyright (C) 2002-2004 "Egothor developers" on behalf of the Egothor Project. ...
using System.Collections.Generic; using System.Diagnostics.Contracts; using Microsoft.Boogie; using Microsoft.Boogie.TypeErasure; using Microsoft.Boogie.VCExprAST; namespace ProofGeneration.VCProofGen { public class TypePremiseEraserFactory { private readonly VCExpressionGenerator _vcExprGen...
using UnityEngine; namespace Client.Scripts.UI.Window { public abstract class Window : MonoBehaviour { public void Open() { MainMenu.MainMenu.Instance.CloseAllButtons(); gameObject.SetActive(true); } public void Close() => gameObject.SetActive(false); ...
using Newtonsoft.Json; using Newtonsoft.Json.Converters; using SnipeSharp.Serialization; using System.Runtime.Serialization; namespace SnipeSharp.Models.Enumerations { /// <summary> /// Indicates what type an Asset or other object is assigned to: a User, a Location, or an Asset. /// </summary> [JsonCon...
using System; using SimpleZoo.Intefaces; namespace SimpleZoo.Animals { public class PredatorAnimal<T> : MamalAnimal, IHuntable<HerbivoreAnimal> where T : HerbivoreAnimal { /// <summary> /// Predator Attack Power. /// </summary> protected int _attackPower = 120; ...
using System.Linq; using System.Web.Mvc; using GetHired.DTO; using GetHired.Services.Contracts; namespace GetHired.ASPClient.Controllers { public class CompanyJobOfferController : Controller { private readonly IJobOfferService jobOfferService; public CompanyJobOfferController(IJobOfferService...
using System.Linq; using Fluid.Values; using Fluid.Filters; using Xunit; using System; namespace Fluid.Tests { public class NumberFiltersTests { [Theory] [InlineData(4, 4)] [InlineData(4.2, 4.2)] [InlineData(-4, 4)] [InlineData(-4.2, 4.2)] public void Abs(decim...
using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using locadora.banco; using locadora.Models; using System.Collections.Generic; namespace locadora.Controllers { [Route("api/[controller]")] [ApiController] public class ValuesController : Controller { //GET api/async [HttpGe...
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace TurnBasedGameKit { /// <summary> /// /// </summary> public enum eCampType { Player = 0, // 플레이어 진영 Allies, // 아군 진영 Enemies // 적군 진영 } public class CampEditor : Mo...
using System.Collections.Generic; namespace SaintCoinach.Xiv { /// <summary> /// Interface for listings of shops. /// </summary> public interface IShopListing { #region Properties /// <summary> /// Gets the rewards of the current listing. /// </summary> ...
// Copyright (c) 2014-2020 DataStax Inc. // Copyright (c) 2020, Rafael Almeida (ralmsdevelper) // Licensed under the Apache License, Version 2.0. See LICENCE in the project root for license information. namespace Scylla.Net.DataStax.Auth.Sspi.Buffers { /// <summary> /// Describes the type and purpose of a sec...
using HotelManagement.Models; using HotelManagement.ResourceParameters; using System.Collections.Generic; using System.Threading.Tasks; namespace HotelManagement.Services { public interface IRoomsRepository { Task<Room> GetRoomAsync(int roomId); Task<IEnumerable<Room>> GetRoomsAsync(); ...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class UnitHealthBar : MonoBehaviour { private Slider slider; private UnitEventManager _unitEventManager; private void Awake() { slider = transform.GetComponent<Slider>(); _unitEv...
// Copyright (c) 2010-2013 SharpDX - Julien Vulliet // // 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 Software without restriction, including without limitation the rights // to use, copy, modif...
using System; using System.IO; using System.Runtime.CompilerServices; using XstarS.IO; namespace XstarS { /// <summary> /// 提供控制台应用程序的输入流、输出流和错误流的扩展方法。 /// </summary> public static partial class ConsoleEx { /// <summary> /// 提供控制台的标准输入流、输出流和错误流。 /// </summary> priva...
// This file was generated by the Gtk# code generator. // Any changes made will be lost if regenerated. namespace GLib { using System; using System.Runtime.InteropServices; #region Autogenerated code public class AsyncResultAdapter : GLib.GInterfaceAdapter, GLib.AsyncResult { static AsyncResultIface iface; ...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PersonBehavior : MonoBehaviour { public int rayDistance = 500; skyboxBehavior s1; private float rayHitStart = 0f; RaycastHit hit; public bool trackTimer = false; bool canChangeTimer = true; float ti...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; public class Loader : MonoBehaviour { [SerializeField] private float loadingTime; [SerializeField] private Slider loadingBar; private void Start() { StartCorou...
using System; namespace PhotoMSK.ViewModels { public static partial class CopyReferenceViewModel { public class Details { public Guid ID { get; set; } public int CopyFrom { get; set; } public int LastCopiedID { get; set; } public DateTime LastCol...
using System; using System.Collections.Generic; using System.Text; using Slipe.MtaDefinitions; using System.Numerics; namespace Slipe.Shared.Vehicles { /// <summary> /// Represents vehicle handling properties /// </summary> public class Handling { private MtaElement vehicleElement; ...
using System; using System.Windows; using System.Windows.Documents; namespace Lopez_POS { /// <summary> /// Interaction logic for PaymentEdit.xaml /// </summary> /// <seealso cref="System.Windows.Window" /> /// <seealso cref="System.Windows.Markup.IComponentConnector" /> public partial class P...
namespace Mantica.Blog.Data.DocumentDB.Tests { using System.Linq; using System.Threading.Tasks; using Mantica.Blog.Common; using Mantica.Blog.Data.Contracts; using Microsoft.Extensions.DependencyInjection; using Microsoft.VisualStudio.TestTools.UnitTesting; /// <summary> /// Tests for ...
using System.Web.Mvc; namespace LykkeWallet.Controllers { [Authorize] public class WalletController : Controller { [HttpPost] public ActionResult Index() { return View(); } [HttpPost] public ActionResult GetMenu() { return Vi...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace luval.webdriver { public class DriverInfo { public FileInfo File { get; set; } public int Port { get; set; } public DriverInfo(string path, in...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Experimental.Rendering.Universal; public class TorchSlicer : BaseSlicer { [SerializeField] GameObject torchPrefab; [SerializeField] Vector2 baseSize; [SerializeField] Vector2 padding; [SerializeField] Vecto...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Data; using System.Data.SqlClient; namespace CarWash.Services { public class Utilities { public static SqlConnection Sql() { return new SqlConnection(Settings.ConnectionStr...
using AcceptanceTests.Pages; using FluentAssertions; using Microsoft.Extensions.DependencyInjection; using NUnit.Framework; using SampleApp.Models; using System.Linq; using System.Threading.Tasks; namespace AcceptanceTests.Tests { public class ProductCreateTest : BaseAcceptanceTest<ProductCreatePage> { ...
using Autofac; using JetBrains.Annotations; namespace DependencyInjectionCourse.Cache { public class CacheStarter : IStartable { private readonly CacheManager _cacheManager; public CacheStarter([NotNull] CacheManager cacheManager) { _cacheManager = cacheManager; }...
/* * Thresher IRC client library * Copyright (C) 2002 Aaron Hunter <thresher@sharkbite.org> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at you...
namespace VinylExchange.Services.Data.HelperServices.Users { using System; using System.Linq; using System.Threading.Tasks; using Common.Constants; using MainServices.Users.Contracts; using Mapping; using Microsoft.EntityFrameworkCore; using VinylExchange.Data; using VinylExchange.D...
#pragma warning disable CS0649 using System; using System.Collections.Generic; using Eto.Forms; using Eto.Drawing; using Eto.Serialization.Xaml; namespace DieselToolbox { public class MainForm : Form { ImageView imgBundleBrowser; public MainForm () { XamlReader.Load (this); this.imgBundleBrow...
// Copyright (c) Six Labors. // Licensed under the Apache License, Version 2.0. using System; using System.Runtime.CompilerServices; namespace SixLabors.ImageSharp.ColorSpaces.Conversion { /// <summary> /// Color converter between <see cref="CieXyz"/> and <see cref="HunterLab"/> /// </summary> intern...
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace Meru.Common { public interface IMessage : IEntity { IUser Author { get; } IChannel Channel { get; } string Content { get; } DateTimeOffset Timestamp { get; } Task<IMessage> ModifyAsync(...
namespace PCMarket.WebApplication.Controllers { using System.Web; using System.Web.Mvc; using Common.Enums; using Data; using Data.DataModels; using Services.UserServices; using Services.Managers; public abstract class BaseController : Controller { private UserService userS...
namespace MassageStudioLorem.Services.Massages { using System.Collections.Generic; using Data.Models; using Masseurs.Models; using Models; using SharedModels; public interface IMassagesService { AllCategoriesQueryServiceModel GetAllCategoriesWithMassages (string id, st...
namespace YJC.Toolkit.Data { public interface IStatListDbConfig : IListDbConfig { StatConfigItem Stat { get; } } }
using UnityEngine; public class Tile : MonoBehaviour { public enum Type {none, road, grass, mountain}; public Type type; public float travelCost = 1f; public bool isStart, isFinish; public void SetDebugColor(Color c) { GetComponent<SpriteRenderer>().color = c; } }
using UnityEngine; namespace MaterialCreator { public class TextureSampler { private Color[] m_Data; private int m_Height; private int m_Width; private bool m_WarpU; private bool m_WarpV; public TextureSampler(int width, int height, Color[] data, bool warpU = true,...
using TMPro; using UnityEditor; using UnityEngine; namespace FigmaImporter.Editor { public class TMPUtils { public static TextAlignmentOptions FigmaAlignmentToTMP(string horizontalAlignment, string verticalAlignment) { int alignment = 0; alignment += (verticalAlignment =...
namespace MassTransit { using System; public static class AmazonSqsSendContextExtensions { /// <summary> /// Sets the GroupId of a message sent to the broker /// </summary> /// <param name="context"></param> /// <param name="groupId"></param> public static v...
using Microsoft.Extensions.FileProviders; using IExtensionsHostingEnviroment = Microsoft.Extensions.Hosting.IHostingEnvironment; using IAspNetHostingEnvironment = Microsoft.AspNetCore.Hosting.IHostingEnvironment; namespace Microsoft.AspNetCore.Hosting { internal class HostingEnvironment : IExtensionsHosting...
namespace Supermarket.UI { using System; using System.Collections.Generic; using System.Linq; using System.Xml; using MongoDB.Driver; using Supermarket.Data; public class XmlVendorExpensesLoader { private IList<string[]> ReadVendorsExpenses(string sourceFilePath) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Codility01.Permutation { public class Challenge { static public IList<IList<int>> Permutation(int[] values) { return Permutate(values); } static public IList<IList<int>> Permutat...
using System.Collections; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using DevChatter.DevStreams.Core.Model; namespace DevChatter.DevStreams.Core.Services { public interface IScheduledStreamService { Task<List<ScheduledStream>> GetChannelSchedule(int channelId);...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _05_Closest_Point { public class Program { public static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); List<Point> points =...
 namespace TwitterBootstrapMVC { public enum HelpTextStyle { Inline, Block } }
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace Equinox.Application.ViewModels { public class AlunoViewModel { [Key] public int id { get; set; } public string nome { get; set; } public string email { get; set; } pu...
namespace Aeon.Core; public interface IBattler { string ID { get; } /// <summary> /// Характеристики гладиатора /// </summary> IStatContext StatsRO { get; } /// <summary> /// Жив ли этот гладиаторъ /// </summary> bool IsAlive { get; } /// <summary> /// Вызвать до начала боя /// </summary> /// <param na...
using TradingCompany.Models; namespace TradingCompany.Integration { public interface ITradeServiceProvider { public void PopulateTradingCache(UserAccountEntity userAccountEntity); } }
using System; using System.Reflection; using Xunit; namespace SetVersion.Lib.Tests { public class AssemblyFileProcessorTests : TestingBase { [Fact] public void Ctor_ForNullFileSystem_ThrowsArgumentNullException() { Action act = () => new AssemblyFileProcessor(nul...
namespace CyclopsAutoZapper.Managers { using Common; using MoreCyclopsUpgrades.API; using UnityEngine; internal class ShieldPulser : CooldownManager { protected override float TimeBetweenUses => 4.0f; private const float ShieldCostModifier = 0.1f; public bool HasShieldMod...
using System; namespace Discord.Json.Objects.Channels.Embeds { public class EmbedObject { public string title; public string type; public string description; public string url; public DateTime timestamp; public int color; public EmbedFooterObject footer;...
using System.Collections.Generic; namespace ImportTent.Lib.BLL { public interface IExportImport { string Abbreviation { get; set; } bool Active { get; set; } int ActiveYears { get; set; } string Comment { get; set; } int FilingCount { get; set; } string Name { g...
using System; using System.Collections.Generic; using System.Globalization; using System.Text; using System.Threading; using System.Threading.Tasks; using Xamarin.Essentials; using Xamarin.Forms; namespace MyPassword.Services { public class LanguageService : ILanguageService { private const string KE...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Pchp.Core { /// <summary> /// PHP runtime exception. /// </summary> public class PhpErrorException : Exception { public PhpErrorException(...
using FluentAssertions; using NuFind.CommandLine; using Xunit; namespace NuFind.Tests.CommandLine.ArgumentsTests { public class When_parsing_from_valid_command_line_arguments { [Fact] public void Should_parse_a_single_word_as_the_search_term_argument() { var result = Argumen...
using System.Diagnostics; using System.Text; namespace TheV.Lib.Models { [DebuggerDisplay("{" + nameof(DebuggerDisplay) + ",nq}")] public class OS { public string Caption { get; set; } public string Version { get; set; } public string BuildNumber { get; set; } public string...
using Demo.Models; using System.Collections.ObjectModel; using Windows.UI.Xaml.Data; namespace Demo.ViewModels { public class FilterBarViewModel : ModelBase { private ObservableCollection<int> _years; private ICollectionView _yearsView; public FilterBarViewModel() { ...
using System; using System.ComponentModel.DataAnnotations; namespace SFA.DAS.LoginService.Web.Controllers.CreateAccount.ViewModels { public class CreateAccountViewModel { public Guid ClientId { get; set; } public string ReturnUrl { get; set; } public string Backlink { get; set...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Qoollo.Turbo.Queues.DiskQueueComponents { /// <summary> /// Memory stream with limited observation window /// </summary> i...
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace ABSoftware.Core.Processes { /// <summary> /// Represents a process that is currently running. /// </summary> public abstract class Process { public abstract string ProcessName { get; ...
using System; namespace Flamtap.Extensions { public static class ByteExtensions { public static byte ReadFirstNBits(this byte value, byte n) { if (n > 8) throw new ArgumentException($"{nameof(n)} cannot be greater than 8.", nameof(n)); return (byte) (va...
// GenericPair.cs // // (C) Datasim Education BV 2005-2007 using System; using System.Collections.Generic; using System.Text; /// <summary> /// A generic class that holds a value pair. /// </summary> /// <typeparam name="T1">The type of the first value.</typeparam> /// <typeparam name="T2">The type of ...
using System; using Microsoft.EntityFrameworkCore; using Repository.Domain; namespace Repository { public class BaseContext : DbContext { public BaseContext (DbContextOptions<BaseContext> options) : base (options) { } protected override void OnModelCreating (ModelBuilder modelBuilder) { ...
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
using System.Text.RegularExpressions; using NUnit.Framework; using ProSuite.Commons.Text; namespace ProSuite.Commons.Test.Text { [TestFixture] public class RegexUtilsTest { [Test] public void CanMatchWildcard() { const bool matchCase = true; Regex regex = RegexUtils.GetWildcardMatchRegex("abc*123", mat...
using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using Random = System.Random; public class SunShaftsController : MonoBehaviour { [Header("Settings")] public SunShaft SunShaftPrefab; [Space] public float StartZ = 40f; public float StopFadeZ = 30f; ...
using System; using System.Collections.Generic; namespace OpenDMS.Storage.Data { public class Resource { public ResourceId ResourceId { get; private set; } public string Revision { get; private set; } public List<VersionId> VersionIds { get; private set; } public Vers...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Telerik.UI.Automation.Peers; using Telerik.UI.Xaml.Controls.Primitives.RangeSlider; using Windows.Foundation; using Windows.System; using Windows.UI.Xaml; using Windows.UI.Xaml.Automation.Peers; us...
using System; using System.Collections.Generic; using System.Threading.Tasks; using Chartreuse.Today.Core.Shared.Services; namespace Chartreuse.Today.Core.Shared.Tests.Impl { public class TestPlatformService : IPlatformService { private readonly Dictionary<string, object> savedItems = new Dictionary<st...
using System.Collections; using System.Collections.Generic; using UnityEngine; using WebSocketSharp; using Newtonsoft.Json; public class SocketConnection : MonoBehaviour { // Start is called before the first frame update public Dictionary<string, string> timekeeper = new Dictionary<string, string>(); publi...
using System.Collections; using System.Collections.Generic; using UnityEngine; // Mainly animation controller for the confirm button public class ConfirmBtnController : MonoBehaviour { const string show_flag = "isShown"; private Animator anim; // Start is called before the first frame update void Start() ...
// <copyright file="SelectLookup.cs" company="PlaceholderCompany"> // Copyright (c) PlaceholderCompany. All rights reserved. // </copyright> namespace AutomationTestingProgram.AutomationFramework { /// <summary> /// This test step is to select a lookup. /// </summary> public class SelectLookup : TestS...
using OrbitalShell.Component.Console; namespace OrbitalShell.Lib.FileSystem { public class FileSystemPathFormattingOptions : FormatingOptions { public bool PrintAttributes = true; public bool ShortPath = false; public string Prefix = ""; public string Postfix = ""; publi...
using Lemonade.Builders; using Lemonade.Fakes; using Lemonade.Sql.Commands; using Lemonade.Sql.Migrations; using Lemonade.Sql.Queries; using NUnit.Framework; namespace Lemonade.Sql.Tests { public class GivenUpdateFeature { [SetUp] public void SetUp() { Runner.SqlCompact("Le...
using SimpleNLG; namespace Endpoint.Core.Services { public class TenseConverter : ITenseConverter { public string Convert(string value, bool pastTense = true) { Lexicon lexicon = Lexicon.getDefaultLexicon(); NLGFactory phraseFactory = new NLGFactory(lexicon); ...
namespace CarterSample.Features.FunctionalProgramming { using FluentValidation; public class DirectorValidator : AbstractValidator<Director> { public DirectorValidator() { this.RuleFor(x => x.Name).NotEmpty(); } } }
namespace XFiler.SDK; public interface IRestartService { void RestartApplication(); const string RestartKey = "/restart"; }
using System; using System.Collections.Generic; namespace InputshareLib.Server { class ClientManager { public ConnectedClient[] AllClients { get => clientList.ToArray(); } private List<ConnectedClient> clientList; private int maxClients; public ClientManager(int clientLimit) ...
using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Security.Claims; using System.Text; using System.Threading.Tasks; using ChessBackend.Data.DataEntities; using ChessBackend.Entities; using ChessBackend.Entities.Models; using Microsoft.AspNetCore.Iden...
using System; using System.Threading; namespace Microsoft.DataTransfer.Basics { /// <summary> /// Helper class to simplify objects disposing. /// </summary> public static class TrashCan { /// <summary> /// Disposes provided object instance and removes the reference. /// </s...
using Hotel.Domain.Entities; using System.Linq; namespace Repository { public class ClientRepository : GenericRepository<Client> { public bool ItExists(Client client) { return !((GetList().Where(x => x.CPF == client.CPF).SingleOrDefault()) == null); } } }
using System.IO; using Frapid.Configuration; using HtmlAgilityPack; namespace Frapid.Areas { internal static class CustomJavascriptInjector { internal static string Inject(string path, string html) { string file = path + ".custom.js"; if (!File.Exists(PathMapper.MapPath...