text stringlengths 1 932k |
|---|
using LogViewer.Core;
using System.IO;
using System.Text;
using System.Threading.Tasks;
namespace LogViewer.Services.Implementation
{
public class FileWatcher : IFileWatcher
{
private bool isStopped;
private long bytesRead = 0;
public event LogFileChangedHandler Changed;
publ... |
////////////////////////////////////////////////////////////////////////////////
//NUnit tests for "EF Core Provider for LCPI OLE DB"
// IBProvider and Contributors. 23.09.2021.
using Microsoft.EntityFrameworkCore.Migrations.Operations;
using NUnit.Framework;
namespace EFCore_Lcpi... |
using System;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json;
namespace Microsoft.Bot.Configuration.Tests
{
[TestClass]
public class ConfingurationLoadAndSaveTests
{
[TestMethod]
public async Task DeserializeBotFile()
{
... |
//-----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel.Description
{
using System.Collections.Generic;
using Syste... |
using UnityEngine;
namespace DifferentMethods.Univents.Internal
{
[AddComponentMenu("")]
public class OnCollisionExitSurrogate : MessageSurrogate
{
void OnCollisionExit(Collision collision) => Fire();
}
} |
// <auto-generated>
// Do not edit this file yourself!
//
// This code was generated by Stride Shader Mixin Code Generator.
// To generate it yourself, please install Stride.VisualStudio.Package .vsix
// and re-save the associated .sdfx.
// </auto-generated>
using System;
using Stride.Core;
using Stride.Rendering;
us... |
using Newtonsoft.Json;
namespace Essensoft.AspNetCore.Payment.Alipay.Response
{
/// <summary>
/// AntMerchantExpandContractFacetofaceSignResponse.
/// </summary>
public class AntMerchantExpandContractFacetofaceSignResponse : AlipayResponse
{
/// <summary>
/// 支付宝端商户入驻申请单据号
... |
using System.Windows.Controls;
namespace $rootnamespace$
{
public partial class $safeitemrootname$ : UserControl
{
#region Constructors
public $safeitemrootname$()
{
InitializeComponent();
}
#endregion
}
} |
namespace Gu.State.Tests.Settings
{
using NUnit.Framework;
using static SettingsTypes;
public class FieldsSettingsBuilderTests
{
[Test]
public void AddImmutableType()
{
var settings = new FieldsSettingsBuilder().AddImmutableType<ComplexType>().CreateSettings();
... |
using System;
using System.Collections.Generic;
using System.Text;
namespace amadeus.resources
{
/// <summary>
/// An AdditionalService object.
/// </summary>
public class AdditionalService
{
internal AdditionalService() { }
/// <summary>
/// Gets or sets the type of the t... |
// <copyright file="SlackPresenceChange.cs" company="https://gitlab.com/edrochenski/juvo">
// Licensed under the MIT License. See LICENSE in the project root for license information.
// </copyright>
namespace JuvoProcess.Net.Slack
{
/// <summary>
/// Slack presence change.
/// </summary>
public struct... |
using NP.Visuals.Utils;
using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
namespace NP.Visuals.Converters
{
public class VerticalAlignmentToIconConverter : IValueConverter
{
public static VerticalAlignmentToIconConverter Instance { get; } =
new Vert... |
// 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.
[assembly:System.Reflection.AssemblyVersionAttribute("2.2.0.0")]
[assembly:System.CLSCompliantAttribute(true)]
[asse... |
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace WinformsGpidPoc
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{... |
using System.Collections.Generic;
using System.Data;
using System.Threading.Tasks;
using Bakana.Core.Entities;
using Bakana.Core.Extensions;
using ServiceStack.OrmLite;
namespace Bakana.Core.Repositories
{
public static class StepExtensions
{
internal static async Task CreateSteps(this IDbConnection db... |
using UnityEngine;
using System.Collections;
public class Vitality : MonoBehaviour
{
[Tooltip("The owner's starting health amount. Used to determine if we've taken damage.")]
public float initialHealth = 100f;
[HideInInspector]
public float health;
[HideInInspector]
public bool isDead = false;... |
using System;
using System.Collections.Generic;
using System.Web.Mvc;
namespace LanguageHelpers.Localization.DataAnnotations
{
public class LocalizedDataAnnotationsModelMetadataProvider : DataAnnotationsModelMetadataProvider
{
protected override ModelMetadata CreateMetadata(IEnumerable<Attribute> attr... |
using CharacterGen.CharacterClasses;
using CharacterGen.Domain.Tables;
using NUnit.Framework;
using System;
using System.Linq;
namespace CharacterGen.Tests.Integration.Tables.Magics.Spells.PerDay.Sorcerers
{
[TestFixture]
public class Level1SorcererSpellsPerDayTests : AdjustmentsTests
{
protected ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.ComponentModel;
namespace Azure.ResourceManager.Workloads.Models
{
/// <summary> Defines the SAP Product type. </summary>
public readonly partial ... |
namespace Semantic.Solution
{
public enum EObserverHint
{
TreeLoaded,
CommentSaving,
TreeLoading
}
} |
using Foundation;
using ImageCircle.Forms.Plugin.iOS;
using UIKit;
namespace BindableLayoutPlayground.iOS
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to
// applicati... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using AccessibilityInsights.Core.Bases;
using AccessibilityInsights.Core.Enums;
using AccessibilityInsights.Rules.PropertyConditions;
using AccessibilityIn... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FuzzyLogic.Memberships
{
public class FuzzyGrade : Membership
{
public double m_x0;
public double m_x1;
public FuzzyGrade(double x0, double x1)
{
m_x0 = x0;
... |
using UnityEngine;
using System.Collections;
public class ShakeAction : ActionBase {
public GameObject Target;
public Vector3 Amount;
public iTween.LoopType LoopType;
public float Delay;
public float AnimationTime;
public bool IsLocal;
public override void Act() {
var options = ne... |
using JetBrains.Annotations;
namespace ColonistBarKF
{
public class SettingsPSI
{
// PSI settings
public int IconAlignment;
public float IconMarginX = 1f;
public float IconMarginY = 1f;
public float IconOffsetX = 1f;
public float IconOffsetY = 1f;
p... |
// <auto-generated />
using System;
using ApiProvaWeb.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace ApiP... |
using System;
using System.Collections;
using System.Collections.Generic;
using Elecelf.Hibiki.Parser.GrammarGraph;
namespace Elecelf.Hibiki.Parser
{
public static class LegitimacyCheck
{
/// <summary>
/// Hibiki-Parser is a LL(1) parser. Left-recursion must be avoid. This method is used to che... |
/* Copyright (c) Mark Seemann 2019 all rights reserved
* Permission is hereby granted to share this code for educational purposes
* only, under the condition that this header remains intact. */
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Mic... |
using Microsoft.AspNetCore.Http;
using Mzg.Business.SerialNumber.Domain;
using Mzg.Core;
using Mzg.Data.Import.Domain;
using Mzg.DataMapping.Domain;
using Mzg.Flow.Abstractions;
using Mzg.Flow.Domain;
using Mzg.Form.Abstractions;
using Mzg.Form.Abstractions.Component;
using Mzg.Form.Domain;
using Mzg.Logging.DataLog.D... |
/*
* Copyright 2018 JDCLOUD.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 the License at
*
* http:#www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... |
namespace CommandPipeline.Infrastructure.Pipeline
{
using System;
public interface ICommandContainer
{
ICommand Create(Type type);
}
} |
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace RedditBots.Web
{
public class Program
{
public... |
//---------------------------------------------------------
// <auto-generated>
// This code was generated by a tool. Changes to this
// file may cause incorrect behavior and will be lost
// if the code is regenerated.
//
// Generated on 2020 October 09 05:19:13 UTC
// </auto-generated>
//--------------... |
/*
* Solvice API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0.0-oas3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using Sys... |
using GraphQL.Types;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Options;
namespace GraphQL.Server.Transports.WebSockets
{
public static class GraphQLWebSocketsExtensions
{
publ... |
namespace DGP.Genshin.DataModel.Material
{
/// <summary>
/// 武器材料
/// </summary>
public class Weapon : Material
{
/// <summary>
/// 高塔孤王
/// </summary>
public const string Decarabian = "https://genshin.honeyhunterworld.com/img/upgrade/weapon/i_504.png";
/// ... |
using System;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Server.Kestrel.Core;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjecti... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using MultiTenantClient.API.StartU... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die mit einer Assembly verknüpft sind.
[assembly: As... |
using System;
namespace P01.ClassBoxData
{
class StartUp
{
static void Main(string[] args)
{
var length = double.Parse(Console.ReadLine());
var width = double.Parse(Console.ReadLine());
var height = double.Parse(Console.ReadLine());
try
... |
using RestSharp;
using System.Collections.Generic;
using System;
using System.Threading.Tasks;
using JiraAssistant.Logic.Services.Jira;
using JiraAssistant.Domain.Jira;
using JiraAssistant.Logic.Settings;
namespace JiraAssistant.Logic.Services.Resources
{
public class WorklogManager : BaseRestService, IJiraWorklo... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.ML.Runtime.Data;
using Microsoft.ML.Runtime.Learners;
using Microsoft.ML.Runtime.RunTests;
using Xu... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Collections.Generic;
using System.Numerics;
using Windows.Foundation;
using Windows.UI.Composition;
using Windows.UI.Input;
using Windows.... |
using System.Collections.Generic;
using System.Linq;
using Abp.Application.Services.Dto;
using Abp.Authorization;
using Net.Qks.Authorization.Permissions.Dto;
namespace Net.Qks.Authorization.Permissions
{
public class PermissionAppService : QksAppServiceBase, IPermissionAppService
{
public ListResultD... |
/*
* Copyright 2010-2014 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 "l... |
// ----------------------------------------------------------------------------------
//
// 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... |
@model Forca.Models.IndexViewModel
@{
ViewBag.Title = "Manage";
}
<h2>@ViewBag.Title.</h2>
<p class="text-success">@ViewBag.StatusMessage</p>
<div>
<h4>Change your account settings</h4>
<hr />
<dl class="dl-horizontal">
<dt>Password:</dt>
<dd>
[
@if (Model.HasP... |
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. 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
*
... |
using System;
using System.Collections.Generic;
using System.IO;
using JasonState.Interfaces;
using JasonState.Models;
using TestClient.Interfaces;
namespace TestClient.Impls
{
public class Worker<T> : IWorker<T> where T : class, new()
{
private readonly IStateMachine<T> _stateMachine;
public... |
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/winnt.h in the Windows SDK for Windows 10.0.19041.0
// Original source is Copyright © Microsoft. All rights reserved.
using NUnit.Framework;
using System.... |
using System.ComponentModel.DataAnnotations;
namespace DFC.App.ActionPlans.Services.DSS.Enums
{
public enum GoalType
{
[Display(Name = "Skills")]
Skills=1,
[Display(Name = "Work")]
Work=2,
[Display(Name = "Learning")]
Learning=3,
[Display(Name = "Other")... |
using BillsPaymentSystem.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Text;
namespace BillsPaymentSystem.Data.EntityConfiguration
{
public class UserConfig : IEntityTypeConfiguration<User>
{
... |
using System;
using System.Xml;
using System.Reflection;
using System.Collections.Generic;
using System.ComponentModel;
using System.Collections.Specialized;
using System.Windows;
using System.Collections;
using System.Linq;
namespace Nixxis.Client.Admin
{
public interface IDeferRefreshTarget
{
void D... |
using AppRopio.Base.Core.ViewModels.Services;
using AppRopio.Models.Payments.Responses;
using AppRopio.Payments.CloudPayments.Core.ViewModels.CloudPayments.Services;
using AppRopio.Payments.Core.Bundle;
using AppRopio.Payments.Core.Services;
using AppRopio.Payments.Core.ViewModels;
using MvvmCross.Platform;
namespace ... |
namespace HareDu.Diagnostics.Probes
{
using System;
public interface DiagnosticProbe :
IObservable<ProbeContext>
{
/// <summary>
/// Miscellaneous information pertinent to describing the diagnostic probe.
/// </summary>
DiagnosticProbeMetadata Metadata { get; }
... |
using System;
using System.Collections.Generic;
using System.Text;
using _03BarracksFactory.Contracts;
namespace BarracksWars_TheCommandsStrikeBack.Core.Commands
{
public class ReportCommand : Command
{
public ReportCommand(string[] data, IRepository repository, IUnitFactory unitFactory) : base(data, ... |
using System.Collections.Generic;
using Bot.Builder.Community.Adapters.Twitter.Webhooks.Models;
using Bot.Builder.Community.Adapters.Twitter.Webhooks.Models.Twitter;
using Microsoft.Bot.Schema;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Bot.Builder.Community.Adapters.Twitter.Tests
{
[TestClass]... |
/*
* [The "BSD licence"]
* Copyright (c) 2011 Terence Parr
* All rights reserved.
*
* Conversion to C#:
* Copyright (c) 2011 Sam Harwell, Pixel Mine, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following con... |
//------------------------------------------------------------------------------
// <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>
//--... |
namespace AzFunctionsGraphQL.Core.DataAccess.Support
{
/// <summary>
/// Used to specify the sort direction for repository queries.
/// </summary>
public enum SortDirection
{
/// <summary>
/// Sort ascending order.
/// </summary>
Ascending,
/// <summ... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//... |
// <snippet1>
using System;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Media;
using System.Windows.Forms;
namespace SoundApiExample
{
public class SoundTestForm : System.Windows.Forms.Form
{
private System.Windows.Forms.Label la... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json;
using JsonWebToken.Cryptography;
using Xunit;
namespace JsonWebToken.Tests
{
public class SymmetricJwkTests : JwkTestsBase
{
[Theory]
[MemberData(nameof(GetWrappingKeys))]
public override KeyWrap... |
using System.Collections.Generic;
namespace Nancy.WebApi.Demo
{
public class ModuleRouteSummary
{
public string ModuleName { get; set; }
public string HelpModulePath { get; }
public List<RouteSummary> Routes { get; set; }
public ModuleRouteSummary(string moduleName, string hel... |
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
namespace MyCore.BaseProject.Configuration
{
public static class HostingEnvironmentExtensions
{
public static IConfigurationRoot GetAppConfiguration(this IHostingEnvironment env)
{
return AppConfiguration... |
using System.Web;
using System.Web.Mvc;
namespace tnp.App
{
public class FilterConfig
{
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new HandleErrorAttribute());
}
}
} |
// *** 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;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Amazon.IdentityManagement;
using Amazon.IdentityManagement.Model;
using Amazon.Runtime;
using Amazon.SecurityToken;
using Amazon.SecurityToken.Model;
using Calamari.Aws.Integration;
using Calamari.Aws.Util;
using Calamari.Deploymen... |
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
namespace RevitAddin.ElementOverrideExample.Revit
{
public class App : IExternalApplication
{
public Result OnStartup(UIControlledApplication application)
{
return Result.Succeeded;
}
public Result OnShutdown(UIContr... |
using Autofac;
using Cervus.Web.AppStart.Routes;
using System;
namespace Cervus.Web.AppStart.Autofac
{
public class RoutesModule : Module
{
protected override void Load(ContainerBuilder builder)
{
if (builder == null)
{
throw new ArgumentNullException(na... |
using JuCheap.Entity.Base;
namespace JuCheap.Entity
{
/// <summary>
/// 邮件接收人
/// </summary>
public class EmailReceiverEntity : BaseEntity
{
/// <summary>
/// 邮件ID
/// </summary>
public string EmailId { get; set; }
/// <summary>
/// 邮件地址
/// ... |
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Bulksign.Api
{
internal class RestClient
{
private string endpointUrl = string.Empty;
private HttpClient hp;
public RestClient(string url, int timeout)
{
this.endpointUrl = url;
hp... |
// <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... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[assembly: Assem... |
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using T3DSharpFramework.Engine;
using T3DSharpFramework.Engine.Util;
using T3DSharpFramework.Generated.Classes.Global;
using T3DSharpFramework.Generated.Classes.Reflection;
using T3DSharpFramework.Generated.Classes.Sim;
using T3DSharp... |
using System;
using System.Linq.Expressions;
namespace Mixins
{
/// <summary>
/// Gets property name using lambda expressions.
/// </summary>
public static class PropertyName
{
public static string For<T, T1>(Expression<Func<T, T1>> expression)
{
var body = expression.Bo... |
using System;
using System.Threading.Tasks;
using jinyinmao.MessageWorker.Config;
using Jinyinmao.Application.Constants;
using Jinyinmao.MessageWorker.Domain.Entity;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.RetryPolicies;
using Microsoft.WindowsAzure.Storage.Table;
using Moe.Lib;
name... |
using System;
using MonoTouch.UIKit;
using System.Drawing;
namespace ArtApp
{
public class BadgeTableViewCell : UITableViewCell
{
private BadgeView _badgeView;
public BadgeView BadgeView
{
get
{
return _badgeView;
}
}
public BadgeTableViewCell(UITableViewCellStyle style, string reuseIde... |
using System;
using Unity.Burst;
using Unity.Collections;
using Unity.Jobs;
using UnityEngine;
using UnityEngine.UI;
public class SuperShape2D : MonoBehaviour{
public Slider Slider1, Slider2;
public LineRenderer Line;
public float Radius = 1;
public float a = 1;
public float b = 1;
public ... |
using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Xml.Schema;
using System.Xml.Serialization;
namespace Workday.ResourceManagement
{
[GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepT... |
using SalesApp.Core.BL.Models.ManageStock;
namespace SalesApp.Core.BL.Models.Chama
{
public class GroupKeyValue : KeyValue
{
public string Name { get; set; }
}
} |
using System;
using Xunit;
using Statistics;
using System.Collections.Generic;
using Xunit.Abstractions;
using static Statistics.Stats;
namespace Statistics.Test
{
public class StatsUnitTest
{
[Fact]
public void ReportsAverageMinMax()
{
var statsComputer = new StatsComputer(... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DemoCluster.DAL;
using DemoCluster.GrainInterfaces;
using DemoCluster.GrainInterfaces.Commands;
using DemoCluster.GrainInterfaces.States;
using Microsoft.Extensions.Logging;
using Orleans;
using Orleans.EventSourcing;... |
using System;
namespace ObserverPattern
{
/// <summary>
/// The 'ConcreteObserver' class
/// </summary>
public class Investor : IInvestor
{
private readonly string name;
public Investor(string name)
{
this.name = name;
}
public void Update(Stoc... |
namespace JasonTaylorCleanArch.Application.TodoLists.Queries.GetTodos
{
public class TodosVm
{
public IList<PriorityLevelDto> PriorityLevels { get; set; } = new List<PriorityLevelDto>();
public IList<TodoListDto> Lists { get; set; } = new List<TodoListDto>();
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
namespace OD4B.Configuration.Async.WebJob
{
// To learn more about Microsoft Azure WebJobs SDK, please see http://go.microsoft.com/fwlink/?LinkID=320976
class Prog... |
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Globalization;
using System.Text;
using InternalsViewer.UI.Properties;
namespace InternalsViewer.UI
{
/// <summary>
/// Create RTF colour elements
/// </summary>
internal class RtfColour
{
private RtfColour... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** 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;
names... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Shared.Exten... |
// 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;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using Roslyn.Utilities;
namespace Microsoft.Co... |
// Copyright (c) .NET Foundation 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.IO;
using System.Threading.Tasks;
namespace Microsoft.DotNet.Cli.Utils
{
public static class FileAccessRetrier
... |
namespace InheritanceAndPolymorphism
{
using System;
using System.Collections.Generic;
using System.Text;
public class LocalCourse : Course
{
private string lab;
public LocalCourse(string name, string teacherName, IList<string> students, string lab)
: base(name... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Reflection;
using System.Collections;
using System.IO;
using System.Xml.Schema;
using System;
using System.Text;
using System.Threading;
using System.Globalization;
usin... |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
namespace PlayersAndMonsters
{
public class Hero
{
private string username;
private int level;
public Hero(string username, int level)
{
this.Username = username;
... |
//*********************************************************************
//xCAD
//Copyright(C) 2020 Xarial Pty Limited
//Product URL: https://www.xcad.net
//License: https://xcad.xarial.com/license/
//*********************************************************************
using Xarial.XCad.Base;
using Xarial.XCad.Data;
... |
// 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.Data;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore.Infrastruc... |
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Lambda.Core;
using Amazon.Lambda.S3Events;
using Amazon.Lambda.TestUtilities;
using Amazon.S3;
using Amazon.S3.Model;
using Amazon.S3.Util;
using Moq;
using ServerlessBlog.Application... |
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using gp_.Areas.MvcDashboardIdentity.Models;
using gp_.Areas.MvcDashboardIdentity.Models.Roles;
namespace gp_.Areas.MvcDashboardIdent... |
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using osu.Game.Beatmaps;
using osu.Game.Replays.Legacy;
using osu.Game.Rulesets.Replays;
using osu.Game.Rulesets.Replays.Types;
namespa... |
// -----------------------------------------------------------------------
// <copyright file="GlobalSuppressions.cs" company="bartosz.jarmuz@gmail.com">
// Copyright (c) Bartosz Jarmuż. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------
using System.Di... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.