text stringlengths 1 932k |
|---|
using BeatPulse;
using FunctionalTests.Base;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.TestHost;
using System;
using System.IO;
using Xunit;
using BeatPulse.Sqlite;
using Microsoft.Extensions.DependencyInjection;
using System.Threading.Tasks;
using FluentAssertions;
using System.Net;
namespace Fu... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using Microsoft.OData.Edm;
using Microsoft.AspNet.OData.Common;
nam... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Renci.SshNet.Security.Cryptography.Ciphers.Modes;
using Renci.SshNet.Tests.Common;
namespace Renci.SshNet.Tests.Classes.Security.Cryptography.Ciphers.Modes
{
/// <summary>
///This is a test class for CfbCipherModeTest and is intended
///to contain ... |
using System;
using System.Drawing;
namespace CodeMetrics.UserControls
{
internal class ColorChangedEventArgs : EventArgs
{
public Color NewColor { get; set; }
}
} |
using CookPopularControl.Communal;
using CookPopularControl.Communal.Data;
using CookPopularControl.Controls.Dragables;
using CookPopularControl.Controls.Dragables;
using CookPopularCSharpToolkit.Communal;
using CookPopularCSharpToolkit.Windows;
using CookPopularCSharpToolkit.Windows.Interop;
using System;
using Syste... |
namespace JdaTools.Studio.Models
{
public class TraceLine
{
public string Time { get; set; }
public string Level { get; set; }
public string Source { get; set; }
public string Content { get; set; }
}
} |
using UnityEngine;
using System.Collections;
public class UIManagerScript : MonoBehaviour
{
public void GoMain()
{
Application.LoadLevel(1);
}
public void PlayGame()
{
Application.LoadLevel(2);
}
public void GoHelp()
{
Application.LoadLevel(3);
}
... |
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using NUnit.Framework;
using Syst... |
using System.Collections.Generic;
using System.Management;
namespace WindowsMonitor.Hardware.Network
{
/// <summary>
/// </summary>
public sealed class ReceiveFilterGlobalParameters
{
public uint EnabledFilterTypes { get; private set; }
public uint EnabledQueueTypes { get; private set; }
public u... |
/*
* 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 System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
namespace VSNancyDemo
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
... |
using Microsoft.AspNetCore.SignalR;
using System.Xml.Linq;
namespace AeonServer;
public class ServerState
{
private readonly IHubContext<AeonGeneralHub, AeonGeneralHub.IClient> _generalHub;
private readonly IHubContext<AeonLobbyHub, AeonLobbyHub.IClient> _lobbyHub;
private readonly IHubContext<AeonGameHub, AeonGa... |
#if WITH_EDITOR
#if PLATFORM_64BITS
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace UnrealEngine
{
/// <summary>Movie scene compilation parameters. Serialized items contribute to a compiled template's cached hash</summary>
[StructLayout(LayoutKind.Explicit,Size=1)]... |
//------------------------------------------------------------------------------
// <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.... |
// Copyright (c) 2012-2020 fo-dicom contributors.
// Licensed under the Microsoft Public License (MS-PL).
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FellowOakDicom
{
public enum DicomUidType
{
TransferSyntax,
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using A... |
using Microsoft.EntityFrameworkCore.Migrations;
namespace RecruitmentTool.Migrations
{
public partial class FixedIssueWithInterviews5 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
}
protected override void Down(MigrationBuilder migrationBuilder... |
using Common;
using Common.Interfaces;
using Indic;
using Pulxer.Drawing;
using System;
using System.Collections.Generic;
using System.Xml.Linq;
namespace Pulxer.Indicators
{
/// <summary>
/// Moving average indicator
/// </summary>
public class AmaIndicator : IndicatorBase
{
private Ama _... |
using System;
using System.IO;
using System.Threading.Tasks;
using LibGit2Sharp;
using Native.Csharp.App.LuaEnv;
using Native.Csharp.Sdk.Cqp.Interface;
namespace Native.Csharp.App.Event
{
public class Event_AppStatus : IEvent_AppStatus
{
#region --公开方法--
/// <summary>
/// Type=1001 酷Q启动<para/>
/// 处理 酷Q 的启动... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Class_Box
{
public class Box
{
private double length;
private double height;
private double width;
public Box(double length, double width, double height)
{
this.length = length;
... |
using Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Client
{
public class PurchaseTicketPageController
{
private readonly IServices server;
public PurchaseTicketPageController(IServices server)
{
... |
namespace BrightChain.Engine.Tests
{
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
/// <summary>
/// Tests the CBL blocks for their ability to represent a file.
/// </summary>
[TestClass]
public class ContstituentBlockListBlockTest
{
[TestMethod, Ignore]
... |
//------------------------------------------------------------------------------
// <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.
//... |
using System;
using LightningQueues.Storage.LMDB;
using System.Collections.Generic;
using System.Net;
using System.Net.Security;
using System.Reactive.Concurrency;
using System.Security.Authentication;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using Lig... |
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die m... |
/*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... |
/*******************************************************************************
* Copyright 2012-2019 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... |
@using Common
@model IEnumerable<Person>
<h1>Commanders - @ViewData["Title"]</h1>
<section>
@foreach (Person person in Model)
{
<div data="@person.StartDate.Year.ToString()[2]">
<span class="name">@person.ToString()</span>
<span class="year">@person.StartDate.Year</span>
... |
namespace Ryujinx.Graphics.Gal
{
public enum GalTextureType
{
Snorm = 1,
Unorm = 2,
Sint = 3,
Uint = 4,
Snorm_Force_Fp16 = 5,
Unorm_Force_Fp16 = 6,
Float = 7
}
} |
/*
* 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... |
namespace KeLi.ModelDesign.RVT
{
public class LightTriangleFace
{
public string VertexIndexData { get; set; }
public string NormalIndexData { get; set; }
public string UvIndexData { get; set; }
public override string ToString()
{
return string.Concat(Verte... |
using System;
using Windows.UI.Xaml.Data;
namespace Eto.Test.WinRT.Common
{
/// <summary>
/// Value converter that translates true to false and vice versa.
/// </summary>
public sealed class BooleanNegationConverter : IValueConverter
{
public object Convert(object value, Type targetType, o... |
using Microsoft.Maui.Controls.CustomAttributes;
using Microsoft.Maui.Controls.Internals;
#if UITEST
using Microsoft.Maui.Controls.Compatibility.UITests;
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Microsoft.Maui.Controls.Compatibility.ControlGallery.Issues
{
#if UITEST
[Category(UITestCategories.M... |
using System;
using NUnit.Framework;
namespace SharpGeometry.Tests
{
[TestFixture]
public class Point3DTests
{
[Test]
public void PointCtorFromArray()
{
double[] arr = { 0.1, 0.2, 0.3 };
var sut = new Point3D(arr);
Assert.That(sut.IsUndefined(),... |
// 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;
using System.Runtime.InteropServices;
namespace DefaultNamespace
{
internal class RootMem
{
... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* d... |
using System;
using System.Buffers;
using System.Collections.Generic;
using System.Net;
using System.Net.Security;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
using NSmartProxy.Data;
using NSmartProxy.Database;
using NSmartProxy.Infrastructure;
using NSmartProxy.Shared;
namespace NSmart... |
namespace OpenTracing.Contrib.LocalTracers.Config.System_Configuration.Console
{
using System.Configuration;
using JetBrains.Annotations;
using OpenTracing.Contrib.LocalTracers.Config.Console;
using OpenTracing.Contrib.LocalTracers.Config.System_Configuration.Utils;
[PublicAPI]
public class ... |
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Windows.Forms;
namespace Mtf.Core
{
public sealed partial class ErrorBox : BaseBox
{
private bool infinite = false;
private ErrorBox(string... |
using System.Data;
namespace EasyDapper
{
public class ParameterDefinition
{
public string Name { get; set; }
public object Value { get; set; }
public ParameterDirection Direction { get; set; }
public int Size { get; set; }
public bool IsNullable { get; set; }
... |
using Microsoft.EntityFrameworkCore;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
namespace TracersCafe.Data
{
public class Model : DbContext
{
public DbSet<PersonInformation> Information { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder option... |
<p>You have an Azure AD tenant that has the contoso.onmicrosoft.com domain name.</p>
<p>You have a domain name of contoso.com registered at a thrid-party registrar.</p>
<p>You need to ensure that you can create Azure AD users that have names containing a suffix of @contoso.com.</p> |
@model CommuNeedy.Models.Donation
@{
ViewData["Title"] = "Details";
}
<div class="row" style="margin-top: 40px;">
<div class="col-md-7" style="padding: 200px;">
<h1 class="head">Donation overview</h1>
<dl class="row">
<dt class="col-4">
@Html.DisplayNameFor(model =>... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("04... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// With thanks to Gregory Schlomoff, who wrote this implementation and
// released it into the public domain, and to Robert Bridson of the
// University of British Columbia, for developing the efficient
// algorithm that this code implemen... |
// 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.Collections.Immutable;
using Microsoft.CodeAnalysis.CodeGen;
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Microsoft.CodeAnalysis.PooledObj... |
using System.Globalization;
using System.Text.RegularExpressions;
using Microsoft.Recognizers.Definitions.Turkish;
namespace Microsoft.Recognizers.Text.Number.Turkish
{
public class TurkishNumberRangeParserConfiguration : INumberRangeParserConfiguration
{
public TurkishNumberRangeParserConfiguration()... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Threading;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Core.Pipeline;
using Azure.ResourceManager.Network.Models;
namespace A... |
using SmartifyBotStudio.Models;
using SmartifyBotStudio.RobotDesigner.Interfaces;
using SmartifyBotStudio.RobotDesigner.Variable;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SmartifyBotStudio.RobotDesigner.TaskModel.Text
{
[Serializ... |
// Copyright 2014 The Rector & Visitors of the University of Virginia
//
// 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 req... |
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Thinktecture.IdentityModel.Owin.BasicAuth... |
using PS.Data;
namespace PS.Requests
{
/// <summary>
/// Send a login request to the server.
/// </summary>
public class LoginRequest : PsRequest
{
private static readonly string REQUEST_USERNAME = "username";
private static readonly string REQUEST_PASSWORD = "password";
/... |
using AutoFixture;
using AutoFixture.Xunit2;
using EntityFrameworkCore.AutoFixture.Tests.Common.Customizations;
namespace EntityFrameworkCore.AutoFixture.Tests.Common.Attributes
{
public class AutoDomainDataAttribute : AutoDataAttribute
{
public AutoDomainDataAttribute()
: base(() => new Fi... |
// <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... |
// <auto-generated />
namespace Cirrus.Module.CatchEmAll.DAL.Migrations
{
using System.CodeDom.Compiler;
using System.Data.Entity.Migrations;
using System.Data.Entity.Migrations.Infrastructure;
using System.Resources;
[GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")]
public seale... |
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: src/proto/grpc/testing/worker_service.proto
// </auto-generated>
// Original file comments:
// Copyright 2015 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this fil... |
using Microsoft.AspNetCore.Identity;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace SoltimateLib.Models.Identity
{
/// <summary>
/// Role of user identity.
/// </summary>
[Table("Role")]
public class SoltimateRole : ... |
@using Microsoft.AspNetCore.Identity
@using BlazorMUD.Server.Areas.Identity
BlazorMUD.Server.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using Rylogic.Extn;
using Rylogic.Utility;
namespace CoinFlip
{
public class PriceDataMap : IDisposable, IEnumerable<PriceData>
{
public class TPMap : Dictionary<TradePair, TFMap> { }
public clas... |
// 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;
using System.Collections.Generic;
using Microsoft.Data.DataView;
using Microsoft.ML;
using Microsoft.... |
using System;
using System.Collections;
using System.Data;
using Security = Mediachase.IBN.Business.Security;
using System.Collections.Generic;
using Mediachase.IBN.Business;
using Mediachase.IBN.Business.SpreadSheet;
using Mediachase.IBN.Database.SpreadSheet;
using System.IO;
using Mediachase.IbnNext.TimeTracking;
u... |
using System;
using System.Collections.Generic;
using System.Linq;
using ISAAR.MSolve.Solvers.Interfaces;
using ISAAR.MSolve.Solvers.PCGSkyline;
using ISAAR.MSolve.PreProcessor.Stochastic;
using ISAAR.MSolve.Numerical.LinearAlgebra;
using ISAAR.MSolve.Numerical.LinearAlgebra.Interfaces;
namespace ISAAR.MSolve.Analyze... |
using System;
using DNTFrameworkCore.EFCore.Context.Hooks;
using DNTFrameworkCore.EFCore.SqlServer.Numbering;
using DNTFrameworkCore.Numbering;
using Microsoft.Extensions.DependencyInjection;
namespace DNTFrameworkCore.EFCore.SqlServer
{
public static class DependencyInjection
{
public static EFCoreBui... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace BirthDayApp
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*p... |
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ParticleController : MonoBehaviour
{
[SerializeField]
ParticleSystem particleLauncher;
[SerializeField]
ParticleSystem splatterParticles;
[SerializeField]
GameObject generatorObject;
List<ParticleCo... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
namespace Xamarin.Forms.Platform.Android
{
internal interface IDisposedState : IDisposable
{
bool IsD... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xam... |
// ----------------------------------------------------------------------------
// (c) 2022 Ruzsinszki Gábor
// This code is licensed under MIT license (see LICENSE for details)
// ----------------------------------------------------------------------------
using FFConvert.Interfaces;
namespace FFConvert.Infrastruct... |
using Confluent.Kafka;
namespace KafkaRetry.Job.Services.Interfaces
{
public interface IKafkaService
{
IConsumer<string, string> BuildKafkaConsumer();
IConsumer<string, string> BuildKafkaConsumer(string groupId);
IProducer<string, string> BuildKafkaProducer();
IAdminClient Build... |
using UnityEngine;
using System.Collections.Generic;
using System;
public class NetworkMonoBehaviour : MonoBehaviour {
protected Queue<Action> funcQueue;
// Use this for initialization
protected void Init () {
funcQueue = new Queue<Action>();
}
// Update is called once per frame
protecte... |
namespace ShopifyWeb;
public class WeatherForecast
{
public DateTime Date { get; set; }
public int TemperatureC { get; set; }
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
public string? Summary { get; set; }
} |
namespace Bam.Net.Services.DataReplication.Consensus
{
public enum RaftRequestType
{
Invalid,
WriteValue,
NotifyLeaderFollowerValueWritten,
NotifyFollowerLeaderValueCommitted,
VoteRequest,
VoteResponse,
Heartbeat,
JoinRaf... |
@{
Layout = "~/Views/Shared/_store_admin_layout.cshtml";
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RandomSchool.Extenders;
using RandomSchool.Repositories;
namespace RandomSchool.Maintain.vTeacher
{
public partial class Details : System.Web.UI.Page
{
private Tea... |
using System.IO;
namespace TeleSharp.TL.Messages
{
[TLObject(-302170017)]
public class TLAllStickers : TLAbsAllStickers
{
public override int Constructor
{
get
{
return -302170017;
}
}
public int Hash { get; set; }
... |
using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
using AGO.Core.Controllers.Security;
using AGO.Core.DataAccess;
using AGO.Core.Localization;
using AGO.Core.Model;
using AGO.Core.Model.Projects;
using AGO.Core.Model.Reporting;
using AGO.Core.M... |
/*
* 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... |
// <auto-generated />
using System;
using DN.WebApi.Infrastructure.Persistence;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace Migrators.MySQL.Migrations.App... |
// Copyright (c) Yufei Huang. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Isles;
public class StateHarvestGold : BaseState
{
/// <summary>
/// For now, MaxPeonsPerGoldmine should always be set to 1.
/// </summary>
... |
using SimpleTCP;
using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Native.Csharp.App.LuaEnv
{
class TcpServer
{
//需要发送的包列表
private static ConcurrentBag<stri... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Approve.RuleCenter;
using Tools;
using System.Data;
using EgovaDAO;
public partial class JSDW_ApplyZBBA_File : System.Web.UI.Page
{
EgovaDB dbContext = new EgovaDB();
... |
/*
* 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 (c) junjie sun. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Text;
namespace XNode
{
/// <summary>
/// 异常工具类
/// </summary>
public static class Excep... |
using System.Collections.Generic;
using System.Threading.Tasks;
using MyNoSqlServer.DataReader;
using Service.Circle.Wallets.Domain.Models;
using Service.Circle.Wallets.Domain.Models.WireTransfers;
using Service.Circle.Wallets.Grpc;
using Service.Circle.Wallets.Grpc.Models;
using Service.Circle.Wallets.Grpc.Models.Ban... |
/*
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 may not use this f... |
namespace Rollbar.Telemetry
{
using System.Collections.Generic;
using Rollbar.Diagnostics;
using Rollbar.DTOs;
/// <summary>
/// Fixed depth queue of telemetry items.
/// </summary>
public class TelemetryQueue
{
private readonly object _syncLock;
private readonly Queue<... |
#define First
#if First
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
namespace UsingOptions.Controllers
{
#region snippet1
public class HomeController : Controller
{
private readonly MyOptions _options;
public HomeController(IOptions<MyOptions> optionsAccessor)
... |
using System.Data.SqlClient;
using NServiceBus;
class NamedConnectionString
{
void ConnectionString(BusConfiguration busConfiguration)
{
#region sqlserver-config-connectionstring
var transport = busConfiguration.UseTransport<SqlServerTransport>();
t... |
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using OpenRiaServices.DomainServices;
namespace OpenRiaServices.DomainServices.Tools.SharedTypes
{
/// <summary>
/// Internal class to maintain a set of kn... |
// Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved.
// 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 full license information.
using System;
using System.Col... |
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Amazon.SQS.Model;
using NSubstitute;
using Shouldly;
using Xunit;
using Xunit.Abstractions;
namespace JustSaying.UnitTests.Messaging.Channels.MessageReceiveBufferTests
{
public class WhenSubscriberIsSlow : B... |
using Lucene.Net.Benchmarks.ByTask.Feeds;
namespace Lucene.Net.Benchmarks.ByTask.Tasks
{
/*
* 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 ownersh... |
namespace Mercurial.Hooks
{
/// <summary>
/// This <see cref="MercurialHookBase"/> descendant implements the
/// code necessary to handle the "precommit" hook:
/// This is run before starting a commit (note, the commit command has started executing, and can have addes files, etc.
/// See the Mercuri... |
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Insight.Database.Structure;
namespace Insight.Database.Structure
{
/// <summary>
/// A base implementation of IRecordReader.
/// </summary>
public abstract partial clas... |
// *** 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... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ma... |
// Copyright 2021 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using Wox.Infrastructure;
using Wox.Infrastructure.Storage;
namespace Wox.Plugin.Folder
{
public class Main : IPlugin, ISettingProvider, IPluginI18n, I... |
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using YS.Knife.Data.Mapper;
using FluentAssertions;
namespace YS.Knife.Data.UnitTest.Mapper
{
[TestClass]
public class ObjectMapperTest
{
[TestMethod]
public void Test()
{
var mapper = new ObjectMapper<C1,... |
// 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.Core.Data;
using Microsoft.ML.Runtime;
using Microsoft.ML.Runtime.CommandLine;
using Microsoft.M... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.