content stringlengths 23 1.05M |
|---|
using UnityEngine;
namespace qASIC.Options
{
public class BasicOptions
{
[OptionsSetting("resolution", typeof(string))]
public static void ChangeResolution(string resolution)
{
Vector2Int res = VectorText.ToVector2Int(resolution);
Screen.SetResolution(res.x, res... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CartService.Database.Models
{
public class CartPosition
{
public Guid Id { get; set; }
public Guid CartId { get; set; }
public Cart? Cart { get; set; }
... |
[System.Serializable]
public class ModelHologram : Hologram
{
private string filename;
private string storageID;
private string textureFilename;
private string textureStorageID;
private string materialFilename;
private string materialStorageID;
private string encodedFile;
public Model... |
using System.Threading.Tasks;
using LiqpayWrapper.Data.Requests;
using LiqpayWrapper.Data.Responses;
namespace LiqpayWrapper.P2P
{
interface IP2PClient : ILiqpayClient
{
Task<P2PResponse> P2PAsync(P2PRequest model);
Task<P2PCreditResponse> P2PCreditAsync(P2PCreditRequest model);
}
}
|
using System;
using System.Collections.Generic;
public class JobAdClasses
{
[Serializable]
public class Total
{
public int value;
}
[Serializable]
public class FreetextConcepts
{
}
[Serializable]
public class Description
{
public string text;
... |
using System;
using System.Collections.Generic;
namespace GoLive.Generator.BlazorInterop
{
public class Settings
{
public string JavascriptFile { get; set; }
public string Namespace { get; set; }
public string ClassName { get; set; }
public string OutputToFile { get; set; }
... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using LitJson;
public enum LoaderState
{
//初始
Null = 0,
//正在准备中
Prepare,
//正在加载
Loading,
//加载完成
Finish,
... |
using System.Diagnostics.CodeAnalysis;
using EdFi.Ods.Api.Infrastructure.Pipelines.CreateOrUpdate;
using EdFi.Ods.Api.Infrastructure.Pipelines.Factories;
namespace EdFi.Ods.Api.Pipelines.SampleStudentTransportation
{
[ExcludeFromCodeCoverage]
public class StudentTransportationCreateOrUpdatePipeline : CreateOrU... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
using Microsoft.AspNetCore.Components;
using Microsoft.MobileBlazorBindings.Core;
using System.Threading.Tasks;
namespace Microsoft.MobileBlazorBindings.Elements
{
public partial class CheckBox : View
{
[Parameter] public Event... |
// 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 System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using Syste... |
using System;
using System.Collections.Generic;
using System.IO;
using Newtonsoft.Json.Linq;
namespace Voron.Graph.Impl
{
public class GraphQueries
{
public IEnumerable<Node> GetAdjacentOf(Transaction tx, Node node, ushort type = 0)
{
if (tx == null) throw new ArgumentNullException("t... |
#region Copyright (c) 2015 KEngine / Kelly <http://github.com/mr-kelly>, All rights reserved.
// KEngine - Toolset and framework for Unity3D
// ===================================
//
// Filename: KResourceLoaderDebuggers.cs
// Date: 2015/12/03
// Author: Kelly
// Email: 23110388@qq.com
// Github: https://github... |
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using static ExpressionToString.Tests.Functions;
using static ExpressionToString.Tests.Categories;
namespace ExpressionToString.Tests.Objects {
public static partial class CSCompiler {
[Category(Defaults)]
public static... |
using System.Text.Json;
using System.Threading.Tasks;
using TackyTacos.OrderService.Data;
using TackyTacos.OrderService.Messaging;
using TackyTacos.OrderService.Models;
namespace TackyTacos.OrderService.Services
{
public class OrdersService
{
private readonly OrdersRepository _ordersRepository;
private readonly... |
namespace DiscordBot.Common.Configuration;
public class MessageConfiguration {
public List<string> WaitMessages { get; set; }
}
|
using OpenQA.Selenium;
using System;
using System.IO;
using TechTalk.SpecFlow;
using Xunit;
namespace Web.UI.Tests
{
[Binding]
public class SimpleWebBrowserSteps : WebDriverStepsBase
{
[Given(@"I am on the (.*) page")]
public void IAmOnThePage(string relativeUrl)
{
var ... |
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Neo.IO;
using Neo.Network.P2P.Payloads;
using System;
using System.Collections;
namespace Neo.UnitTests.Network.P2P.Payloads
{
[TestClass]
public class UT_MerkleBlockPayload
{
[TestMethod]
public void Size_Get... |
namespace Work4net.Channel.Notify
{
/// <summary>
/// The special publisher interface for worker communication
/// </summary>
public interface IWorkerPublisher
{
/// <summary>
/// Publish the message to worker
/// </summary>
/// <param name="message">The message to p... |
using System;
public class StartUp
{
public static void Main()
{
var input = Console.ReadLine().Split();
var food = new Food();
var mood = new Mood();
Console.WriteLine(mood.GetMood(food.GetFood(input)));
}
}
|
@model GitCandy.Models.TreeModel
@{
ViewBag.Title = string.Format(SR.Shared_TitleFormat, string.Format(SR.Repository_TreeTitle, Model.RepositoryName, Model.ReferenceName ?? Model.Commit.Sha.ToShortSha(), Model.Path));
}
<h3>@Html.ActionLink(Model.RepositoryName, "Tree", Html.OverRoute(new { path = "" }))</h3>
@... |
using Data;
using Data2;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WF01_01_MyFirstWF.Models;
namespace WF01_01_MyFirstWF.ViewModels
{
public class ListLivreViewModel
{
public List<LivreModel> ListBookVM { get; set; }
public double TotalPrixVM { ... |
//
// Copyright (c) Microsoft and contributors. 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 requi... |
using System.Collections.Generic;
namespace ProjectBrowser.Backend.Models {
interface IDoc {
string Id { get; set; }
List<string> ManagerIds { get; set; }
int Version { get; set; }
string DocCreationDate { get; set; }
bool Equivalent(object obj);
bool Validate();
string GetDocType();
}... |
namespace Roton.Emulation.Data
{
public interface ISearchContext
{
int Index { get; set; }
int SearchIndex { get; set; }
int SearchOffset { get; set; }
string SearchTarget { get; set; }
}
} |
using System.Collections.Generic;
using System.Linq;
using iSukces.Code.Interfaces;
namespace iSukces.Code
{
public class CsEnumItem : IDescriptable, IAttributable
{
public CsEnumItem()
{
}
public CsEnumItem(string enumName) => EnumName = enumName;
public CsEnumItem(s... |
using UnityEngine;
using UnityEngine.UI;
namespace VEngine.Example
{
public class LoadingScreen : MonoBehaviour, IProgressBar
{
public Slider slider;
public Text text;
public CanvasGroup canvasGroup;
public void SetMessage(string message)
{
text.text = mes... |
namespace TwilightSparkle.Forum.Models.Common
{
public class SectionViewModel
{
public string SectionName { get; set; }
}
}
|
using System.Collections.Generic;
using System.Threading.Tasks;
using Common.DTO;
using Common.DTO.TmdbDTO;
using Common.Exceptions;
using Common.Services.Infrastructure.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace Common.WebApiCore.Con... |
using BenchmarkDotNet.Attributes;
using Bunit.Rendering;
using Microsoft.AspNetCore.Components;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging.Abstractions;
namespace Bunit;
public abstract class BenchmarkBase
{
private static readonly ComponentParameterCollection EmptyParamet... |
namespace Raytracer
{
class Ray
{
public Vector3 Start;
public Vector3 Dir;
}
}
|
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Drawing;
using BeerViewer.Framework;
namespace BeerViewer
{
public partial class Settings
{
private static string getKey([CallerMe... |
using System.Reflection;
[assembly: AssemblyCopyright("Copyright \x00a9 Yin-Chun Wang 2012-2014")]
[assembly: AssemblyCompany("Yin-Chun Wang")]
[assembly: AssemblyVersion(NTwain._NTwainVersionInfo.Release)]
[assembly: AssemblyFileVersion(NTwain._NTwainVersionInfo.Build)]
[assembly: AssemblyInformationalVersion(NTwai... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace AutofacAspNetCore.Services
{
public class MercedesService : ICarService
{
public string PrintSpecification()
{
return "Mercedes Specification";
}
}
}
|
using System;
using System.Collections.Generic;
using NSubstitute.Core.Arguments;
using NSubstitute.Exceptions;
using NSubstitute.Routing;
namespace NSubstitute.Core
{
public class ThreadLocalContext : IThreadLocalContext
{
private static readonly IArgumentSpecification[] EmptySpecifications = new IAr... |
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
namespace DefaultInterfaceMethods
{
public class SentryErrorHandler : IErrorHandler
{
private readonly string _sentryUrl = "https://sentry.something/api/log";... |
@model IEnumerable<MVC.ViewModel.RecipeVM>
@{
ViewBag.Title = "Index";
}
<h2>Рецепти</h2>
<p>
@Html.ActionLink("Създай", "Create")
</p>
<style>
.p {
white-space: nowrap;
width: 370px;
overflow: hidden;
text-overflow: ellipsis;
border: 1px solid #000000;
}
</s... |
using StrangeAttractor.Util.Functional.Interfaces;
using StrangeAttractor.Util.Functional.Implementation.Maybe;
namespace StrangeAttractor.Util.Functional.Singletons
{
public static class Option
{
public static IOption<T> Nothing<T>()
{
return None<T>.Instance;
}
p... |
//=================================================================================================
// Copyright 2013-2017 Dirk Lemstra <https://magick.codeplex.com/>
//
// Licensed under the ImageMagick License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy... |
using Domain.Models.Entities;
using Infrastructure.Repositories.Transactions;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Domain.DomainEvents.Transactions;
using Infrastructure.Adapters.MediatR;
namespace UmHelpFinanceiro.Services.Transactions.Impl
{
public class Transactio... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Mediachase.Sync.Core.Common
{
public class CycleCollection<T> : IEnumerable<T>
{
private class CycleIterator<T1> : IEnumerator<T1>
{
CycleCollection<T1> _owner;
private int _index;
... |
namespace trillbot.Classes {
public class pair {
public Card item1 { get; set; }
public int item2 {get; set; }
public pair(Card c, int j) {
item1 = c;
item2 = j;
}
}
} |
/*****************************************************************************
Copyright 2018 The TensorFlow.NET Authors. 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 Licen... |
using System;
using System.Globalization;
using System.Threading;
using HotChocolate.Language;
using Xunit;
namespace HotChocolate.Types
{
public class DateTimeTypeTests
{
[Fact]
public void Serialize_Utc_DateTime()
{
// arrange
var dateTimeType = new DateTimeTy... |
namespace ElectronicArt1
{
partial class ArtForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <p... |
namespace ScheduledWorker.Library.Core.Schedule
{
using System.Collections.Generic;
using Contracts.Schedule;
/// <summary>
/// This class holds a schedule at it's most basic.
/// </summary>
public class Schedule : ISchedule
{
#region Private Memebers
/// <summary>
... |
namespace Enums.Activities
{
public enum WorkType
{
DirtyJob,
PaperWork,
Blacksmith
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Threading;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using MvcMusicStore.App_Start;
using MvcSiteMapProvider.Web;
using MvcSiteMapProvider.Web.Mvc;
using DI;
namespace MvcMusicStore... |
namespace SAFT_Reader.Adapter
{
public interface IXmlSerializerAdapter
{
T ConvertXml<T>(string xml);
}
} |
using System;
using System.Threading;
namespace Threads {
class A {
private readonly int id;
public A(int id) {
this.id = id;
}
public void DoWorkA() {
Console.WriteLine("Turning On A-{0}!", id);
Thread.Sleep(5000);
Console.WriteLi... |
using UnityEngine;
using TMPro;
namespace TG.GameJamTemplate
{
/// <summary>
/// Handles a HUD
/// </summary>
public class HUDManager : MonoBehaviour
{
[SerializeField] TextMeshProUGUI _scoreTXT = default;
[SerializeField] TextMeshProUGUI _highScoreTXT = default;
[Serializ... |
using System;
using System.Collections.Generic;
namespace SimpleCardGames.Battle.UI.Card
{
public interface IUiPlayerHand : IUiCardPile
{
List<IUiCard> Cards { get; }
Action<IUiCard> OnCardPlayed { get; set; }
Action<IUiCard> OnCardSelected { get; set; }
Action<IUiCard> OnCard... |
using FastTunnel.Core.Extensions;
using FastTunnel.Core.Global;
using FastTunnel.Core.Handlers;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using System;
namespace SuiDao.Server
{
public class Program
{
public static void Main(string[] args)
{
CreateHost... |
namespace SqlQueryBuilder.Options {
public class QueryBuilderOptions {
public ISqlFlavor SqlFlavor { get; set; }
public IColumnFormat ColumnFormat { get; set; }
public bool SmartDate { get; set; }
public bool OverprotectiveSqlInjection { get; set; }
public bool AddParameteriz... |
// -----------------------------------------------------------------------
// <copyright file="BlastRequest.cs" company="Microsoft">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------
namespace Sailthru.Models
{
using System;
using System... |
namespace Login.Models.Forms.Google
{
public struct LoginWithGoogleFormData
{
public string GoogleIdToken { get; set; }
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Haskell.CoreToFSharp.CompilationTree
{
public class FSharpUnionCaseUnit : FSharpCompilationUnit
{
private FSharpConstructorExpressionUnit _reference;
private FSharpConstructorTypeUnit _expressionTyp... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Microsoft.Samples.Kinect.GestureRecognizer
{
using System.IO;
using System.Windows;
using System.Windows.Media;
using Microsoft.Kinect;
public class RelativePosition : Position
{
public dou... |
#region Using Directives
using System.Linq;
using System.Text;
using System.Collections.Generic;
#endregion
namespace Pharmatechnik.Nav.Language.Text {
public static class ClassifiedTextExtensions {
public static string JoinText(this IEnumerable<ClassifiedText> parts) {
return... |
using System;
using System.Collections.Generic;
using System.Text;
namespace HREngine.Bots
{
class Sim_AT_037 : SimTemplate //* Living Roots
{
//Choose One - Deal 2 damage; or Summon two 1/1 Saplings.
CardDB.Card kid = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.AT_037t); //Sapling
... |
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using HarmonyLib;
using Microsoft.Xna.Framework;
using Pathoschild.Stardew.Common.Patching;
using Pathoschild.Stardew.SmallBeachFarm.Framework;
using StardewModdingAPI;
using StardewValley;
using StardewValley.Locations;
using SObjec... |
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Signicat.Express.Information.Organization
{
public class BasicInfo
{
/// <summary>
/// Organization name
/// </summary>
public string Name { get; set; }
/// <summary>
... |
using System;
using Octopus.Client.Extensibility.Attributes;
namespace Octopus.Client.Model.Triggers
{
public enum TriggerFilterType
{
MachineFilter,
OnceDailySchedule,
ContinuousDailySchedule,
DaysPerMonthSchedule,
CronExpressionSchedule
}
public abstract clas... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Diagnostics.CodeAnalysis;
using System.Drawing;
using System.Drawing.Design;
namespace System.Windows... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MicAudioController : MonoBehaviour
{
public const string audioName = "mic.wav";
public AudioSource audioSource;
public AudioClip audioClip;
public string soundPath;
private void Start()
{
audi... |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using JBooth.MicroSplat;
[ExecuteInEditMode]
[RequireComponent(typeof(Terrain))]
[DisallowMultipleComponent]
public class MicroSplatTerrain : MonoBehaviour
{
[Tooltip("Material to use for terrain")]
public Material templateMaterial;... |
namespace SharedTrip.Services.Trips
{
using SharedTrip.ViewModels.Trips;
public interface ITripsService
{
void AddTrip(AddTripInputModel input);
AllTripsViewModel GetAllTrips();
TripDetailsVewModel GetTripDetails(string id);
bool AddUserToTrip(string tripId, string userI... |
using System;
namespace _03.Card_Power
{
public class Startup
{
public static void Main()
{
var firstRank = Console.ReadLine();
var firstSuit = Console.ReadLine();
var secondRank = Console.ReadLine();
var secondSuit = Console.ReadLine();
... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using VideoLibrary.Helpers;
namespace VideoLibrary
{
public abstract class ServiceBase<T> : IService<T>, IAsyncService<T>
where T : ... |
using System;
using System.Collections.Generic;
using NUnit.Framework;
using Xamarin.Forms;
namespace Xamarin.Forms.Xaml.UnitTests
{
public partial class DataTemplate : ContentPage
{
public DataTemplate()
{
InitializeComponent();
}
public DataTemplate(bool useCompiledXaml)
{
//this stub will be rep... |
namespace _13.Factorial
{
using System;
using System.Numerics;
public class Factorial
{
// Write a program that calculates and prints the "n!" for any "n" in the range[1…1000].
// Example: Input: 5 -> Output: 120 Comments: 1 * 2 * 3 * 4 * 5 = 120
public static void Main()
... |
using Xamarin.Forms;
using XenForms.Core.Designer.Reactions;
using XenForms.Core.Messages;
using XenForms.Core.Networking;
using XenForms.Core.Widgets;
namespace XenForms.Designer.XamarinForms.UI.Reactions
{
public class GetWidgetPropertiesReaction<TVisualElement> : GetPropertiesReaction<TVisualElement>
{
... |
// DigitalRune Engine - Copyright (C) DigitalRune GmbH
// This file is subject to the terms and conditions defined in
// file 'LICENSE.TXT', which is part of this source code package.
using System;
using System.Collections.Generic;
using DigitalRune.Collections;
using DigitalRune.Geometry.Shapes;
using DigitalRune.Ma... |
using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
namespace Ryujinx.Graphics.GAL
{
[StructLayout(LayoutKind.Sequential, Size = 8)]
public struct BufferHandle : IEquatable<BufferHandle>
{
private readonly ulong _value;
public static BufferHandle Nul... |
namespace GuiLabs.LayoutDesigner
{
public class UI
{
public static readonly double Spacing = 11;
public static readonly double GrayedOpacity = 0.2;
}
}
|
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
using System.Collections;
using System;
public class GameManager : MonoBehaviour {
public class EventDispatcher
{
public Action GameStarted;
public Action GameCompleted;
}
public static MapManager map { get { return s_instance.m_map;... |
using System;
namespace Common
{
public static class Try
{
public static void Safely(Action action)
{
try
{
action();
}
catch (Exception ex)
{
if (ex is StackOverflowException
|| ex ... |
namespace Demo1_PatternMatching.Model
{
public class Truck : Vehicle
{
private const int TruckStandardWeight = 5000;
public Truck(bool isEnvironmentFriendly = false)
: base(TruckStandardWeight, isEnvironmentFriendly)
{
}
}
}
|
//----------------------------------------------------------------------
// <copyright file="TranslationIntegrationModel.cs" company="GlobalLink Vasont">
// Copyright (c) GlobalLink Vasont. All rights reserved.
// </copyright>
//----------------------------------------------------------------------
namespace Vasont.In... |
using System;
namespace NonBlocking
{
public class HttpResponseArgs : EventArgs
{
public string HttpBody { get; set; }
public int ResponseCode { get; set; }
}
} |
//------------------------------------------------------------------------------
// <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 regenerate... |
// ===================================================================
// 项目说明,功能实体类,用CodeSmith自动生成。
// ===================================================================
// 文件名: StatBrowser.cs
// 修改时间:2018/1/4 19:07:47
// 修改人: lixiong
// ===================================================================
using Sy... |
namespace SteamDB_FreeGames.Models {
public class Config: NotifyConfig {
public bool EnableHeadless { get; set; }
public bool NotifyKeepGamesOnly { get; set; }
public int TimeOutMilliSecond { get; set; }
}
}
|
using System;
using System.Collections.Generic;
using UML=TSF.UmlToolingFramework.UML;
using System.Linq;
namespace WorkTrackingFramework
{
/// <summary>
/// Description of Project.
/// </summary>
public interface Project
{
List<Workitem> workitems {get;set;}
string name {get;set;}
List<Workitem> getOwned... |
namespace SimulationInsight.RadarLibrary
{
public enum ScanPatternType
{
Undefined,
CircularScan,
SectorScan,
RasterScan
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SoftwareAcademy
{
class OffsiteCourse : Course, IOffsiteCourse
{
public OffsiteCourse(string name, string town, ITeacher teacher = null)
: base(name, teacher)
... |
using FoodDeliveryApp.FoodDeliveryAppModel;
using FoodDeliveryApp.FoodMenu;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FoodDeliveryApp.RestaurantFoodMenu
{
public class RestaurantFoodMenuIterator : IIterator
{
List<Food... |
using NetSql.Repository;
using NetSql.Test.Common.Model;
namespace NetSql.Test.Common.Repository
{
public interface IArticleRepository : IRepository<Article>
{
}
}
|
using System.Collections.Generic;
namespace SchwabenCode.Data.Entity
{
/// <summary>
/// Interface for validateable entities
/// </summary>
/// <typeparam name = "TIdentifier">Type if <paramref name = "Id"/></typeparam>
public interface IValidateableEntity<TIdentifier> : IEntity<TIdentifier> where... |
using System;
using System.Diagnostics;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Extensions;
using Microsoft.Extensions.Logging;
using Serilog.Context;
namespace Discussion.Core.Middleware
{
// todo: 添加单元测试;添加到 HttpClient 的集成... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
public class pointerCleanup : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
{
float time = 0;
float timeout = 2;
void IPointerEnterHandler.OnPointerEnter(PointerEventData eventData)
... |
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Threading.Tasks;
using commercetools.Common;
using commercetools.Customers;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace commercetools.Carts
{
/// <summary>
/// Provides access to the functions... |
using InquirerCore;
using InquirerCore.Prompts;
using InquirerCore.Validators;
namespace Samples.Basic
{
public static class Sample1
{
public static void Run()
{
var numbersOnly = new RegexValidator("^[0-9]*$");
var nameInput = new Input("name", "What is your name?");
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... |
using System;
using UnityEngine;
using UnityEngine.UI;
using DG.Tweening;
public class UIEffects : MonoBehaviour
{
Image fillImg;
Sequence mySque;
#region 填充饼图操作
public void StartFillImage(Ryan3DButton btn)
{
if (!fillImg)
{
fillImg = GetComponent<Image>();
fillImg.fillAmount = 1f;
fillImg.transfo... |
using System.Collections.Generic;
namespace BTI7252.Models
{
public class EventModel
{
public string Name { get; set; }
public KeyValuePair<string, string> Parameters { get; set; }
}
} |
using UnityEngine;
using System.Collections;
//[System.Serializable]
public class MainMenu
{
private Button[] btn;
private int menuState;
private string iTemsTag = "mainMenuItem";
private GameObject _cam;
public MainMenu(int itens)
{
Init(itens);
}
public void Init(int itens)
{
_cam = GameObject.Find... |
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
#pragma warning disable 1591
namespace Plotly.Models.Layouts.XAxes
{
/// <summary>
/// Determines whether spikelines are stuck to the cursor or to the closest
/// datapoints.
/// </summary>
[JsonConverter(typeof(Enum... |
using System.Collections.Generic;
namespace NTrospection.CLI.Models
{
public class CommandResponse
{
public bool WasSuccess { get; set; }
public List<string> Messages { get; set; }
public CommandResponse()
{
Messages = new List<string>();
}
}
}
|
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace OverdriveEngine
{
/// <summary>
/// A playable animation.
/// </summary>
public class Animation
{
private Sprite2D tar... |
/**
* Apache License
* Version 2.0, January 2004
* http://www.apache.org/licenses/
*
* Copyright 2022 Thomas Cashman
*
* See LICENSE file
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace RdXml
{
public class RdMethodInstantiation : RdElement
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.