content stringlengths 23 1.05M |
|---|
using System;
using System.Threading;
using Perpetuum.Accounting.Characters;
using Perpetuum.Containers;
using Perpetuum.Log;
using Perpetuum.Services.ProductionEngine.Facilities;
using Perpetuum.Threading.Process;
namespace Perpetuum.Services.ProductionEngine
{
public class ProductionManager : IProcess
{
... |
using DocumentFormat.OpenXml.Spreadsheet;
namespace SpreadsheetLightWrapper.Core.workbook
{
internal class SLSheet
{
internal SLSheet(string Name, uint SheetId, string Id, SLSheetType SheetType)
{
this.Name = Name;
this.SheetId = SheetId;
State = SheetStateV... |
using System;
using NUnit.Framework;
using SFA.DAS.Support.Portal.Core.Domain.Model;
namespace SFA.DAS.Support.Portal.UnitTests.Web.Domain
{
public class WhenTestingEmployerUser
{
protected EmployerUser Unit;
[SetUp]
protected virtual void Setup()
{
Unit = Activato... |
// Plato.Core
// Copyright (c) 2020 ReflectSoftware Inc.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Plato.Security.Cryptography
{
/// <summary>
///
/// </summary>
public class HMACResult
{
/// <summary>
... |
using System;
using System.Linq;
using System.Threading.Tasks;
namespace GamesDatabase.Data.Seeding
{
internal class TagsSeeder : ISeeder
{
public Task SeedAsync(GamesDatabaseContext dbContext, IServiceProvider serviceProvider)
{
throw new NotImplementedException();
}
}... |
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
namespace Lockbase.CoreDomain.Extensions
{
public static class ImmutableExtensions {
public static IImmutableSet<T> AddRange<T>(this IImmutableSet<T> immutableSet, IEnumerable<T> range)
=> range.Aggregat... |
namespace Solid.Principles
{
using System.Collections.Generic;
using System.IO;
using System.Xml.Serialization;
using Define;
using Dto;
public class ReportXML : IReportGenerator
{
public void Generate(string reportFilename, List<EmployeeDto> employees)
{
var fullReportFileName = $"{Consta... |
using CommonCore.Config;
using CommonCore.Messaging;
using UnityEngine;
namespace CommonCore.World
{
/// <summary>
/// Overrides the ambient light used by light reporting
/// </summary>
public class ReportedLightOverride : MonoBehaviour
{
[Tooltip("If set, will override in probed mode, if ... |
namespace Svg.Skia.UnitTests
{
public class SvgTests
{
}
}
|
using System.Text.Json.Serialization;
namespace Horizon.Payment.Alipay.Response
{
/// <summary>
/// ZhimaCreditRiskEvaluateQueryResponse.
/// </summary>
public class ZhimaCreditRiskEvaluateQueryResponse : AlipayResponse
{
/// <summary>
/// 风控评估结果[True:准入;False:不准入]
/// </su... |
namespace Assignment3.Classes
{
//4-6-2021 Saung NEW 5L : Order class for burger orders
public class BurgerOrder : Order
{
//4-6-2021 Saung NEW 5L : Parameterless constructor for serialization
public BurgerOrder(): base(0) { }
public BurgerOrder(int amount) : base(amount) {... |
using System;
using System.Collections.Generic;
using System.Text;
namespace CFX.Structures
{
/// <summary>
/// <para>** NOTE: ADDED in CFX 1.4 **</para>
/// A data structure that represents a data file of any type.
/// The file may be of a known MIME type, or a specialized type defined by CFX (like I... |
using Model = StoreModels;
using Entity = StoreDL.Entities;
namespace StoreDL
{
public interface IMapper
{
Model.Customer ParseCustomer(Entity.Customer customer);
Entity.Customer ParseCustomer(Model.Customer customer);
Model.Location ParseLocation(Entity.Location location);
... |
using System.Collections.Generic;
using System.Diagnostics;
using IxMilia.Dxf.Collections;
namespace IxMilia.Dxf.Entities
{
public partial class DxfUnderlay
{
public IList<DxfPoint> BoundaryPoints { get; } = new List<DxfPoint>();
protected override DxfEntity PostParse()
{
D... |
using SFA.DAS.FAT.Domain.Courses;
using System;
using System.Collections.Generic;
namespace SFA.DAS.FAT.Web.Models
{
public class LevelViewModel
{
public LevelViewModel()
{
}
public LevelViewModel(Level level, ICollection<int> selectedCodes)
{
Selected = s... |
using System;
using System.IO;
namespace UniGet
{
internal static class NugetPackage
{
public static string GetPackageCacheRoot()
{
return Path.Combine(Environment.GetEnvironmentVariable("APPDATA"), "uniget", "nuget");
}
public static Tuple<string, SemVer.Version> ... |
using System.Reflection;
namespace Dasync.ValueContainer
{
/// <summary>
/// Such value container exposes all of its members as properties or/and fields,
/// so you can compile dynamic code to access values for the maximum performance.
/// </summary>
public interface IStronglyTypedValueContainer :... |
@{
ViewData["Title"] = "菜单按钮";
Layout = "~/Areas/SysManage/Views/Shared/_LayoutPageBaseList.cshtml";
}
<div class="row">
<div id="toolbar">
<h1 class="page-title">菜单按钮</h1>
<div class="form-inline pull-right" id="toolbutton">
<input id="pid" name="id" hidden>
</div>
... |
using Elf.Web;
using Elf.Web.Filters;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Abstractions;
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.AspNetCore.Routing;
using NUnit.Framework;
using System.Diagnostics.CodeAnalysis;
namespace Elf.Tests.Filters;
[T... |
using NWaves.Filters.Fda;
using NWaves.Utils;
using System.Runtime.Serialization;
namespace NWaves.FeatureExtractors.Options
{
[DataContract]
public class MfccHtkOptions : MfccOptions
{
public MfccHtkOptions(int samplingRate,
int featureCount,
... |
using System;
using NodaTime;
namespace Planner.Models.Appointments.SyncStructure
{
public class SyncTime
{
public Guid SyncTimeId { get; set; }
public Instant Time { get; set; }
}
} |
#region using statements
#endregion
namespace DataJuggler.WPF.Controls
{
#region delegate void ButtonClickHandler(int buttonNumber, string buttonText);
public delegate void ButtonClickHandler(int buttonNumber, string buttonText);
#endregion
#region delegate void ExpandButtonClickHandler(object se... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PdfCommandBridge
{
public class Settings
{
public bool testmode { get; set;}
public string command { get; set; }
public string arguments { get; set; }
}
}
|
using System;
using System.Runtime.InteropServices;
namespace SevenZip.NativeInterface.Compression
{
/// <summary>
/// An interface that allows you to specify the maximum size of the output stream.
/// </summary>
[Guid("23170F69-40C1-278A-0000-000400340000")]
[InterfaceImplementation(InterfaceImpl... |
using System.Diagnostics;
namespace QuartzFlow
{
public interface IProcessManager
{
void KillProcess(int processId);
}
public class ProcessManager : IProcessManager
{
public void KillProcess(int processId)
{
var process = Process.GetProcessById(processId);
... |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class PlayerInfo : CharaInfo {
public int level;
public int totalExperienceValue;
public List<GameObject> itemList;
public GameObject protector;
public GameObject weapon;
public int money;
// 経験値に関しては別スクリプト... |
//<Snippet1>
using System;
namespace UsageLibrary
{
public class ABaseType
{
public void BasePublicMethod(int argument1) {}
}
public class ADerivedType:ABaseType
{
// Violates rule: DoNotDecreaseInheritedMemberVisibility.
// The compiler returns an error if this is overridden... |
using System;
using System.Threading.Tasks;
namespace FRTools.Common.Jobs
{
public abstract class BaseJob
{
public abstract Task JobTask();
public abstract string RelatedEntityId { get; set; }
public abstract string Description { get; set; }
public Action<string> ReportError {... |
using System;
namespace ClosedXML.Excel
{
internal struct XLFontKey : IEquatable<XLFontKey>
{
public bool Bold { get; set; }
public bool Italic { get; set; }
public XLFontUnderlineValues Underline { get; set; }
public bool Strikethrough { get; set; }
p... |
using LiveChatRoom.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
namespace LiveChatRoom.Controllers
{
public partial class UserController : Controller
{
//For testin... |
using UnityEditor;
using UnityEngine;
namespace StellarDoor.SOCollection
{
public abstract class SOCollectibleEditor<T> : Editor where T : ScriptableObject
{
bool isNew = true;
// static SOCollectibleEditor()
// {
// SceneView.onSceneGUIDelegate += OnScene;
// }
public override void OnInspectorGUI()... |
namespace Orc.Automation
{
using System.Windows;
public static class RectExtensions
{
#region Methods
public static Point GetClickablePoint(this Rect rect)
{
return new Point(rect.X + rect.Width / 2, rect.Y + rect.Height / 2);
}
public static Point GetP... |
namespace Telerik.UI.Xaml.Controls.Data.ListView.Commands
{
/// <summary>
/// Represents the context that is passed as a parameter of a <see cref="CommandId.ItemHold"/> command.
/// </summary>
public class ItemHoldContext
{
/// <summary>
/// Initializes a new instance of the <see cr... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DDev.Tools;
using FluentAssertions;
using Xunit;
namespace DDev.Tools.Test
{
public class LinqUtilsTest
{
/// <summary>
/// Tests the clustering
/// </summary>
... |
//<Snippet2>
// Example of the BitConverter.ToInt32 method.
using System;
class BytesToInt32Demo
{
const string formatter = "{0,5}{1,17}{2,15}";
// Convert four byte array elements to an int and display it.
public static void BAToInt32( byte[ ] bytes, int index )
{
int value = BitConverter.T... |
using HotChocolate.AspNetCore.Instrumentation;
using HotChocolate.AspNetCore.Serialization;
using HttpRequestDelegate = Microsoft.AspNetCore.Http.RequestDelegate;
namespace HotChocolate.AspNetCore;
public sealed class HttpPostMiddleware : HttpPostMiddlewareBase
{
public HttpPostMiddleware(
HttpRequestDele... |
namespace MtgApiManager.Lib.Model
{
/// <summary>
/// Object representing the legality of a card.
/// </summary>
internal class Legality : ILegality
{
/// <inheritdoc/>
public string Format { get; set; }
/// <inheritdoc/>
public string LegalityName { get; set; }
... |
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Google.Protobuf.Reflection;
namespace DevRocks.Ocelot.Grpc.Swagger.Model
{
internal class GrpcServiceDescriptor
{
private readonly List<Descriptor> _descriptors = new List<Descriptor>();
public GrpcServiceDescr... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Audio;
using System;
using UnityEngine.SceneManagement;
public static class GameManager
{
public static PuzzleManager PUZZLE;
public static I_am_the_player PLAYER;
public static AudioMixer SFX;
private sta... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class VideoControl : System.Web.UI.UserControl
{
public String Url
{
get;
set;
}
public String VideoType
{
... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using YamlDotNet.RepresentationModel;
namespace EVE_All_API
{
public class YamlUtils
{
public static YamlStream GetYaml(string fileName)
{
if (!File.Exists(fileName))
{
r... |
using System;
using NetRuntimeSystem = System;
using System.ComponentModel;
using NetOffice.Attributes;
namespace NetOffice.OWC10Api
{
#region Delegates
#pragma warning disable
public delegate void Spreadsheet_BeforeContextMenuEventHandler(Int32 x, Int32 y, NetOffice.OWC10Api.ByRef menu, NetOffice.OWC10Api.ByRef ... |
using System;
using System.Linq;
using System.Windows.Forms;
using WindowsFirewallHelper;
namespace UtilLib
{
public class Firewall
{
static readonly string RuleName = "HsReconnectTool";
IFirewall inst;
IFirewallRule rule;
private Firewall(IFirewall _inst, IFirewallRule _rule)... |
namespace Tingle.Extensions.JsonPatch.Tests;
public class AnotherDTO
{
public int TaskNum { get; set; }
public double Cost { get; set; }
public string? Description { get; set; }
public string? Status { get; set; }
public DtoKind Kind { get; set; }
public List<string>? Tags { get; set; }
pu... |
using Reactive.Bindings.Extensions;
using SandBeige.MealRecipes.Composition.Logging;
using SandBeige.MealRecipes.Composition.Settings;
using SandBeige.MealRecipes.Models.Notifier;
using System;
using System.IO;
using System.Reactive.Disposables;
using System.Xaml;
namespace SandBeige.MealRecipes.Models.Settings {
/... |
using ABCat.Shared.Plugins.DataSets;
using Ionic.Zlib;
using SQLite.Net.Attributes;
namespace ABCat.Plugins.DataSources.AudioBooks
{
[Table("BinaryData")]
public class BinaryData : IBinaryData
{
[Column("Data")] public byte[] Data { get; set; }
public bool IsCompressed { get; set; }
... |
namespace ServiceComponents.AspNet.OpenApi
{
public class OpenApiDocumentOptions
{
public string DocumentName { get; set; } = "v0.1";
public string AppTitle { get; set; } = "Title";
public string AppVersion { get; set; } = "0.0.1";
}
} |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameLogicCloser : MonoBehaviour
{
public GameObject rulesUI, closerUI;
public void ToggleUI()
{
rulesUI.SetActive(!rulesUI.activeSelf);
closerUI.SetActive(!closerUI.activeSelf);
}
}
|
using Entitas;
public class AppSystems : Feature
{
public AppSystems(Contexts contexts) : base("App systems")
{
Add(new AppScreenSystem(contexts));
}
}
|
using System.Collections.Generic;
namespace Lib.AspNetCore.ServerSentEvents
{
/// <summary>
/// Represents Server-Sent Event.
/// </summary>
public class ServerSentEvent
{
#region Properties
/// <summary>
/// Gets or sets the event identifier (optional).
/// </summa... |
using System.Runtime.Serialization;
namespace BinInfo.Models
{
[DataContract]
public class CardOriginInformation
{
[DataMember(Name = "numeric")]
public int Numeric { get; set; }
[DataMember(Name = "alpha2")]
public string Alpha2 { get; set; }
[DataMember(Name = "... |
/* Sourced from Nord:
* https://github.com/arcticicestudio/nord
* https://www.nordtheme.com/docs/colors-and-palettes
*/
namespace ScottPlot.Drawing.Colorsets
{
class PolarNight : HexColorset, IColorset
{
public override string[] hexColors => new string[]
{
"#2E3440", "#3B4252", "... |
using NBitcoin;
using System;
using System.Collections.Generic;
using System.Text;
namespace NBXplorer.Models
{
public class GetBalanceResponse
{
/// <summary>
/// How the confirmed balance would be updated once all the unconfirmed transactions were confirmed.
/// </summary>
public IMoney Unconfirmed { get;... |
//
using System.Collections.Generic;
namespace DotNetDiagrams {
public interface IDiagramGenerator
{
IEnumerable<string> GetDiagramNames();
IEnumerable<string> GetDiagram(string diagramName);
}
}
|
using System;
using System.Linq;
using LinqToDB;
using NUnit.Framework;
using Tests.Model;
namespace Tests.UserTests
{
[TestFixture]
public class Issue2478Tests : TestBase
{
[Test]
public void CrossApplyTest([IncludeDataSources(TestProvName.AllSqlServer2005Plus)] string context)
{
using (var db = GetDataC... |
namespace ManageCoursesUi.Tests.Enums
{
/// <summary>
/// Defines the type of data that needs to be generated by the helper class
/// </summary>
public enum EnumDataType
{
SingleVariantOneMatch,//data setup with one matching variant
MultiVariantOneMatch,//data setup with multiple va... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using Ubiq.Rooms;
using UnityEngine;
using UnityEngine.UI;
namespace Ubiq.Samples
{
public class BrowseMenuControlJoinButton : MonoBehaviour
{
public BrowseMenuControl browseMenuControl;
p... |
using RestApiHelpers.Contracts.Input;
namespace Cinotam.TwoFactorAuth.Twilio.Credentials.Input
{
public class TwilioCredentials : RestApiCredentialsRequest
{
}
}
|
namespace RocketNotify.TelegramBot.Filtration
{
using RocketNotify.TelegramBot.MessageProcessing;
using RocketNotify.TelegramBot.MessageProcessing.Model;
using Telegram.Bot.Types;
/// <summary>
/// Filters a message based on existance of a message processor waiting for the message.
/// </summ... |
using System;
using System.Windows.Input;
namespace Restup.HeadedDemo
{
public class DelegateCommand<T> : ICommand where T : class
{
private readonly Action<T> command;
private readonly Func<T, bool> canExecuteFunc;
public DelegateCommand(Action<T> command, Func<T, bool> canExecuteFunc... |
using UnityEngine;
using System.Collections;
/// <summary>
/// MVC Controller for Enemy. Extends from CharacterController.
/// Lets enemy simply move left/right and change direction if wall is hit (implemented in View).
/// SetBaseModelView of base class supposed to be called here on Awake.
/// </summary>
pu... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using Newtonsoft.Json;
using TeamCityApi.Clients;
namespace TeamCityApi.Domain
{
[DebuggerDisplay("Build: {Id}, {Number}")]
public class Build
{
private IBuildClient _buildClient;
public long Id { get; set; }
... |
using System;
namespace PnP.Core.Admin.Model.SharePoint
{
/// <summary>
/// Contains the available options for creating a group connected team site collection
/// </summary>
public class TeamSiteOptions : CommonGroupSiteOptions
{
/// <summary>
/// Default constuctor for creating a ... |
using UnityEngine;
[ExecuteInEditMode]
public class HierarchyTitle : MonoBehaviour
{
public string title = "Hierarchy Title";
public int margin = 4;
public char character = '-';
private string lastName = "";
#if UNITY_EDITOR
void Update()
{
var left = new string(character, margin);
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JFlepp.Epub.Processing
{
internal sealed class ManifestItem
{
public string? Id { get; }
public string? Href { get; }
public string? Properties { get; }
... |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IntegerValueEditor.cs" company="Slash Games">
// Copyright (c) Slash Games. All rights reserved.
// </copyright>
// -------------------------------------------------------------... |
using System;
using System.IO;
using System.Linq;
using EFCoreSample.EF;
using EFCoreSample.MigrationsFactory;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
namespace EFCoreSample
{
class Program
{
static void Main(string[] args)
... |
using System;
using System.Drawing;
namespace Snake.GameObjects
{
public class BaseItem : IDisposable
{
const int DEFAULT_WIDTH = 10;
const int DEFAULT_HEIGHT = 10;
private readonly Brush _brush;
public Size Size { get; }
public Point Location { get; protected set; }
... |
using FunnelWeb.Model;
using FunnelWeb.Model.Strings;
namespace FunnelWeb.Web.Views.Wiki
{
public class RevisionsModel
{
public RevisionsModel(PageName page, Entry entry)
{
Page = page;
Entry = entry;
}
public PageName Page { get; set; }
... |
using Checkout.Common;
namespace Checkout.Payments.Four.Sender
{
public class PaymentCorporateSender : PaymentSender
{
public PaymentCorporateSender() : base(PaymentSenderType.Corporate)
{
}
public string CompanyName { get; set; }
public Address Address { get; set; }
... |
using System;
namespace ProductScanner.Gateway.Events
{
public class IntegrationEvent
{
public int Id { get; set; }
}
}
|
using System;
namespace Zephyr.DataTransformation
{
public class WrapperUtility
{
public static string Transform(FormatType format, string data, string xslt, bool preserveOutputAsIs = true)
{
switch( format )
{
case FormatType.Yaml:
{
... |
using NUnit.Framework;
namespace Folleach.ConsoleUtils.Tests
{
[TestFixture]
public class ArgsTests
{
[TestCase("n", true, "-n")]
[TestCase("n", false, "-x")]
[TestCase("n", true, "-nn")]
[TestCase("n", false, "--nn")]
[TestCase("n", true, "-nx")]
[TestCase(... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Organism {
// Standard Traits
public float hunger;
// Evolution Traits
public readonly float speed, reproductionValue, deathValue;
public Organism(float hunger, float speed, float reproductionValue, ... |
using NAME.Hosting.Shared;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace NAME.AspNetCore
{
/// <summary>
/// Represents the configuration used for NAME in a ASP.NET core environment.
/// </summary>
/// <seealso cref="NAME.Hosting.Shared.NAME... |
using System;
using System.Globalization;
using System.Text;
using YY.YellowPlatformFormats.Core.Types;
namespace YY.YellowPlatformFormats.Core.Converters
{
public static class ObjectToInternalStringConverter
{
public static string ValueToStringInternal<T>(T sourceValue)
{
string i... |
using System;
namespace MobaFrame.SkillAction
{
public enum BulletType
{
None,
PenetratingBullet,
ColliderBullet
}
}
|
using System;
using JetBrains.ReSharper.Psi.ExtensionsAPI.Tree;
using JetBrains.ReSharper.Psi.TreeBuilder;
namespace JetBrains.ReSharper.Plugins.Yaml.Psi.Tree.Impl
{
public static class YamlChameleonElementTypes
{
// ReSharper disable once InconsistentNaming
private sealed class CHAMELEON_DOCUMENT_BODY_IN... |
using Repositorio.Dominio.Entidades;
using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Repositorio.Infraestructura.Datos.Mapeos
{
class ArticuloMapeo : EntityTypeConfiguration<Articulo>
{
... |
using System;
using System.Reflection;
using System.Threading.Tasks;
using System.Web;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using Microsoft.AspNetCore.Mvc.ModelBinding.Binders;
using Delve.Models;
using Delve.Models.Validation;
namespace Delve.AspNetCore
{
public class ResourceParamBinderProvider : IMode... |
using System.Collections;
using System.Drawing;
namespace System.Windows.Forms
{
public class TreeView : Control
{
public override Color BackColor
{
get
{
throw null;
}
set
{
throw null;
}
}
public override Image BackgroundImage
{
get
{
throw null;
}
set
{
... |
using MongoDB.Bson;
using MongoDB.Bson.Serialization;
using MongoDB.Bson.Serialization.Serializers;
using Northwind.Data;
using EasyLOB.Persistence;
namespace Northwind.Persistence
{
public static partial class NorthwindMongoDBMap
{
public static void SupplierMap()
{
if ... |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class GoalBase : MonoBehaviour
{
float x;
float y;
public int enCollisionAvecSize = 0;
public string enCollisionAvecStr = "";
public GameObject tier1_1;
public GameObject tier1_2;
public PatteMvt patt... |
using Microsoft.Practices.Unity;
using Prism.Unity;
using ViewModelLocator.Views;
using System.Windows;
using Prism.Mvvm;
using System;
using System.Reflection;
namespace ViewModelLocator
{
class Bootstrapper : UnityBootstrapper
{
protected override DependencyObject CreateShell()
{
... |
using System;
using System.Collections.Generic;
namespace Framework
{
public interface IListFrameOut<out ItemViewModelType> : IListFrame
where ItemViewModelType : ViewModel
{
new IEnumerable<ItemViewModelType> DataSource { get; }
new ItemViewModelType GetItemAtIndex(int index);
... |
using MyMusic.Model.Rquests;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace MyMusic.Services
{
public interface IUsersService
{
IList<Model.Users> Get(UsersSearchRequest request);
Model.Users GetById(int id);
Model.Users Ins... |
using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Square;
using Square.Utilities;
namespace Square.Models
{
public class ListP... |
namespace Responsible
{
/// <summary>
/// Represents a test instruction - a synchronous or asynchronous operation producing a single result when executed.
/// All standard test instructions in Responsible have an enforced timeout.
///
/// See <see cref="TestInstruction"/> for extension methods for working with tes... |
using System.IO;
namespace CRWHomework.DataAccess
{
public class FileSystem : IDataAccess
{
public string Read(string connectionString)
{
var sourceFileName = Path.Combine(connectionString);
try
{
FileStream sourceStream = File.Open(sourceFileName, FileMode.Open);
... |
using System.Collections.Generic;
using ItemSystem.Shared.Player.Item;
namespace ItemSystem.Shared.Player.Interfaces
{
public interface IPlayer
{
public List<ItemContainer> Inventory { get; set; }
public Dictionary<ItemSlot, PlayerItem> EquippedItems { get; set; }
}
public enum ItemSlot
{
Head,
Shoulde... |
using System.Collections.Generic;
using System.Threading.Tasks;
namespace MarvelousAPI
{
class Modem
{
#region Private
private const byte ModemAddress = 0xff;
#endregion
#region Public
public List<Beacon> Beacons { get; set; }
public byte MajorVersio... |
using System;
using System.Threading.Tasks;
using System.Web.Http;
using Microsoft.AspNetCore.Mvc;
namespace SOFTTEK.SCMS.SRA.Controllers
{
public class MaintenanceController : BaseApiController
{
[ActionName("Schedule")]
public Task<IHttpActionResult> GetDeviceAvailableWorkOrders()
{
... |
using System.Collections.Generic;
namespace Kuma.Builtins {
public class KumaRange {
public int Start { get; private set; }
public int End { get; private set; }
public bool Inclusive { get; private set; }
public KumaRange (int start, int end, bool inclusive = false) {
... |
using System;
using UnityEngine;
namespace DudeiTerrain
{
[Serializable]
public struct TerrainLayer
{
#region Variables
public float height;
public Color terrainColor;
#endregion Variables
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ActionsAndFuncsInCsharp.ActionSample
{
public class NameLoggingLibrary
{
public static void LogInDatabase(string firstName, string lastName)
{
Console.Write... |
using UnityEngine;
using System.Collections;
using NUnit.Framework;
using NSubstitute;
/// <summary>
///
/// Tests the Room class.
///
/// </summary>
[TestFixture]
public class TestRoom
{
ScriptInstantiator instantiator = new ScriptInstantiator();
[Test]
public void TestCreateRoom()
{
Room ... |
namespace LinkZoneSdk
{
public interface IProfile : IFluentInterface
{
}
} |
/*
* Copyright (c) 2020 LG Electronics Inc.
*
* SPDX-License-Identifier: MIT
*/
using UnityEngine;
[DefaultExecutionOrder(600)]
[RequireComponent(typeof(Clock))]
public class SimulationWorld : CLOiSimPlugin
{
private Clock clock = null;
protected override void OnAwake()
{
type = ICLOiSimPlugin.Type.WORLD;
... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace DotNetty.Handlers.Tls
{
using System.Security.Authentication;
public abstract class TlsSettings
{
protected TlsSettings(SslProtocols enab... |
#nullable enable
using System;
using System.Collections.Generic;
using System.Composition;
using System.IdentityModel.Tokens.Jwt;
using System.Threading.Tasks;
using DevToys.Api.Core;
using DevToys.Api.Tools;
using DevToys.Core.Threading;
using DevToys.Shared.Core.Threading;
using DevToys.Helpers;
using DevToys.Model... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.