content stringlengths 23 1.05M |
|---|
using System.Collections.Generic;
using NUnit.Framework;
namespace NSpec.Tests.WhenRunningSpecs
{
[TestFixture]
class describe_examples_for_abstract_class : when_running_specs
{
class Base : nspec
{
protected List<int> ints;
void before_each()
{
... |
#if DEBUG
using UnityEngine;
using UnityEngine.UI;
namespace DebugMenuSystem
{
/// <summary>
/// OnGUI()の描画は存在するだけでパフォーマンスを食うので
/// DebugMenuの描画はコンポーネントの生成/破棄で管理する
/// </summary>
public class DebugMenuWindow : MonoBehaviour
{
//------------------------------------------------------
// static function
//--... |
// Credit: https://assetstore.unity.com/packages/tools/utilities/autorefs-109670
// Refactored by: enginooby
using System;
namespace Enginooby.Attribute {
[Flags]
public enum AutoRefTarget {
Undefined = 0,
Self = 1,
Parent = 2,
Children = 4,
Siblings = 8,
Scene = 16,
NamedGameObjects ... |
public interface IWeapon{
int GetWeaponDamage();
float GetKnockback();
}
|
namespace PrimusFlex.Data.Models
{
public enum HandSide
{
LEFT, RIGHT
}
}
|
using System;
using MonoMac.AppKit;
namespace macdoc
{
public class AppleDocWizardDelegate : NSApplicationDelegate
{
AppleDocWizardController wizard;
public override bool ApplicationShouldOpenUntitledFile (NSApplication sender)
{
return false;
}
public override void DidFinishLaunching (MonoMac.Fou... |
using SF.Entitys.Abstraction;
using SF.Web.Models;
using System.Collections.Generic;
namespace SF.Web.Base.DataContractMapper
{
/// <summary>
/// 从模型构建表单的构建器的接口
/// </summary>
public interface ICrudDtoMapper<TEntity, TDto, Tkey>
where TEntity : IEntityWithTypedId<Tkey>
where TDto : En... |
using System;
namespace Chattle
{
public class Channel : IIdentifiable, IEquatable<Channel>
{
public Guid Id { get; private set; }
public string Name { get; internal set; }
public string Description { get; internal set; }
public Guid ServerId { get; private set; }
public... |
using System;
namespace YuckQi.Data.Sorting
{
public readonly struct SortCriteria
{
public String Expression { get; }
public SortOrder Order { get; }
public SortCriteria(String expression, SortOrder order)
{
Expression = expression ?? throw new ArgumentNullExceptio... |
using LyraWallet.States.Holding;
using LyraWallet.States.Shop;
using System;
using System.Collections.Generic;
using System.Text;
namespace LyraWallet.States
{
public class RootState
{
public string Network { get; set; }
public string apiUrl { get; set; }
public HoldingState walletSt... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class ScoreElement : MonoBehaviour
{
public TMP_Text usernameText;
public TMP_Text winsText;
public TMP_Text krakensText;
public void NewScoreElement (string _username, int _wins, int _krakens)
{
... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated... |
using System;
using System.Linq;
namespace GenericMethodAndReflection.Tests;
public class NonGenericCaptionBuilder
{
private readonly CaptionBuilder _captionBuilder = new();
public string? ClassCaption(Type type)
{
var baseMethod = typeof(CaptionBuilder)
.GetMethod(nameof... |
using UnityEngine;
public class FlyToRecycleBinComponent : MonoBehaviour
{
private readonly Vector3 recycleBinPosition = new Vector3(-5.98f, -2.41f, 0);
private CRSpline spline;
private float accumulatedTime;
private Vector3 startingScale;
private float startingAlpha;
private SpriteRenderer sprite;
priv... |
namespace AP.MobileToolkit.Fonts.Controls
{
public interface IIconSpan
{
string GlyphName { get; }
}
}
|
using FormsEmbedding.Views;
using System.Windows;
using Xamarin.Forms;
using Xamarin.Forms.Platform.WPF.Extensions;
namespace FormsEmbedding.WPF
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
Forms.Init();
WPFButton... |
//-----------------------------------------------------------------------
// <copyright file="ICslaPrincipal.cs" company="Marimer LLC">
// Copyright (c) Marimer LLC. All rights reserved.
// Website: https://cslanet.com
// </copyright>
// <summary>Defines the base requirements for the interface of any</summary>... |
using System.Collections.Generic;
using System.Linq;
using Xunit;
namespace RafaelEstevam.Simple.Spider.UnitTests.CoreTests.InitParamsTests
{
/// <summary>
/// Uses serialization to make SURE nothing changed.
/// Properties will be enumerated automatically, any new property not handled will break here
... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CallbacksDemo : MonoBehaviour
{
public int dynamicInt;
public int dynamicIntMin;
public int dynamicIntMax;
public Transform valueIndicator;
private void OnValidate()
{
dynamicInt... |
using Epinova.ElasticSearch.Core.Contracts;
using Newtonsoft.Json;
namespace Epinova.ElasticSearch.Core.Models.Properties
{
public class IntegerRange : IProperty
{
public IntegerRange(int gte, int lte)
{
Gte = gte;
Lte = lte;
}
[JsonProperty(JsonNames.... |
using Commons.DTO;
using UserMicroservice.DTO.User.Response;
namespace UserMicroservice.DTO.User {
public class UserResponseDTO : BaseDTO {
public string name { get; set; }
public string surname { get; set; }
public string email { get; set; }
public string phone { get; set; }
... |
using DeliverySystem.Security;
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 Delivery_System_Project
{
public partial class OrdenDeEntre... |
using Content.Client.Stylesheets;
using Robust.Client.GameObjects;
using Robust.Client.UserInterface.Controls;
using Robust.Shared.GameObjects;
using Robust.Shared.Maths;
namespace Content.Client.ContextMenu.UI
{
public partial class EntityMenuElement : ContextMenuElement
{
public const string StyleCla... |
using System;
using System.IO;
using System.Linq;
using MQTTnet.Diagnostics;
using MQTTnet.Diagnostics.PacketInspection;
namespace MQTTnet.Adapter
{
public sealed class MqttPacketInspectorHandler
{
readonly MemoryStream _receivedPacketBuffer;
readonly IMqttPacketInspector _packetInspector;
... |
#region Namespaces
using Achilles.Entities.Relational.SqlStatements;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
#endregion
namespace Achilles.Entities.Sqlite.SqlStatements.Table
{
internal class ColumnConstraintCollection : Collection<ISqlStatement>
... |
using TSW.Struct;
namespace LevelGen
{
public struct LevelShapeCell
{
public Int2 Position { get; private set; }
public int Direction { get; private set; }
public static int ReverseDirection(int direction)
{
return (direction + 2) % 4;
}
public LevelShapeCell(int x, int z, int direction) : this()
... |
using System;
namespace Nimbus.Routing
{
public interface IPathFactory
{
string InputQueuePathFor(string applicationName, string instanceName);
string QueuePathFor(Type type);
string TopicPathFor(Type type);
string SubscriptionNameFor(string applicationName, Type handlerType);
... |
using System;
namespace CommandLineEditors.Editor
{
internal interface IConsoleKeyProcessor
{
/// <summary>
/// Gets or sets the text of the editor.
/// </summary>
string Text { get; set; }
/// <summary>
/// Possibly consumes the key-info. Returns false
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SpringBoneMarker : MonoBehaviour
{
public bool CheckHasChildren()
{
return transform.childCount != 0;
}
public void MarkChildren()
{
if (CheckHasChildren())
{
... |
using UnityEngine;
[CreateAssetMenu(menuName = "States/Falling")]
public class FallingState : APlayerState {
public JumpState referenceState;
public override bool CanTransitionInto( Player player ) {
return player.rigidbody2d.velocity.y < 0;
}
public override void Execute(Player player) {
if (re... |
using UnityEngine;
namespace Flight.Scripts
{
public class PlaneControl : MonoBehaviour
{
[SerializeField] private int _speedMultiplier = 40;
[SerializeField] private float _minSpeed = 20;
[SerializeField] private float _maxSpeed = 200;
[SerializeField] private Transform _camer... |
//-----------------------------------------------------------------------
// <copyright file="CGPointExtensions.iOS.cs" company="Sphere 10 Software">
//
// Copyright (c) Sphere 10 Software. All rights reserved. (http://www.sphere10.com)
//
// Distributed under the MIT software license, see the accompanying file
// LICE... |
using System;
namespace CmpAzureServiceWebRole.Models
{
public partial class ServiceProviderSlot
{
public int Id { get; set; }
public Nullable<int> ServiceProviderAccountId { get; set; }
public string TypeCode { get; set; }
public string ServiceProviderSlotName { get; set; }
... |
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Subjects;
using GadzhiCommon.Helpers.Dialogs;
using GadzhiResurrected.Modules.GadzhiConvertingModule.Models.Implementations.FileConverting.ReactiveSubjects;
using GadzhiResurrected.Modules.GadzhiConvertingModule.Models.Interfaces.FileConverting... |
using ISTC.CRM.BLL.Models;
using System.Collections.Generic;
namespace ISTC.CRM.BLL.Interfaces
{
public interface IUserService
{
IEnumerable<UserBL> GetAll();
UserBL GetUserById(int userId);
void AddUser(UserBL user);
void EditUser(UserBL user);
void DeleteUserById(... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DotGraphsInDotNet
{
using System.Collections.Immutable;
using System.IO;
using System.Threading;
using Shields.GraphViz.Components;
using Shields.GraphViz.Models;
usin... |
namespace Fluxera.Extensions.OData
{
using System;
using System.Linq.Expressions;
using System.Reflection;
using Fluxera.Guards;
internal static class ExpressionExtensions
{
public static Expression<Func<T, object>> ConvertSelector<T, TResult>(
this Expression<Func<T, TResult>> selector)
where T : class... |
namespace Dropcraft.Common.Package
{
/// <summary>
/// Describes deployment event handler
/// </summary>
public class DeploymentEventsHandlerInfo
{
/// <summary>
/// Package where the handler is defined
/// </summary>
public PackageId PackageId { get; }
/// <... |
using System;
using System.Collections.Generic;
using System.Net.Http.Headers;
using KeyPayV2.Sg.Models.Common;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json;
using KeyPayV2.Sg.Enums;
namespace KeyPayV2.Sg.Models.TimeAndAttendance
{
public class AuClockOnModel
{
public int? Locati... |
using System;
using System.Collections.Generic;
using UnityEngine.TestTools.Constraints;
using NUnit.Framework;
using Is = UnityEngine.TestTools.Constraints.Is;
using Enumerable = System.Linq.Enumerable;
namespace AllocationTests.System
{
public sealed partial class TestAllocationIReadOnlyList
{
publi... |
using Newtonsoft.Json;
using RestSharp;
using System.Linq;
namespace PodcastAPI
{
public sealed class ApiResponse
{
public readonly IRestResponse response;
private readonly string jsonString;
public ApiResponse(string jsonString, IRestResponse response)
{
this.resp... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _01.DogHouse
{
class Program
{
static void Main(string[] args)
{
double side = double.Parse(Console.ReadLine());
double height = double.Parse(Console.Re... |
namespace StudentInfoSystem.Models
{
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
public class User
{
[Key]
public int Id { get; set; }
[Index(IsUnique = true)]
[Required]
[MinLength(5)]
[MaxLength(20)... |
using System;
using System.Collections.Generic;
using System.Threading;
using Abc.Zebus.Serialization;
namespace Abc.Zebus.Dispatch
{
public class MessageDispatch
{
private static readonly object _exceptionsLock = new object();
private readonly IMessageSerializer _messageSerializer;
p... |
using System;
using System.Reflection;
using System.Linq;
using System.Collections.Generic;
#if NET40 || NET45
namespace Microsoft.VisualStudio.TestTools.UnitTesting
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class TestClassAttribute : Attribute
{
}
[AttributeUsage(A... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShortestPathReplyCodeChallenge2019
{
class Program
{
static void Main(string[] args)
{
//RunProgram("test");
//RunProgram("1_victoria_lake");
... |
using System;
using Microsoft.Extensions.Configuration;
namespace HansKindberg.IdentityServer.Data.Transferring.Extensions
{
public static class DataImporterExtension
{
#region Methods
public static IDataImportResult Import(this IDataImporter dataImporter, IConfiguration configuration)
{
if(dataImporter ==... |
using Akka.Actor;
using EasyExecute.Messages;
using System;
namespace EasyExecuteLib
{
public class EasyExecuteOptions
{
public TimeSpan? maxExecutionTimePerAskCall { set; get; }
public string serverActorSystemName { set; get; }
public ActorSystem actorSystem { set; get; }
publi... |
using EasyWMI;
using System;
namespace EasyWMIDemo
{
class Program
{
static void Main(string[] args)
{
// Request WMI data from a remote machine.
WMIProcessor wmi = new WMIProcessor();
wmi.Request = WMI_ALIAS.CPU;
wmi.Filter = "name,t... |
using Newtonsoft.Json;
using PoeHUD.Hud.Settings;
namespace PoeHUD.Hud.Loot
{
public sealed class ItemAlertSettings : SettingsBase
{
public ItemAlertSettings()
{
Enable = true;
ShowItemOnMap = true;
Crafting = false;
ShowText = true;
... |
using System.Collections.Generic;
namespace RavenNest.BusinessLogic.Docs.Models
{
public class DocumentApiMethodRequest
{
public DocumentApiMethodRequest(string contentType, string example)
{
this.ContentType = contentType;
Example = example;
}
public s... |
namespace Daishi.Tutorials.RobotFactory {
public abstract class RobotBuilder {
protected Robot robot;
public Robot Robot { get { return robot; } }
public abstract void BuildHead();
public abstract void BuildTorso();
public abstract void BuildArms();
public abstract... |
namespace Jugnoon.Videos
{
public class VideoInfo
{
public string ProcessID { get; set; } = "";
public long ProcessedSize { get; set; } = 0;
public int ProcessedTime { get; set; } = 0;
public long TotalSize { get; set; } = 0;
public double ProcessingLeft { get; set; } = ... |
// ---------------------------------------------------------------------------------------------
#region // Copyright (c) 2005-2015, SIL International.
// <copyright from='2005' to='2015' company='SIL International'>
// Copyright (c) 2005-2015, SIL International.
//
// This software is distributed under the... |
using System;
using System.Threading.Tasks;
using System.Collections.Generic;
namespace Barebone.Routing.Fluent.Tests
{
using AppFunc = Func<IDictionary<string, object>, Task>;
using OwinEnv = IDictionary<string, object>;
public class Assert : Xunit.Assert {
public static void RoutesTo(OwinEnv owinEnv, AppFunc a... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace AsyncInn.Models
{ //RoomAmenities is a pure Join Table.
public class RoomAmenities
{ // RoomID and AmenitiesID constitute a Composite Key for RoomAmenities.
public int RoomID { get; set; }
... |
#region License
// Copyright (c) Amos Voron. All rights reserved.
// Licensed under the Apache 2.0 License. See LICENSE in the project root for license information.
#endregion
using System;
using System.Linq;
using System.Text;
namespace QueryTalk.Wall
{
/// <summary>
/// This class is not intended for publi... |
using Bot.Builder.Community.Adapters.Infobip.Core;
using Bot.Builder.Community.Adapters.Infobip.Viber.Models;
using Microsoft.Bot.Schema;
namespace Bot.Builder.Community.Adapters.Infobip.Viber.ToActivity
{
public class InfobipViberToActivity: InfobipBaseConverter
{
public static Activity Convert(Infob... |
//---------------------------------------------------------------------
// <copyright file="ODataUntypedValue.cs" company="Microsoft">
// Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
// </copyright>
//-----------------------------------... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Referencenumber_fi
{
public static class Check
{
public static string CheckNumbers(string input)
{
int length = input.Length;
char[] number = in... |
using System;
using System.Globalization;
using System.Linq;
using System.Windows;
using System.Windows.Data;
using System.Windows.Media;
namespace Accelerider.Windows.Infrastructure.Converters
{
public class StringToImageConverter : IValueConverter
{
public object Convert(object value, Type targetTyp... |
using System;
using System.Net.Http;
using System.Threading.Tasks;
namespace Scalex.Utils
{
internal class ResourceRequestManager
{
private HttpClient _httpClient;
public ResourceRequestManager(HttpClient httpClient)
{
_httpClient = httpClient;
}
public asy... |
// CS0214: Pointers and fixed size buffers may only be used in an unsafe context
// Line: 11
// Compiler options: -unsafe
public class C
{
unsafe int* i;
public static void Main ()
{
var v = new C().i;
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
public abstract class dfTouchInputSourceComponent : MonoBehaviour
{
public int Priority;
public abstract IDFTouchInputSource Source { get; }
}
|
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Http;
namespace Blaster.WebApi.Security
{
public class IdTokenAccessor
{
private readonly IHttpContextAccessor _contextAccessor;
public IdTokenAccessor(IHttpContextAccessor contextAcc... |
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace WebHybridClient.Controllers
{
[Route("[controller]")]
public class StatusController : Controller
{
[Route("test")]
public IActionResult Test()
{
return View();
}
... |
// Copyright (c) 2019-present Viktor Semenov
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace DevRating.VersionControl.Fake
{
public sealed class FakeFilePatch : FilePatch
{
private readonly Deletions _deletions;
private readonly Ad... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Text;
using UnityEngine;
using XUnity.AutoTranslator.Plugin.Core.Constants;
using XUnity.AutoTranslator.Plugin.Core.Extensions;
using XUnity.Common.Constants;
using XUnity.Common.Harmony;
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Microsoft.R.Debugger.Engine {
publ... |
using System;
using System.Collections.Generic;
using System.Linq;
namespace TerritoryTools.Entities.AddressParsers
{
public class StreetTypeStreetNameFinder : Finder
{
private List<StreetType> streetTypes;
private List<AddressPartResult> possibilities
= new List<AddressPartResult... |
using System;
/*Problem 6. The Biggest of Five Numbers
Write a program that finds the biggest of five numbers by using only five if statements.
*/
class Program
{
static void Main()
{
decimal a = 0.0006m;
decimal b = -0.005m;
decimal c = -1.2m;
decimal d = -0.05m;
decim... |
using System;
using System.ComponentModel.DataAnnotations;
namespace Paas.Pioneer.Admin.Core.Application.Contracts.LowCodeTable.Dto.Output
{
/// <summary>
/// 低代码表格
/// </summary>
public class LowCodeTableOutput
{
/// <summary>
/// Id
/// </summary>
[Required]
... |
namespace Fuxion;
using Fuxion.Identity;
using Fuxion.Repositories;
public interface IIdentityRepository : IKeyValueRepository<string, IIdentity> { } |
using System;
using Entitas.VisualDebugging.Unity.Editor;
using UnityEditor;
namespace Entitas.Generics
{
/// <summary>
/// An inspector drawer for <see cref="AddedListenersComponent{TEntity, TComponent}"/>/
/// <see cref="RemovedListenersComponent{TEntity, TComponent}"/>;
/// Shows information about... |
using System.IO;
using System.Linq;
using System.Reflection;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
namespace BlogSite.Migrations
{
public partial class StoredProcs : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
... |
@using ResponsiveMenu.Mvc
@using ResponsiveMenu.Mvc.Models
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, ResponsiveMenu.Mvc
@addTagHelper *, AspnetCore.Responsive.Razor |
using OpenBots.Server.Model.Core;
using System;
namespace OpenBots.Server.Model.Configuration
{
public class EmailAccount : NamedEntity
{
public bool IsDisabled { get; set; }
public bool IsDefault { get; set; }
public string Provider { get; set; }
public bool IsSslEnabled { get... |
using System;
class Orders
{
static void Main()
{
string product = Console.ReadLine();
int numberOfProducts = int.Parse(Console.ReadLine());
double result = Price(product, numberOfProducts);
Console.WriteLine($"{result:F2}");
}
private static double Price(string produ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Ruanal.Core.ApiSdk
{
public class CommandApi
{
public static ApiResult<List<CmdDetail>> GetCommands()
{
var v = SdkCore.InvokeApi<List<CmdDetail>>(ConfigConst.API_COMMAND_GETNEWS, null);... |
namespace VRFI
{
public interface IFlickKeyAction
{
void OnFlickStart(VRFI_Operater operater);
void OnFlickEnd(VRFI_Operater operater);
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.Mail;
namespace Shahmat.Common
{
public class Helpers
{
public static List<long> New10DigitsRandomUniqueKey(int ammount)
{
return New10DigitsRandomU... |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
public class Products
{
private string product;
private double price;
public Products(string product, double price)
{
this.product = product;
this.price = price;
}
public ... |
using UnityEngine;
namespace HelperFunctions
{
namespace Clickable
{
namespace Text
{
public class ClickableText : ClickableObject
{
private DisplayText text;
private string textID = "";
public GameObject displayParent;
private const float BOUNDS_BORDER = 0.5f;
protected Color startColo... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/*
* -- BasicCharacterController2D
*
* Handles Gravity, Jump and Horizontal Movement
*/
namespace DYP
{
[RequireComponent(typeof(CharacterMotor2D))]
public class BasicMovementController2D : MonoBehaviour, IHas2... |
using System;
namespace MAVN.Service.OperationsHistory.Client.Models.Requests
{
/// <summary>
/// Represents a base period request model
/// </summary>
public class PeriodRequest
{
/// <summary>
/// Represents FromDate
/// </summary>
public DateTime FromDate { get;... |
namespace AillieoUtils.CSFixedPoint {
internal static class FPTanLut_38912 {
internal static fp[] table = new fp[] {
fp.CreateWithRaw(5791093012), // 1.34834391348672
fp.CreateWithRaw(5791383120), // 1.34841145951166
fp.CreateWithRaw(5791673246), // 1.34847900990283
... |
using System;
using System.Collections.Generic;
namespace Data.Model
{
public sealed class Profile
{
public string Id { get; set; }
public string DisplayName { get; set; }
public string ForwardingAddress { get; set; }
public DateTime CreatedUtc { get; set; }
... |
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using Umbraco.Core;
using Umbraco.Core.Persistence;
namespace GrowCreate.PipelineCRM.Services
{
public class DbService
{
[ThreadStatic]
private static volatile Database _db;
... |
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Strategy.Properties;
namespace Strategy.Library.Components
{
/// <summary>
/// Displays an exception.
/// </summary>
... |
using System.Collections.Generic;
using UnityEngine;
namespace Master
{
public interface IDustItemDatabase
{
IEnumerable<DustItemData> All();
}
public class DustItemDatabase : IDustItemDatabase
{
private DustItemData[] datas;
public DustItemDatabase()
{
... |
/*
* Microsoft Public License (Ms-PL) - Copyright (c) 2020-2021 Sean Moss
* This file is subject to the terms and conditions of the Microsoft Public License, the text of which can be found in
* the 'LICENSE' file at the root of this repository, or online at <https://opensource.org/licenses/MS-PL>.
*/
using ... |
using System;
using System.IO;
using System.Reflection;
namespace DotnetActionsToolkit.Tests
{
public static class TestingUtils
{
public static string GetAssemblyDirectory()
{
var location = Assembly.GetExecutingAssembly().Location;
return Path.GetDirectoryName(location... |
using System.Linq;
using System.Collections.Generic;
namespace DotAutomatedClassCreator
{
class DotParser
{
private string[] excludes = new string[] { "edge", "node", "graph" };
public DotParser()
{
}
public bool isFirstLineAGraphHeader(string str)
{
return str.Contains(... |
// using LibOptimization;
// using System;
// Console.WriteLine("Rodando!");
// //Instantiation objective Function
// var func = new LibOptimization.BenchmarkFunction.clsBenchRosenblock(2);
// //Instantiation optimization class and set objective function.
// var opt = new LibOptimization.Optimization.clsOptPSO(fu... |
using System;
using System.Threading.Tasks;
namespace TechTalk.SpecFlow.Bindings
{
public class BindingDelegateInvoker : IBindingDelegateInvoker
{
public virtual async Task<object> InvokeDelegateAsync(Delegate bindingDelegate, object[] invokeArgs)
{
if (typeof(Task).IsAssignableFro... |
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace UniHumanoid
{
public interface ISkeletonDetector
{
Skeleton Detect(IList<IBone> bones);
}
public class BvhSkeletonEstimator : ISkeletonDetector
{
static IBone GetRoot(IList<IBone> bon... |
using System;
using HandHistories.Objects.Hand;
namespace HandHistories.Parser.Compression
{
public class HandHistoryTinyFormatCompressorImpl : IHandHistoryCompressor
{
public string CompressHandHistory(string fullHandText)
{
throw new NotImplementedException();
}
... |
using Microsoft.Extensions.Logging;
using System;
using System.Net.Http;
using System.Threading.Tasks;
namespace LoggingScopeSample
{
class SampleController
{
private readonly ILogger<SampleController> _logger;
public SampleController(ILogger<SampleController> logger)
{
_lo... |
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Text;
using DeckGenerator.IO;
namespace DeckGenerator
{
public class DeckGenerator
{
public string PathToImages;
public string TargetPath;
public string TargetImage... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AMP.Models;
using AMP.Utilities;
namespace AMP.WorkflowClasses
{
public class RequestBuilder:WorkflowBuilderBase
{
public RequestBuilder(WorkflowMaster workflowMaster, IAMPRepository ampRepository, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.