content stringlengths 23 1.05M |
|---|
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.SqlTools.ResourceProvider.Core.Authentication;
namespace Microsoft.SqlTools.ResourceProvider.Core.Firewall
{
/// <summary>
/// Includes ... |
using System;
using System.Collections.Generic;
using UnityEngine;
namespace Common.Data
{
[Serializable]
public class TalentsTable
{
public string name;
private Dictionary<int, TalentsTableItem> dics = null;
private List<TalentsTableItem> items = new List<TalentsTableItem>();
public List<TalentsTableItem... |
namespace IIASA.FloodCitiSense.DataTypes.Dtos
{
public class GetAllCitiesForExcelInput
{
public string Filter { get; set; }
public string NameFilter { get; set; }
public string UserNameFilter { get; set; }
}
} |
using System;
using System.Collections.Generic;
using System.Text;
namespace Compiler.Binary.LinuxELF
{
public class Sections
{
private Dictionary<string, Section> sections = new Dictionary<string, Section>();
private StringTable stringTable;
private bool is64bit;
public int Co... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
namespace Microsoft.MixedReality.Toolkit.UI
{
/// <summary>
/// A simple property with name, tooltip, value and type, used for serialization
/// The cust... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Linq;
namespace Library
{
public partial class MaintainBooksForm : Library.ParentForm
{
LibraryEntity context = new LibraryE... |
using System;
using System.Threading.Tasks;
using KuzzleSdk;
using KuzzleSdk.API;
using KuzzleSdk.Exceptions;
using Moq;
using Newtonsoft.Json.Linq;
namespace Kuzzle.Tests.API {
public class KuzzleApiMock {
public Mock<IKuzzleApi> Mock { get; }
public IKuzzleApi MockedObject {
get { return Mock.Object... |
using System;
namespace _09.ReverseCharacters
{
class ReverseCharacters
{
static void Main(string[] args)
{
char a = Convert.ToChar(Console.ReadLine());
char b = Convert.ToChar(Console.ReadLine());
char c = Convert.ToChar(Console.ReadLine());
Con... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ElasticLogging
{
public interface ILogger : IDisposable, IAsyncDisposable
{
void Debug(string message);
Task DebugAsync(string message);
void Error(Exception ex... |
using System;
using ProcGenSharp;
class Demo
{
static void Main(string[] args)
{
Random rng = new Random();
CaveMap cave = new CaveMap(25, 70);
Console.WriteLine("A Cave Map:");
Console.WriteLine(cave);
var rooms = cave.GetFloodRooms();
Console.WriteLine($"... |
namespace Shadowsocks.Crypto.AEAD
{
public class Aes256GcmShadowsocksCrypto : Aes128GcmShadowsocksCrypto
{
public override int KeyLength => 32;
public override int SaltLength => 32;
public Aes256GcmShadowsocksCrypto(string password) : base(password)
{
}
}
}
|
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
namespace Horker.Canvas
{
public class BrowserHandler: GridHandlerBase
{
public override Type[] GetPreferredTypes()
{
return new Type[] {};
}
protected override string GetGridPan... |
using System;
using System.Collections;
using System.Windows;
using UnityEngine;
namespace HotelAIS
{
public class Login
{
public string login, pass, role;
private string feedBack;
public void Logining()
{
MessageBox.Show(feedBack);
}
public IEnumer... |
using System;
using Microsoft.Extensions.DependencyInjection;
using HotChocolate;
using HotChocolate.Execution.Configuration;
namespace Microsoft.Extensions.DependencyInjection
{
/// <summary>
/// Provides utility methods to setup dependency injection.
/// </summary>
public static class HotChocolateFil... |
//-----------------------------------------------------------------------
// <copyright file="ApplicationConfiguration.cs" company="Visual JSON Editor">
// Copyright (c) Rico Suter. All rights reserved.
// </copyright>
// <license>http://visualjsoneditor.codeplex.com/license</license>
// <author>Rico Suter, mail@r... |
using System;
using System.Collections.Generic;
using Cirrious.MvvmCross.ViewModels;
namespace bstrkr.mvvm.viewmodels
{
public class BusTrackerViewModelLocator : MvxDefaultViewModelLocator
{
private readonly IDictionary<Type, IMvxViewModel> _singletons = new Dictionary<Type, IMvxViewModel>
{
... |
// Animancer // Copyright 2019 Kybernetik //
#if UNITY_EDITOR
#pragma warning disable IDE0018 // Inline variable declaration.
#pragma warning disable IDE0031 // Use null propagation.
using System;
using System.Collections.Generic;
using System.Reflection;
using UnityEditor;
using UnityEngine;
namespace Animancer.Ed... |
using Hangfire;
using Hangfire.MemoryStorage;
using Microsoft.Extensions.DependencyInjection;
namespace Topocat.API.StartupExtensions
{
public static class RegisterHangfireExtensions
{
public static void RegisterHangfire(this IServiceCollection services)
{
services.AddHangfire(conf... |
namespace Cook
{
using System;
using CookingTools;
public class StartingPoint
{
public static void Main()
{
Chef someChef = new Chef();
Bowl newBowl = someChef.Cook();
Console.WriteLine(newBowl);
}
}
}
|
using Microsoft.CodeAnalysis;
using System.Threading;
using System.Threading.Tasks;
namespace CodeCracker.CSharp.Design.InconsistentAccessibility
{
public interface InconsistentAccessibilityInfoProvider
{
Task<InconsistentAccessibilityInfo> GetInconsistentAccessibilityInfoAsync(Document document, Diag... |
using System;
using Microsoft.Build.Framework;
namespace Xamarin.Android.BuildTools.PrepTasks
{
public sealed class GitCommitTime : Git
{
[Output]
public string Time { get; set; }
protected override bool LogTaskMessages {
get { return false; }
}
public GitCommitTime ()
{
}
public override boo... |
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;
using TeamBuilder.Models;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace TeamBuilder.Data.EntityConfiguration
{
public class InvitationConfiguration : IEntityTypeConfiguration<Invitation>
... |
using System;
using System.Collections.Generic;
namespace YC.Micro.Configuration
{
public class TenantSetting
{
/// <summary>
///
/// </summary>
public bool MultiTnancy { get; set; }
/// <summary>
///
/// </summary>
public int DefaultTenantId {... |
// 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 Xunit;
using Enumerable = Tutorial.LinqToObjects.EnumerableEx... |
using System.Collections.Generic;
using System.Linq;
using YamlDotNet.Serialization.NamingConventions;
namespace LauPas.Common
{
/// <summary>
/// Extensions
/// </summary>
public static class Extensions
{
/// <summary>
/// Search keys in a list with several cases
/// </summ... |
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Media;
using V3.Input;
namespace V3.Screens
{
/// <summary>
/// Default implementation of IScreenManager.
/// </summary>
// ReSha... |
namespace AresSampleDevicesPlugin.SampleDevice.UI.Config
{
/// <summary>
/// Interaction logic for MfcUserConfigView.xaml
/// </summary>
public partial class SampleDeviceUserConfigView
{
public SampleDeviceUserConfigView()
{
InitializeComponent();
}
}
}
|
using ApiBox.Api.gRPC;
using Microsoft.AspNetCore.Builder;
namespace Microsoft.AspNetCore.Routing
{
public static partial class ODataModelBuilderExtensions
{
public static void MapGreeterGRPCService(this IEndpointRouteBuilder endpoints)
{
endpoints.MapGrpcService<GreeterService>();... |
using Orleans;
using Orleans.Concurrency;
using Orleans.Runtime;
using System;
using System.Linq;
using System.Threading.Tasks;
namespace BuildNRun.Model {
[Serializable]
public class AccountModel {
public AccountModel()
{
this.Name=string.Empty;
}
public Guid User... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public struct FingerKeyInteraction
{
//Variable declaration
//Note: I'm explicitly declaring them as public, but they are public by default. You can use private if you choose.
public GameObject key;
public GameObject finger... |
/*
* Created by SharpDevelop.
* User: User
* Date: 3.10.2019 г.
* Time: 9:14
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using System.IO;
namespace Tales
{
/// <summary>
... |
using System.Text.Json.Serialization;
namespace TerraDotnet.TerraFcd.Messages.Wasm;
public record WasmExecuteMsgExecuteSwapOperationsOperationTerraSwap
{
[JsonPropertyName("ask_asset_info")]
public WasmExecuteMessageAssetInfo AskAssetInfo { get; set; }
[JsonPropertyName("offer_asset_info")]
publi... |
using Microsoft.Graph;
using System;
using System.Collections.Generic;
namespace AspNetCoreMicrosoftGraph.Server.Services
{
public class TeamsService
{
public OnlineMeeting CreateTeamsMeeting(
string meeting,
DateTimeOffset begin,
DateTimeOffset end)
... |
namespace BorderConstrol
{
using System;
using System.Collections.Generic;
using System.Text;
public abstract class LivingCreature : IBirthable
{
public LivingCreature(string name, string birthdate)
{
this.Name = name;
this.Birthdate = birthdate;
}
... |
using System.Collections.Generic;
using RealWorldRest.Common.Data.Entities;
namespace RealWorldRest.Common.Data {
public interface IDatabase {
IEnumerable<Profile> ListProfiles();
int CountProfiles();
void CreateProfile(Profile profile);
Profile LoadProfile(string username);
IEnumerable<Profile>... |
using UnityEngine;
using UnityEngine.Events;
[CreateAssetMenu(fileName = "SeatChannelSO", menuName = "Event Channel/Seat Channel")]
public class SeatChannelSO : ScriptableObject
{
public event UnityAction<CustomerController> SeatFull = delegate { };
public void OnSeatFull(CustomerController customer)
{
... |
using System;
using System.Collections.Generic;
namespace TestSample.GenericTest
{
class Foo<TBar, TBaz> { }
abstract class Bar<T>
{
T bang;
public abstract Bar<T> Self();
public abstract Bar<string> SelfString();
}
abstract class Baz
{
... |
// -------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
// -----------------------------------------------------------... |
//-----------------------------------------------------------------------------
// <copyright file="UnhandledExceptionHandler.cs" company="WheelMUD Development Team">
// Copyright (c) WheelMUD Development Team. See LICENSE.txt. This file is
// subject to the Microsoft Public License. All other rights reserved.... |
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Xamarin.Forms;
using Pomodoro.Models;
namespace Pomodoro.Views
{
public partial class NotificationPage : ContentPage
{
public NotificationPage()
{
InitializeComponent();
Title =... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Renci.SshNet.Common;
using Renci.SshNet.Connection;
using Renci.SshNet.Tests.Common;
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
namespace Renci.SshNet.Tests.Classes.Connection
{
[TestClass]
public class ... |
@{
Layout = "_ColumnsOne";
//title
NopHtml.AddTitleParts(T("PageTitle.PageNotFound").Text);
//page class
NopHtml.AppendPageCssClassParts("html-not-found-page");
}
<div class="page not-found-page">
<div class="page-title">
<h1>@T("PageTitle.PageNotFound")</h1>
</div>
<div class=... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// <lang:using>
using ComLib.Lang.Core;
using ComLib.Lang.AST;
using ComLib.Lang.Parsing;
// </lang:using>
namespace ComLib.Lang.Plugins
{
/* *************************************************************************
<doc:e... |
using QuicNet.Connections;
using QuicNet.Streams;
namespace QuicNet.Events
{
public delegate void ClientConnectedEvent(QuicConnection connection);
public delegate void StreamOpenedEvent(QuicStream stream);
public delegate void StreamDataReceivedEvent(QuicStream stream, byte[] data);
public delegate vo... |
using MessageBus.Abstractions;
using System.Threading.Tasks;
namespace MessageBus.Microsoft.ServiceBus.Tests.Unit.Utilities
{
public interface ITestHandler
{
Task MessageHandler(MessageReceivedEventArgs args);
Task ErrorMessageHandler(MessageErrorReceivedEventArgs arg);
}
}
|
using System.Diagnostics.CodeAnalysis;
using System.Text.Json;
using CleanArchitecture.Scaffolder.Constants;
using CleanArchitecture.Scaffolder.Factories;
using CleanArchitecture.Scaffolder.Json;
using CleanArchitecture.Scaffolder.Settings;
using Spectre.Console;
using Spectre.Console.Cli;
namespace CleanArchitecture.... |
#if XUNIT_NULLABLE
#nullable enable
#endif
using System;
using System.Globalization;
namespace Xunit.Sdk
{
/// <summary>
/// Exception thrown when the collection did not contain exactly one element.
/// </summary>
#if XUNIT_VISIBILITY_INTERNAL
internal
#else
public
#endif
class SingleException : XunitException... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
namespace Microsoft.Psi.Visualization.Windows
{
using System.ComponentModel;
using System.Windows;
/// <summary>
/// Interaction logic for ProgressWindow.xaml.
/// </summary>
public partial class P... |
using System;
using System.Collections.Generic;
namespace Exceptionless.Storage {
public interface IObjectStorage : IDisposable {
T GetObject<T>(string path) where T : class;
ObjectInfo GetObjectInfo(string path);
bool Exists(string path);
bool SaveObject<T>(string path, T value) w... |
using Borg.Framework;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using System;
using System.Collections;
using System.Collections.Generic;
namespace Borg.Platform.Dispatch.NetCore
{
public class ServiceFactory
{
private readonly ILogger logger;
public... |
using System.Linq;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Fantasy.Framework2D;
using Fantasy.Game.Actors;
namespace Fantasy.Game
{
public class World
{
Microsoft.Xna.Framework.Game _game;
List<Actor> _creatures;
public Area CurrentArea {
get;... |
namespace SimpleBehaviour
{
public class Action : INode
{
public delegate TreeStatusEnum TickHandler();
private TickHandler _tick;
public Action(TickHandler t)
{
_tick = t;
}
public TreeStatusEnum Tick()
{
return _tick();
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CodeSnippets.IdentityCenter.Models
{
public class ProcessConsentResult
{
public string RedirectUrl { get; set; }
public bool IsRedirect => RedirectUrl != null;
public ConsentViewM... |
using System;
using System.Collections.Generic;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using rhoruntime;
<%... |
using System.Collections.Generic;
using System.Collections;
namespace Task_4
{
class MyList<T> : IEnumerable<T> //Пользовательская реализация коллекции список
{
T[] array = null; //Создае массив элементов типа T
public MyList() //Конструктор по умолчанию
{
array = new T[0]... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using AdminPanel;
using AdminPanel.Models;
using AutoMapper;
using AdminPanel.ViewModels.Users;
using AutoMappe... |
using System;
using System.Collections.Generic;
using System.Text;
namespace LibNurirobotBase.Interface
{
/// <summary>
/// 시리얼 로그
/// </summary>
public interface IEventSerialLog : IDisposable
{
/// <summary>
/// 로그 추가
/// </summary>
/// <param name="arg">송수신 데이터</pa... |
//---------------------------------------------------------------------
// <copyright file="BufferingXmlReader.cs" company="Microsoft">
// Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
// </copyright>
//----------------------------------... |
//--------------------------------
// G-Audio
// Copyright © 2014 Gregorio Zanon
//--------------------------------
using UnityEngine;
using System.Collections;
namespace GAudio
{
/// <summary>
/// Component for caching a stream to memory.
/// Multichannel streams will be cached in seperate
/// mono caches. S... |
using Xunit;
using Assert = CronExpressionDescriptor.Test.Support.AssertExtensions;
namespace CronExpressionDescriptor.Test
{
/// <summary>
/// Tests for Finnish translation
/// </summary>
public class TestFormatsFI : Support.BaseTestFormats
{
protected override string GetLocale()
{... |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace CodegenCS.InputModels
{
/// <summary>
/// JSON-based Input Models provide information to be used in Templates (generators)
/// </summary>
public interface IJsonInputModel : IInputModel
{
///... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Watchdog.ProxyListener.Singletons.Logging
{
public enum LogSeverity
{
CLI,
FATAL,
ERROR,
WARN,
INFO,
DEBUG,
STACK
}
pub... |
using System;
using System.Collections.Generic;
using System.Linq;
public class Program
{
public static void Main()
{
int num1 = int.Parse(Console.ReadLine());
int num2 = int.Parse(Console.ReadLine());
int num3 = num2;
num2 = num1;
num1 = num3;
Console.WriteLin... |
using System.Runtime.CompilerServices;
namespace System.Collections
{
[ScriptIgnoreNamespace]
[ScriptImport]
public sealed class DictionaryEntry
{
internal DictionaryEntry() { }
[ScriptField]
public extern object Key { get; }
[ScriptField]
public extern object... |
using System;
using System.Collections;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Diagnostics;
using System.Web.UI;
using System.Web.UI.Design;
using System.Web.UI.Design.WebControls;
using System.Web.UI.WebControls;
using SageCRM.AspNet;
namespace SageCRM.AspNet.Design
... |
@{
ViewBag.Title = "ChangePwd";
Layout = "~/Views/Shared/_adminLTELayout.cshtml";
}
<div class="container-fluid">
<div class="row">
<div class="col-lg-4 col-xs4 col-md-4">
<div class="input-group">
<input type="Password" id="Password" class="form-control" placeholder=... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NetworkCommsDotNet.Connections;
using System.Net;
using NetworkCommsDotNet.Connections.TCP;
using NetworkCommsDotNet;
namespace P2PHelper.TCP
{
public class TCPTraversal
{
}
}
|
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
namespace Microsoft.Zelig.CodeGeneration.UnitTest
{
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using Microsoft.Zelig.MetaData;
using Importer = Microsoft.Zelig.MetaDat... |
using System;
using Bolt.Metadata;
namespace Bolt.Server
{
public class ActionResolver : IActionResolver
{
public ActionMetadata Resolve(ContractMetadata contract, ReadOnlySpan<char> actionName)
{
if (contract.Session.InitSession.IsMatch(actionName))
{
r... |
using De.Osthus.Ambeth.Annotation;
namespace De.Osthus.Ambeth.Xml.Test.Transfer
{
[XmlType(Name = "IOrderService")]
public interface IOrderService
{
}
} |
namespace Eklee.Azure.Functions.Http
{
public interface IJwtTokenValidator
{
bool Validate();
}
}
|
using RoR2;
using RoR2.CharacterAI;
using System.Runtime.CompilerServices;
using UnityEngine;
namespace RiskyMod.Drones
{
public class DroneTargeting
{
public static bool enabled = true;
//Drone targeting fixes from https://github.com/William758/ZetTweaks/blob/main/GameplayModule.cs
pu... |
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace Fluxor.DependencyInjection.InfoFactories
{
internal static class FeatureClassInfoFactory
{
internal static FeatureClassInfo[] Create(
IServiceCollection services... |
using Newtonsoft.Json;
using System;
namespace Vault.Models.Secret.Transit
{
public class InfoData
{
[JsonProperty("time")]
public DateTime Time { get; set; }
[JsonProperty("version")]
public int Version { get; set; }
}
}
|
using System;
namespace ENet.Managed
{
public abstract class ENetAllocator : IDisposable
{
~ENetAllocator() => Dispose(false);
public abstract IntPtr Alloc(int size);
public abstract void Free(IntPtr ptr);
protected virtual void Dispose(bool disposing) { }
public voi... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR.iOS;
public class ARKit_placeme : MonoBehaviour {
public GameObject collBallPrefab;
private GameObject collBallGO;
public float maxRayDistance = 30.0f;
public LayerMask collisionLayer = 1 << 10; //ARKitPlane lay... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.IO;
using System.Xml.Serialization;
using System.Windows.Forms;
namespace EWSEditor.Common
{
public class SerialHelper
{
public static string SerializeObjectToString<T>(T obj)
... |
using OpenKh.Imaging;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using Xe.Tools;
namespace OpenKh.Tools.DpdViewer.Models
{
public class TextureModel : BaseNotifyPropertyChanged
{
public TextureModel(IImageRead image)
{
MasterImage = image;
}
pub... |
using System;
using ZNCH.Api.Entities.Enums;
using static ZNCH.Api.Entities.Enums.CommonEnum;
namespace ZNCH.Api.ViewModels.Rbac.Dncexpandgroup
{
public class DncexpandgroupCreateViewModel
{
public System.Int32 Id = 0;
/// <summary>
/// 编号
/// </summary>
/// <summary>... |
@model PizzaWorld.Client.Models.StoreViewModel
@{
ViewBag.Title = "Store - Home";
Layout = "_CustomLayout";
}
<section class="col-12">
<h2>Total revenue at this location: $@Model.TotalRevenue</h2>
@Html.Partial("OrderHistory" , Model.CurrentStore)
</section>
@Html.Partial("logout") |
using System.Collections;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
using UnityEngine.Networking;
namespace Tsinghua.HCI.IoTVRP
{
public class OpenHabItem : MonoBehaviour
{
// Only POST Calls are supported, but other request types can be added, check OpenHAB REST API
... |
using System.Collections.Generic;
using CppSharp.Utils;
using NUnit.Framework;
using CppSharp.Parser;
namespace CppSharp.Generator.Tests
{
[TestFixture]
public class ReadNativeSymbolsTest
{
[Test]
public void TestReadSymbolsWindows()
{
var symbols = GetSymbols("libexpat-... |
using System.Collections.Generic;
using ConcurrentDbActions.Domain.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace ConcurrentDbActions.Domain.Configs
{
public class StockConfig : IEntityTypeConfiguration<Stock>
{
public void Configure(Entit... |
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Gimela.Toolkit.CommandLines.Foundation")]
[assembly: Guid("682ff526-5d57-4b09-b825-327606b56db1")]
|
using Diplomacy.DiplomaticAction.GenericConditions;
using System.Collections.Generic;
namespace Diplomacy.DiplomaticAction.NonAggressionPact
{
class NonAggressionPactConditions : AbstractConditionEvaluator<NonAggressionPactConditions>
{
private static List<IDiplomacyCondition> _formNonAggressionPactCo... |
using System.Collections.Generic;
using AIT.TFS.SyncService.Contracts.Configuration;
using AIT.TFS.SyncService.Factory;
namespace AIT.TFS.SyncService.Service.Configuration
{
/// <summary>
/// Class implements the functionality of configuration service - <see cref="IConfigurationService"/>.
/// </s... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using System.Net.Http.Formatting;
using System.Web.Http;
using System.Threading;
namespace Dian.NTest.WebApi
{
/// <summary>
/// 集成了 WEB API 单元测试的 Post/Put/Delete/Get 四种测试方法,分别是:
/// InvokePostRequest
/// ... |
using System.Diagnostics;
namespace NWN.Services
{
[ServiceBinding(typeof(LoopTimeService))]
public class LoopTimeService
{
public double Time { get; private set; }
public double DeltaTime { get; private set; }
private readonly Stopwatch stopwatch = new Stopwatch();
internal void UpdateTime()
... |
using SimpleSOAPClient.Models;
namespace RadarSoft.XmlaClient.Metadata
{
public class OlapInfo
{
public OlapInfo(SoapEnvelope envelope)
{
_envelope = envelope;
}
private SoapEnvelope _envelope;
//public AxesInfo AxesInfo { get; }
//public CellInfo Ce... |
namespace LmpCommon.Message.Types
{
public enum ScreenshotMessageType
{
FoldersRequest = 0,
FoldersReply = 1,
ListRequest = 2,
ListReply = 3,
DownloadRequest = 4,
ScreenshotData = 5,
Notification = 6
}
}
|
using System;
using System.Collections.Generic;
using System.Text;
namespace TrinitySeal {
public class ProgramVariables {
public static string Version { get; set; }
public static string ProgramName { get; set; }
public static int Clients { get; set; }
public static bool Freemode {... |
// JSON C# Class Generator
// http://at-my-window.blogspot.com/?page=json-class-generator
using Newtonsoft.Json;
namespace ZendeskApi_v2.Models.Views.Executed
{
public class ExecutedTicket
{
[JsonProperty("id")]
public long Id { get; set; }
[JsonProperty("subject")]
public ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Drawing;
using Scarlet.Drawing;
using Scarlet.IO;
namespace Scarlet.IO.ImageFormats
{
/* https://www.khronos.org/opengles/sdk/tools/KTX/file_format_spec/ */
// TODO: many missing compressed fo... |
global using MASA.Contrib.Service.MinimalAPIs;
global using MASA.Framework.Admin.Caller.Callers;
global using MASA.Utils.Caller.Core;
|
[Serializable]
public class NPCActionBehaviorDataTable.NPCActionBehaviorCodeData // TypeDefIndex: 7017
{
// Fields
[SerializeField] // RVA: 0x1955C0 Offset: 0x1956C1 VA: 0x1955C0
public NPCActionBehaviorDataID DataID; // 0x10
[SerializeField] // RVA: 0x1955D0 Offset: 0x1956D1 VA: 0x1955D0
public List<ActionBehavio... |
using BookLovers.Base.Infrastructure.Queries;
using BookLovers.Publication.Infrastructure.Dtos.Publications;
namespace BookLovers.Publication.Infrastructure.Queries.PublisherCycles
{
public class CycleByIdQuery : IQuery<PublisherCycleDto>
{
public int Id { get; set; }
public CycleByIdQuery()
... |
namespace BgCars.Web.Controllers
{
using Data.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Models.Articles;
using Services.Interfaces;
using System.Threading.Tasks;
public class ArticlesController : Controller
{
private readonly IArticleSer... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml.XPath;
using System.IO;
using System.Windows;
namespace TestCompleteLogCompiler
{
p... |
using System;
namespace CKAN
{
/// <summary>
/// The GUI implementation of the IUser interface.
/// </summary>
public class GUIUser : IUser
{
/// <summary>
/// A GUIUser is obviously not headless. Returns false.
/// </summary>
public bool Headless
{
... |
using CaseManagement.Common.Exceptions;
using CaseManagement.HumanTask.Exceptions;
using CaseManagement.HumanTask.Persistence;
using CaseManagement.HumanTask.Persistence.Parameters;
using CaseManagement.HumanTask.Resources;
using MediatR;
using Microsoft.Extensions.Logging;
using System.Linq;
using System.Threading;
u... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.