content stringlengths 23 1.05M |
|---|
using CsvHelper.DocsGenerator.Infos;
namespace CsvHelper.DocsGenerator.Generators
{
public class NamespaceGenerator : DocumentGenerator
{
public NamespaceGenerator(NamespaceInfo namespaceInfo) : base(namespaceInfo) { }
protected override void GenerateContent()
{
content.AppendLine($"# {namespaceInfo.Names... |
namespace AdventOfCode.Common.Day
{
public interface IAdventOfCodeDay
{
void Solve();
}
public abstract class AdventOfCodeDay<TPart1, TPart2> : IAdventOfCodeDay
where TPart1 : class, IPartSolution, new()
where TPart2 : class, IPartSolution, new()
{
protected abstrac... |
using System;
using System.Collections;
using CotcSdk;
class CountedPromise<T> {
private bool AlreadyResolved;
private Promise<T> Promise;
private int RequiredCount;
public ArrayList Results { get; private set; }
public CountedPromise(int requiredCount) {
RequiredCount = requiredCount;
Promise = new Promise<... |
// Copyright (c) 2012, Michael Kunz. All rights reserved.
// http://kunzmi.github.io/managedCuda
//
// This file is part of ManagedCuda.
//
// ManagedCuda is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundat... |
using StartEx.Domain;
using StartEx.Models.Request;
using StartEx.Models.Response;
using StartEx.Services;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace StartEx.Controllers
{
... |
using System;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging.Abstractions;
using Newtonsoft.Json;
using Xunit;
using ZendeskApi.Client.Resources;
using ZendeskApi.Client.Tests.ResourcesSampleSites;
namespace ZendeskApi.Client.Tests.Resources
{
public class Atta... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using FirstApp.Services;
using FirstApp.Services.Contracts;
using FirstApp.Services.ViewModels.Discussion;
using Microsoft.AspNetCore.Mvc;
namespace FirstApp.Web.Areas.Administration.Controllers
{
public class Discuss... |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using System.Linq;
namespace MMOLibrary
{
public class Map
{
public string MapId { set; get; }
public string Name { set; get; }
//NOTE: First la... |
using IronText.Reflection;
namespace IronText.Runtime
{
public class NullProducer<T> : IProducer<T>
{
public static readonly NullProducer<T> Instance = new NullProducer<T>();
public ReductionOrder ReductionOrder { get { return ReductionOrder.Unordered; } }
public T Result
{
... |
namespace Helsenorge.Messaging.Abstractions
{
/// <summary>
/// Interface for items in <see cref="MessagingEntityCache{T}"/>
/// Since those operations are thread safe (locking) we don't support async methods
/// </summary>
public interface ICachedMessagingEntity
{
/// <summary>
... |
namespace BusTicketsSystem.Services
{
public interface IDatabaseSeederService
{
void SeedData();
}
} |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
namespace MatchingGameEngine
{
public class Engine
{
private Tile[][] _grid;
public Engine(int columns, int rows)
{
_grid = new Tile[rows][];
... |
@using Project0.WebApp
@using Project0.WebApp.Models
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using TenantManager.Core;
namespace TenantManager.Web.Controllers
{
[Route("api/[controller]")]
public class TenantsController : Controller
{
private readonly ITenantManager _tenantManager;
public TenantsController(ITenantMana... |
using System.Net;
namespace IISLP.Core.Models
{
public class LogEntry
{
public IPAddress ClientIP { get; set; }
}
} |
//
// Modified work Copyright 2017 Secure Decisions, a division of Applied Visions, Inc.
//
using System;
using System.IO;
using Mono.Cecil.Cil;
using Mono.Cecil.Pdb;
using Moq;
using NUnit.Framework;
using OpenCover.Framework;
using OpenCover.Framework.Symbols;
namespace OpenCover.Test.Framework.Symbols
{
[Test... |
public class BaffamoUI : FestivalUI // TypeDefIndex: 7339
{
// Fields
[SerializeField] // RVA: 0x165D10 Offset: 0x165E11 VA: 0x165D10
private Image TextImagePerfect; // 0x48
[SerializeField] // RVA: 0x165D20 Offset: 0x165E21 VA: 0x165D20
private Image TextImageSuccess; // 0x50
[SerializeField] // RVA: 0x165D30 Of... |
using System;
using System.Linq;
using System.Runtime.CompilerServices;
using BenchmarkDotNet.Attributes;
namespace IntrinsicsPlayground.Benchmarks.Medians
{
[DisassemblyDiagnoser]
public class Medians
{
private int[] _unsortedArray;
[GlobalSetup]
public void Setup()
{
... |
using UnityEngine;
using System.Collections;
public class TestIsosphere : MonoBehaviour {
public int recursionLevel = 2;
private Mesh _mesh;
void Awake () {
Reset ();
}
void OnDestroy() {
Destroy(_mesh);
}
public void Reset () {
Destroy(_mesh);
_mesh = IsoSphere.Create(recursionLevel);
var meshFi... |
namespace AsyncNet.Tcp.Client
{
public class TcpClientEventData
{
public TcpClientEventData(string serverHostname, int serverPort)
{
this.ServerHostname = serverHostname;
this.ServerPort = serverPort;
}
public string ServerHostname { get; }
publ... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LoggerPalavraCruzada : MonoBehaviour
{
float tempoInicio;
int ajudaRequisitada;
int quantidadeLetrasApagadas;
int quantidadePalavrasSelecionadas;
List<PartidaPalavraCruzada> listaCo... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenQA.Selenium;
using OpenQA.Selenium.Support.PageObjects;
using OpenQA.Selenium.Support.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TaskAppTests.Util;
namespace TaskAppTests.Pa... |
using Foundation.Windows.Shell;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Shell32;
namespace Foundation.Tests.Windows.Shell
{
[TestClass]
public class ShellObjectFixture
{
readonly Shell32.Shell shell = new Shell32.Shell();
public void Detects_if_it_is_a_folder()
{
... |
using Ereceipt.Application.Extensions;
using Ereceipt.Application.Services.Interfaces;
using Ereceipt.Application.ViewModels.Budget;
using Ereceipt.Web.Responses;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
namespace Ereceipt.Web.Controllers.V1
{
public class BudgetsController : ApiBaseController... |
using System;
using System.Collections.Generic;
using System.Text;
namespace MTGAHelper.Entity.Services
{
public class BasicLandIdentifier
{
public bool IsBasicLand(Card card)
{
return card.type.StartsWith("Basic Land") || card.type.StartsWith("Basic Snow Land");
}
}
}
|
using System;
using System.Collections.Generic;
using System.Text;
namespace MoQNaire.Models
{
class ExamSession
{
private ExamName examName;
public ExamName Name
{
get { return examName; }
set { examName = value; }
}
private TimeSpan duration;... |
namespace ExcelDataReader.Silverlight.Core.BinaryFormat
{
/// <summary>
/// Represents BIFF EOF resord
/// </summary>
internal class XlsBiffEOF : XlsBiffRecord
{
internal XlsBiffEOF(byte[] bytes, uint offset)
: base(bytes, offset)
{
}
internal XlsBiffEOF(byte[] bytes)
: this(bytes, 0)
{
}
}
}
|
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or ... |
using GarminAnalyzer.Models;
namespace GarminAnalyzer.Services.Abstractions
{
/// <summary>
/// Try to find the nearest lift for a position to check which lift has been taken
/// </summary>
public interface ILiftFinder
{
Way GetLiftForStartPoint(Position position);
}
} |
using System.Collections.Generic;
namespace Z.Dapper.Plus
{
public partial class DapperPlusEntityMapper
{
/// <summary>Gets the value indicating if identity configuration is modified.</summary>
/// <returns>The value indicating if identity configuration is modified.</returns>
public bo... |
//Copyright (c) 2018 Yardi Technology Limited. Http://www.kooboo.com
//All rights reserved.
using System;
using System.Collections.Generic;
using Kooboo.IndexedDB.CustomAttributes;
using Kooboo.Sites.Helper;
using Kooboo.Extensions;
using System.Runtime.Serialization;
namespace Kooboo.Sites.Models
{
[Kooboo.Attr... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using Microsoft.Research.SEAL;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;
namespace SEALNetTest
{
[TestClass]
public class SEALContextTests
{
[TestMethod]
... |
using System;
namespace UGF.Messages.Runtime.Physics
{
[Serializable]
public class MessageJointBreak : Message, IMessageJointBreak
{
public event MessageJointBreakHandler JointBreakInvoked;
public void Invoke(float breakForce)
{
Invoke();
JointBreakInvoked?... |
using System;
using System.Threading.Tasks;
namespace RuyiJinguBang
{
public static class TaskEx
{
public static void LeavingThrown(this Task Task)
{
// なにもしない。タスクを投げっぱなしにすることのその明示と警告除けの為の拡張メソッド
}
public static Task ContiuneWithOnUIThread<T>(this Task<T> Self, Acti... |
using System;
using System.Collections.Immutable;
using System.Linq;
using CSharpGuidelinesAnalyzer.Extensions;
using JetBrains.Annotations;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Operations;
namespace CSharpGuide... |
using System;
namespace LinqToDB.Linq
{
public interface IUpdatable<T>
{
}
}
|
using StoreLibrary;
using System.Collections.Generic;
namespace StoreDatamodel
{
public interface IStoreRepository
{
// Get methods
// store level
CStore GetOneStore(string storeLoc);
IEnumerable<CStore> GetAllStores();
IEnumerable<CStore> GetAllStoresByZipcode(string z... |
using UnityEngine;
// https://medium.com/c-sharp-progarmming/96d3f598ecd5
public abstract class GameParameters : ScriptableObject
{
public abstract string GetParametersName();
}
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(PlayerDisplay))]
public class Player : MonoBehaviour, ISpeed
{
private PlayerDisplay PlayerDisplay;
[SerializeField] SpriteRenderer SpriteRenderer = null;
[SerializeField] Animator Animator;
[Ser... |
@model PierresTreats.Models.Flavor
<h1>Edit flavor: </h1>
<h2>Flavor to edit: @Html.DisplayFor(model => model.Name)</h2>
<h3>
@using (Html.BeginForm())
{
@Html.HiddenFor(model => model.FlavorId)
@Html.LabelFor(model => model.Name)
@Html.TextBoxFor(model => model.Name,
new {required="required"})
<input type... |
#region copyright
/*
* Copyright 2020 the original author or authors.
*
* 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 Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GuildWars2.API.Model.Commerce
{
public class ItemListingHistory
{
[JsonProperty("timestamp")]
public long TimeStamp { get; set; }
[JsonI... |
using System.Collections.Generic;
using Zpp.GraphicalRepresentation.impl;
namespace Zpp.GraphicalRepresentation
{
public interface IGanttChart
{
void AddGanttChartBar(GanttChartBar ganttChartBar);
List<GanttChartBar> GetAllGanttChartBars();
}
} |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using thelab.mvc;
using Assets.Scripts.model.GameBoard;
using Assets.Scripts.model.GameBoard.types;
public class Player : IPlayer
{
public String Name { get; set; }
public byte TurnOrder { get; set;... |
using System;
using System.Collections.Generic;
namespace Unity.Interception.Interceptors
{
/// <summary>
/// Base interface for type and instance based interceptor classes.
/// </summary>
public interface IInterceptor
{
/// <summary>
/// Can this interceptor generate a proxy for... |
using JT808.Protocol.Enums;
using JT808.Protocol.Extensions;
using JT808.Protocol.Formatters;
using JT808.Protocol.Interfaces;
using JT808.Protocol.MessagePack;
using System.Text.Json;
namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 终端升级结果通知
/// </summary>
public class JT808_0x0108 : JT808Bod... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace Owlvey.Falcon.Core.Entities.Sourceitem
{
public class SourceItemAvailabilityEntity : BaseEntity
{
public int SourceId { get; set... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ncqrs.Commanding;
using Ncqrs.Commanding.CommandExecution.Mapping.Attributes;
namespace MyNotes.Commands
{
[MapsToAggregateRootMethod("MyNotes.Domain.Note, MyNotes.Domain", "ChangeText")]
public class Chang... |
using System.Collections.Generic;
using UnityEngine;
namespace FSM
{
[System.Serializable]
public class FSMState
{
public string name;
[HideInInspector] public int guid;
public ActionReference onEnterAction = new ActionReference();
public ActionReference onStayAction = new A... |
@using Models;
<div>
<h3>@movie.title</h3>
<a href="/movie/@movie.id">
<img src="@movie.PosterPathW300" alt="@movie.title" width="100" />
</a>
</div>
@functions {
public Movie movie { get; set; }
} |
using System;
namespace BookFast.Facility.Data.Models
{
internal class ReliableEvent
{
public int Id { get; set; }
public string EventName { get; set; }
public DateTimeOffset OccurredAt { get; set; }
public string User { get; set; }
public string Tenant { get; set; }
... |
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using UnityEngine.Events;
using System.Collections.Generic;
using System.IO;
public class CharacterSelectionAction : MonoBehaviour, IPointerEnterHandler, ISelectHandler
{
//public Animator spriteAnimator;
publi... |
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Sircl.Website.Data.Localize
{
public class LocalizeDbContext : DbContext
{
public LocalizeDbContext(DbContextOptions<LocalizeDbContext> options)
:... |
using YAF.Lucene.Net.QueryParsers.Flexible.Core.Config;
using YAF.Lucene.Net.QueryParsers.Flexible.Core.Nodes;
using YAF.Lucene.Net.QueryParsers.Flexible.Core.Processors;
using YAF.Lucene.Net.QueryParsers.Flexible.Standard.Config;
using System;
using System.Collections.Generic;
namespace YAF.Lucene.Net.QueryPa... |
using ExcellentGeometry.Utils;
using NUnit.Framework;
namespace ExcellentGeometry.Tests
{
public class TriangleTests
{
[TestCase(-1, 1, 1)]
[TestCase(1, -1, 1)]
[TestCase(1, 1, -1)]
public void DoesNotAllowNegativeSizes(
double sizeA,
double sizeB,
... |
using FreeType2.Handles;
using System;
using System.Drawing;
using System.Runtime.InteropServices;
namespace FreeType2
{
public class BBox : IDisposable
{
private readonly BBoxHandle _handle;
internal unsafe BBox(GlyphHandle glyph, BBoxMode mode)
{
_handle = new BBoxHandle... |
using System.Collections.Generic;
using System.Linq;
namespace Coosu.Shared
{
public static class NumericHelper
{
public static float GetMaxValue(params IEnumerable<float>[] floatLists)
{
return floatLists
.Where(floatList => floatList.Any())
.Select... |
using Cake.Core.Tooling;
namespace Cake.Common.Tools.ILMerge
{
/// <summary>
/// Contains settings used by <see cref="ILMergeRunner"/>.
/// </summary>
public sealed class ILMergeSettings : ToolSettings
{
/// <summary>
/// Gets or sets a value indicating whether whether types in ass... |
using JDI.Light.Interfaces.Common;
using NUnit.Framework;
namespace JDI.Light.Tests.Tests.Common
{
[TestFixture]
public class DatePickerTests : TestBase
{
private const string DefaultDate = "09/09/1955";
private const string CheckDate = "09/05/1955";
private ITextField DatePicker =... |
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//
namespace OffersEmail.FrontEnd.Controllers
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
... |
using System.Collections.Generic;
using NHibernate;
using NHibernate.Engine;
namespace Conversation.NHibernate
{
public class NHibernateConversationFactory : IConversationFactory
{
private readonly IEnumerable<ISessionFactory> _sessionFactories;
public NHibernateConversationFactory(IEnumerable<ISessi... |
using System;
using T3.Core.Operator;
using T3.Core.Operator.Slots;
using T3.Gui.Selection;
namespace T3.Gui.OutputUi
{
public interface IOutputUi : ISelectableNode
{
Symbol.OutputDefinition OutputDefinition { get; set; }
Type Type { get; }
IOutputUi Clone();
void DrawValue(ISl... |
using AnimeTrackingServiceWrapper.Helpers;
using System;
using System.Collections.Generic;
using System.Text;
namespace AnimeTrackingServiceWrapper.Implementation.HummingbirdV1.Models
{
public class GenreHummingbirdV1 : ModelBase
{
private string m_name = "";
public string name
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
public abstract class Role : ReusbleObject, IReusable
{
#region 事件
public event Action<int, int> HpChanged; //血量变化
public event Action<Role> Dead; //死亡
#endregion
#region 字段
[SerializeFiel... |
namespace HY.Utitily.Reflection
{
using System;
using System.Globalization;
using System.Reflection;
/// <Summary>
/// Selects a member from a list of candidates, and performs type conversion
/// from actual argument type to formal argument type.
/// </Summary>
[Serializable]
public class GenericBind... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Engine.Models;
namespace Engine.Factory
{
internal static class QuestFactory
{
private static readonly List<Quest> _quests = new List<Quest>();
static QuestFactory()
... |
using System.Runtime.InteropServices;
namespace Underscore.Templates.MsBuild
{
/// <summary>
/// Used to pass settings to _.templateSettings
/// </summary>
[ComVisible(true)]
public sealed class TemplateSettings
{
public string interpolate { get; set; }
public string evaluate {... |
namespace Pode
{
public enum PodeSmtpStartType
{
None,
Helo,
Ehlo
}
} |
using System.Collections.Generic;
using System.Linq;
namespace P2Modus.Core
{
public static class EntityIds
{
public const int CHARACTER_ID = 1;
#region Traits
private const int TRAIT_BASE_ID = 1000;
public const int VISUAL_TRAIT_ID = TRAIT_BASE_ID + 1;
#endr... |
using common.Configurations;
using common.Modules;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
namespace common.Dependency.Installer
{
public class CoreInstaller : IWindsorInstaller
{
public void Install(IWindsorContainer container, I... |
namespace Gillette_a5
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... |
/*
https://www.codewars.com/kata/574e96deff5b0ab00a000672/csharp
7 kyu
KanaKonverter I
Write a simple converter for vowels.
Romaji: a/A e/E i/I u/U o/O
Hiragana: あ え い う お
Katakana: ア エ イ ウ オ
Expect the above characters as input. There won't be invalid input.
Rules:
If there is... |
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Collections.Generic;
using System.Linq;
using ICSharpCode.SharpDevelop.Dom;
using Rhino.Mocks;
nam... |
using System;
using System.Collections.Generic;
using System.Diagnostics.Tracing;
using System.Linq;
using System.Text;
namespace common
{
public class PerformanceCounterListener : EventListener
{
protected override void OnEventSourceCreated(EventSource eventSource)
{
// Watch for ... |
using Bcan.Efpg.Domain.Entities;
using Microsoft.Data.Sqlite;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using System;
using System.Collections.Generic;
using System.Data.Common;
namespace Bcan.Efpg.Tests.ManyToMany
{
public abstract class MtmTestBase
{
pr... |
namespace BohFoundation.Domain.Dtos.Applicant.References
{
public class ApplicantReferenceInputDto
{
private string _referenceEmail;
public string ReferenceEmail
{
get { return _referenceEmail; }
set { _referenceEmail = value.ToLowerInvariant(); }
}
... |
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Threading.Tasks;
//using Microsoft.Extensions.DependencyInjection;
//using Evol.Common.IoC;
//namespace Evol.Configuration.Ioc
//{
// public interface IIoCManager : IIoCServiceGetter
// {
// IServ... |
using System.IO;
using System.Threading.Tasks;
namespace R4Mvc.Tools.Services
{
public interface IGeneratedFileTesterService
{
Task<bool> IsGenerated(Stream fileStream);
}
}
|
//using System;
//namespace Puresharp
//{
// public interface IResolver : IDisposable
// {
// T Resolve<T>()
// where T : class;
// }
//}
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class SceneFlip : MonoBehaviour {
public Image fader;
public void Awake() {
if (UnityEngine.SceneManagement.SceneManager.GetActiveScene().name != "Game")
StartCoroutine(Fade... |
using StreamMultiChat.Blazor.Modals;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace StreamMultiChat.Blazor.Events
{
public class ModReceivedEventArgs
{
public string Channel { get; }
public IList<string> Mods { get; }
public ModReceivedEventArgs(str... |
using UnityEngine;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LinHoweShuffle
{
/// <summary>
/// Inside-Out Algorithm 算法的基本思想是
/// 在[0, i]之间随机一个下标j,然后用位置j的元素替换掉位置i的数字
/// </summary>
class Inside_Out
{
public static void Shuffle(Pukes pukes)
... |
namespace Assets.Sources.Features.Items
{
using Systems;
using Helpers.SystemDependencies;
public class ItemsFeature : Feature
{
public ItemsFeature(Contexts contexts) : base("Items feature")
{
Add(new EquipItemSystem(contexts));
Add(new RegisterItemsSystem(contexts));
Add(new SpawnItemSystem(context... |
using System;
using System.Net.WebSockets;
namespace TackyTacos.NotificationService.Models
{
public class NotificationMessage
{
public Guid UserId { get; set; }
public Guid OrderId { get; set; }
public MessageType MessageType { get; set; }
public string Message { get; set; }
public string Email { get; set... |
using UnityEngine;
using System.Collections;
public class LeapCameraAlignment : MonoBehaviour {
public HandController handController;
public Transform leftEye;
public Transform centerEye;
public Transform rightEye;
[HideInInspector]
public float tween = 1.0f;
// IMPORTANT: This method MUST be called a... |
using System;
using System.Linq;
using VarReplacerCmd.Args;
using VarReplacerCmd.FileFinder;
using VarReplacerCmd.Replace;
namespace VarReplacerCmd
{
class Program
{
static int Main(string[] args)
{
var whatToDo = new ConsumeArgs(args);
if (whatToDo.ParseError() || what... |
using System;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Blogroll.Common.Links;
using CodeHollow.FeedReader;
namespace Blogroll.Web.Common
{
/// <summary>
/// Performs a discovery of a RSS feed.
/// </summary>
public sealed class FindsFeeds : IFeedDiscovery
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace SmartAdminMvc.Models
{
public class TracerouteResponseSummaryViewModel : ViewModelBase
{
public string SourceIpAddress { get; set; }
public string SourceHostName { get; set; }
... |
using System;
using System.Linq;
using System.Runtime.Caching.Hosting;
using RealmEyeNET.Scraper.Player;
namespace RealmEyeTest
{
class Program
{
static void Main(string[] args)
{
var p = new PlayerScraper("consolemc").ScrapePlayerProfile();
}
}
} |
namespace Game.Robots.Monsters
{
using Game.API.Client;
using Game.API.Common;
using Game.Robots.Herding;
using Newtonsoft.Json;
using System;
using System.Linq;
using System.Numerics;
using System.Threading;
using System.Threading.Tasks;
public class ConfigMonster ... |
using System.Globalization;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Localization;
namespace NugetAnalyzer.Web.Infrastructure.Extensions
{
public static class ApplicationBuilderExtensions
{
public static void UseConfiguredLocalization(this IApplicationBuilder app)
{
... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
namespace NMF.Expressions
{
[DebuggerDisplay("{isDummySet ? \"<dummy>\" : successor?.ToString()}")]
[DebuggerStepThrough]
public class SingleSuccessorList : ISuccessorL... |
using UnityEditor;
using UnityEngine;
[CanEditMultipleObjects, CustomEditor(typeof(MegaFFD3x3x3Warp))]
public class MegaFFD3x3x3WarpEditor : MegaFFDWarpEditor
{
[MenuItem("GameObject/Create Other/MegaFiers/Warps/FFD 3x3x3")]
static void CreateStarShape()
{
CreateFFDWarp("FFD 3x3x3", typeof(MegaFFD3x3... |
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace Assets.Src.Targeting.TargetPickers
{
class InCorrectHemisphereTargetPicker : GeneticallyConfigurableTargetPicker
{
public Transform SourceObject;
public bool KullInvalidTargets = true;
public InCorrectHe... |
namespace Jojatekok.MoneroAPI.RpcUtilities.AccountManager.Json.Requests
{
class QueryBalance : JsonRpcRequest
{
public QueryBalance() : base("getbalance")
{
}
}
}
|
// Copyright 2018 Jeremy Cowles. All rights reserved.
//
// 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
//
// Unless required by applic... |
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using WebPersonal.Shared.Dto;
namespace WebPersonal.BackEnd.API.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class PersonalProjectsController : ControllerBase
{
[Ht... |
namespace SparkPostDotNet
{
using System;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Extensions.Options;
using Transmissions;
public class SparkPostClient
{
private const string DefaultUri = "https://api.sparkpost.com/api/v1/transmissions";
protec... |
using SerializIt;
using CommandLine;
namespace Samples;
internal class Options
{
[Option('s', "serializer", Required = false, HelpText = "One of: Json, Yaml or Xml", Default = ESerializers.Json)]
public ESerializers Serializer { get; set; }
[Option('i', "iterations", Required = false, HelpText = "Number... |
using Newtonsoft.Json;
namespace GenericBlogAPI.Models
{
public class Metadata
{
[JsonProperty(PropertyName = "limit")]
public int Limit { get; set; }
[JsonProperty(PropertyName = "offset")]
public int Offset { get; set; }
public Metadata(int limit, int offset)
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.