content
stringlengths
23
1.05M
namespace BankManagementSystem.Services { using System; public interface IClientService { void Create(string name, string email, DateTime dateTime, decimal balance); } }
/* 类:MainForm 描述:模板填充规则文件生成工具UI 编 码 人:韩兆新 日期:2015年01月17日 修改记录: */ using System; using System.IO; using System.Windows.Forms; using ExcelReport; namespace XmlGenerator { public partial class MainForm : Form { public MainForm() { InitializeComponent(); } privat...
using System; using System.Threading; using System.Threading.Tasks; using GroupDocs.Viewer.UI.Api.InMemory.Cache.Configuration; using GroupDocs.Viewer.UI.Core; using Microsoft.Extensions.Caching.Memory; using Microsoft.Extensions.Options; using Microsoft.Extensions.Primitives; namespace GroupDocs.Viewer.UI.Api.InMemo...
@page "/" @page "/tag/{CurrentTag}" @page "/tag/" @inject IHttpApiClientRequestBuilderFactory ClientFactory @inject IAccountService AccountService <div class="row"> <div class="col-2"> <NewToss OnNewTossCreated="@RefreshTossList"></NewToss></div> <div class="col-10"> <HashTagBar CurrentTag="@CurrentT...
using System; using System.Collections.Generic; using System.Text; namespace BassUtils.Runtime { /// <summary> /// Information about the server and environment. /// </summary> public class ServerRuntimeInformation { /// <summary> /// Machine name. /// </summary...
using AcceptanceTests.Common.PageObject.Helpers; using OpenQA.Selenium; namespace VideoWeb.AcceptanceTests.Pages { public static class RulesPage { public static By HmctsLogo = CommonLocators.ImageWithAltTags("HM Courts &amp; Tribunals Service crest"); } }
#if !WP7 && !WP8 using System.Collections.Generic; using DigitalRune.Graphics.Effects; using DigitalRune; using DigitalRune.Geometry; using DigitalRune.Graphics; using DigitalRune.Graphics.Rendering; using DigitalRune.Graphics.SceneGraph; using DigitalRune.Mathematics.Algebra; using DigitalRune.Physics.ForceEffects; u...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. namespace Microsoft.CdmFolders.SampleLibraries { using System; using System.IO; using Microsoft.CdmFolders.SampleLibraries.SerializationHelpers; using Newtonsoft.Json; /// <summary> /// Partition ...
#region Using using System; #endregion namespace NMock.Syntax { /// <summary> /// Contains the methods that define the expectation for either a property, method, or event. /// </summary> /// <typeparam name="TInterface">The interface or class being mocked.</typeparam> /// <remarks> /// This interf...
using Forge.Entities.Implementation.Content; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; namespace Forge.Entities.Tests { internal class TestSnapshotBuilder { public IGameSnapshot Snapshot = LevelManager.CreateSnapshot(); public ...
using FilterPattern.Interface; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FilterPattern.Criteria { public class CriteriaSingle : IPersonCriteria { public IList<Person> MeetCriteria(IList<Person> persons) { ...
using System; using System.Collections.Generic; using System.Text; namespace PassboltSharp.Models { public class Permission : BaseResource { public string Aco; public string Aro; public int Type; } }
using UnityEngine; using UnityEngine.UI; public class HighScore : MonoBehaviour { #region Awake private void Awake() { } #endregion public Text _txtScoreUI; #region Public Properties public int _highScore { get { return _scr; } set { _scr = value; _txtScor...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UnityEngine; namespace SpeckleUnityConverter { class SpecklePrefabs : MonoBehaviour { public static SpecklePrefabs Instance { get; private set; } public GameObject MeshPre...
using GraphQL.EntityFramework; public class ChildGraph : EfObjectGraphType<ChildEntity> { public ChildGraph(IEfGraphQLService graphQlService) : base(graphQlService) { Field(x => x.Id); Field(x => x.Property); Field(x => x.Nullable, true); AddNavigationField<ParentGraph, ParentE...
using DataAccess.Model; using DataAccess.Repositories; using System; using System.Linq; namespace BusinessLogic { public class SubjectManager : IDisposable { private SubjectRepository subjectRepository; public SubjectManager() { subjectRepository = new SubjectRepository();...
using System; using System.Collections.Generic; using System.Text; namespace SEDC.Quiz.Data.Models { public class Question { public string QuestionText { get; set; } public string AnswerA { get; set; } public string AnswerB { get; set; } public string AnswerC { get; set; } ...
using Microsoft.EntityFrameworkCore; namespace MPS.Data.EF.Configuration { public interface IBaseEntityTypeConfiguration<T> : IEntityTypeConfiguration<T> where T : class { } }
using System.Collections.Generic; using System.Linq; using SharpX.Compiler.Composition.Abstractions; using SharpX.Compiler.Composition.Interfaces; namespace SharpX.Compiler.ShaderLab.Models.HLSL.Statements { internal class Constructor : INestableStatement { private readonly List<IStatement> _argument...
using System; using System.Reactive; using System.Reactive.Linq; using Microsoft.Reactive.Testing; using Xunit; using RxLibrary; using Xunit.Abstractions; namespace RxLibrary.Tests { public class CreatColdObservableTests : ReactiveTest { [Fact] public void CreatColdObservable_ShortWay() ...
using System; using System.Net; namespace LumiSoft.Net.Mail { // Token: 0x02000186 RID: 390 public class Mail_t_TcpInfo { // Token: 0x06001017 RID: 4119 RVA: 0x000646C8 File Offset: 0x000636C8 public Mail_t_TcpInfo(IPAddress ip, string hostName) { bool flag = ip == null; if (flag) { ...
@model EstateSocialSystem.Web.Areas.Administration.ViewModels.AdministerApplianceViewModel <h2>AdministerApplianceViewModel</h2> @Html.ValidationSummary("", new { @class = "text-danger" }) <div class="form-group"> @Html.LabelFor(e => e.Name, new { @class = "col-md-2 control-label" }) <div class="col-md-10"> ...
using System; namespace Standard { [Flags] internal enum WTNCA : uint { NODRAWCAPTION = 1u, NODRAWICON = 2u, NOSYSMENU = 4u, NOMIRRORHELP = 8u, VALIDBITS = 15u } }
using Pizza.Contracts.Security.ViewModels; namespace KebabManager.Contracts.ViewModels { public class KebabUserViewModel : PizzaUserViewModel { public string FirstName { get; set; } public string LastName { get; set; } } }
using Newtonsoft.Json; using System; namespace HelperFunctions.Business { public class FantasyFootballParser { public FantasyFootball Parse(string fantasyFootballJson) { var fantasyFootball = JsonConvert.DeserializeObject<FantasyFootball>(fantasyFootballJson); return fa...
using System; using System.Collections.Generic; using Microsoft.Extensions.DependencyInjection; using Totem.Runtime.Hosting; using Totem.Timeline.Area; namespace Totem.Timeline.Hosting { /// <summary> /// Extends <see cref="IServiceCollection"/> to declare the timeline area /// </summary> public static class T...
//<Snippet1> using System.Security; using System.Security.Permissions; using System.Runtime.InteropServices; namespace SecurityRulesLibrary { [SuppressUnmanagedCodeSecurityAttribute()] public class BadTypeWithPublicPInvokeAndSuppress { [DllImport("native.dll")] public static extern void DoDanger...
// Copyright 2020 by PeopleWare n.v.. // 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 writ...
// 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.Linq; using System.Threading.Tasks; using Microsoft.Extensions.Logging; namespace NuGet.Services.Metadata.Catalog.Monitoring { public...
namespace bsn_sdk_csharp { public class FileConfig { public string NodeApi { get; set; } public string UserCode { get; set; } public string AppCode { get; set; } public string UserPrivateKey { get; set; } public string BsnPublicKey { get; set; } public string Msp...
using UnityEngine; namespace HT.Framework { /// <summary> /// 异常信息 /// </summary> public sealed class ExceptionInfo : IReference { /// <summary> /// 异常类型 /// </summary> public LogType Type; /// <summary> /// 异常日志 /// </summary> public...
namespace JG.FinTechTest.GiftAid { public class TaxRateStorage : IStoreTaxRate { public TaxRateStorage() { CurrentRate = 20M; } public decimal CurrentRate { get; } } }
namespace Vorlesung_11.Windows { using System; using System.Windows; using Vorlesung_11.Model; public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } private static void ShowWindow(Func<IUser> createUser) { ...
using PrefixTree; using System.Collections.Generic; using System.IO; using Xunit; namespace PrefixTreeTests { public class PrefixTreeTests_Emoji { [Theory] // Format: <prefix to find>, <match that MUST be returned from tree>, [Words to add to Tree] // // This is ...
 // FINISHED // thx to http://damieng.com/blog/2009/11/06/multiple-outputs-from-t4-made-easy-revisited using System.Data.Entity; using Orc.EntityFramework.Repositories; using Catel.Data; using Catel.IoC; using Orc.LicenseManager.Server.Repositories; using Orc.LicenseManager.Server; // REPOSITORIES // ...
using Mamesaver.Configuration; using NUnit.Framework; using SimpleInjector; namespace Mamesaver.Test.Unit { public abstract class MamesaverTests { public Container Container { get; private set; } [OneTimeSetUp] public void SetupContainer() => Container = ContainerFactory.NewContainer(...
using Microsoft.EntityFrameworkCore; namespace QueryNinja.Targets.EntityFrameworkCore.Filters { /// <summary> /// Represent operations defined by <see cref="EF.Functions"/> class. /// </summary> public enum DatabaseFunction { /// <summary> /// Corresponds to SQL Like operation. ...
using HL7Data.Models.Types; namespace HL7Data.Contracts.Packages { public interface IPackageValidationSetting { bool IgnoreAllValidations { get; set; } ValidationSetting MaximumLength { get; set; } ValidationSetting MinimumLength { get; set; } ValidationSetting RequiredField { ...
namespace DACbyEatMe { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param n...
namespace ArrayVisualizerControls { public enum ArrayRenderSection { Front, Top, Side } }
namespace Furlong { /// <summary> /// Represents a link in a Chain (of Responsibility). /// </summary> /// <typeparam name="TRequest">The type of the object that contains the data to be handled.</typeparam> public interface IAsyncChainLink<TRequest> : IAsyncLink<TRequest> { /// <summary...
namespace GameDesigner { using System.Collections.Generic; using UnityEngine; /// <summary> /// 音效管理 /// </summary> public class AudioManager : MonoBehaviour { [SerializeField] private List<AudioSource> sources = new List<AudioSource>(); [SerializeField] pri...
using UnityEngine; public partial class Game { public Canvas canvas; void InitUI() { canvas.worldCamera = Camera.main; canvas.planeDistance = 1; } }
using System.Net.Http; using System.Threading.Tasks; using Newtonsoft.Json; namespace ByteDev.Hibp.Http { internal static class HttpResponseMessageExtensions { public static async Task<T> DeserializeAsync<T>(this HttpResponseMessage source) { var json = await source.Content.ReadAsS...
using Desafio.Domain.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Desafio.Data.Mappings { public class MovimentacaoMap : IEntityTypeConfiguration<Movimentacao> { public void Configure(EntityTypeBuilder<Movimentacao> builder) { ...
/* * 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 System; namespace Dfc.CourseDirectory.Services.Models.Onspd { public class Onspd { public string pcd { get; set; } public string pcd2 { get; set; } public string pcds { get; set; } public string dointr { get; set; } public string doterm { get; set; } publi...
namespace Backend.Response { public class Empty { } }
using System; namespace Yargon.Terms { /// <summary> /// Descriptor for a term child. /// </summary> public struct ChildDescriptor { /// <summary> /// Gets the name of the child. /// </summary> /// <value>The name of the child.</value> public string Name { g...
using System; using System.Collections.Generic; using DomainDrivenDesign.CoreEcommerce.Ef; namespace Core.FrontEnd.Models { public class FeShoppingCartCheckoutPage { public Guid Id; public List<FeIdAndDescription> PaymentMethods; public List<FeIdAndDescription> ShippingMethods; ...
using System; using System.Drawing; namespace Snake_Game_CSharp { public class Ball { private readonly Random _random; private Size _size; public Brush Color { get; set; } public Point Position { get; private set; } public Ball(Size size) { _size =...
using System; using System.Collections.Generic; using OpenMetaverse; using OpenMetaverse.Packets; using OpenMetaverse.Assets; namespace OpenMetaverse.TestClient { public class ViewNotecardCommand : Command { /// <summary> /// TestClient command to download and display a notecard asse...
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using LDY.UIP.EarthCalculator.BLL.Services; using LDY.UIP.EarthCalculator.Shared.Interfaces; namespace LDY.UIP.EarthCalculator.UIConsole { public class UIConsoleApp { p...
using System.Collections.Generic; namespace CardGames.Core.Contracts { /// <summary> /// Represents the game interface. /// </summary> /// <typeparam name="TPlayer">The <see cref="IPlayer{TDeck,TCard}" /> subtype.</typeparam> /// <typeparam name="TDeck">The <see cref="IDeck{TCard}" /> subtype....
using System; using System.IO; using System.Numerics; namespace GameSpec.Cry.Formats.Core.Chunks { public class ChunkNode_824 : ChunkNode { public override void Read(BinaryReader r) { base.Read(r); Name = r.ReadFString(64); if (string.IsNullOrE...
using System; using System.Linq; using FluentAssertions; using Xunit; namespace Okanshi.Test { public class DoubleCounterTest { private readonly DoubleCounter counter; public DoubleCounterTest() { counter = new DoubleCounter(MonitorConfig.Build("Test")); } ...
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Simple2DLight { public class FadeLight : MonoBehaviour { //컴포넌트 private LightManager light_manager; //조명 public float light_size = 3f; public float light_grow_up_time = 2.5f; ...
using System; using System.Threading.Tasks; using Impostor.Api.Events; namespace Impostor.Server.Events.Register { internal class WrappedRegisteredEventListener : IRegisteredEventListener { private readonly IRegisteredEventListener _innerObject; private readonly object _object; public...
namespace Cosmos.Data.Common { /// <summary> /// DbContext Meta Interface<br /> /// DnContext 元接口 /// </summary> public interface IDbContext { } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ZedGraph; using MathLib; using static System.Math; using System.IO; using System.Drawing; namespace OrbModUI { //Plot residuals on ZedGraphControl by observatory // public abstract cla...
namespace TemplateProcessor.Helpers.SmartString.Models { public class Word { public string Value { get; set; } public bool AllowMultipleUpperCase { get; set; } } }
namespace TraktNet.Objects.Get.Tests.Movies.Json.Reader { using FluentAssertions; using System; using System.Threading.Tasks; using Trakt.NET.Tests.Utility.Traits; using TraktNet.Enums; using TraktNet.Objects.Get.Movies; using TraktNet.Objects.Get.Movies.Json.Reader; using Xunit; [...
using System.Drawing; using System.Windows.Forms; namespace BizHawk.Client.EmuHawk { public sealed class NameTableViewer : Control { public Bitmap Nametables; public NameTableViewer() { var pSize = new Size(512, 480); Nametables = new Bitmap(pSize.Width, pSize.Height); SetStyle(ControlS...
using System; namespace AppTokiota.Users.Services { public interface INetworkConnectionService { bool IsAvailable(); } }
using OrchardCore.Data.Documents; namespace OrchardCore.Documents.Options { public class DocumentOptions<TDocument> where TDocument : IDocument, new() { public DocumentOptions(IDocumentOptionsFactory factory) { Value = factory.Create(typeof(TDocument)); } public Doc...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Caching; using Microsoft.MachineLearning; using Microsoft.MachineLearning.Api; using Microsoft.MachineLearning.Data; using Microsoft.M...
using System; namespace Bolt.Client { public class ConnectionDescriptor { public ConnectionDescriptor(Uri server) { Server = server ?? throw new ArgumentNullException(nameof(server)); } public Uri Server { get; set; } public bool KeepAlive { get; set; } ...
namespace LTPTranslations.Web.ViewModels.ViewModels.WordOfTheDay { public class SynonymsInputModel { public string SynonymName { get; set; } } }
using System; using System.Diagnostics; using System.Management.Automation; namespace PSAsync { public readonly struct ShouldProcessResult : IEquatable<ShouldProcessResult> { public ShouldProcessResult( bool result, ShouldProcessReason reason) { ...
using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using AjaxControlToolkit; using System.Web.UI; using System.IO; using Moq; using System.Xml; namespace AjaxControlToolkit.Tests { [TestFixture] public class TabPanelTests { [Test] pub...
using AutoMapper; using Fox.Common.Extensions; using IdentityServer.Models; namespace IdentityServer.Configurations.AutoMapper { public class AccountMapping : BaseMapping { public AccountMapping() { CreateMap<RegistrationRequest, User>(MemberList.None) .ForMember(de...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Threading.Tasks; using Raylib_cs; using static RayWrapper.GameBox; namespace RayWrapper.CollisionSystem { public class ScreenGrid { public Dictionary<(int x, int y), List<int>> collisionGrid = new();...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class TimeTrialRing : MonoBehaviour { [HideInInspector] public Challenge_TimeTrial trial; // set by the Challenge_TimeTrial public bool Passed { get; private set; } private Renderer rend; private Collider col; ...
using FrannHammer.WebScraping; using FrannHammer.WebScraping.Attributes; using FrannHammer.WebScraping.Character; using FrannHammer.WebScraping.Contracts; using FrannHammer.WebScraping.Contracts.Attributes; using FrannHammer.WebScraping.Contracts.Character; using FrannHammer.WebScraping.Contracts.HtmlParsing; using...
using System; using System.Collections.Generic; using System.Net.Http; using CodeTherapy.HttpSecurityChecks.Data; namespace CodeTherapy.HttpSecurityChecks { public abstract class HttpSecurityCheckBase : ISecurityCheck, IEquatable<HttpSecurityCheckBase> { public abstract string Name { get; } p...
using System; using System.Collections; using System.Collections.Generic; using System.Reflection; namespace Lex.Db { using Indexing; using Serialization; interface IIndex<T> where T : class { DbTable<T> Table { get; } MemberInfo[] Keys { get; } void Read(DataReader reader, DbFormat format); ...
using System; using NUnit.Framework; using Foundation; using CloudKit; using ObjCRuntime; using Xamarin.Utils; namespace MonoTouchFixtures.CloudKit { [TestFixture] [Preserve (AllMembers = true)] public class CKFetchRecordsOperationTest { CKRecordID [] recordIDs = new CKRecordID [0]; CKFetchRecordsOperation op...
namespace TopDownProteomics.ProForma { /// <summary> /// Anything that describes a modification. /// </summary> public interface IProFormaDescriptor { /// <summary>The key.</summary> ProFormaKey Key { get; } /// <summary>The type of the evidence.</summary> ProFormaE...
using Client.Repository.Interface; using Common.DTO; using Common.Extension; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System; using System.Security.Claims; using System.Threading.Tasks; namespace Client.Controllers { [Authorize(Roles = Constant.Role_Customer)] public cla...
namespace MercadoPago.Resource.Payment { /// <summary> /// Payment's transaction data. /// </summary> public class PaymentTransactionData { /// <summary> /// QR code. /// </summary> public string QrCode { get; set; } /// <summary> /// QR code image i...
using RoslynMetrics.Contracts; using System; using System.Runtime.CompilerServices; using RoslynMetrics.Contracts.Metrics; namespace RoslynMetrics.CSharp { internal sealed class HalsteadMetrics : IHalsteadMetrics { public readonly static IHalsteadMetrics GenericInstanceSetPropertyMetrics; public readonly static...
using Microsoft.Maui.Controls.Internals; using Microsoft.Maui.Graphics; using Microsoft.Maui.Hosting; using Microsoft.Maui.HotReload; namespace Microsoft.Maui.Controls { public partial class ContentPage : IPage, HotReload.IHotReloadableView { // TODO ezhart That there's a layout alignment here tells us this hiera...
 namespace P08.Threeuple { public class Threeuple<Tfirst, Tsecond, Tthird> { public Threeuple(Tfirst first, Tsecond second, Tthird third) { this.FirstItem = first; this.SecondItem = second; this.ThirdItem = third; } public Tfirst FirstItem { ...
using UnityEngine; using System.Collections; public class basicShooting : MonoBehaviour { protected Vector2 direction; public GameObject mainBullet; protected float width; protected GameObject bullet; protected SpriteRenderer sr; protected SpriteRenderer gruSr; protected AudioSource sound;...
using System; using System.Linq; using System.Text; using Microsoft.CodeAnalysis.CSharp; using Sf = Microsoft.CodeAnalysis.CSharp.SyntaxFactory; using Sk = Microsoft.CodeAnalysis.CSharp.SyntaxKind; using St = Microsoft.CodeAnalysis.SyntaxToken; namespace GirLoader.Helper { public class String { privat...
namespace BikeShop.Services { public interface IConfigService { } }
using System; using System.Collections.Generic; using System.Runtime.Serialization; using System.Text; namespace DomainCQRS { /// <summary> /// Is thrown when an event is saved for a version of an Aggregate Root that already exists. /// </summary> [Serializable] public class ConcurrencyException : E...
// Copyright 2019 Light Conversion, UAB // Licensed under the Apache 2.0, see LICENSE.md for more details. namespace LightConversion.Protocols.Yadp { /// <summary> /// The result of the YADP command. /// </summary> /// <remarks>Used only in GetRegisterResponse and SetRegisterResponse packets.</...
using Arbor.App.Extensions.Messaging; namespace Milou.Deployer.Web.Core.Deployment.Environments { public class CreateEnvironment : ICommand<CreateEnvironmentResult> { public string EnvironmentTypeId { get; init; } public string EnvironmentTypeName { get; init; } public string PreRele...
using HexBoardGame.Runtime.GameBoard; using TMPro; using UnityEngine; namespace Game.Ui { [RequireComponent(typeof(TMP_Text))] public class UiOrientationText : UiTmpText { private const string Vertical = "Vertical"; private const string Horizontal = "Horizontal"; [SerializeField] ...
using MiniEngine.Pipeline.Models.Components; using MiniEngine.Primitives.Cameras; using MiniEngine.Systems; using MiniEngine.Systems.Containers; using MiniEngine.Units; namespace MiniEngine.Pipeline.Models.Systems { public sealed class UVAnimationSystem : IUpdatableSystem { private readonly IComponent...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Windows.Controls; using System.Windows.Interop; using Win32; namespace WinD.Common { public class EmbeddedApp : HwndHost, IKeyboardInputSink { ...
using System; using System.Net; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Edison.Core.Common; using Edison.Core.Common.Models; using Edison.Api.Helpers; namespace Edison.Api.Controllers { /// <summary> /// Controller to handle operations on I...
using Ntrada.Configuration; namespace Ntrada { internal interface IUpstreamBuilder { string Build(Module module, Route route); } }
using System; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Testing; using NUnit.Framework; using Octopus.RoslynAnalyzers; using Octopus.RoslynAnalyzers.Testing.Integration; using Verify = Tests.CSharpVerifier<Octopus.RoslynAnalyzers.Testing.Integration.IntegrationTestClassAnalyzer>; namespace Tests.Testi...
using System; using System.Threading; using Autofac.Extras.DynamicProxy2; using log4net; namespace IoCSample09_Interception { [Intercept("LoggingInterceptor")] public interface ICustomerService { void AddCustomer(); } public class CustomerService : ICustomerService { private r...
using System; using System.Collections.Generic; public class RoleShowWidget { public void setAgent(BaseEntity agent) { } /// <summary> /// 接口 播放动画 /// </summary> /// <param name="anim"></param> /// <param name="loop"></param> /// <param name="add"></param> public float playA...
using System.Collections; using System.Collections.Generic; using System.Globalization; namespace Perlang.Tests.Integration { public class TestCultures : IEnumerable<object[]> { public IEnumerator<object[]> GetEnumerator() { // A culture which uses 123.45 number format. Resembles th...
using System; namespace Rubik.Toolkit.Utils { public static class DateTimeUtil { /// <summary> /// 时间戳转时间 /// </summary> /// <param name="timestamp">时间戳</param> /// <returns>时间</returns> public static DateTime TimestampToDateTime(long timestamp) { ...
using System; using Xunit; using Buffer = AwesomeSockets.Buffers.Buffer; namespace AwesomeSockets.UnitTests.Buffers { public class BufferTests { [Fact] public void GetBuffer_ReturnsAppropriatelySizedBuffer() { var testBuffer = CreateValidBuffer(); const int expe...