text stringlengths 1 932k |
|---|
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
namespace ImGui.Wpf
{
public static class ImProgressBarExtension
{
public static async Task ProgressBar(this ImGuiWpf imGui, double value, double minimum, double maximum)
{
await imGui.HandleControl<... |
/* ====================================================================
Copyright 2002-2004 Apache Software Foundation
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://ww... |
using Lucene.Net.Support;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Xml;
namespace Lucene.Net.Analysis.Compound.Hyphenation
{
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contr... |
using Rabbit.Kernel;
namespace Rabbit.Web.UI.Navigation
{
/// <summary>
/// 一个抽象的导航提供者。
/// </summary>
public interface INavigationProvider : IDependency
{
/// <summary>
/// 导航菜单名称。
/// </summary>
string MenuName { get; }
/// <summary>
/// 获取导航。
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Azure.Core.Serialization
{
/// <summary>
/// Defines exte... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34014
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... |
using System;
namespace _12.RefactorSpecialNumbers
{
class Program
{
static void Main(string[] args)
{
int number = int.Parse(Console.ReadLine());
for (int i = 1; i <= number; i++)
{
int digit = i;
int sumOfDigits = 0;
... |
/*
* 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 Adventure.GameEngine;
using Adventure.GameEngine.Commands;
using Adventure.GameEngine.Core;
namespace Adventure.Ui.CommandDisplay
{
/// <summary>
/// Interaktionslogik für CommandView.xaml
/// </summary>
public partial class CommandView
{
... |
// --------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// --------------------------------------------------------------------------------------------
using System;
using System.IO;... |
// 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;
using osu.Framework;
using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.Audio.Sample;
using osu.Framework.Graphics;
using osu.F... |
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Wikiled.MachineLearning.Mathematics.Vectors;
using Wikiled.Text.Analysis.Structure;
namespace Wikiled.Text.Analysis.Similarity
{
public class SimilarityDetector : ISimilarityD... |
#if UNITY_2019_3_OR_NEWER
using System.Security.Cryptography;
using UnityEngine;
namespace UnityEditor.Build.Pipeline.Utilities
{
public unsafe sealed class SpookyHash : HashAlgorithm
{
byte[] m_Hash;
SpookyHash()
{
Initialize();
}
public new static Spooky... |
// *****************************************************************************
//
// (c) Crownwood Consulting Limited 2002-2003
// All rights reserved. The software and associated documentation
// supplied hereunder are the proprietary information of Crownwood Consulting
// Limited, Crownwood, Bracknell, Berksh... |
using System;
using System.Linq;
using System.Net;
using Flurl.Http.Testing;
namespace Draft.Tests
{
public static partial class HttpTestExtensions
{
public static HttpTest RespondWith(this HttpTest This, HttpStatusCode code, string body)
{
return This.RespondWith(body, (int) cod... |
using BabylonExport.Entities;
using System;
using System.Diagnostics;
using System.IO;
namespace Utilities
{
class GLTFPipelineUtilities
{
public static bool IsGLTFPipelineInstalled()
{
try
{
Process gltfPipeline = new Process();
gltfPipel... |
@using HuntingModel.Localization
@using HuntingModel.Enumeration
@model HuntingModel.ViewModel.QuestionnaireModels.QuestionnaireListModel
@{
ViewBag.Title = QuestionnaireRes.PAGE_TITLE_LIST;
}
<h2>@QuestionnaireRes.PAGE_TITLE_LIST</h2>
<h4>@QuestionnaireRes.LABEL_LIST_INFO</h4>
<hr />
<div class="row">
<div ... |
using System.Globalization;
using System.Runtime.ExceptionServices;
using AngleSharp.Dom;
using AngleSharp.Html.Dom;
using AngleSharpWrappers;
using Bunit.Rendering;
namespace Bunit;
/// <summary>
/// General event dispatch helper extension methods.
/// </summary>
public static class TriggerEventDispatchExtensions
{
... |
using Verse;
namespace Nexomon;
public class NexomonShipLootUtility : Def
{
private int common;
private int rare;
private int uncommon;
public int GetRarityCount(NexomonShipLootRarity rarity)
{
switch (rarity)
{
case NexomonShipLootRarity.Common:
retur... |
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("In... |
using System;
using System.Text;
namespace LumiSoft.Net.IMAP
{
// Token: 0x02000201 RID: 513
public class IMAP_r_u_LSub : IMAP_r_u
{
// Token: 0x06001228 RID: 4648 RVA: 0x0006D9C8 File Offset: 0x0006C9C8
public IMAP_r_u_LSub(string folder, char delimiter, string[] attributes)
{
bool flag = folder == null;... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Buffers;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Net.Http.HPack;
using Xunit;
#if KESTREL
using Microsoft.AspNetCore.Server.... |
using System;
using System.Net.Http.Headers;
using SaneHttpClient.Abstractions;
using Xunit;
namespace SaneHttpClient.Tests
{
public class HttpClientBuilderTests
{
[Fact]
public void HttpClientBuilder_Builder_ReturnsExpectedClient()
{
// Arrange
var testTimeout ... |
/*
* Exchange Web Services Managed API
*
* Copyright (c) Microsoft Corporation
* All rights reserved.
*
* MIT License
*
* 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 restr... |
using Microsoft.EntityFrameworkCore.Migrations;
using System;
using System.Collections.Generic;
namespace SmartValley.Data.SQL.Migrations
{
public partial class ExpertApplicationApplyDate : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder... |
using Benriya.Clients.Wasm.Components.Classes;
using Benriya.Share.Models.CoreTags;
using Benriya.Share.SearchModels;
using Benriya.Utils.Extensions;
using Microsoft.AspNetCore.Components.Routing;
using System;
using System.Threading.Tasks;
namespace Benriya.Clients.Wasm.Backend.Pages.TagsContent
{
public class T... |
using HandlerOrdering;
using NServiceBus;
class Usage
{
Usage(EndpointConfiguration configuration)
{
#region Usage
configuration.ApplyInterfaceHandlerOrdering();
#endregion
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace cosmosdb
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*path... |
/*
* Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty
*/
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
// Image 46: Assembly-CSharp.dll - Assembly: Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - Types 4339-9572
na... |
namespace Skender.Stock.Indicators;
public static partial class Indicator
{
// VOLUME WEIGHTED AVERAGE PRICE
/// <include file='./info.xml' path='indicator/*' />
///
public static IEnumerable<VwapResult> GetVwap<TQuote>(
this IEnumerable<TQuote> quotes,
DateTime? startDate = null)
... |
// <auto-generated />
using System;
using DashReportViewer.Context;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namesp... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Bitcraft.StateMachineTool.CodeGenerators.CSharp
{
public static class CSharpConstants
{
public static readonly string StateMachineNamespace = "Bitcraft.StateMachine";
}
} |
#pragma warning disable 108 // new keyword hiding
#pragma warning disable 114 // new keyword hiding
namespace Windows.Media
{
#if __ANDROID__ || __IOS__ || NET46 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
#endif
public partial class AudioFrame : global::Windows.Media.IMediaFrame,global::System.IDisposab... |
using System;
namespace CorePool.Persistence.Model
{
public class Share
{
public string PoolId { get; set; }
public ulong BlockHeight { get; set; }
public string Miner { get; set; }
public string Worker { get; set; }
public string UserAgent { get; set; }
public d... |
using eSDK_OBS_API.OBS.Util;
/*
* Copyright 2010-2013 OBS.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
*
*
*
* or in the "licen... |
/*
* 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 Microsoft.Management.Infrastructure;
using Microsoft.Management.Infrastructure.Options;
using SimCim.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Linq;
namespace SimCim.Root.Virtualization.V2
{
public struct MsvmSystemTerminalConnectionAssociation
{
... |
using System;
using System.Collections.Generic;
using System.Text;
using Discord;
using DiscordHackWeek2019.Commands;
namespace DiscordHackWeek2019.Helpers
{
public static class EmbedHelper
{
public static List<EmbedBuilder> MakeEmbeds(BotCommandContext context, List<string> contents, string label, in... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Payroll_Management_System
{
public partial class dashboard : Form
{
public dashboard()
{
... |
/*
* 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... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Security.Cryptography;
using System.Text;
using Newtonsoft.Json;
namespace Emzi0767.Devi.Crypto
{
internal sealed class KeyManager
{
private static Encoding Encoding { get; }
private Dictionary<string, byte[]> Keys ... |
// Copyright (c) 2020-2022 百小僧, Baiqian Co.,Ltd.
// Furion is licensed under Mulan PSL v2.
// You can use this software according to the terms and conditions of the Mulan PSL v2.
// You may obtain a copy of Mulan PSL v2 at:
// https://gitee.com/dotnetchina/Furion/blob/master/LICENSE
// THIS SOFTWARE IS P... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Web;
using System.Web.Http;
using Autofac;
using Autofac.Integration.WebApi;
using DataReader.BusinessLogic;
using DataReader.Repository;
namespace DataReader.Utils
{
/// <summary>
/// Initializes service-... |
using System;
using System.Drawing;
using MonoMac.Foundation;
using MonoMac.AppKit;
using MonoMac.ObjCRuntime;
namespace Rulers
{
public partial class AppDelegate : NSApplicationDelegate
{
MyWindowController myWindowController;
public AppDelegate ()
{
}
public override void FinishedLaunching (NSObject no... |
@using dbStuff.Models
@model LoginViewModel
@{
ViewBag.Title = "Log in";
}
<h2>@ViewBag.Title.</h2>
<div class="row">
<div class="col-md-8">
<section id="loginForm">
@using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-hori... |
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace Wrapper_API
{
public class Startup
{
public Startup(IConfiguration configuration)
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... |
// Copyright (c) 2020 Flucto Team and others. Licensed under the MIT Licence.
// 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.
namespace flucto.Input
{
public struct JoystickAxis
{
public readonly int A... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
using System;
using System.Net;
using System.Runtime.Serialization;
namespace Application.Exceptions
{
[Serializable]
public class NotValidStreamKeyException : CustomBaseException
{
public NotValidStreamKeyException(string ... |
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Reclaimed.API.Context;
namespace Reclaimed.API.Migrations
{
[DbContext(typ... |
/*
Copyright 2021 Esri
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, sof... |
@{
ViewData["Title"] = "Home Page";
}
<div class="text-center">
<h1 class="display-4">Traffic Light Control</h1>
<form method="POST" action="/home/index">
<div class="form-group">
<label for="program" class="form-control is-required">Select Program</label>
<select name="pro... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Text.Json;
using Azure.Core;
namespace Azure.Messaging.EventGrid.Models
{
internal partial class EventGridEventInternal : IUtf8JsonSerializable
{
... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Internal.Runtime.CompilerServices;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.R... |
using Confluent.Kafka;
using Confluent.Kafka.Serialization;
using MQTTnet;
using MQTTnet.Protocol;
using MQTTnet.Server;
using Newtonsoft.Json;
using RedisUsage.CqrsCore.Ef;
using RedisUsage.CqrsCore.Extensions;
using RedisUsage.CqrsCore.Mqtt;
using System;
using System.Collections.Generic;
using System.Diagnostics;
u... |
using System;
using System.Threading;
namespace CoChain.Nodal
{
/// <summary>
/// A ledger record in the distributed ledger system.
/// </summary>
public class Ldgr : IData, IKeyable<int>
{
public static readonly Ldgr Empty = new Ldgr();
//
public const short
T... |
using System;
using System.Collections;
using NUnit.Framework;
using UnityEngine;
using UnityEngine.TestTools;
using UnityEvents.Internal;
namespace UnityEvents.Test
{
public class TestGlobalUIEventSystemJob
{
[SetUp]
public void Setup()
{
Time.timeScale = 0;
}
[TearDown]
public void TearDown()
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using Mono.Addins;
using SharpIRC.API;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the infor... |
using System.Diagnostics;
using Mono.Cecil;
namespace Mono.Linker {
[DebuggerDisplay ("{Override}")]
public class OverrideInformation {
public readonly MethodDefinition Base;
public readonly MethodDefinition Override;
public readonly InterfaceImplementation MatchingInterfaceImplementation;
public OverrideIn... |
namespace FluentIL
{
using System;
using System.Reflection.Emit;
/// <summary>
/// Defines the parameter builder interface.
/// </summary>
public interface IParameterBuilder
{
/// <summary>
/// Specifies the parameters type.
/// </summary>
/// <typeparam name... |
// 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.md file in the project root for more information.
using System;
using System.Threading.Tasks;
using Microsoft.VisualStudio.ProjectSystem.Debug;
using Microsoft.VisualSt... |
using Microsoft.Win32;
using System;
namespace BreakingApp.Tweaks.Personalization
{
internal class Widgets : TweaksBase
{
private static readonly ErrorHelper logger = ErrorHelper.Instance;
private const string keyName = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Ad... |
/*
* 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.Windows.Forms;
namespace Lamedal_UIWinForms.UControl.Forms.Dialog
{
public partial class Form_ClassDialog3 : Form
{
public Form_ClassDialog3()
{
InitializeComponent();
}
}
} |
using InvincibleEngine.CameraSystem;
using UnityEngine;
using UnityEngine.UI;
namespace InvincibleEngine.UnitFramework.Components {
[RequireComponent(typeof(SpriteRenderer))]
public class UnitScreenSprite : MonoBehaviour {
// Unity Inspector
[SerializeField] private int _outlineRadius;
... |
using UnityEngine;
using Unity.Services.Core.Configuration.Internal;
namespace Unity.Services.Core.Configuration
{
class CloudProjectId : ICloudProjectId
{
public string GetCloudProjectId()
{
return Application.cloudProjectId;
}
}
} |
using System.ComponentModel.DataAnnotations;
namespace AwesomeBooks.Contracts
{
public class UpdateCategory
{
public int Id { get; set; }
[Required(AllowEmptyStrings = false)]
[MaxLength(ContractConstants.NameMaxLength)]
public string Name { get; set; }
[MaxLe... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using Verse;
namespace Fish
{
public class FixedTexture
{
public static RenderTexture Create()
{
var tex = new RenderTexture(textureResolution, tex... |
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /wxa/change_visitstatus 接口的请求。</para>
/// </summary>
public class WxaChangeVisitStatusRequest : WechatApiRequest
{
/// <summary>
/// 获取或设置操作类型。
/// <para>默认值:open</para>
/// </summar... |
/**
* Copyright 2015 Canada Health Infoway, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
// Developed by Tom Kail at Inkle
// Released under the MIT Licence as held at https://opensource.org/licenses/MIT
// Must be placed within a folder named "Editor"
using System;
using System.Reflection;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using Object = Un... |
namespace Augustus.Domain.Objects
{
public class ReportWorkDoneItem
{
public Account Account { get; set; }
public Invoice Invoice { get; set; }
public Allocation Allocation { get; set; }
public WorkDoneItem WorkDoneItem { get; set; }
}
} |
using Hevadea.Framework.Extension;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace Hevadea.Framework.Graphic.Particles
{
public class Color2Particle : Particle
{
private float maxLife = -1;
public Color Color { get; set; } = Color.Red;
public Color Fad... |
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection;
namespace CodeGenerator.Infra.Common.Helper.Excel
{
internal class ExcelUtil
{
public static Dictionary<PropertyInfo, ExcelTitleAttribute> GetExportAttrDict<T>(ICollection<string>... |
using System;
using System.Net;
using FluentFTP;
using System.Threading;
namespace Examples {
public static class BeginConnectExample {
static ManualResetEvent m_reset = new ManualResetEvent(false);
public static void BeginConnect() {
// The using statement here is OK _only_ because m... |
using System;
using System.Threading;
using System.Threading.Tasks;
using FluentAssertions;
using Polly;
using Polly.Contrib.Simmy.Specs.Helpers;
using Polly.Contrib.Simmy.Utilities;
using Xunit;
namespace Polly.Contrib.Simmy.Specs.Fault
{
[Collection(Constants.AmbientContextDependentTestCollection)]
public c... |
using System;
namespace Gizza.Extensions
{
public static partial class Extensions
{
/// <summary>
/// A T extension method that query if '@this' is null.
/// </summary>
/// <param name="this">The @this to act on.</param>
/// <returns>true if null, false if not.</retu... |
/*
Original author: Dieter Vandroemme, dev at Sizing Servers Lab (https://www.sizingservers.be) @ University College of West-Flanders, Department GKG
Written in 2015
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to de... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MongoDB;
using MongoDB.Driver;
namespace MongoDBDemo
{
class Program
{
static void Main(string[] args)
{
MongoDBHelper client = new MongoDBHelper("localhost", "2... |
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Documents;
using Microsoft.VisualStudio.Lan... |
namespace SqlStreamStore
{
using System;
using System.Threading.Tasks;
using Npgsql;
using SqlStreamStore.Infrastructure;
using SqlStreamStore.TestUtils.Postgres;
public class PostgresStreamStoreFixture : IStreamStoreFixture
{
private readonly Action _onDispose;
private bool... |
using System;
using System.Collections.Generic;
namespace Helios.Architecture.Memento.PostState
{
// handles mutable accounts
class PostState
{
private readonly State state;
// accounts that have been modified
private readonly Dictionary<string, Account> accounts = new Dictionary<s... |
@using System.Web.Http
@using SpontimeRegister.Areas.HelpPage.Models
@model HelpPageApiModel
@{
var description = Model.ApiDescription;
ViewBag.Title = description.HttpMethod.Method + " " + description.RelativePath;
}
<link type="text/css" href="~/Areas/HelpPage/HelpPage.css" rel="stylesheet" />
<div id="body... |
//------------------------------------------------------------------------------
// <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.
// </auto-generated>
//------------------------------------------... |
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
using HRM.Models;
using HRM.Repository;
namespace HRM.Controllers
{
public class EmployeesController : Controller
{
private readonly... |
using System;
using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
using VRC.Udon;
using VRC.Udon.Common.Interfaces;
namespace UdonToolkit {
[CustomName("Object Boundary Trigger")]
[HelpMessage("This component tracks if objects cross ALL or ANY of the boundaries specified, " +
"useful for checking... |
/*
* Copyright 2005 OpenXRI Foundation
* Subsequently ported and altered by Andrew Arnott and Troels Thomsen
*
* 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.... |
/* Generate certificate without a CSR. Not recommended as the private key isn't generated on the device */
/*using Edison.DeviceProvisioning.Config;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using System;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certific... |
//
// Copyright (c) 2017 Geri Borbás http://www.twitter.com/_eppz
//
// 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, including without limitation the rights to use, copy, ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LogUploader.Data.RaidOrgaPlus
{
class RaidOrgaPlusCacheItem
{
public string AccountName { get; set; }
public long AccountID { get; set; }
public RaidOrgaPlusCa... |
/*
* Test generator for runtime invoke tests.
*/
using System;
using System.IO;
public class Tests
{
public static void Main (String[] args) {
/* There are multiple approaches, we generate c# directly */
using (var w = new StreamWriter (Console.OpenStandardOutput ())) {
w.WriteLine ("using System;");
w.W... |
using System;
using System.Collections.Generic;
using Microsoft.Extensions.Logging;
namespace liblinear {
class l2r_lr_fun : IFunction
{
readonly double[] C;
readonly double[] z;
readonly double[] D;
readonly Problem prob;
private ILogger<l2r_lr_fun> _logger;
public l2r_lr_fun(Pro... |
using Abp.Application.Services.Dto;
namespace GSoft.AbpZeroTemplate.Sessions.Dto
{
public class EditionInfoDto : EntityDto
{
public string DisplayName { get; set; }
public int? TrialDayCount { get; set; }
public decimal? MonthlyPrice { get; set; }
public decimal? AnnualPrice ... |
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
namespace System.ServiceModel.Configuration
{
using System.Configuration;
using System.... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Reflection;
using System.Xml.Serialization;
namespace DotNetHelper_Serializer.DataSource.Xml.Contracts
{
internal sealed class XmlPropertyAttributes
{
public List<XmlElementAttribute> Elements { get; private set;... |
using JuCheap.Core.Infrastructure;
using JuCheap.Core.Models;
using JuCheap.Core.Models.Filters;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace JuCheap.Core.Interfaces
{
public interface ICameraPathService
{
//增
Task<string> AddAsync... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace PALAST
{
public partial class UpdateNotificationDialog : Form
{
private bool _CanClose = true;
priva... |
@using RestfulApi.Areas.HelpPage
@model ImageSample
<img src="@Model.Src" /> |
using Domain.General;
using Service.General.Dto;
using System;
using Vstack.Services.Mapper.General;
using Vstack.Services.Service.Converters;
using Vstack.Services.Service.General;
using Vstack.Services.Service.Services;
namespace Service.General.Services
{
public abstract class BaseCompanyService<TDto, TDmn, TM... |
using Pregunta.Me.Core.Base;
using Pregunta.Me.Core.ValueObjects;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mail;
using System.Text;
using System.Threading.Tasks;
namespace Pregunta.Me.Core.Administration
{
public class ExpertEdit : Entity
{
public static Expe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.