content stringlengths 23 1.05M |
|---|
using System.ComponentModel;
using Inedo.Documentation;
using Inedo.Extensibility;
using Inedo.Extensibility.VariableFunctions;
namespace Inedo.Extensions.VariableFunctions
{
[ScriptAlias("Increment")]
[Description("Returns a string that contains the result of incrementing a value.")]
[SeeAlso(ty... |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Celarix.Cix.Compiler.Lowering.Models
{
public sealed class HardwareCallDataType
{
public string TypeName { get; }
public int PointerLevel { get; }
public HardwareCallDataType(string typeName, int pointerLevel... |
#if UNITY_EDITOR
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
public class EnemyMenu : EditorWindow
{
static List<Enemy> enemies;
static Enemy enemy = new Enemy();
static string[] selStrings;
//static bool SaveError = false;
//static bool Sa... |
using CourseHerancaMultipla.Devices;
using System;
namespace CourseHerancaMultipla
{
class Program
{
static void Main(string[] args)
{
Printer p = new Printer() { SerialNumber = 1080 };
p.ProcessDoc("My letter");
p.Print("My letter");
Scanner s ... |
using System.Reflection;
namespace Dasync.Proxy
{
public interface IMethodInvokerFactory
{
IMethodInvoker Create(MethodInfo methodInfo, MethodInfo interfaceMethodInfo = null);
}
}
|
using System;
using UnityEngine;
namespace Ninito.UsualSuspects.WeightedPool
{
/// <summary>
/// A class that contains a specific weighed pool entry
/// </summary>
[Serializable]
public struct WeightedPoolEntry<T> : IChancePoolEntry<T>
{
#region Private Fields
[SerializeFi... |
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Reflection;
namespace ALD.LibFiscalCode.Persistence.Importer
{
public static class PropertyListFactory
{
public static ObservableCollection<PlaceCsvMapper> Generate(IEnumerable<PropertyInfo> properties)
{
... |
using Ancestry.Daisy.Program;
namespace Ancestry.Daisy.Statements
{
using System;
using System.Text.RegularExpressions;
public class InvokationContext
{
public object Scope { get; set; }
public Func<object,bool> Proceed { get; set; }
public ContextBundle Context { get; set; }
... |
namespace ChoETL
{
#region NameSpaces
using System;
using System.Collections;
using System.Collections.Generic;
#endregion NameSpaces
public static class ChoArray
{
#region Shared Members (Public)
public static object GetFirstNotNullableObject(ICollection srcArray)
... |
namespace PugnaFighting.Data.Models
{
using System.ComponentModel.DataAnnotations;
using PugnaFighting.Data.Common.Models;
public class Fighter : BaseDeletableModel<int>
{
[Required]
public int FansCount { get; set; }
[Required]
public int MoneyPerFight { get; set; }
... |
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
namespace Bingo
{
/// <summary>
/// ビンゴ
/// </summary>
public class Bingo : GameBase<GameState, CellArray2D, Cell, CellState, CellSettings>
{
/// <summary>
/// 1列目... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using McMorph.Files;
namespace McMorph.Morphs
{
public class Morphs : IReadOnlyList<Morph>, IReadOnlyDictionary<string, Morph>
{
private readonly Pogo pogo;
private readon... |
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;
namespace HiTech
{
public partial class Inventory_Controller : Form
{
public Inventory_C... |
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.Runtime.InteropServices;
using System.Diagnostics;
namespace Deviate_Delight
{
public p... |
namespace ShaderTools.CodeAnalysis.Hlsl.Syntax
{
public enum PredefinedObjectType
{
Texture,
Texture1D,
Texture1DArray,
Texture2D,
Texture2DArray,
Texture3D,
TextureCube,
TextureCubeArray,
Texture2DMS,
Texture2DMSArr... |
using System;
namespace Shop.Mvc.Application.Exceptions
{
public class CategoryNotFoundValidationException : ValidationException
{
public CategoryNotFoundValidationException(Guid id) : base($"category {id} not found")
{
}
}
}
|
namespace System.Windows.Forms
{
public enum TabControlAction
{
Selecting,
Selected,
Deselecting,
Deselected
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Helpers
{
public static class StringExtensions
{
public static string Pluralise(this string noun, int quantity, string suffix = "s")
{
return $"{noun}{(quantity == 1 ? "" : suffix)}";
... |
using ChatHubApp2.GlobalConstants;
using Microsoft.Data.SqlClient;
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
namespace ChatHubApp2.SQL
{
public static class SQLNonQueryExecutor
{
public... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace f
{
public class FmRichTextBox : RichTextBox
{
public event EventHandler ManualTextChanged;
public FmRichTextBox()
{
TextChanged += new EventHandler(FmRichTextBox_TextC... |
namespace MagicMedia
{
public enum MediaFileType
{
Original,
WebPreview,
VideoGif,
Video720
}
}
|
using System;
using NUnit.Framework;
using Eto.Forms;
namespace Eto.Test.UnitTests.Forms.Controls
{
[TestFixture]
public class SliderTests : TestBase
{
[Test]
public void TickFrequencyShouldAllowZero()
{
Invoke(() =>
{
var slider = new Slider();
slider.TickFrequency = 0;
Assert.AreEqual(0, ... |
namespace Proffer.Storage.Azure.Blobs.Tests.Abstract
{
using Xunit;
public abstract class ConfiguredStoresTestsBase
{
public static TheoryData<string> ConfiguredStoreNames
=> new()
{
{ "CustomConnectionStringProvider" },
{ "CustomConnectionStr... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DL.Domain.Models.AdoModels;
using DL.Domain.PublicModels;
using DL.IService.AdoIService;
using DL.Utils.Extensions;
using DL.Utils.Log.Nlog;
using DL.Utils.Helper;
using SqlSugar;
using DL.Domain.Dto.AdminDto.AdoMod... |
//----------------------------------------------------------------------------
// Copyright (C) 2004-2016 by EMGU Corporation. All rights reserved.
//----------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Runtime.InteropService... |
using System.Collections.Generic;
using Qsi.Tree;
namespace Qsi.Oracle.Tree
{
public sealed class OracleLateralTableNode : QsiTableNode
{
public QsiTreeNodeProperty<QsiTableNode> Source { get; }
public override IEnumerable<IQsiTreeNode> Children
{
get
{
... |
// Copyright (c) 2020 ayuma_x. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Text.Json;
namespace ObjectDeliverer
{
public class DeliveryBoxObjectJson<T> : IDeliveryBox<T>
{
public DeliveryBoxObject... |
namespace Sitecore.FakeDb.Configuration
{
using System;
using System.Configuration;
using System.IO;
using System.Reflection;
using System.Xml;
using Sitecore.Data;
using Sitecore.Data.Events;
using Sitecore.Diagnostics;
using Sitecore.FakeDb.Data.Engines.DataCommands.Prototypes;
... |
using System;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Http;
using Microsoft.Owin;
using NLog;
using SimpleInjector;
using SimpleInjector.Integration.WebApi;
using SimpleInjector.Lifestyles;
namespace DistributedLoggingTracing.WebApi
{
public sealed class SimpleInjectorMiddleware : ID... |
namespace JGarfield.LocastPlexTuner.Library.Clients.DTOs.Locast.Dma
{
/// <summary>
///
/// </summary>
public class LocastDmaAnnouncement
{
/// <summary>
/// The message text of the announcement.
/// </summary>
public string messageText { get; set; }
/// <s... |
#if !CORE
using System.Diagnostics;
using BenchmarkDotNet.Attributes;
namespace BenchmarkDotNet.Samples.Framework
{
public class Framework_StackFrameVsStackTrace
{
[Benchmark]
public StackFrame StackFrame()
{
return new StackFrame(1, false);
}
[Benchmark]
... |
using System.Net;
using CleanArchitecture.DDD.Application.DTO;
namespace CleanArchitecture.DDD.API.Controllers.Fake;
/// <summary>
/// Fake Controller
/// In a real application this will be another service
/// like CRM
/// </summary>
[ApiExplorerSettings(IgnoreApi = true)]
public class FakeController : BaseAPIContro... |
using System.ComponentModel;
using System.Windows;
using System.Windows.Media.Imaging;
using TorchDesktop.FeatureManagers;
using TorchDesktop.Networking;
using TorchDesktop.Pages;
namespace TorchDesktop
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainW... |
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
public class ScoreUi : MonoBehaviour
{
public RowUi rowUi;
public ScoreManager scoreManager;
private int newScore;
private string newName;
private void Start() {
var scores = scoreManager... |
using Pillar.Tests.Mocks;
using Xunit;
namespace Pillar.Tests.ViewModels
{
public class PillarViewModelBaseFixture
{
[Fact]
public void TestHandlesPropertyChanged()
{
bool propertyChanged = false;
var viewModel = new MockViewModel();
viewModel.Prope... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(PlayerManager))]
[RequireComponent(typeof(InventoryManager))]
[RequireComponent(typeof(MissionManager))]
[RequireComponent(typeof(DataManager))]
public class Manager : MonoBehaviour
{
public stati... |
#region License
//------------------------------------------------------------------------------------------------
// <License>
// <Copyright> 2018 © Top Nguyen → AspNetCore → Monkey </Copyright>
// <Url> http://topnguyen.net/ </Url>
// <Author> Top </Author>
// <Project> Monkey </Project>
// <File... |
using System;
namespace ReduxSimple
{
/// <summary>
/// A class that represents a previous dispatched action, with details like the related state updated at that time.
/// </summary>
/// <typeparam name="TState">Type of the state.</typeparam>
public class ReduxMemento<TState> where TState : class,... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <Summary>
/// クイックソートを行うスクリプトです。
/// </Summary>
public class QuickSortCheck : PerformanceBase {
protected override void ExecuteSort(int index){
// ソートしたい配列を定義します。
int[] targetArray = GetTargetArray(index);... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace DNTPersianUtils.Core.Tests
{
[TestClass]
public class IranShebaUtilsTests
{
[DataTestMethod]
[DataRow("IR820540102680020817909002")]
[DataRow("IR062960000000100324200001")]
public void ValidIranShebaCodesTest(str... |
using System;
using CosmosObjectVisitorUT.Helpers;
using CosmosObjectVisitorUT.Model;
using CosmosStack.Reflection.ObjectVisitors;
using CosmosStack.Validation;
using Xunit;
namespace CosmosObjectVisitorUT
{
[Trait("Validation.Strategy/Rule Overwrite", "Validation")]
public class ValidationOverwriteTests : Pr... |
using System.Diagnostics.CodeAnalysis;
namespace Blogifier.Shared.Models
{
public class SignedUrlRequest
{
[NotNull]
public string Filename { get; set; }
public bool ShouldGenerateThumbnailUrl { get; set; }
}
}
|
namespace Studies.models
{
public class HourlyEmployee : Employee
{
public decimal? Wage { get; set; }
}
} |
namespace AssetStudio
{
partial class ExportOptions
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
///... |
namespace Pizza.Contracts.Security.ViewModels
{
public class PizzaUserViewModel : IViewModelBase
{
public int Id { get; set; }
public string UserName { get; set; }
}
} |
using System.Collections.Generic;
using System.Threading.Tasks;
using GR.Core.Helpers;
using GR.Crm.Abstractions.Models;
namespace GR.Crm.Abstractions
{
public interface ICrmService
{
/// <summary>
/// Get all currencies
/// </summary>
/// <returns></returns>
Task<Resul... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Lucene.Net.Analysis;
using Lucene.Net.Analysis.Standard;
using Lucene.Net.Documents;
using Lucene.Net.Index;
using Lucene.Net.Store;
using Lucene.Net.Util;
using FieldInfo = System.Reflection.Field... |
using System;
namespace REPLEx1
{
public class Repl{
//Properties
private readonly ICommand[] commands;
public InputOutput io;
public State state;
//C'tor
public Repl (){
//init thr data members
io = new InputOutput ();
state = new State ();
//init the commands
commands = new ICommand[... |
namespace Csla.Analyzers.Tests.Targets.EvaluateManagedBackingFieldsAnalayzerTests
{
public class AnalyzeWhenCommandHasManagedBackingFieldUsedPropertyAndIsNotReadonly
: CommandBase<AnalyzeWhenCommandHasManagedBackingFieldUsedPropertyAndIsNotReadonly>
{
public static PropertyInfo<string> DataProperty =
... |
using System;
namespace CDR.Register.Discovery.API.Business.Models
{
public class RegisterDataRecipientModel
{
public string LegalEntityId { get; set; }
public string LegalEntityName { get; set; }
public string Industry { get; set; }
public string LogoUri { get; set; }
... |
namespace TatmanGames.Missions.Interfaces
{
/// <summary>
/// This represents the read side of reading player data on scene load.
/// </summary>
public interface IMissionPlayerData
{
int ActiveMissionId { get; }
int ActiveMissionStepId { get; }
void Initialize();
}
} |
using System;
using System.IO;
using System.Linq;
using System.Diagnostics;
namespace TextSaber
{
class Program
{
const string FinalAudioName = "song.ogg";
static void Main(string[] args)
{
Console.WriteLine("TextSaber converter, yay!");
var inFile = args[0];
var outDir = args[1];
Directory.Crea... |
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Azure.Documents;
using Microsoft.Azure.Documents.Client;
namespace CosmosDbExplorer.Infrastructure.Models
{
public class StatusBarInfo : IStatus... |
using SubC.AllegroDotNet;
using SubC.AllegroDotNet.Dependencies;
using SubC.AllegroDotNet.Enums;
using SubC.AllegroDotNet.Models;
namespace AllegroDotNet.Example.Cpu
{
internal static class Program
{
private const double Interval = 0.1;
public static void Main(string[] args)
{
... |
namespace SmartCarRentals.Web.ViewModels.Main.DriversRatings
{
using System;
using System.ComponentModel.DataAnnotations;
using SmartCarRentals.Common;
using SmartCarRentals.Data.Models;
using SmartCarRentals.Services.Mapping;
using SmartCarRentals.Services.Models.Main.DraversRatings;
pub... |
using UnityEditor;
using UnityEngine;
namespace MxMEditor
{
[CustomEditor(typeof(MxMAnimationIdleSet))]
public class MxMIdleSetInspector : Editor
{
public override void OnInspectorGUI()
{
EditorGUILayout.LabelField("");
Rect lastRect = GUILayoutUtility.GetLastRect(... |
using System;
using System.Collections.Generic;
using Vektonn.Index;
using Vektonn.SharedImpl.Contracts;
namespace Vektonn.IndexShard
{
internal interface IIndexShard<TVector> : IDisposable
where TVector : IVector
{
long DataPointsCount { get; }
void UpdateIndex(IReadOnlyList<DataPoint... |
using System;
namespace _2k21Extractor
{
[Serializable]
public class GameEvent
{
public string GameStatus;
public string Team;
public string Player;
public string StatChange;
public GameEvent(string gameStatus, string team, string player, string statChange)
... |
using System.Collections;
using UnityEngine;
// 長いので別名をつける
using UText = UnityEngine.UI.Text;
using UImage = UnityEngine.UI.Image;
using URawImage = UnityEngine.UI.RawImage;
using static TweetWithScreenShot.TweetManager;
namespace SukoyakaMeteor.LightNovelMaker
{
/// <summary>
/// リザルト画面を制御するやつ
/// </s... |
using System;
using System.Collections.Generic;
namespace Eshava.Core.Communication.Models
{
public class UrlBuilderSettings
{
public UrlBuilderSettings()
{
SegmentParameter = new Dictionary<string, object>();
QueryParameter = new List<(string Name, object Value)>();
}
public Uri BaseUrl { get; set; ... |
namespace Demo.Clean.Arch.Web.Endpoints.ProjectEndpoints;
public record ProjectRecord(int Id, string Name);
|
using AutofacContrib.NSubstitute;
using FluentAssertions;
using Microsoft.Reactive.Testing;
using Microsoft.VisualStudio;
using Microsoft.VisualStudio.Shell.Interop;
using NSpec.VsAdapter.ProjectObservation;
using NSpec.VsAdapter.ProjectObservation.Solution;
using NSubstitute;
using NUnit.Framework;
using System;
usin... |
namespace Cars
{
public class Tesla : ICar, IElectricCar
{
private string model;
private string color;
public Tesla(string model,string color,int battery)
{
this.Model = model;
this.Color = color;
this.Batteryy = battery;
}
pu... |
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Linq;
namespace NetCore_GigHub.Controllers
{
public class BaseController : Controller
{
protected IEnumerable<string> _GetModelStateErrors()
{
var errors = new List<string>();
ModelState.Val... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TranslatorApk.Logic.Utils;
namespace TranslatorApkTests.Logic.Utils
{
[TestClass]
public class TranslationUtilsTests
{
[TestMethod]
public void FixOnlineTranslationTest()
{
(string source, string expected)[] test... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace BackwardsCap
{
public class SeekingQueueSlot : MonoBehaviour
{
public Image Display;
public Item Seeking;
public QualityBar qualityBar;
private Sprite blankSlotSprit... |
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Printful.API.Model.Entities
{
public class GenerationTaskMockups
{
[JsonProperty("placement")]
public string placement { get; set; }
[JsonProperty("variant_ids")]
public List<int> variant_ids { get; set; }
... |
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace ICSharpCode.CodeConverter.CSharp
{
public interface IOperatorConverter
{
Task<Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax> ConvertReferenceOrNothingComparisonOrNullAsync(Microsoft.CodeAnalysis.Visual... |
using System;
using System.Collections.Generic;
namespace SoftwareSolutions.Core.Domain
{
public partial class MetodoPago
{
public int IdMetodoPago { get; set; }
public string MetodoPago1 { get; set; }
public int IdVenta { get; set; }
public int IdUsuario { get; set; }
... |
namespace Task02_Todos.Data
{
using System;
using System.Data.Entity;
using System.Linq;
public class TodosDbContext : DbContext
{
public TodosDbContext()
: base("name=ModelTodos")
{
}
public virtual DbSet<Todo> Todo { get; set; }
public virtual... |
using System;
using System.IO;
using System.Text;
using IonDotnet.Systems;
using IonDotnet.Tests.Common;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace IonDotnet.Tests.Integration
{
public abstract class IntegrationTestBase
{
public enum InputStyle
{
MemoryStream,
... |
// Copyright (c) Microsoft. All rights reserved.
using Microsoft.Azure.IoTSolutions.DeviceSimulation.Services.Models;
using Newtonsoft.Json;
namespace Microsoft.Azure.IoTSolutions.DeviceSimulation.WebService.v1.Models.DeviceModelApiModel
{
public class DeviceModelSimulationScript
{
[JsonProperty(Prop... |
using System;
namespace DotNext.Net.Cluster.Consensus.Raft.Http
{
/// <summary>
/// Represents supported HTTP version by Raft-over-HTTP implementation.
/// </summary>
[Serializable]
public enum HttpVersion
{
/// <summary>
/// Automatically selects HTTP version.
/// </su... |
using System;
using System.IO;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text.Json;
using System.Threading.Tasks;
var start = await GetStartIdFromDatastore();
var end = 100;
var client = new HttpClient();
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application... |
using Cake.Common.Tools.MSTest;
using Cake.Core.IO;
using Cake.Testing.Fixtures;
namespace Cake.Common.Tests.Fixtures.Tools
{
internal sealed class MSTestRunnerFixture : ToolFixture<MSTestSettings>
{
public FilePath AssemblyPath { get; set; }
public MSTestRunnerFixture()
: base("m... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Glow : MonoBehaviour {
private Renderer ren;
private GameObject tile;
void Start(){
ren = GetComponent<Renderer> ();
tile = GetComponent<GameObject> ();
}
// Update is called once per frame
void OnTriggerEnter... |
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using Bow.Slap.Interfaces;
namespace Bow.Slap
{
class Parser
{
private Configuration _config;
public Parser(Configuration config)
{
_config = config;
}
public dynamic Parse(string[] args, IEnumerable<IArgument> a... |
using FlightNode.Common.Exceptions;
using FlightNode.Identity.Services.Models;
using Moq;
using System;
using System.Net;
using System.Net.Http;
using Xunit;
namespace FlightNode.Identity.UnitTests.Controllers.UserControllerTests
{
public class Get : Fixture
{
private const int USER_ID = 34323;
... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace HappyCoding.AvaloniaMarkdownHelpBrowser.DocFramework
{
public interface IHelpBrowserDocumentPath
{
Assembly HostAssembly { get; }
... |
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
using System;
using ITCC.HTTP.API.Interfaces;
namespace ITCC.HTTP.API.Attributes
{
/// <summary>
/// Describes api request body format
/// ... |
using System;
namespace GoLava.ApplePie.Contracts.Attributes
{
public class JsonDataClassPropertyAttribute : Attribute { }
} |
using HelpMyStreet.Utils.Enums;
using System;
using System.Collections.Generic;
using System.Text;
namespace HelpMyStreet.Contracts.CommunicationService.Request
{
public class MessageParticipant
{
public int? UserId { get; set; }
public EmailDetails EmailDetails { get; set; }
public Gr... |
// 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 Microsoft.AspNetCore.Connections.Features;
namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http3
{
internal class DefaultStreamDi... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Channels;
using System.Threading.Tasks;
using Lime.Protocol.Network;
using Lime.Protocol.Util;
namespace Lime.Protocol.Server
{
/// <summary>
/// Implements a <see cref="ITransportListener"/> aggre... |
using System;
using System.Collections.Generic;
using System.Text;
using BookingApi.Core.Models.ShipmentBooking;
namespace BookingApi.UnitTests.Fixtures
{
public class FakeBookShipmentResponse
{
public string Barcode { get; set; }
public byte[] Label { get; set; }
public string NorskBar... |
#region Using Directives
using System;
using System.Windows;
using System.Windows.Navigation;
#endregion
namespace SLaB.Navigation.ContentLoaders.Utilities
{
/// <summary>
/// A Utility class that simplifies creation of an INavigationContentLoader.
/// </summary>
public abstract class ContentLoade... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hair Salon</title>
</head>
<body>
<h4>Add a new stylist:</h4>
<form action="/stylist/new" method="post" > Stylist name:
<input type="text" name="stylist-name">
<button type="submit">Add</button>
</form>
<h4>Current Stylists</h4>
@{... |
using AssistantTraining.DAL;
using AssistantTraining.Models;
using System.Collections.Generic;
using System.Linq;
namespace AssistantTraining.Repositories
{
public class WorkerRepository
{
private AssistantTrainingContext db = new AssistantTrainingContext();
public WorkerRepository()
... |
using System.Collections.Generic;
using Newtonsoft.Json;
namespace BTCTrader.APIClient.Models
{
/// <summary>
/// Model for existing withdrawal requests and info model for withdrawal requests
/// </summary>
public class WithdrawalRequestInfo
{
[JsonProperty("iban")]
public string I... |
using System.Windows.Controls;
namespace Toolkit.Widget.Controls
{
public class FormSeparator : Separator
{
public FormSeparator()
{
DefaultStyleKey = typeof(FormSeparator);
Form.SetIsItemItsOwnContainer(this, true);
}
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ECS.MemberManager.Core.DataAccess.Dal;
using ECS.MemberManager.Core.EF.Domain;
namespace ECS.MemberManager.Core.DataAccess.Mock
{
public class PaymentDal : IDal<Payment>
{
public void Dispose()
... |
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using MvcMusicStore.Helpers;
using MvcMusicStore.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace MvcMusicStore.ViewComponents
{
public class... |
using JoySoftware.HomeAssistant.Model;
using System;
using System.Text.Json;
using System.Text.Json.Serialization;
namespace JoySoftware.HomeAssistant.Helpers.Json
{
public class HassEventConverter : JsonConverter<HassEvent>
{
public override HassEvent? Read(
ref Utf8JsonReader r... |
namespace ByteDev.ValueTypes
{
/// <summary>
/// Extension methods for <see cref="T:System.Int64" />.
/// </summary>
public static class LongExtensions
{
/// <summary>
/// Returns the number of digits in a long.
/// </summary>
/// <param name="source">Long to perform... |
/*
Copyright ©2020-2021 WellEngineered.us, all rights reserved.
Distributed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Serialization;
namespace WellEngineered.TextMetal.Model.Database
{
... |
using NightlyCode.Scripting;
using NightlyCode.Scripting.Data;
using NightlyCode.Scripting.Parser;
using NUnit.Framework;
using Scripting.Tests.Data;
namespace Scripting.Tests {
[TestFixture, Parallelizable]
public class UnaryOperationTests {
[Test, Description("Logical negation of expressions")]
... |
// Copyright (C) 2020 by Postprintum Pty Ltd (https://www.postprintum.com),
// which licenses this file to you under Apache License 2.0,
// see the LICENSE file in the project root for more information.
// Author: Andrew Nosenko (@noseratio)
#nullable enable
using System;
using System.Runtime.CompilerServices;
nam... |
public class Startup
{
public void Configuration(IAppBuilder app)
{
// Any connection or hub wire up and configuration should go here
GlobalHost.DependencyResolver.UseRedis("server", port, "password", "AppName");
app.MapSignalR();
}
} |
// This file was generated by a tool; you should avoid making direct changes.
// Consider using 'partial classes' to extend these types
// Input: denseline_postprocessor.proto
#pragma warning disable 0612, 1591, 3021
namespace apollo.perception.camera.lane
{
[global::ProtoBuf.ProtoContract()]
public partial c... |
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using RevitToIfcScheduler.Context;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Serilog;
using RevitToIfcScheduler.Utilities;
using System.Linq;
namespace RevitToIfcScheduler.Controllers
{
public class Timezone... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.