content stringlengths 23 1.05M |
|---|
using FrigidRogue.MonoGame.Core.Components;
using Microsoft.Xna.Framework;
using NGenerics.DataStructures.Trees;
namespace FrigidRogue.MonoGame.Core.Graphics
{
public class SceneGraphNode
{
public GeneralTree<Entity> Node { get; set; }
public Matrix? WorldTransform { get; set; }
... |
namespace WebGalery.Core.DbEntities.Contents
{
public enum ContentTypeEnum
{
Image = 1,
Unknown = 2,
}
}
|
#region Copyright Syncfusion Inc. 2001-2021.
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
// Use of this code is subject to the terms of our license.
// A copy of the current license can be obtained at any time by e-mailing
// licensing@syncfusion.com. Any infringement will be prosecuted under
// applic... |
using FastAndFurious.ConsoleApplication.Common.Enums;
using FastAndFurious.ConsoleApplication.Models.Drivers.Abstract;
namespace FastAndFurious.ConsoleApplication.Models.Drivers
{
public class Jessi : Driver
{
private const string JessiDriverName = "Jessi";
public Jessi()
: base(J... |
using Lesarde.Frogui;
using Lesarde.Frogui.Controls;
using Lesarde.Frogui.Media;
namespace HelloWorldA
{
/***************************************************************************************************
Greeting class
*********************************************************************************************... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Data.Common;
using Bdo.Schema.Definition;
using Bdo.Objects.Base;
namespace Bdo.Objects
{
/// <summary>
/// Filtro BETWEEN
/// </summary>
public class FilterBETWEEN: FilterBase
{
/// <summary>
/// Cost... |
using Lsj.Util.IL;
using System;
namespace Lsj.Util.Win32
{
/// <summary>
/// Some Unsafe Extensions for PInvoke
/// </summary>
public unsafe static class UnsafePInvokeExtensions
{
/// <summary>
/// Null Ref
/// </summary>
/// <typeparam name="T"></typeparam>
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
using SmartDisplay.Controls;
using SmartDisplay.ViewModels;
using SmartDisplay.ViewModels.Settings;
using System;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
namespace SmartDisplay.Views.Settings
{
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Szczesniak {
/// <summary>
/// This Class's purpose is for when the player overlaps with the Hazard block
/// </summary>
public class HazardBlock : OverlapObject {
/// <summary>
/// The ... |
using System;
using System.IO;
using System.Threading;
using System.Windows.Forms;
namespace ppqq
{
public partial class autoSkinObj : Form
{
private FileListDetails fld;
private Thread t;
private delegate void delegateFunc();
public autoSkinObj()
{
Initiali... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Sumo.Data
{
public class ColumnName : ItemName, IColumnName, IItemName, IEquatable<ColumnName>
{
protected ColumnName() : base() { }
public ColumnName(string name) : base(name) { }
public ColumnName(string n... |
namespace CodeFriendly.Patch
{
public interface IPatchMapper<TSource, TDestination>
where TSource : class
where TDestination : class
{
TSource CreateSourceObject(TDestination entity);
TDestination CreateDestinationObject(TSource domain);
TDestination PatchDestinationObj... |
using UnityEngine;
using System.Collections;
namespace Assets.Scripts.Game.FishGame.ChessCommon
{
public class CameraAni : MonoBehaviour
{
// public Transform[] Keypos = new Transform[8];
/// <summary>
/// 动画的起始位置
/// </summary>
protected Vector3 BeginPos;
/// ... |
namespace lm.Comol.Core.Mail.Messages
{
public enum MessageRecipientType
{
Internal = 1,
External = 2,
All = 3
}
}
|
using EFCoreModels;
using System.ComponentModel.DataAnnotations;
namespace Services
{
public class DocumentDTO
{
public int PkDocumentId { get; set; }
[Required(ErrorMessage = "Comapny name is required")]
public string Company { get; set; } = null!;
public DateTime? Date { get;... |
using System.Collections.Generic;
using System.Linq;
using VisioAutomation.Extensions;
using VA=VisioAutomation;
using IVisio = Microsoft.Office.Interop.Visio;
namespace VisioAutomation.Drawing
{
public struct DrawingSurface
{
public IVisio.Page Page;
public IVisio.Master Master;
publi... |
namespace LINGYUN.Abp.Serilog.Enrichers.Application
{
public class AbpSerilogEnrichersConsts
{
public const string ApplicationNamePropertyName = "ApplicationName";
public static string ApplicationName { get; set; } = "app";
}
}
|
using Microsoft.AspNetCore.Mvc;
using System.Linq;
using System.Threading.Tasks;
using Tiny.RestClient.ForTest.Api.Filter;
namespace Tiny.RestClient.ForTest.Api.Controllers
{
[Route("api/Authorization")]
[ApiController]
public class AuthorizationController : ControllerBase
{
[HttpGet("BasicAut... |
//===============================================================================
// Microsoft patterns & practices Enterprise Library
// Core
//===============================================================================
// Copyright © Microsoft Corporation. All rights reserved.
// THIS CODE AND INFORMATION IS PR... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using gov.va.medora.mdo.src.mdo.dao.vista;
using gov.va.medora.utils;
namespace gov.va.medora.mdo.dao.vista
{
public class VistaProceduresDao : IProceduresDao
{
VistaConnection _cxn;
public VistaProceduresDa... |
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Glob
{
abstract class GlobNode
{
protected GlobNode(GlobNodeType type)
{
this.Type = type;
}
public GlobNodeType Type { get; }
}
class Tree : GlobNode
{
public Se... |
using Microsoft.Extensions.Hosting;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace BackgroundMiddleware
{
public abstract class BackgroundService : IHostedService, IDisposable
{
private readonly IServiceProvider _serviceProvider;
private static object _syncObject... |
using System.IO;
namespace MatrixIO.IO.Bmff.Boxes
{
/// <summary>
/// Hint Media Header Box ("hmhd")
/// </summary>
[Box("hmhd", "Hint Media Header Box")]
public sealed class HintMediaHeaderBox : FullBox
{
public HintMediaHeaderBox()
: base() { }
public HintMediaH... |
using System;
using System.Text.Json;
using System.Text.Json.Serialization;
using Jsonyte.Tests.Models;
namespace Jsonyte.Tests.Converters
{
public class IsbnConverter : JsonConverter<Isbn>
{
public override Isbn Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
... |
using Autofac;
using AutoFixture;
using Bremora.DatabaseAbstraction.Core;
using Bremora.DatabaseAbstraction.Core.Models;
using Newtonsoft.Json;
using System;
using System.Linq;
using System.Threading.Tasks;
namespace Bremora.DatabaseAbstraction.Console.Dialogs {
public class ActionDialog {
private Fixture... |
using System.Net;
using Mina.Core.Service;
namespace Mina.Transport.Socket
{
/// <summary>
/// <see cref="IoConnector"/> for socket transport (UDP/IP)
/// </summary>
public interface IDatagramConnector : IoConnector
{
/// <inheritdoc/>
new IDatagramSessionConfig SessionConfig { get... |
using System;
namespace Backend.Classes.Dto
{
public class Post
{
public int? Id { get; set; }
public int? UserId { get; set; }
public DateTime CreateTime { get; set; }
public string Message { get; set; }
public int? Rate { get; set; }
public string Username { g... |
using Mysoft.TaskScheduler.Enums;
using System;
using System.Collections.Generic;
using System.Text;
namespace Mysoft.TaskScheduler.Hangfire
{
/// <summary>
/// Hangfire任务状态变更参数
/// </summary>
internal class TaskStateChangeEventArgs : EventArgs
{
/// <summary>
/// 任务Id
/// ... |
namespace P03_MyTestDemos.App
{
public class BankAccount
{
public BankAccount(decimal ammount)
{
this.Ammount = ammount;
}
public decimal Ammount { get; }
}
}
|
using System;
using System.Diagnostics;
namespace Objects
{
public class MusicPlayerObject : System.Timers.Timer
{
public void print()
{
Trace.WriteLine("Con de");
}
}
}
|
using System;
using System.Threading.Tasks;
namespace ManagedPatcher.Tasks
{
/// <summary>
/// Represents the raw abstraction of an async patcher task.
/// </summary>
/// <typeparam name="T">The argument type.</typeparam>
public abstract class PatcherTask<T> : IDisposable where T : TaskArgumen... |
using System.Collections.Generic;
using System.Linq;
using Catbert4.Core.Domain;
namespace Catbert4.Services.UserManagement
{
public interface IRoleService
{
IQueryable<Role> GetVisibleByUser(string application, string login);
List<string> GetManagementRolesForUserInApplication(string... |
namespace Gschwind.Lighthouse.Example.Models.Family {
/// <summary>
/// Person, die den Kinderfreibetrag bekommt
/// </summary>
public enum ChildAllowancePerson {
/// <summary>
/// Der Kunde bekommt den gesamten Freibetrag
/// </summary>
Client,
/// <summary>
... |
using System;
using System.Diagnostics;
namespace Sunshine
{
[DebuggerDisplay("Message = {Message}, Level = {Level}, Date={Date}")]
public sealed class LogEntry
{
#region Properties
private readonly LoggingLevel m_level;
public LoggingLevel Level { get { return m_level; } }
... |
using ModPanel.Services.Models.User;
using System.Collections.Generic;
namespace ModPanel.Services.Contracts
{
public interface IUserService
{
LoggedInUserModel TryLogin(string email, string passwordHash);
LoggedInUserModel Create(string email, string passwordHash, string position);
... |
using UnityEngine;
namespace Tofunaut.TofuUnity
{
public static class MathfUtils
{
public static float SmallestAngleDifferenceDeg(float fromDeg, float toDeg)
{
var diff = (toDeg - fromDeg + 180f) % 360f - 180f;
return diff < -180f ? diff + 360f : diff;
}
... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Reflection;
using Microsoft.Extensions.Logging;
namespace Microsoft.PowerShell.EditorServices.Services.PowerShellContext
{
internal class PSReadLineProxy
{
private const string FieldMemberType = "fiel... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEngine.Experimental.Rendering.Universal;
public class CanteraController : MonoBehaviour, IIgnitable
{
[SerializeField] private float BurningTime;
[SerializeField] private bool DebugLog = true;
[SerializeFi... |
using UnityEditor;
using Spark;
static class LuaProfilerMenu{
[MenuItem("SLua/Attach Lua Profiler")]
private static void Attach(){
if(EditorApplication.isPlaying){
SparkLua.G.doString(@"
local Profiler=UnityEngine.Profiling.Profiler
local debug=debug
local cache={}
debug.sethook(function(event,li... |
using System;
using System.Text;
namespace SpecsFor.Core
{
public class SpecificationException : ApplicationException
{
protected SpecificationException(string stage, Exception[] exceptions)
: base("An error occurred during the spec '" + stage + "' phase. \r\n" + BuildMessage(exceptions))
{
Exceptions = e... |
using System.Collections;
namespace Fp;
/// <summary>
/// Bitwise operations.
/// </summary>
public static class BitUtil
{
/// <summary>
/// Aligns value down.
/// </summary>
/// <param name="value">Input value.</param>
/// <param name="align">Alignment.</param>
/// <returns>Aligned value.</re... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace MadnathRepairGame.Models
{
public class Settings
{
public int SaveFiles {get; } = 3;
private string SaveKey = "MRGA";
public int TickSpeed { get; } = 100;
public static s... |
using IdeaRS.OpenModel.Concrete;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IdeaRS.OpenModel
{
/// <summary>
/// Additional data for Ec project
/// </summary>
[OpenModelClass("CI.ProjectData.ProjectDataEc,CI.ProjectData")]
public ... |
using System;
using System.Collections.Generic;
using System.Linq;
namespace RectangleIntersection
{
class RectangleIntersection
{
static void Main(string[] args)
{
var input = Console.ReadLine().Split().Select(int.Parse).ToArray();
var rectangles = new List<Rectangle>... |
using System;
using System.Linq;
using System.Windows.Input;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Reactive.Linq;
using System.Reactive.Disposables;
using Xamarin.Forms;
using ReactiveUI;
using ReactiveUI.Fody.Helpers;
using Shiny.Notifications;
using Shiny;
using Samples.Infrastr... |
using App.Models;
using App.Security;
using Microvac.Web;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Data.Entity;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Mvc;
using AuthorizeAttribute = System.Web.Http.AuthorizeAttribute;
using System.Linq.E... |
using System.Collections.Generic;
using System.Linq;
namespace Warframe_WebLog.Helpers
{
public static class PagingUtils
{
public static IEnumerable<string> Page(this IEnumerable<string> en, int pageSize, int page)
{
return en.Skip(page*pageSize).Take(pageSize);
}
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Devices.Bluetooth.GenericAttributeProfile;
using System.Diagnostics;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Security.Cryptography;
using System.Componen... |
using RB = UnityEngine.Rigidbody;
using Vec3 = UnityEngine.Vector3;
/**
* Pushable implements the PushIface interface, applying the received force
* to the component's Rigidbody.
*/
public class Pushable : UnityEngine.MonoBehaviour, PushIface {
/** This object's rigidbody. */
private RB rb;
void Start() {
th... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Materia.Nodes.Attributes;
using Materia.Imaging.GLProcessing;
using Materia.Imaging;
using Materia.Textures;
using Materia.MathHelpers;
using System.Threading;
namespace Mat... |
using System.Runtime.Serialization;
namespace CoinbasePro.Services.Fundings.Types
{
public enum FundingStatus
{
[EnumMember(Value = "outstanding")]
Outstanding,
[EnumMember(Value = "settled")]
Settled,
[EnumMember(Value = "rejected")]
Rejected
}
}
|
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.CommandLine;
namespace Dolittle.Vanir.CLI.EventHorizon
{
public class EventHorizonCommandProvider : ICanProvideCommand
{
readonly Connect _... |
using Unity.Collections;
using Unity.Collections.LowLevel.Unsafe;
namespace AnimationInstancing
{
struct NestableNativeSlice<T> where T : struct
{
[NativeDisableUnsafePtrRestriction]
unsafe byte* m_Buffer;
int m_Stride;
int m_Length;
#if ENABLE_UNITY_COLLECTIONS_CHECKS
... |
@using RazorLight
@inherits TemplatePage<OperatorsToRst.Models.OperatorDocumentation>
@Raw(Model.Name)
---------------------------------------------------------------------------
@foreach (var variant in Model.Variants)
{
<text>
@Raw(variant.Summary)
**Package:** @Raw(variant.Package)
.. sourcecode:: csharp
@R... |
namespace RJCP.Diagnostics.Native
{
using System;
using System.IO;
using static Kernel32;
internal static class Win32
{
public static SafeLibraryHandle LoadLibrary<T>(string fileName)
{
Uri assemblyLocation = new Uri(typeof(T).Assembly.Location);
string libr... |
/*
* Crée par SharpDevelop.
* Utilisateur: SRUMEU
* Date: 30/04/2015
* Heure: 14:21
*
*/
using System;
using System.Collections.Generic;
using System.Data;
using System.DirectoryServices;
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Sockets;
using Microsoft.VisualBasic;
namespace Mul... |
namespace Zutatensuppe.D2Reader
{
using System;
public class GameMemoryAddressTable
{
public IntPtr World;
public IntPtr PlayersX;
public IntPtr GameId; // gameId (each time a game is started, this is increased by 1)
public IntPtr Area;
public IntPtr ItemDescriptions... |
using Microsoft.AspNetCore.Html;
namespace nhsuk.base_application.ViewModels
{
public sealed class AntbitsIntroViewModel
{
public HtmlString Intro_title {get; set; }
public HtmlString Intro_copy { get; set; }
}
}
|
namespace Ola.Data.Migrations.Operations
{
/// <summary>
/// 迁移数据操作基类。
/// </summary>
public abstract class NameTableMigrationOperation : MigrationOperation
{
/// <summary>
/// 名称。
/// </summary>
public virtual string Name { get; set; }
/// <summary>
... |
using System.Collections.Generic;
using System.ComponentModel;
using System.Xml.Serialization;
using RadarSoft.RadarCube.Enums;
using RadarSoft.RadarCube.Layout;
using RadarSoft.RadarCube.Tools;
namespace RadarSoft.RadarCube.Serialization
{
/// <exclude />
public class SerializedMeasure
{
[DefaultV... |
using System;
namespace UMVC.Editor.Extensions
{
public static class Extensions
{
/// <summary>
/// Gets the declared type of the specified object.
/// </summary>
/// <typeparam name="T">The type of the object.</typeparam>
/// <param name="obj">The object.</param>
... |
#region Using Statements
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
#endregion
namespace KillTheSnowman
{
enum ProjectileType
{
BULLET,
SNOWBALL
}
class Snow... |
using Client.Projects.Actions.Create;
using Client.Projects.Actions.Delete;
using Client.Projects.Actions.Load;
using Client.Projects.Actions.LoadDetail;
using Client.Projects.Actions.Update;
using Client.Projects.Dtos;
using Fluxor;
using Microsoft.Extensions.Logging;
namespace Client.Projects.Services
{
public ... |
using FluentAssertions;
using Xunit;
namespace XunitTestFixtures.Tests.TempDirectory.CustomSeedData
{
public class CustomSeedDataTests : IClassFixture<CustomSeedDataFixture>
{
private readonly CustomSeedDataFixture fixture;
public CustomSeedDataTests(CustomSeedDataFixture fixture)
{
... |
using Microsoft.Xna.Framework;
using MonoDragons.Core.Engine;
using MonoDragons.Core.UserInterface;
using MonoDragons.ZFS.GUI.Hud;
using MonoDragons.ZFS.GUI.Menus;
using MonoDragons.ZFS.GUI.Views;
namespace MonoDragons.ZFS.GUI
{
class HudView : GameObjContainer
{
public HudView(ClickUI clickUi) : base... |
using UnityEngine;
using UnityEngine.Rendering.PostProcessing;
public sealed class GrayscaleRenderer : PostProcessEffectRenderer<Grayscale> {
public override void Render(PostProcessRenderContext context)
{
var sheet = context.propertySheets.Get(Shader.Find("Hidden/Custom/Grayscale"));
sheet.pr... |
namespace Synercoding.Primitives.Extensions
{
/// <summary>
/// Extension methods for <see cref="Value"/>
/// </summary>
public static class ValueExtensions
{
/// <summary>
/// Get a double representing a value in a given unit
/// </summary>
/// <param name="value">Th... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
namespace E.A.T
{
/**
* This class is use to put eye interaction on the item list
*/
public class ItemCommand : ICommand
{
... |
using System;
using System.Diagnostics;
using RtspClientSharp.Utils;
namespace RtspClientSharp.Rtp
{
struct RtpPacket
{
public const int RtpHeaderSize = 12;
public const int RtpProtocolVersion = 2;
public int ProtocolVersion { get; private set; }
public bool PaddingFlag { get;... |
using Microsoft.AspNetCore.Authentication.OpenIdConnect;
using Microsoft.Identity.Web;
using Microsoft.Identity.Web.UI;
namespace IssueTracker.UI;
public static class RegisterServices
{
public static void ConfigureServices(this WebApplicationBuilder builder)
{
// Add services to the container.
builder.Service... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class firtsperson : MonoBehaviour
{
public float turnSpeed = 4.0f;
public float moveSpeed = 2.0f;
public float minTurnAngle = -90.0f;
public float maxTurnAngle = 90.0f;
public float rotX;
void Update()
... |
using OnlineShop.Entities.Entities.Area.Base;
using OnlineShop.ViewModels.Area.Base.ItemSections;
using OnlineShop.ViewModels.Area.Base.ProductRelated;
using System;
using System.Collections.Generic;
using System.Linq;
namespace OnlineShop.Services.Contracts.Area.Base
{
public interface IProductRelatedService:IEn... |
namespace NCop.Aspects.Engine
{
public interface IEventBroker<in TDelegate>
{
void AddHandler(TDelegate handler);
void RemoveHandler(TDelegate handler);
}
}
|
using System.Runtime.Serialization;
namespace Docker.DotNet.Models
{
[DataContract]
public class ContainerResizeParameters // (main.ContainerResizeParameters)
{
[QueryStringParameter("h", false)]
public long? Height { get; set; }
[QueryStringParameter("w", false)]
public lo... |
using System;
using System.Windows.Input;
namespace Vdcrpt.Desktop
{
class DelegateCommand : ICommand
{
private readonly Func<object?, bool> _doCanExecute;
private readonly Action<object?> _doExecute;
public DelegateCommand(Action<object?> doExecute) : this(_ => true, doExecute)
... |
using System;
using System.Collections.Immutable;
using System.IO;
using System.Linq;
using System.Net;
using Arbor.App.Extensions.Application;
using Arbor.App.Extensions.Configuration;
using Arbor.App.Extensions.ExtensionMethods;
using Arbor.KVConfiguration.Core;
using JetBrains.Annotations;
namespace Arbor.AspNetCo... |
using System.Text;
using Dhcp.Native;
namespace Dhcp
{
public class DhcpServerHost : IDhcpServerHost
{
public DhcpServerIpAddress Address { get; }
public string NetBiosName { get; }
public string ServerName { get; }
private DhcpServerHost(DhcpServerIpAddress address, string ne... |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace River.Components.Contexts.Sources
{
[Serializable]
[JsonObject]
public class Database : Source
{
public override string Type { get { return "data... |
using Business.Common.System.App;
using System.IO;
namespace SelfHostWebApiRelay.RelayBase
{
public static class AddressLoader
{
public static string LoadRelayAddress(string fileName = "RelayAddress.txt")
{
var addressFile = Path.Combine(EnvironmentUtilities.GetAssemblyDirectory(),... |
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ApiTemplate.Api.Application.Common.Behaviours;
using ApiTemplate.Api.Application.Common.Validation;
using ApiTemplate.Api.Application.Features.MasterFiles;
using ApiTemplate.Api.Common;
using ApiTemplate.Api.Contracts.Respo... |
using System;
using System.Collections.Generic;
using System.Linq;
namespace NICE.Identity.Authorisation.WebAPI.ApiModels
{
public class UsersAndJobIdsForOrganisation
{
public int OrganisationId { get; set; }
public Organisation Organisation { get; set; }
public List<UserAndJobId> Use... |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.EntityFrameworkCore.Tests.TestUtilities;
using Microsoft.Extensions.DependencyInjection;
using Xunit;
namespace Microsof... |
using MediatR;
using MediatrAPI.Requests;
using Microsoft.AspNetCore.SignalR;
using System.Threading.Tasks;
namespace MediatrAPI
{
public class ValueHub : Hub
{
private readonly IMediator _mediator;
public ValueHub(IMediator mediator)
{
_mediator = mediator;
}
... |
using Microsoft.AspNetCore.SignalR;
namespace AzureServerlessDemo.Web.Hubs;
public class AlertHub : Hub
{
public Task AlertMessage(string message) =>
Clients.All.SendAsync("alertMessage", message);
} |
// Copyright (c) Simple Injector Contributors. All rights reserved.
// Licensed under the MIT License. See LICENSE file in the project root for license information.
namespace SimpleInjector.Advanced.Internal
{
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using SimpleInjector.... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
namespace NetDiscovery.Lib
{
public class IPComparer : IComparer<IPAddress>
{
public int Compare(IPAddress x, IPAddress y)
{
byte[] first = x.GetAddressBytes();
byte[... |
using Leyre.University.Model.Entities;
using Leyre.University.Repository.Contexts;
using Leyre.University.Repository.Interfaces;
using Leyre.University.Repository.Repositories.Core;
namespace Leyre.University.Repository.Repositories
{
public class CourseRepository : BaseRepository<CourseModel>, ICourseRepository
... |
using MozliteDemo.Extensions;
namespace MozliteDemo.Pages.Admin
{
public class IndexModel : ModelBase
{
public void OnGet()
{
}
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Editor_Mono.Cecil;
using Editor_Mono.Cecil.Cil;
namespace ILCodeWeaving
{
public class ReweavePropContext
{
#region Properties
/// <summary>
/// module of property
/// </summary>
... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SecureNative.SDK;
using SecureNative.SDK.Enums;
using SecureNative.SDK.Exceptions;
namespace SecureNative.Tests
{
[TestClass]
public class SecureNativeTests
{
[TestMethod]
[ExpectedException(typeof(SecureNativeSdkIllegalStateExcepti... |
using System;
using System.Collections.Generic;
namespace CompositePattern
{
public class DropDown : DropDownElement
{
private readonly List<DropDownElement> elements;
public DropDown(string name)
: base(name)
{
elements = new List<DropDownElement>();
}... |
using System;
using System.Linq;
using System.Text;
using EmbeddedScripts.Shared;
namespace EmbeddedScripts.CSharp.Shared.CodeGeneration
{
public class ResolvingCodeGenerator
{
internal string GenerateVariablesDeclaration(Container container) =>
GenerateCode(container, (alias, type) =>
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using StepBro.Core.File;
using StepBro.Core.Logging;
using StepBro.Core.Data;
using StepBro.Core.Host;
using StepBro.Core.Tasks;
namespace StepBro.Core.Execution
{
internal class CallContext : ICall... |
namespace KaiHeiLa;
/// <summary>
/// Represents a general container for any type of emote in a message.
/// </summary>
public interface IEmote : IEntity<string>
{
/// <summary>
/// Gets the display name or Unicode representation of this emote.
/// </summary>
/// <returns>
/// A string... |
using Confluent.Kafka;
namespace Streamiz.Kafka.Net.SerDes
{
/// <summary>
/// Basic ByteArraySerdes.
/// This is the default serdes present in <see cref="IStreamConfig"/> if you doesn't set your default key and value serdes.
/// </summary>
public class ByteArraySerDes : AbstractSerDes<byte[]>
... |
using System;
using System.Collections.Generic;
using System.Reflection;
using UnityEditor.Callbacks;
using UnityEngine;
using UnityEngine.Experimental.Rendering;
using UnityEngine.Experimental.Rendering.HDPipeline;
using Object = UnityEngine.Object;
namespace UnityEditor.Experimental.Rendering.HDPipeline
{
abstra... |
// Modifications copyright (C) 2019 Menphina
using System;
using Milvaneth.Common;
using Thaliak.Network.Analyzer;
namespace Thaliak.Network.Filter
{
public class PropertyFilter<TValue>
{
public Func<TValue, dynamic> Property { get; set; }
public dynamic Value { get; set; }
public Mes... |
using System.Collections.ObjectModel;
using System.Windows;
using System.Windows.Controls;
namespace DelayLoadContextMenu
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
private bool _isSubMenuItemOpened;
... |
using Microsoft.EntityFrameworkCore;
using System.Linq;
namespace FTCRegex.Models
{
public class TagContext : DbContext
{
public DbSet<Tag> Tags { get; set; }
public DbSet<Group> Groups { get; set; }
public DbSet<TagHistory> TagHistories { get; set; }
public DbSet<TagAction> Tag... |
using System;
using System.Collections.Generic;
namespace Nelibur.Sword.Extensions
{
public static class IntExtensions
{
public static void Times(this int value, Action action)
{
for (int i = 0; i < value; i++)
{
action();
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.