content stringlengths 23 1.05M |
|---|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Bonsai.Bpod
{
public class EncoderDataFrame
{
public EncoderDataFrame(byte[] packet)
{
OpCode = (OpCode)packet[0];
Timestamp = BitC... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace WebMVC.Models.BaseTB
{
public class UserModels
{
[Key]
public string UserName { get; set; }
public string UserPwd { get; set; }
//public... |
using System;
using System.IdentityModel.Tokens;
using System.Security.Claims;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using Microsoft.Owin;
using Owin;
namespace AuthorizationServer
{
public static class VerifyTokenApplication
{
public sta... |
using System.Collections.Generic;
using LearnWordsFast.DAL.Models;
using LearnWordsFast.ViewModels.WordController;
namespace LearnWordsFast.ViewModels.TrainingController
{
public class ManyRightTrainingViewModel : TrainingViewModel
{
public ManyRightTrainingViewModel(ManyRight type, IList<WordViewMode... |
using Services.Models;
namespace Site.Models
{
public class SmtpRequest
{
public SmtpRequest() { }
public SmtpRequest(SiteSetting settings, string htmlBody, string textBody, string toEmail, string subject)
{
if (settings != null)
{
From = settin... |
using RefactoringEssentials.CSharp.CodeRefactorings;
using Xunit;
namespace RefactoringEssentials.Tests.CSharp.CodeRefactorings
{
public class ConvertAnonymousMethodToLambdaTests : CSharpCodeRefactoringTestBase
{
[Fact]
public void BasicTest()
{
Test<ConvertAnonymousMethodTo... |
namespace Api.Services.Interfaces
{
using Api.Models.DeliveryData;
using System.Threading.Tasks;
public interface IDeliveryDataService
{
Task<string> Create(
DeliveryDataCreateModel data);
Task<DeliveryDataDetailsModel> Get(string id);
Task<string> Edit(string del... |
using System.Collections.Generic;
namespace MPT.CSI.Serialize.Models.Components.ProjectSettings
{
public class ProjectInformation
{
/// <summary>
/// The project information items.
/// </summary>
/// <value>The project information items.</value>
public List<string> Proj... |
using System;
using System.Collections.Generic;
namespace Unclazz.Commons.CLI
{
/// <summary>
/// コマンドラインの定義情報を表わすインターフェースです。
/// </summary>
public interface ICommandLine<T>
{
/// <summary>
/// コマンド名です。
/// </summary>
/// <value>コマンド名</value>
string CommandName { get; }
/// <summary>
/// コマンドの説明です。... |
using System.Text.RegularExpressions;
namespace SoundComposition.Domain
{
public partial class Song
{
public string FileName { get; set; }
public string Instrument { get; set; }
public string Note { get; set; }
public int Octave { get; set; }
public float Tempo { get; ... |
using GetEdge;
using System;
using System.Collections.Generic;
using Xunit;
namespace TestGetEdges
{
public class GetEdgesTest
{
[Theory]
[InlineData("New New York", true)]
public void CanGetDirectFlight(string cityName, bool expected)
{
//arrange
//insta... |
using System.Collections.Generic;
using ITGlobal.MarkDocs.Tags.Impl;
using JetBrains.Annotations;
namespace ITGlobal.MarkDocs.Tags
{
/// <summary>
/// Helper methods for tags service
/// </summary>
[PublicAPI]
public static class TagsExtensionMethods
{
/// <summary>
/// ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ninject;
using System.ComponentModel;
using System.Windows;
namespace Pvp.App.Composition
{
internal static class DesignTimeComposition
{
internal static void SetUpDependencies()
{
... |
using OMM.Domain;
using OMM.Services.AutoMapper;
namespace OMM.Services.Data.DTOs.Statuses
{
public class StatusListDto : IMapFrom<Status>
{
public int Id { get; set; }
public string Name { get; set; }
}
}
|
using System.IO;
using System.Net;
using System.Xml.Serialization;
using Nuxleus.Core;
using System.Collections.Generic;
using System.Xml;
using System.Xml.Linq;
using System;
namespace Nuxleus.Extension.Aws.SimpleDb
{
[XmlRootAttribute(Namespace = "http://sdb.amazonaws.com/doc/2007-11-07/", IsNullable... |
using System.Collections.Generic;
using ESFA.DC.ILR.ReportService.Model.ReportModels;
namespace ESFA.DC.ILR.ReportService.Service.Comparer
{
public sealed class TrailblazerEmployerIncentivesModelComparer : IComparer<TrailblazerEmployerIncentivesModel>
{
public int Compare(TrailblazerEmployerIncentives... |
using System;
using Terminals.Configuration;
using Terminals.Data;
namespace Terminals.Forms
{
internal class FavoriteSorting
{
private readonly SortProperties defaultSortProperty;
internal FavoriteSorting()
{
this.defaultSortProperty = Settings.Instance.Default... |
namespace Improving.AspNet.Tests.Domain
{
using System.Threading.Tasks;
using global::MediatR;
public class AuthorizeStockHandler
: IAsyncRequestHandler<AuthorizeStock, Unit>
{
public Task<Unit> Handle(AuthorizeStock request)
{
return Task.FromResult(Unit.Value);
... |
using Stl.Mathematics.Internal;
namespace Stl.Mathematics;
public class TileLayer<T>
where T : notnull
{
private readonly Lazy<TileLayer<T>?> _largerLazy;
private readonly Lazy<TileLayer<T>?> _smallerLazy;
public int Index { get; init; }
public T Zero { get; init; } = default!;
public T TileS... |
namespace _03.Parse_Tags
{
using System;
public class ParseTags
{
public static void Main()
{
string input = Console.ReadLine();
string openTag = "<upcase>";
string closeTag = "</upcase>";
int tagStartIndex = input.IndexOf(openTag);
... |
using System;
using Robust.Shared.Serialization;
namespace Content.Shared.Morgue
{
[Serializable, NetSerializable]
public enum MorgueVisuals
{
Open,
HasContents,
HasMob,
HasSoul,
}
[Serializable, NetSerializable]
public enum CrematoriumVisuals
{
Bur... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace WebApplication1.Models
{
public class LiveChatModel
{
public string DspMessage { get; set; }
public string DspName{get;set;}
public string ChannelUrl { get; set; }
public string Pr... |
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
namespace Microsoft.Azure.Cosmos.Routing
{
using System;
using System.Threading;
using System.Threading.Tasks;
usin... |
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Spectre.Console;
namespace Generator.Commands
{
public sealed class AsciiCastInput : IAnsiConsoleInput
{
private readonly Queue<(ConsoleKeyInfo?, int)> _input;
private readonly Random _ra... |
namespace Features.Account.Manage;
public class MfaDisable
{
public class Command : IRequest<Result> { }
public class Result : BaseResult { }
public class CommandHandler : IRequestHandler<Command, Result>
{
private readonly UserManager<ApplicationUser> _userManager;
private readonly ... |
using System.ComponentModel.DataAnnotations;
namespace Shopper.Web.ViewModel
{
public class RegistrationViewModel
{
[EmailAddress]
[Required(ErrorMessage = "Email is required")]
public string CustomerEmail { get; set; }
[Required(ErrorMessage = "Last name is required")]
... |
using System.Collections.Generic;
using System.IO;
namespace Disunity.Store.Storage.InMemory {
public class InMemoryUploadStream : UploadStream {
private readonly InMemoryStorageProvider _storageProvider;
private readonly string _filename;
private readonly Dictionary<string, string> _fil... |
using AzureML.Contract;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Management.Automation;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Script.Serialization;
namespace AzureML.PowerShell
{
[Cmdlet(VerbsCommon.Get, "AmlAnnotation")]
... |
using System;
using System.IO;
namespace Pathfinding.Ionic.BZip2
{
internal class BitWriter
{
private uint accumulator;
private int nAccumulatedBits;
private Stream output;
private int totalBytesWrittenOut;
public byte RemainingBits
{
get
{
return (byte)(this.accumulator ... |
abstract public class RifleDecorator : IRifle
{
protected IRifle m_DecoaratedRifle;
public RifleDecorator(IRifle rifle)
{
m_DecoaratedRifle = rifle;
}
public virtual float GetAccuracy()
{
return m_DecoaratedRifle.GetAccuracy();
}
}
|
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Nito.Collections;
namespace AdventOfCode
{
public static class Extensions
{
public static string ReadInput(this string path) =>
File.ReadAllText(path);
public static IEnumerable<string> ReadLi... |
//------------------------------------------------------------------------------
// <copyright file="XmlDocumentValidator.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// <owner current="true" primary="true">Microsoft</owner>
//-------------------------------... |
// Copyright (C) 2013 Dmitry Yakimenko (detunized@gmail.com).
// Licensed under the terms of the MIT license. See LICENCE for details.
namespace LastPass
{
public abstract class Ui
{
// TODO: Think about how to deal with the cancellation.
public enum SecondFactorMethod
{
Goo... |
namespace Fluid.Roguelike.Dungeon
{
public class DungeonSpawnMeta
{
public DungeonRoomMeta SpawnRoom { get; set; }
}
public class DungeonSpawnNpcMeta : DungeonSpawnMeta
{
public string Race;
public string Name;
public int Count = 1;
}
} |
using MauiReactor.Internals;
namespace MauiReactor
{
public partial interface IToolbarItem
{
ToolbarItemOrder? Order { get; set; }
int? Priority { get; set; }
}
public partial class ToolbarItem<T> : IToolbarItem
{
ToolbarItemOrder? IToolbarItem.Order { get; set; }
... |
using System;
public class CustomService : ICustomService
{
public string GetTime()
{
return DateTime.UtcNow.ToString();
}
} |
using CompanySales.Model.Entity;
using CompanySales.Model.Parameter;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace CompanySales.DAL
{
p... |
namespace Microsoft.Bing.Commerce.Connectors.Core
{
/// <summary>
/// Describes the change type that happend to the data. Currently only support update.
/// </summary>
public enum DataOperation
{
/// <summary>
/// Represents an update that happened to the data, whether it'... |
using Xunit;
using System;
using System.Linq;
using Xunit.Abstractions;
using AdventOfCode2020.Day5;
namespace AdventOfCode2020.Tests.Day5
{
public class Day5Tests
{
private readonly ITestOutputHelper _testOutputHelper;
public Day5Tests(ITestOutputHelper testOutputHelper)
=> _tes... |
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
namespace SchOOD.Web.Controllers
{
[AllowAnonymous]
[Route("")]
public class HomeController ... |
/// <summary>Calculates the difference between 2 dates, and returns it as a formatted string.</summary>
/// <param name="startDate">The start date.</param>
/// <param name="endDate">The end date.</param>
/// <returns>The formatted string that represents the calculated difference.</returns>
public static string DateDiff... |
using System.Collections.Generic;
using System.CommandLine;
using System.CommandLine.Binding;
using System.CommandLine.Builder;
using System.CommandLine.Help;
using System.CommandLine.Invocation;
using System.CommandLine.IO;
using System.CommandLine.Parsing;
using System.Linq;
namespace J4JSoftware.CommandLine
{
... |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace NPH.Models
{
public class WeatherCurrent
{
[JsonProperty("observation_time")]
public virtual string ObservationTime { get; set; }
[JsonProperty("temperature")]
public virtual fl... |
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
using Stride.Core.Mathematics;
using Stride.Engine;
using Stride.Input;
using Stride.Physics;
namespace CSharp... |
using System;
using System.Text.Json;
using NSL;
using NSL.Tokenization.General;
namespace CSCommon
{
class ConsoleLogger : ILogger
{
public ILogger End()
{
Console.Write("\n");
SetColor();
return this;
}
public ILogger Message(string source)... |
//
// https://github.com/mythz/ServiceStack.Redis
// ServiceStack.Redis: ECMA CLI Binding to the Redis key-value storage system
//
// Authors:
// Demis Bellot (demis.bellot@gmail.com)
//
// Copyright 2013 ServiceStack.
//
// Licensed under the same terms of Redis and ServiceStack: new BSD license.
//
using System;
u... |
using System;
using System.Linq;
using System.Xml.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows;
namespace PGPNET_Setup
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
... |
using System.IO;
using System.Xml.Linq;
namespace YJC.Toolkit.Sys
{
internal sealed class XElementData
{
public XElementData()
{
}
public XElementData(XElementData data, XElement element)
{
Root = data.Root;
Current = element;
Stream... |
using System;
namespace ByteLengthSample
{
class Program
{
/// <summary>
/// C#中的int、long、float、double等类型都占多少个字节的内存
/// </summary>
/// <param name="args"></param>
static void Main(string[] args)
{
// sizeof 操作符是用来取得一个类型在内存中会占几个byte。
Conso... |
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using SafeRoom.Api.Extensions;
using SafeRoom.Business;
using SafeRoom.DAL.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SafeRoom.Api.Controllers
{
// If you want to do ve... |
using System.Diagnostics;
using Lurgle.Logging;
namespace Seq.Client.WindowsLogins
{
public static class Extensions
{
public static LurgLevel MapLogLevel(EventLogEntryType type)
{
switch (type)
{
case EventLogEntryType.Information:
re... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Discord;
namespace Modix.Services.Utilities
{
public static class GuildUserExtensions
{
public static bool HasRole(this IGuildUser user, ulong roleId)
{
return user.RoleIds.Contains(roleId);... |
using Microsoft.AspNetCore.Mvc;
using System;
using System.Security.Claims;
using VENTURA_HR.DOMAIN.UsuarioAggregate.Enums;
namespace VENTURA_HR.API.Controllers
{
[Route("api/[controller]")]
[ApiController]
public abstract class GenericController : ControllerBase
{
internal Guid GetLoggedUserId()
{
string... |
using NUnit.Framework;
namespace UnityEditor.MeshSync.Tests {
internal class MeshSyncServerTest {
[Test]
public void CreateServer()
{
MeshSyncServerEditor.CreateMeshSyncServer();
//[TODO-sin: 2020-2-26] Add test to make sure that the StreamingAssets are populated
Assert.T... |
using System;
namespace Wivuu.Sprog
{
public class ParserException : Exception
{
internal ParserException(string assertion, int remaining)
: base(assertion)
{
this.Assertion = assertion;
this.Remaining = remaining;
}
public string Assertion {... |
using System;
using System.Reflection;
namespace ClrTest.Reflection {
public interface IILProvider {
Byte[] GetByteArray();
}
public class MethodBaseILProvider : IILProvider {
MethodBase m_method;
byte[] m_byteArray;
public MethodBaseILProvider(MethodBase method) {
... |
@addTagHelper ContosoMasks.ServiceHost.CDNTagHelper, ContosoMasks.ServiceHost
@{
ViewData["Title"] = "Home";
Microsoft.Extensions.Primitives.StringValues xForwardedForHeader;
string xForwardedFor = "";
string xAzureFDID = "";
if (Context.Request.Headers.TryGetValue("X-Forwarded-For", out xForward... |
using ChatApi.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ChatApi
{
public class SignalRContext
{
/// <summary>
/// 用户列表
/// </summary>
public List<ChatUser> Users { get; set; }
/// <summary>
... |
#region License
// Copyright 2013 Ken Worst - R.C. Worst & Company 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
//
// ... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace BayatGames.SaveGamePro.Serialization.Types
{
/// <summary>
/// Save Game Type NavMeshObstacle serialization implementation.
/// </summary>
public class SaveGameType_NavMeshObstacle : SaveGameType
{
/// <summ... |
using System.Threading.Tasks;
namespace Rlx
{
public static class ResultExtensions
{
public static T UnwrapEither<T>(this Result<T, T> result) =>
result.UnwrapOrElse(error => error);
public static Task<T> UnwrapEitherAsync<T>(this ResultTask<T, T> result) =>
result.Unw... |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Reflection;
using homeControl.Domain.Events;
using JetBrains.Annotations;
namespace homeControl.Interop.Rabbit
{
[UsedImplicitly]
internal sealed class ExchangeConfiguration
{
private readonly Dictio... |
using FV3.Helpers;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace HelpList.Model
{
class TeacherCollection : INotifyPropertyChanged
{
//instance fields
private string _firstName;
private string _lastName;
priv... |
using ProSuite.Commons.Essentials.CodeAnnotations;
namespace ProSuite.DomainModel.Core.QA.Html
{
public interface IHtmlDataQualityCategoryOptionsProvider
{
[CanBeNull]
HtmlDataQualityCategoryOptions GetCategoryOptions([NotNull] string uuid);
}
} |
using System;
namespace Rafty
{
public class BecomeCandidate : Message
{
public BecomeCandidate(Guid lastAppendEntriesMessageIdFromLeader)
{
this.LastAppendEntriesMessageIdFromLeader = lastAppendEntriesMessageIdFromLeader;
}
public Guid LastAppendEntriesMessageIdFrom... |
using Serenity.Services;
using System;
using System.Collections.Generic;
namespace Serenity.Data
{
/// <summary>
/// Contains static extension methods for DbField and Meta objects.</summary>
public static class ServiceRequestExtensions
{
public static TRequest IncludeField<TRequest... |
namespace TwitchWrapper
{
public class UserClient
{
private readonly TwitchClient _client;
private const string UserResource = "users/{0}";
public UserClient(TwitchClient client)
{
_client = client;
}
public User GetUser(string username)
{
... |
// Autor : Juan Parra
// 3Soft
namespace Jen.Eventos
{
using Serializable = System.SerializableAttribute;
using SerializationInfo = System.Runtime.Serialization.SerializationInfo;
using StreamingContext = System.Runtime.Serialization.StreamingContext;
/// <summary>
/// Evento para validar campos re... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GunScript : MonoBehaviour
{
[SerializeField]
private Transform firePoint;
[SerializeField]
private GameObject bulletPrefab;
private GameObject bulletInstance;
private float timeToDestroy = 0.8f;
pu... |
@{
Layout = "~/Views/SPRK/Shared/_Layout.cshtml";
ViewBag.Title = "Find";
}
<h2>Find a Log</h2>
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QingShan.CodeGenerator.Dto
{
public class CodegeneratorInputDto
{
/// <summary>
/// 控制器
/// </summary>
public string ControllerNamespace { get; set; }
... |
//----------------------------------------------------------------------
// Gold Parser engine.
// See more details on http://www.devincook.com/goldparser/
//
// Original code is written in VB by Devin Cook (GOLDParser@DevinCook.com)
//
// This translation is done by Vladimir Morozov (vmoroz@hotmail.com)
//
// The tr... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Salvis.DataLayer.Repositories
{
[Serializable]
public class TypeNotAsExpectedException : Exception, IDataLayerException
{
private readonly object _obj;
public Ty... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEditor;
using UnityEngine;
namespace flyingSnow
{
static class ConfigGeneratorSettingsIMGUIRegister
{
[SettingsProvider]
public static SettingsProvider CreateConfigGeneratorSettingsProvide... |
// <copyright file="Precedence.cs" company="Brian Rogers">
// Copyright (c) Brian Rogers. All rights reserved.
// </copyright>
namespace GWParse.Test.Expressions
{
using Xunit;
public sealed class Precedence
{
[InlineData("1+2*3", "Add(NumL(1), Mult(NumL(2), NumL(3)))")]
[InlineData("1+2/3... |
using System;
using System.Collections.Generic;
using System.Linq;
using DdfGuide.Android;
using Newtonsoft.Json;
namespace DdfGuide.Core
{
public class UserDataImportExport : IUserDataImportExport
{
private readonly ICache<IEnumerable<AudioDramaUserData>> _userDataCache;
private readonly ICli... |
using System;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using Awem.Windowing;
using Microsoft.Win32;
namespace Awem.EventNotifiers
{
public class DisplaySettingsChangedNotifier : IDisposable
{
private readonly Subject<EventArgs> _changed = new Subject<EventArgs>();
public IObservable<EventArgs>... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PartialViewOtherToJieLink.JSDSViewModels
{
public class TCacAccountModel
{
/// <summary>
/// 账号GUID
/// </summary>
public string ID { get; set; }
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class PickUp15 : MonoBehaviour
{
[SerializeField]
private Text pickUpText;
private bool pickUpAllowed;
private void Start()
{
pickUpText.gameObject.SetActive(false);... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// Used for visualization
/// </summary>
public struct VisualizationInfo
{
/// <summary>
/// Output binary with all the hands found
/// </summary>
public Texture2D binary_image;
/// <summary>
/// I... |
using System.Linq;
using System.Threading.Tasks;
using MAF.FeaturesFlipping.Extensibility.FeatureContext;
using MAF.FeaturesFlipping.FeatureContext.Delegate;
using Microsoft.Extensions.DependencyInjection;
using Moq;
using Xunit;
// ReSharper disable once CheckNamespace
namespace MAF.FeaturesFlipping.Extensions.Depen... |
namespace SharedUI.Shared
{
public partial class MainWindowController
{
private void setup()
{
//
// Do any shared initilaization, here
//
}
//
// Add Shared code here
//
[Notify] public string valueA { get; set; }
[Notify] public string valueB { get; set; }
[Notify] pub... |
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Numerics;
using Dane;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Logika;
namespace Testy.Logika
{
[TestClass]
public class LogicTest
{
[TestMethod]
public void TestLogicApi()
{
... |
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace Mixpanel
{
internal sealed class BatchMessageWrapper
{
public List<List<MixpanelMessage>> TrackMessages { get; private set; }
public List<List<MixpanelMessage>> EngageMessages { get; private set; }
... |
using System;
using System.Linq;
using OpenTK.Audio.OpenAL;
using System.ComponentModel;
using OpenCV.Net;
using System.Reactive.Linq;
using Bonsai.Audio.Configuration;
namespace Bonsai.Audio
{
/// <summary>
/// Represents an operator that plays a sequence of buffered samples to the specified audio... |
using CryptoExchange.Net;
using CryptoExchange.Net.Objects;
using Newtonsoft.Json;
using Okex.Net.Converters;
using Okex.Net.CoreObjects;
using Okex.Net.Enums;
using Okex.Net.Helpers;
using Okex.Net.RestObjects.Account;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using Sys... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Algorithmica.DataStructures
{
public class Stack<TItem>
{
protected List<TItem> dataStorage;
private int currentIndex = 0;
public Stack()
{
dataStorage = new List<TItem>();
}
public Stack(IEnumerable<TItem> initialData)
... |
using System.Reflection;
namespace Framework.DomainDriven.UnitTest.Mock.StubProxy
{
public interface IOverrideMethodInfo
{
MethodInfo MethodBase { get; }
object ReturnValue { get; }
}
} |
using UnityEngine;
namespace RTEditor
{
/// <summary>
/// Monobehaviours can implement this interface so that they can be able to
/// listen to different types of events and take action as needed.
/// </summary>
public interface IRTEditorEventListener
{
/// <summary>
/// Calle... |
// Copyright (c) Microsoft Corporation. All rights reserved.
namespace SmartDisplay.Controls
{
public sealed partial class TileSettingsControl : SettingsUserControlBase
{
public TileSettingsControlVM ViewModel { get; } = new TileSettingsControlVM();
protected override SettingsBaseViewMo... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using Yandex.Maps.StaticAPI;
namespace YandexMapsStaticApiTest
{
[TestFixture]
class PointTest
{
double _lat_min=-84.99;
double _lat_max = 84.99;
... |
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Text;
namespace Microsoft.AspNetCore.SpaServices.Prerendering
{
/// <summary>
/// Describes the prerendering result returned by JavaScript code.
/// </summary>
public class RenderToStringResult
{
/// <summary>
/// If se... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace Upds.Sistemas.ProgWeb2.Tintoreria.MVC.Models
{
public class CorreoModel
{
[Display(Name ="Id Correo")]
public int idCorreo { get; set; }
[Require... |
using FluentAssertions;
using Moq;
using SpecificationPattern.Core.Specifications;
using Xunit;
namespace SpecificationPattern.Core.Tests.Specifications
{
public class SpecificationExtenstionsTests
{
[Fact]
public void And_ReturnsAndSpecification()
{
var left = new Mock<ISp... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Authorization;
namespace WG.Controllers
{
public class Root
{
public const string Base = "api";
}
public class ApiController : Controller... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Anthurium.Web.Models
{
public class UtilitySettings
{
public const string ApiUrl = "ApiUrl";
public string APP_URL { get; set; }
}
}
|
using Qooba.Framework.Abstractions;
using Qooba.Framework.Bot.Abstractions;
namespace Qooba.Framework.Bot.Azure
{
public class BotAzureModule : IModule
{
public virtual string Name => "BotAzureModule";
public int Priority => 20;
public void Bootstrapp(IFramework framework)
{
... |
using NaughtyAttributes;
using UnityEngine;
namespace GameplayIngredients.Rigs
{
[AddComponentMenu(ComponentMenu.rigsPath + "Reach Position Rig")]
public class ReachPositionRig : Rig
{
public override int defaultPriority => 0;
public override UpdateMode defaultUpdateMode => UpdateMode.LateU... |
//Define classes File { string name, int size } and Folder { string name, File[] files, Folder[] childFolders }
//and using them build a tree keeping all files and folders on the hard drive starting from C:\WINDOWS.
//Implement a method that calculates the sum of the file sizes in given subtree of the tree and test ... |
// Copyright (c) SDV Code Project. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace SdvCode.Areas.Administration.Services.SiteReports.ShopReports
{
using System;
using System.Collections.Generic;
using System.Linq;
usi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.