text
stringlengths
1
932k
using System; using System.Collections.Generic; namespace DefiningClasses { public class StartUp { static void Main(string[] args) { Family family = new Family(); int n = int.Parse(Console.ReadLine()); for (int i = 0; i < n; i++) { ...
using Microsoft.Extensions.Logging; using NBitcoin; using Stratis.Bitcoin.Base.Deployments; using Stratis.Bitcoin.Consensus; using Stratis.Bitcoin.Features.MemoryPool; using Stratis.Bitcoin.Features.MemoryPool.Interfaces; using Stratis.Bitcoin.Features.Miner; using Stratis.Bitcoin.Features.PoA.BasePoAFeatureConsensusR...
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace AnyUI.Library { public class DragoRotate : MonoBehaviour { public enum RotationState { AUTO, MANUAL, STOP }; public RotationState Rotation { get { return m_r...
// 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. /****************************************************************************** * This file is auto-generated from ...
namespace Seek.Ads.Checkout.Domain { public abstract class BaseAd { private readonly decimal price; private readonly string description; public decimal Price => price; public string Description => description; public BaseAd(string _desc, decimal _price) { ...
using Box.V2; using Box.V2.Config; using Box.V2.JWTAuth; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.IO; using System.Threading.Tasks; namespace ActinUranium.BoxFolderCreator { [TestClass] public class BoxFolderBuilderTests { // Admin Console > Content > corresponding user > b...
using FluentValidation; namespace Demo.Application.ApplicationSettings.Commands.SaveApplicationSettings { public class SaveApplicationSettingsCommandValidator : AbstractValidator<SaveApplicationSettingsCommand> { public SaveApplicationSettingsCommandValidator() { RuleFor(x => x.Sett...
// // VersionTest.cs - NUnit Test Cases for the System.Version class // // Authors: // Duco Fijma (duco@lorentz.xs4all.nl) // Sebastien Pouliot <sebastien@ximian.com> // // (C) 2002 Duco Fijma // Copyright (C) 2006 Novell, Inc (http://www.novell.com) // using System; using NUnit.Framework; namespace MonoTests.Sys...
namespace Gu.Wpf.Localization { using System; using System.Globalization; using System.Windows.Data; using System.Windows.Markup; using Gu.Localization; /// <summary>MarkupExtension for binging to <see cref="Translator.CurrentCulture"/>.</summary> [MarkupExtensionReturnType(typeof(BindingE...
using System; using System.Collections; using System.Collections.Generic; using Newtonsoft.Json; namespace SpeedifyCliWrapper.Converters { public class EnumConverter : JsonConverter { public override bool CanConvert(Type objectType) { return false; } publ...
/* * Copyright Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
using J2N.Threading; using J2N.Threading.Atomic; using Lucene.Net.Analysis; using Lucene.Net.Documents; using Lucene.Net.Index; using Lucene.Net.Store; using Lucene.Net.Support; using Lucene.Net.Util; using NUnit.Framework; using System; using System.Collections.Concurrent; using System.Collections.Generic; using Syst...
using System; using System.Collections.Generic; using System.Text; namespace WildFarm.Animals { public abstract class Feline : Mammal { protected Feline(string name, double weight, string livingRegion , string breed) : base(name, weight, livingRegion) { Breed = breed; } ...
#region Copyright // // DotNetNuke® - http://www.dnnsoftware.com // Copyright (c) 2002-2017 // by DotNetNuke Corporation // // 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 restric...
/****************************************************************************** * Spine Runtimes License Agreement * Last updated January 1, 2020. Replaces all prior versions. * * Copyright (c) 2013-2020, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative...
using System.Text.Json.Serialization; namespace Essensoft.AspNetCore.Payment.Alipay.Domain { /// <summary> /// AlipayPcreditHuabeiSceneprodBenefitCreateModel Data Structure. /// </summary> public class AlipayPcreditHuabeiSceneprodBenefitCreateModel : AlipayObject { /// <summary> //...
using System; using AldursLab.Essentials.Extensions.DotNet; using NUnit.Framework; namespace AldursLab.Essentials.Tests.Extensions.DotNet { class ComparableExtrensionsTests : AssertionHelper { public class ConstrainValueTests : AssertionHelper { class NumericComparableClass : IEqua...
using System; using UnityEngine; namespace ET { [ObjectSystem] public class AIComponentAwakeSystem: AwakeSystem<AIComponent, int> { public override void Awake(AIComponent self, int aiConfigId) { self.AIConfigId = aiConfigId; self.Timer = TimerComponent.Instance.NewRe...
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SocialPlatforms; using Random = UnityEngine.Random; public class SPAWNINGpT : MonoBehaviour { public int FLAG = 0; int STATEiNVOKE = 0; ///////////////Experimental int InvokeState = 0; ...
using System; using System.Windows.Input; namespace BrainAnalysis { #region DelegateCommand internal class DelegateCommand : ICommand { private readonly Func<Object, Boolean> _canExecute; private readonly Action<Object> _execute; #region Constructors public DelegateCommand...
using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle("InstanceDemo")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assem...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Microso...
// ---------------------------------------------------------------------------------- // // 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://www.apa...
using System; using System.IO; using System.Threading; using System.Diagnostics; using System.Collections.Generic; namespace SharpVectors.Converters { public sealed class ConsoleApplication : IObserver, IObservable { #region Private Fields private bool _isConverting; private bool _isC...
// *** 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.Collections; using System.Collections.Generic; using UnityEngine; public class DandelionTransferLifeForm :TransferLifeForm{ public DandelionVerts dandelion; public override void Bind(){ transfer.BindForm("_DandelionBuffer" , dandelion); transfer.BindInt("_VertsPerVert" , () => dandelion.v...
/*! @file Heuristic.cs @author Woong Gyu La a.k.a Chris. <juhgiyo@gmail.com> <http://github.com/juhgiyo/eppathfinding.cs> @date July 16, 2013 @brief Heuristic Function Interface @version 2.0 @section LICENSE The MIT License (MIT) Copyright (c) 2013 Woong Gyu La <juhgiyo@gmail.com> Permission is hereby granted,...
using System; using System.Diagnostics; using System.Net.Http; using System.Reflection; namespace PicPay { public class PicPayClient { internal const string BaseAddress = "https://appws.picpay.com/ecommerce/public/"; internal static HttpClient HttpClient = null; internal static string ...
/* Copyright (c) 2018, John Lewin All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following ...
using System; using System.IO; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Extensions.Http; using Microsoft.AspNetCore.Http; using Microsoft.Azure.WebJobs.Host; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Microsoft.Azure...
#region File Description //----------------------------------------------------------------------------- // MenuScreen.cs // // XNA Community Game Platform // Copyright (C) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- #endregion #region Usi...
using Be.IO; using JaiSeqXLJA.DSP; using libJAudio.Loaders; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Windo...
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
using System; using System.Collections.Generic; using System.Text; namespace LinCms.Core.Data.Enums { public enum Status { /// <summary> /// 启用 /// </summary> Enable = 1, /// <summary> /// 禁用 /// </summary> Forbidden = 2 } }
/* * Copyright Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v8/services/ad_group_criterion_simulation_service.proto // </auto-generated> // Original file comments: // Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"...
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace RemotingTest { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { ...
using LsnCore.Expressions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LsnCore.ControlStructures { public class CaseStructure : ControlStructure { public IExpression Value { get; private set; } public readonly IReadOnlyList<Compo...
using System.Threading.Tasks; using Nethereum.Hex.HexConvertors.Extensions; using Nethereum.JsonRpc.Client; using Nethereum.RPC.Eth.DTOs; namespace Nethereum.RPC.Eth.Transactions { /// <Summary> /// eth_getTransactionByHash /// Returns the information about a transaction requested by transaction ...
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. #nullable enable using System; using Microsoft.AspNetCore.Razor.Language; namespace Microsoft.CodeAnalysis.Razor.Tooltip { internal class BoundEl...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceMa...
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace HealthCare020.Repository.Migrations { public partial class InitDb : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Drzave", ...
// // Copyright (c) Microsoft. 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 applicable l...
using Enums.Enums; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Enums.Models { public class Game { public string UserName { get; set; } public Gender Gender { get; set; } public Difficulty Difficulty { get...
using System; using System.Threading.Tasks; using System.Windows; using System.Windows.Input; namespace Httpfs.Client.UI { /// <summary> /// Interaction logic for InputDialog.xaml /// </summary> public partial class InputDialog : Window { #region Constructors public InputDialog() ...
using System; using System.Collections.Generic; using System.Linq; using UnityEditor.VFX.Block; using UnityEngine; using UnityEngine.Experimental.VFX; namespace UnityEditor.VFX { [VFXInfo(variantProvider = typeof(VFXPlanarPrimitiveVariantProvider))] class VFXPlanarPrimitiveOutput : VFXAbstractParticleOutput ...
namespace SampleApi.Host.Startup { using System; using System.Net; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using SampleApi.Host.Configuration; using SampleApi.Plumbing.Logging; /* * Our entry point class */ public static class Progr...
// Copyright (c) Alexandre Mutel. All rights reserved. // This file is licensed under the BSD-Clause 2 license. // See the license.txt file in the project root for more information. using Markdig.Helpers; using Markdig.Parsers; namespace Markdig.Syntax { /// <summary> /// Represents a thematic break (Section ...
using System.Security.Claims; using DNTFrameworkCore.Domain; using DNTFrameworkCore.Runtime; namespace DNTFrameworkCore.TestWebApp.Domain.Identity { /// <summary> /// Base Class For TPH Inheritance Strategy /// Storage of System's Permissions /// </summary> public abstract class Permission : Tracka...
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="StandardGetHandlingStatusOpTest.cs" company="Naos Project"> // Copyright (c) Naos Project 2019. All rights reserved. // </copyright> // ----------------------------------------...
using System; using System.Text.Json; using System.Text.Json.Serialization; using Gw2Sharp.WebApi; namespace Gw2Sharp.Json.Converters { /// <summary> /// A custom JSON converter that handles GUID conversions. /// </summary> /// <seealso cref="JsonConverter{T}" /> public sealed class RenderUrlConver...
/* * NatCorder * Copyright (c) 2021 Yusuf Olokoba. */ namespace NatSuite.Recorders.Inputs { using UnityEngine; using Unity.Collections.LowLevel.Unsafe; /// <summary> /// Recorder input for recording video frames from textures. /// Textures will be recorded by performing a synchronous pixel b...
using McMaster.Extensions.CommandLineUtils; namespace RemoteAgent.Commands.Install { [Command("rabbitmq", Description = "Install rabbitmq")] public class InstallRabbitmq { private void OnExecute(ICommandExecutor commandExecutor) { commandExecutor.Execute(Installations.Rabbitmq....
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.IO; using System.Text; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Sta...
/* Copyright 2017-present MongoDB Inc. * * 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 wr...
using Microsoft.MixedReality.Toolkit; using Microsoft.MixedReality.Toolkit.Rendering; using System; using System.Collections; using TMPro; using UnityEngine; using UnityEngine.Networking; public class RemoteObjectListItem : ListItemEventHandler { private RemoteContainer objectData = null; private ListItem lis...
/* Copyright © 2003 RiskCare Ltd. All rights reserved. Copyright © 2010 SvgNet & SvgGdi Bridge Project. All rights reserved. Copyright © 2015-2019 Rafael Teixeira, Mojmír Němeček, Benjamin Peterson and Other Contributors Original source code licensed with BSD-2-Clause spirit, treat it thus, see accompa...
// SPDX-License-Identifier: BSD-3-Clause // // Copyright 2020 Raritan Inc. All rights reserved. // // This file was generated by IdlC from PeripheralDeviceManager.idl. using System; using System.Linq; using LightJson; using Com.Raritan.Idl; using Com.Raritan.JsonRpc; using Com.Raritan.Util; #pragma warning disable 01...
// Copyright (c) MASA Stack All rights reserved. // Licensed under the Apache License. See LICENSE.txt in the project root for license information. namespace Masa.Auth.Service.Admin.Domain.Subjects.Aggregates; public class TeamRole : FullEntity<Guid, Guid> { public Guid TeamId { get; private set; } public T...
using MagniUniveristy.Models.ViewModel; using System.Linq; namespace MagniUniveristy.Models.Interface { public interface IBaseService<T> where T : class { ValidationViewModel Add(T item, ValidationViewModel validation); ValidationViewModel Remove(T item, ValidationViewModel validation); ...
using System; using System.Collections.Generic; using System.Linq; using MediaRelationsLibrary; using MediaRelationsDatabase; public partial class AddEditProvince : System.Web.UI.Page { Guid guid = Guid.Empty; bool canDelete = false; protected void Page_Init(object sender, EventArgs e) { Com...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DestroyonHit : MonoBehaviour { // Use this for initialization void OnTriggerEnter2D(Collider2D other) { Destroy(other.gameObject); } }
namespace SMS.Models { using System; using System.ComponentModel.DataAnnotations; using static Data.DataConstants; public class User { public string Id { get; set; } = Guid.NewGuid().ToString(); [Required] [MaxLength(MaxUserLength)] public string UserName { get; se...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using Assets.Scripts.Game.lyzz2d.Game.Component; using Assets.Scripts.Game.lyzz2d.Game.GameCtrl; using Assets.Scripts.Game.lyzz2d.Game.Item; using Assets.Scripts.Game.lyzz2d.Game.UI; using Assets.Scripts.Game.lyzz2d.Utils; usi...
using Microsoft.CodeAnalysis.CSharp.Syntax; using Semmle.Extraction.Kinds; using Semmle.Extraction.Entities; using System.IO; namespace Semmle.Extraction.CSharp.Entities.Statements { internal class Catch : Statement<CatchClauseSyntax> { private static readonly string systemExceptionName = typeof(System...
using Polly; using Polly.Extensions.Http; using System; using System.Linq; using System.Net; using System.Net.Http; namespace AZV3CleanArchitecture.Extensions { public static class RetryPolicies { private const int MaxRetry = 6; public static IAsyncPolicy<HttpResponseMessage> GetTooManyReques...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using MeuSiteEmMVC.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; namespace MeuSiteEmMVC.Controllers { public class HomeController : Controller { publ...
using NUnit.Framework; using System; using System.Collections.Generic; using System.Text; namespace ScottPlotTests.PlottableRenderTests { class ScatterMutable { [Test] public void Test_Scatter_Mutable() { var plt = new ScottPlot.Plot(); var scatter = new ScottPl...
using System; using UnityEngine; using UnityEngine.Assertions; using Grove.Common; using Grove.Variables; namespace Grove.Properties { public interface IInput<T> { T Get(IContext context); } public class InputBaseForEditor : Observable { } [Serializable] public class Input : BasicInput<object, Property, C...
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // re...
// System.Web.Services.Discovery.DiscoveryDocumentReference.ReadDocument(stream) /* This program demonstrates the 'ReadDocument(stream)' of 'DiscoveryDocumentReference' class. Read the contents of the discovery document from the stream and returns discovery document reference. The references of the 'Discove...
namespace AdminCore.WebApi.Models.Team { public class CreateTeamViewModel { public int ClientId { get; set; } public string TeamName { get; set; } } }
using System; using QueryAny.Primitives; namespace Domain.Interfaces { public static class StringExtensions { public static bool ToBool(this string value) { if (!value.HasValue()) { return false; } return Convert.ToBoolean(value);...
// <copyright file="GetRoomsInfoHandler.cs" company="Firoozeh Technology LTD"> // Copyright (C) 2021 Firoozeh Technology LTD. 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...
namespace Dashing.Logging.LogProviders { using System; using System.Diagnostics.CodeAnalysis; using Dashing.Extensions; #if LIBLOG_EXCLUDE_CODE_COVERAGE [ExcludeFromCodeCoverage] #endif internal static class TraceEventTypeValues { internal static readonly Type Type; internal st...
using Microsoft.Extensions.Configuration; using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace _210722_Demon01_JsonConfigure { class Program { static void Main(string[] args) { //固定操作,先new一个ConfigurationBuilder对象,AddJsonFile()方法,对象.Build() ...
namespace AnyStore.UI { partial class FrmProductTypes { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /...
using System; using LicenseManager.Server.Areas.Identity.Data; using LicenseManager.Server.Data; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; [assembly: HostingSta...
using System; using System.Runtime.InteropServices; namespace Toolbox.Shell { // http://www.pinvoke.net/default.aspx/shell32.shellexecuteex public sealed class ExecuteEx { SHELLEXECUTEINFO info; const int SW_SHOWNORMAL = 1; public ExecuteEx(string file, string arguments) { info.cbSize = Marshal.SizeO...
using System; using System.Collections.Generic; using System.Linq; using Xamarin.Forms; namespace SmartHotel220.Clients.Core.Controls { // Календарь. Дни недели public partial class Calendar { private readonly List<Label> _dayLabels; #region Цвет текста public static readonly BindableProperty Weekday...
/**************************************************************************** Copyright (c) 2013-2015 scutgame.com http://www.scutgame.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 Software without...
namespace Xamarin.Essentials { // Detect if 3/4ths of the accelerometer events in the last half second are accelerating // this means we are free falling or shaking class AccelerometerQueue { readonly AccelerometerDataPool pool = new AccelerometerDataPool(); // in nanoseconds readonly long maxWindowSize = 5...
 /*=================================================================================== * * Copyright (c) Userware/OpenSilver.net * * This file is part of the OpenSilver Runtime (https://opensilver.net), which is * licensed under the MIT license: https://opensource.org/licenses/MIT * * As stated in t...
using System.Reactive.Concurrency; using System.Reactive.Linq; using System.Reactive.Threading.Tasks; using Microsoft.Extensions.Hosting; using Miningcore.Messaging; using Miningcore.Notifications.Messages; using Prometheus; namespace Miningcore.Notifications; public class MetricsPublisher : BackgroundService { p...
using Verse; using RimWorld; using System; #pragma warning disable 0649 namespace ShellTooth { class HediffGiver_AgeRangeDays : HediffGiver { public override void OnIntervalPassed(Pawn pawn, Hediff cause) { float ageDays = (float)pawn.ageTracker.AgeBiologicalTicks / (float)GenDate.TicksPerDay; if (ageD...
 @{ Layout = "~/Views/Shared/_RightSectionLayout.cshtml"; } @section SectionTitle { Potwierdzenie zamówienia } <div style="margin-top: 100px; text-align: center;"> Dziękujemy! Twoje zamówienie zostało wysłane! </div>
using Cirrious.FluentLayouts.Touch; using Foundation; using MvvmCross.Binding.BindingContext; using MvvmCross.iOS.Views; using QuickLayout.Core.ViewModels; using UIKit; namespace QuickLayout.Touch.Views { [Register("TipView")] public class TipView : MvxViewController { public override void ViewDidL...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using CsQuery; using CsQuery.Utility; using Microsoft.VisualStudio.TestTools.UnitTesting; using NUnit.Framework; using Assert = NUnit.Framework.Assert; using CollectionAssert = NUnit.Framework.CollectionAssert; using...
namespace UglyToad.PdfPig.DocumentLayoutAnalysis.TextExtractor { using System; using System.Text; using Content; using Util; /// <summary> /// Extracts text from a document based on the content order in the file. /// </summary> public static class ContentOrderTextExtractor { ...
using System; using Microsoft.AspNetCore.Mvc.Filters; namespace Kafka.Example.Filters { public class Delayer : ActionFilterAttribute { private readonly int maxDelayMs; private readonly Random random; public Delayer(int maxDelayMS) { maxDelayMs = maxDelayMS; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CubeParameters { class Program { private static double CalculateFaceDigonals(double a) { double result = a * a + a * a; result = Math.Sqrt(resu...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
using Newtonsoft.Json; namespace Synology.FileStation.Common.Results { /// <summary> /// Task file additional result. /// </summary> internal abstract class TaskFileAdditionalResult<TFileOwnerResult, TFileTimeResult, TFilePermResult, TFilePermAclResult> : TaskAdditionalResult<TFileOwnerResult, TFileTi...
using System; using Ivvy.API.Json; using Newtonsoft.Json; namespace Ivvy.API.Event { public class Registration : ISerializable { public enum StatusOptions { InProgress = 1, Completed = 2, Cancelled = 3, Payment = 4, Deleted = 5, ...
using System; namespace BackOfficeWebsite.Models { public class ErrorViewModel { public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); } }
// Copyright 2017 Google 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 applicabl...
using NetBox; using NetBox.Data; using NetBox.Extensions; using NetBox.FileFormats; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Storage.Net.Table.Files { /// <summary> /// Creates an abstaction of <see cref="ITabl...
/* * Copyright 2019 Google Inc. All Rights Reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file or at * https://developers.google.com/open-source/licenses/bsd */ using Grpc.Core; using System.Collections.Generic; using System.Threading; using System.Threa...
using SharedTrip.Data.Model; using SharedTrip.Models.Trips; namespace SharedTrip.Services.Contracts { public interface ITripsService { public List<TripViewModel> GetTrips(string? userId); public Task CreateAsync(TripViewModel trip, User user); public TripViewModel FindById(int id); ...
using System.Globalization; using System.Windows.Media.Animation; namespace System.Windows.Interactivity { public abstract class Behavior : Animatable, IAttachedObject { private Type associatedType; private DependencyObject associatedObject; protected Type AssociatedType { get { ReadPreamble(); ...