text stringlengths 1 932k |
|---|
#region CmdMessenger - MIT - (c) 2013 Thijs Elenbaas.
/*
CmdMessenger - library that provides command based messaging
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, ... |
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
namespace StyleCopTester
{
internal struct Statistic
{
public Statistic(int numberOfNodes, int numberOfTokens, int numberOfTrivia)
... |
using UnityEngine;
public interface IGameObjectDataHandler
{
void SaveToRepository(IGameObjectDataRepository repository);
void LoadFromRepository(IGameObjectDataRepository repository);
} |
//-----------------------------------------------------------------------------
// Copyright : (c) Chris Moore, 2020
// License : MIT
//-----------------------------------------------------------------------------
namespace Z0
{
using W = DataWidth;
/// <summary>
/// Defines a <see cref="DataWidth"... |
// -------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
// -----------------------------------------------------------... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.EntityFrameworkCore;
using Domain.Data;
using Domain.Model;
namespace AspNetCorePages.Pages.Funcionarios
{
public class Delete... |
using HyperMock;
using HyperMock.Exceptions;
using Tests.HyperMock.Support;
using Xunit;
namespace Tests.HyperMock.Integration
{
public class VerifySetPropertyTests : TestBase<AccountController>
{
[Fact]
public void VerifySetNever()
{
MockFor<IAccountService>().VerifySet(s =... |
using System;
using System.IO;
using System.Xml;
using System.Reflection;
using System.Windows;
using SharpVectors.Dom.Css;
using SharpVectors.Dom.Svg;
using SharpVectors.Renderers.Wpf;
namespace SharpVectors.Renderers.Utils
{
public class WpfSvgWindow : SvgWindow
{
#region Private fields
p... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Rastreador;
using Rastreador.Controllers;
namespace Rastreador.Tests.Controllers
{
[TestClass]
public class HomeControllerTest
{
[Te... |
#if !NETSTANDARD13
/*
* 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 ... |
// <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... |
namespace GAVPI
{
partial class frm_AddEdit_ActionSequence
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... |
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;
#nullable disable
namespace MapperSqlite.Transform.schema
{
public partial class MapperDbContext : DbContext
{
public MapperDbContext()
{
}
public MapperDbContext(DbContextOptions... |
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("Com... |
/************************************************************************************
Copyright : Copyright (c) Facebook Technologies, LLC and its affiliates. All rights reserved.
Licensed under the Oculus Utilities SDK License Version 1.31 (the "License"); you may not use
the Utilities SDK except in compliance with t... |
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace 自定义Uppercomputer_2020072... |
/*
* 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.Reflection;
using System.Reflection.Emit;
class VariousMethodBuilderSnippets {
public static void ContainerMethod(TypeBuilder myDynamicType) {
// <Snippet1>
MethodBuilder myMethod = myDynamicType.DefineMethod("MyMethodReturnsMarshal",
MethodAttributes.Public,
typeof(uint... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using Microsoft.AspNet.SignalR;
using System.Web.Routing;
namespace ScrubbeR
{
public class Global : System.Web.HttpApplication
{
protected void Application_Start(object... |
// <copyright file="LearningModuleController.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// </copyright>
namespace Microsoft.Teams.Apps.LearnNow.Controllers
{
using System;
using System.Collections.Generic;
using System.Linq;
using Sy... |
using X.IDao;
namespace X.IService.Authentication
{
/// <summary>
/// 用于身份认证的接口
/// </summary>
/// <remarks>实例的生命周期为每HttpRequest</remarks>
public interface IAuthenticationService : IDependency
{
/// <summary>
/// 登录
/// </summary>
/// <param name="userName">登录的... |
using System;
using System.Runtime.CompilerServices;
namespace CScape.Models.Data
{
public struct BlobPlaceholder
{
public Blob Blob { get; }
public int StartPosition { get; }
public int Size { get; }
private int _origWritePos;
public BlobPlaceholder(Blob blob, int sta... |
namespace FlightNode.DataCollection.Domain.Migrations
{
using System.Data.Entity.Migrations;
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class SurveyCompleted : DbMigration
{
public override void Up()
{
CreateTable(
"dbo.Disturban... |
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.Collections.Generic;
public class UltimateTutorialsEditorTarget : TargetRules
{
public UltimateTutorialsEditorTarget(TargetInfo Target)
{
Type = TargetType.Editor;
}
//
// TargetRules interface.
//
public overr... |
// 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.Linq;
namespace Generator3.Renderer.Internal
{
public static class Constructors
{
public static string Render(this IEnumerable<Model.Internal.Constructor> constructors)
{
return constructors
.Select(constr... |
namespace MassTransit.Pipeline.Filters
{
using System;
using System.Diagnostics;
using System.Threading.Tasks;
using Context;
using GreenPipes;
using Logging;
using Metadata;
/// <summary>
/// Consumes a message via an existing class instance
/// </summary>
/// <typeparam n... |
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Http;
namespace Dbosoft.IdentityServer.H... |
using System.Threading.Channels;
namespace Stl.Channels
{
public class ChannelPair<T>
{
public Channel<T> Channel1 { get; protected set; } = null!;
public Channel<T> Channel2 { get; protected set; } = null!;
protected ChannelPair() { }
public ChannelPair(Channel<T> channel1, Ch... |
using System.Collections.Generic;
using Bloom.Domain.Interfaces;
using Bloom.Domain.Models;
namespace Bloom.Services
{
public interface IFiltersetService
{
void AddFilterToExpression(Filterset filterset, IFilter filter, string filterAgainst);
void FlipExpressionOperatorAt(Filterset filterset,... |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Formatting;
using System.Net.Http.Headers;
using System.W... |
// *** 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... |
// <copyright filename="MultipleIntValuesArg.cs" project="Framework">
// This file is licensed to you under the MIT License.
// Full license in the project root.
// </copyright>
namespace B1PP.Data
{
using System.Collections.Generic;
using System.Linq;
internal class MultipleIntValuesArg : QueryArgBas... |
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Rill.Core;
using Rill.Stores.EfCore.Serialization;
using Rill.Stores.EfCore.Extensions;
namespace Rill.Stores.EfCore
{
public... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace UniformAcceleration
{
public class EquationDropMove : DropObjectBehaviour
{
protected override void StartAction()
{
gravity = new GravityMoveEquation();
gravity.Init(transform.posit... |
// -------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
// -----------------------------------------------------------... |
// 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.
#nullable enable
using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Micr... |
namespace GodSeekerPlus.Modules;
[AttributeUsage(AttributeTargets.Class)]
internal sealed class ModuleAttribute : Attribute {
public ToggleableLevel toggleableLevel;
public bool defaultEnabled;
public bool hidden = false;
}
internal enum ToggleableLevel {
AnyTime,
ReloadSave,
RestartGame
} |
using System;
using System.Collections.Generic;
using System.Text;
namespace XamarinAdvientoSyncfusion.Dtos
{
public class DtoHobbie
{
public string Nombre { get; set; }
}
} |
using Xunit;
namespace Smairo.Template.AzureFunctions.Durable.Tests
{
public class Function1Tests
{
[Fact]
public void Test()
{
Assert.True(true);
}
}
} |
using Newtonsoft.Json;
using System.Collections.Generic;
namespace CowinNotification.Models
{
public class CowinDistrictResponse
{
public IReadOnlyCollection<District> Districts { get; set; }
[JsonProperty("ttl")]
public int TotalRecords { get; set; }
}
} |
using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
using System.Windows.Markup;
namespace CopyWordsWPF.ViewModel.Converters
{
public class StringNullOrEmptyToVisibilityConverter : MarkupExtension, IValueConverter
{
public object Convert(object value, Type target... |
/* ========================================================================
* Copyright (c) 2005-2016 The OPC Foundation, Inc. All rights reserved.
*
* OPC Foundation MIT License 1.00
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
... |
using CustomerRecognition.Common;
using Microsoft.Azure.Documents;
using Microsoft.Azure.Documents.Client;
using System;
using System.Linq;
using System.Threading.Tasks;
namespace CustomerRecognition.Client
{
class CosmosClient
{
private static CosmosClient _instance;
public static CosmosClient Instance
... |
#region Apache License Version 2.0
/*----------------------------------------------------------------
Copyright 2017 Yang Chen (cy2000@gmail.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
htt... |
/****************************************************************************
* Copyright (c) 2017 ~ 2021.8 liangxie
*
* http://qframework.io
* https://github.com/liangxiegame/QFramework
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documenta... |
// <auto-generated />
using System;
using IdentityServer4.EntityFramework.DbContexts;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace RsaIdentityServer.Migrations.ConfigurationDb
{
[DbContext(typeof(Con... |
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... |
using System;
using CoreAudioTests.Common;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Vannatech.CoreAudio.Interfaces;
using Vannatech.CoreAudio.Constants;
namespace CoreAudioTests.Wasapi
{
/// <summary>
/// Tests all methods of the IAudioVolumeDuckNotification interface.
/// </summary>
... |
using Prism.Navigation;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace RaptoreumWallet.Common.Extensions
{
public static class NavigationExtensions
{
public static async Task<INavigationResult> NavigatePopup(this INavigationService navigation... |
/*
* 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 Recaptcha.Web
@using Recaptcha.Web.Mvc
@model Romontinka.Server.WebSite.Models.Account.RecoveryLoginModel
@{
ViewBag.Title = "Восстановление";
}
@Html.ValidationSummary(true)
@using (Html.BeginForm())
{
<fieldset>
<legend class="register-user-title"><h1>Введите логин и текст с изображения</h1... |
namespace PhotoContest.Tests.Mocks
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Security.Claims;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using AutoMapper;
using Microsoft.VisualStudio.TestTools.... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace ResourceWithIdentityServerWithClient.Models.AccountViewModels
{
public class VerifyCodeViewModel
{
[Required]
public string Provider { get; se... |
//
// ServiceStack
//
// Authors:
// Demis Bellot (demis.bellot@gmail.com)
//
// Copyright 2013 ServiceStack
//
// Licensed under the new BSD license.
//
using System.Runtime.Serialization;
namespace ServiceStack.ServiceInterface.ServiceModel
{
/// <summary>
/// Error information pertaining to a particular ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
namespace WebSocketTest
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
// Web API 配置和服务
// Web API 路由
config.MapHttpAttri... |
using System;
using System.Globalization;
using System.Reflection;
using IdentityServer4.Configuration;
using IdentityServer4.EntityFramework.Interfaces;
using IdentityServer4.EntityFramework.Options;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Builde... |
namespace Juniper
{
partial class MainWindow
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param ... |
using Robust.Client.Graphics;
using Robust.Client.ResourceManagement;
using Robust.Client.UserInterface;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.CustomControls;
using Robust.Shared.IoC;
using Robust.Shared.Maths;
using static Robust.Client.UserInterface.StylesheetHelpers;
namespa... |
namespace WebApiClientCore.Implementations
{
/// <summary>
/// 表示接口方法的拦截器
/// </summary>
sealed class HttpApiInterceptor : IHttpApiInterceptor
{
/// <summary>
/// 服务上下文
/// </summary>
private readonly HttpClientContext context;
/// <summary>
/// 接口方法... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
namespace Microsoft.Data.Entity.Design.Model.Entity
{
using System.Linq;
using System.Xml.Linq;
using Moq;
using Xunit;
public class PropertyBaseTests
... |
using System;
namespace Banking.Types
{
public class Kunde
{
#region Eigenschaften
/// <summary>
/// Vorname eines Kundens
/// </summary>
private string Vorname { get; set; }
/// <summary>
/// Nachname eines Kundens
/// </summary>
private ... |
using System;
using Raylib_cs;
namespace RaylibExtendedCS
{
public class Timer
{
private double _startTime;
private double _endTime;
private double _interval;
private readonly bool _repeat;
public Action OnDone;
public double TimeLeft => _endTime - _startTime;
public double Interval
{
get => _i... |
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Abp.Authorization;
namespace test.Roles.Dto
{
[AutoMapFrom(typeof(Permission))]
public class PermissionDto : EntityDto<long>
{
public string Name { get; set; }
public string DisplayName { get; set; }
public string Des... |
using System;
using System.Xml.Linq;
using System.Collections.Generic;
using Urho;
using UrhoSharp.Prefabs.Accessors;
using ScriptInstance = Urho.Portable.ScriptInstance;
using Urho.Portable;
namespace UrhoSharp.Prefabs
{
public partial class ScriptInstancePrefab: AbstractComponentPrefab<ScriptInstance>, IPrefab
... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Xml;
using DSharp.Compiler.CodeModel;
using DSharp.Compiler.CodeModel.Attributes;
using DSharp.Compiler.CodeModel.Expressions;
using DSharp.Compiler.CodeModel.Members;
usi... |
using System;
using System.Reflection;
using UnityEditor.Rendering;
using UnityEngine;
using UnityEngine.Experimental.Rendering;
using UnityEngine.Experimental.Rendering.HDPipeline;
using Object = UnityEngine.Object;
namespace UnityEditor.Experimental.Rendering.HDPipeline
{
partial class HDCameraEditor
{
... |
namespace indice.Edi
{
/// <summary>
/// Enum that specifies a hierarchy. These are the types of containers that can hold values.
/// </summary>
internal enum EdiContainerType
{
/// <summary>
/// Unspecified container
/// </summary>
None = 0,
/// <s... |
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace Spool
{
public partial class DialogDataEditor : Form
{
public List<string> Conditions
{
get
{
List<string> value = new List<string>();
foreach (string i... |
#region COPYRIGHT© 2009-2014 Phillip Clark. All rights reserved.
// For licensing information see License.txt (MIT style licensing).
#endregion
using System;
using System.Dynamic;
using FlitBit.Core.Log;
using Newtonsoft.Json;
namespace FlitBit.Core.Process
{
/// <summary>
/// Base health check object.
///... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace FieldScribeAPI.Infrastructure
{
public class SearchTerm
{
public string Name { get; set; }
public string Operator { get; set; }
public string Value { get; set; }
public b... |
using System;
using System.Net;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
namespace TestServer
{
public class Program
{
public static void Main(string[] args)
{
CreateWebHostBuilder(args).Build().Run();
GetIP4Address();
}
static st... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using inCapsulam.Optimization;
using System.Collections;
using YAMP;
namespace inCapsulam.Optimization.Targets
{
[Serializable()]
public class UserDefinedTarget : BlackBox, ITarget
{
public String expression;
... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using Microsoft.CSharp.RuntimeBinder.Errors;
using Microsoft.CSharp.R... |
using System.Management.Automation;
using Thycotic.RabbitMq.Helper.Logic.ManagementClients.Cli;
namespace Thycotic.RabbitMq.Helper.PSCommands.Management
{
/// <summary>
/// Starts RabbitMq
/// </summary>
/// <para type="synopsis">Starts RabbitMq</para>
/// <para type="description">The Start-Ra... |
using Leftware.Common;
using Leftware.Tasks.Core;
using Leftware.Tasks.Core.TaskParameters;
namespace Leftware.Tasks.Impl.General.Files;
[Descriptor("FileRename - Add prefix or suffix to files in folder")]
internal class RenameAddPrefixSuffixConsoleTask : CommonTaskBase
{
private const string SOURCE = "source";
... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
<div class="navbar navbar-i... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
namespace Azure.Iot.Hub.Service.Models
{
/// <summary> The DigitalTwinInterfaces. </summary>
internal partial class Digit... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.36415
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... |
using GDM.HW7.Interfaces;
using GDM.HW7.Models;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GDM.HW7.Services
{
class FileStorage : IStorage
{
public string Path { get; set; }
public FileStorage... |
@model coderush.Models.ApplicationUser
@inject coderush.Data.ApplicationDbContext Context
@{
UserProfile profile = Context.UserProfile.SingleOrDefault(x => x.ApplicationUserId.Equals(Model.Id));
}
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
... |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Windows.Media;
//using System.Windows.Media.Imaging;
//using DevExpress.XtraScheduler.Native;
//using DevExpress.Mvvm.POCO;
using DevExpress.WinUI.Mvvm.UI.Internal;
using Microsoft.UI;
using Microsoft.UI.Xaml.Media;
usin... |
namespace EAP_Winform
{
partial class Form1
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 f... |
using System.Runtime.InteropServices;
#if NET45
using System.Security;
#endif
namespace Discord.Audio.Sodium
{
internal unsafe static class SecretBox
{
#if NET45
[SuppressUnmanagedCodeSecurity]
#endif
private static class SafeNativeMethods
{
[DllImport("libsodium", EntryPoi... |
// -----------------------------------------------------------------------
// <copyright file="MatchTypeValidator.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
// -----------------------------------------------------------------------
... |
using System;
using System.Text.RegularExpressions;
public static class ScrabbleScore
{
private const string LEVEL_1 = "[AEIOULNRST]";
private const string LEVEL_2 = "[DG]";
private const string LEVEL_3 = "[BCMP]";
private const string LEVEL_4 = "[FHVWY]";
private const string LEVEL_5 = "[K]";
... |
using System;
using System.Data.Entity;
using System.Threading.Tasks;
namespace Backend.Models
{
public interface IDbCursussenContext : IDisposable
{
DbSet<Cursus> Cursussen { get; set; }
DbSet<CursusInstantie> CursusInstanties { get; set; }
int SaveChanges();
Task<int> SaveCha... |
using Xunit;
using System.Globalization;
using static Orlum.Text.Format;
namespace Orlum.Text.Tests.Unit
{
public class FormatTests
{
[Fact]
public void AcronimsWork()
{
var number = 1;
var result = Format.NP($"I have got {number} {number:NP;en;cat;cats}");
... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using NUnit.Framework;
using Nohros.Toolkit.DnsLookup;
namespace Nohros.Test.Toolkit.DnsLookup
{
/// <summary>
/// Summary description for CorrectBehaviour.
/// </summary>
[TestFixture]
public class CorrectBehavi... |
using System.Text.Json.Serialization;
namespace DotNetBungieAPI.Generated.Models.Destiny.Responses;
/// <summary>
/// The response for GetDestinyProfile, with components for character and item-level data.
/// </summary>
public sealed class DestinyProfileResponse
{
/// <summary>
/// Recent, refundable... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace EroNumber.Extensions
{
public static class FileExtensions
{
public static Task CopyAsync(string sourceFileName, string destFileName)
{
... |
@page
@model IdentityServer.Pages.Account.Logout.IndexModel
<div class="logout-page">
<div class="lead">
<h1>Logout</h1>
<p>Would you like to logout of IdentityServer?</p>
</div>
<form asp-page="/Account/Logout/Index">
<input type="hidden" name="logoutId" value="@Model.LogoutId" /... |
using System;
using EIP.Common.Entities.Dtos;
using EIP.Common.Entities.Paging;
using EIP.System.Models.Enums;
namespace EIP.System.Models.Dtos.Identity
{
/// <summary>
/// 用户信息Dto
/// </summary>
public class SystemUserPagingInput : QueryParam, IInputDto
{
/// <summary>
/// 字段权限对应的... |
using System;
namespace Engine
{
/// This event is broadcast whenever there is a collision between
/// two colliders, at least one of which is a trigger.
/// NOTE: At least one of the collidees needs to have a Rigidbody.
public class TriggerEvent : BroadcastEvent<TriggerEvent>
{
public rea... |
using DGP.Genshin.Message;
using Microsoft.Toolkit.Mvvm.Messaging;
using System.Windows;
using System.Windows.Controls;
namespace DGP.Genshin.Control
{
public partial class BlockingView : UserControl, IRecipient<ImageHitBeginMessage>, IRecipient<ImageHitEndMessage>
{
public BlockingView()
{
... |
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Net;
using System.Net.Cache;
using System.Net.Mime;
using System.Security.Cryptography;
using System.Text;
using System.Windows.Forms;
using AutoUpdaterDotNET.Properties;
namespace AutoUpdate... |
namespace CometDustAndIceDistribution_Simulation
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </s... |
// *** 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.AwsN... |
using StackExchange.Redis;
namespace Tangram.Redis
{
public class RedisConnectionManager : IRedisConnectionManager
{
public RedisConnectionManager(string redisConnectionString)
{
Redis = ConnectionMultiplexer.Connect(redisConnectionString);
}
public ConnectionMulti... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Core.Pipeline;
using Azure.ResourceManager.Core... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.