text
stringlengths
13
6.01M
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _00.ControOverTheFlowOfAProgram { class Program { static void Main(string[] args) { Console.WriteLine("请输入您的"); bool continueExecution = true; ...
namespace ApiTemplate.Model.Rest { public class CallParameterModel<T> { public T Content { get; set; } public string BaseAddress { get; set; } public bool HasApiKey { get; set; } public bool SendApiKeyByHeader { get; set; } public string ApiKeyName { get; set; } ...
using System; using Phenix.Core.Mapping; namespace Phenix.Business.Rules { /// <summary> /// 方法授权规则基类 /// </summary> public abstract class ExecuteAuthorizationRule : Csla.Rules.AuthorizationRule, IAuthorizationRule { /// <summary> /// 初始化 /// </summary> protected ExecuteAuthorizationRule(Phe...
using AppLogic.Dto; using AppLogic.DtoCreate; using AppLogic.DtoUpdate; using AppLogic.Management; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace BeerShop.Controllers { public class BeerEntityController : ApiController ...
using System; namespace Groceries.Services { public class AppPreferencesService: GroceriesServiceBase{ public AppPreferencesService (IServiceFactory factory):base(factory){} public string CurrentUserId { get { return StringForKey ("CurrentUserId"); } set { SetString ("CurrentUserId", value); } } publ...
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 System.Collections.Generic; using System.Linq; using alg; /* * tags: bfs, dfs * Time(n^2logn), Space(n^2) * dfs: set a limit from 0 to max, use dfs to test feasibility */ namespace leetcode { public class Lc778_Swim_in_Rising_Water { int[,] _dirs = new int[,] { { -1, 0 }, { 1,...
 using Xamarin.Forms; namespace RRExpress.Store.Views { public partial class RecommendView : ContentPage { public RecommendView() { InitializeComponent(); } } }
using System; using System.Drawing; using UIKit; using CoreGraphics; namespace Plugin.Swank { public static class ImageResizer { static ImageResizer() { } public static byte[] ResizeImage(byte[] imageData, float width, float height) { UIImage originalImage =...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Drawing; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Windows.Forms; namespace NSTOX.HistoricalTransactions { public partial class HelpFor...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BossBullet : MonoBehaviour { public string targetTag = "Player"; public int damage = 20; private Rigidbody2D rb2d; void Awake() { rb2d = GetComponent<Rigidbody2D>(); } void Start() {...
using ReactMusicStore.Core.Domain.Entities; using ReactMusicStore.Core.Domain.Interfaces.Repository; using ReactMusicStore.Core.Domain.Interfaces.Repository.ReadOnly; using ReactMusicStore.Core.Domain.Interfaces.Service; using ReactMusicStore.Core.Domain.Services.Common; namespace ReactMusicStore.Core.Domain.Services...
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace Admin.ViewModels { public class PersonalInfo { public string OldPassword {get;set;} public string NewPassword {get;set;} } }
using System.Collections.Generic; using System.Windows; using InRule.Authoring.Services; using InRule.Repository; using InRuleLabs.AuthoringExtensions.FieldsInUse.Extensions; namespace InRuleLabs.AuthoringExtensions.FieldsInUse.Views { internal partial class ManageUnusedFieldsDialog : Window { public FieldDefL...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using VEE.Util; using System.Drawing; using System.IO; using System.Text.RegularExpressions; namespace VEE.Util { public static class HttpPostedFileBaseExtensions { public static byte[] ToByteArray(this HttpPostedFil...
using Common.Data; using Common.Exceptions; using System; using System.Data; using System.Data.SqlClient; namespace Entity { public partial class UsersDragDrop { public bool AddUpdateDragDrop(string connectionString, string loginName, string data) { bool result = false; string sql = String....
using System; using System.Configuration; namespace Kliiko.Ui.Tests.Environment { class Config { public static string Browser { get { return ConfigurationManager.AppSettings["browser"]; } } public static string StayAlive { get { return Configurat...
using Common.Service.DTOModel; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Caching.Memory; using Microsoft.Extensions.Options; using Microsoft.Extensions.Primitives; using Microsoft.IdentityModel.Tokens; usi...
using System; using System.Runtime.Serialization; namespace SecondCode.BetterExceptions { [Serializable] public class InvalidQuantityException : Exception { public int Quantity { get; } public InvalidQuantityException() { } public InvalidQuantityException(string message) : base(message) { } public Inval...
namespace WebAPI.BusinessLogic.Contracts { public interface ICourseRepository { } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; using System.IO; using System.Windows.Media; namespace SurfaceApplicationMaurice { static class LoginControler { static bool isLogged = false; static LoginManager manager = ...
using UnityEngine; using System.Collections; public class EnemyScript : BaseCharacter { public GameObject player; private bool isLeftShot = true; new void Awake() { base.Awake(); player = GameObject.FindGameObjectWithTag("Player"); } // Use this for initialization new void Start () { //call super m...
using System.Reflection; [assembly: AssemblyTitle("Cobalt")] [assembly: AssemblyVersion("1.1.3")] [assembly: AssemblyFileVersion("1.1.3")]
using DotNetToolkit; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Quickflow.Core.Interfaces; using System; using System.Linq; namespace Quickflow.WebHost { public class InitializationLoader { public IHostingEnvironment Env { get; set; } public IConfigurat...
using System; using SQLite; namespace iPadPos { public class ChargeDetails { public ChargeDetails() { Signature = new Signature (); } public double Amount { get; set;} [PrimaryKey] public string Token { get; set;} public string ReferenceID { get; set;} public bool IsRefunded { get; set;} pu...
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace GodaddyWrapper.Requests { public class Consent { /// <summary> /// Unique identifiers of the legal agreements to which the end-user has agreed...
using System; using System.Collections.Generic; using System.Data; using System.Drawing; using System.Linq; using System.Web.UI; using System.Web.UI.WebControls; using HTB.Database; using HTB.v2.intranetx.aktenintprovfix; using HTB.v2.intranetx.permissions; using HTBAktLayer; using HTBExtras; using HTBUtilities; using...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EBS.Query.DTO { public class StorePurchaseOrderSummaryDto { public string StoreName { get; set; } public string SupplierName { get; set; } /// <summary> ///...
using MongoDB.Driver; using Nailhang.IndexBase.PublicApi; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Nailhang.Mongodb.PublicStorage.Processing { class PublicStore : IPublicApiStorage { readonly IMongoCollection<AssemblyEntity>...
/** *\file VehicleRideControl.xaml.cs *\author Przemysław Ciszak *\date August, 2014 */ 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.Documen...
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using Microsoft.Phone.Cont...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Reflection; namespace _2._5_Reflection { class Program { static void Main(string[] args) { // A ideia eh fazer um sisteminha de log, na qual independent...
using System; using System.Collections.Generic; using System.Text; using TablesReady.Data.Domain; using Microsoft.EntityFrameworkCore; using System.Linq; namespace TablesReady.BLL { public class EmployeeManager { public static List<Employee> GetAll() { var context = new Restaurants...
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 System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Euler_Logic.Problems { public class Problem291 : ProblemBase { public override string ProblemName { get { return "291: Panaitopol Primes"; } } public o...
using UnityEngine; namespace UnityAtoms.BaseAtoms { /// <summary> /// Event Reference Listener of type `double`. Inherits from `AtomEventReferenceListener&lt;double, DoubleEvent, DoubleEventReference, DoubleUnityEvent&gt;`. /// </summary> [EditorIcon("atom-icon-orange")] [AddComponentMenu("Unity At...
using eMAM.Data.Models; using Microsoft.AspNetCore.Identity; using System; using System.Threading.Tasks; namespace eMAM.UI.Areas.SuperAdmin.Models { public class UserViewModelMapper : IUserViewModelMapper<User, UserViewModel> { private readonly UserManager<User> userManager; public UserViewMo...
using Alabo.Datas.Stores; using Alabo.Datas.UnitOfWorks; using Alabo.Domains.Entities; using Alabo.Domains.Services.Delete; using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Threading.Tasks; namespace Alabo.Domains.Services.Dictionary { public abstract class DictionaryAs...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.Net.Sockets; using System.Threading; using System.Timers; using System.IO; namespace LBNE_DLL { public class LBNE_COMM { public UInt32 LBNE_DLL_VERSION = 102; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace RandomGenerator { public class StyleCreator { private DocumentTree document; private Randomizer randomizer; private ConfigFacade configFacade; private Random randomNumber...
using Hayaa.DataAccess; using Hayaa.Security.Service.Config; using System; using System.Collections.Generic; using System.Text; namespace Hayaa.Security.Service.Dao { class LoginDal : CommonDal { private static String con = ConfigHelper.Instance.GetConnection(DefineTable.DatabaseName); intern...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using FastReport; using System.IO; using KartLib.Reports; using KartObjects; using System.Windows.Forms; using KartLib; using KartObjects.Entities.Documents; namespace KartSystem { public class GoodWaybillReportViewer : BaseRep...
using System; using System.Globalization; namespace SQLServerBackupTool.Web.Lib.Extensions { public static class NumberExtensions { public static string[] SizeUnits = new[] { "B", "KB", "MB", "GB", "TB", "PB", "EB" }; public static bool IsBetween(this string val, int down, int up) { ...
// QuickCuts Copyright (c) 2017 C. Jared Cone jared.cone@gmail.com // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any ...
using Microsoft.EntityFrameworkCore; using MyOnlineShop.DataAccess.Context; using MyOnlineShop.DataAccess.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MyOnlineShop.DataAccess.Repository { public class OnlineShopRepository : IOnlineShopRepository { ...
using System; using Xunit; using Xunit.Abstractions; namespace Algorithm.Test { public class HanoiTowerTest : TestBase { public HanoiTowerTest(ITestOutputHelper output) : base(output) { } [Theory] [InlineData(1)] [InlineData(2)] [InlineData(3...
using Assets.Scripts.Controllers.Fauna; using Assets.Scripts.Models; using Assets.Scripts.Models.Food; using UnityEngine; namespace Assets.Scripts.Controllers.InteractiveObjects.MiningObjects.Fauna { public class MiningAnimalObject : MiningBaseObject { public Animal Animal; public Controllers....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xlns.ConfigurationManager; using System.Xml.Linq; using System.Web; namespace Xlns.BusBook.ConfigurationManager { public class Configurator : XmlConfigurationManager { private static Configurator _istance; ...
using Nac.Common; using Nac.Common.Control; using System; using System.Collections.Generic; using System.ServiceModel; namespace Nac.Wcf.Common { [ServiceContract(SessionMode = SessionMode.Required, CallbackContract = typeof(INacWcfEngineCallback))] public interface INacWcfEngine { [OperationContract]...
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace MainWebApplication.Models { public class BleHub { ...
using System.IO; using Microsoft.Extensions.Configuration; namespace MySqlConnector.Performance { public static class AppConfig { public static IConfigurationRoot Config = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appsettings.json") .AddJsonFile("config.json")...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class TemporarySaves : MonoBehaviour { public int Score; public void Awake() { DontDestroyOnLoadManeger.DontDestroyOnLoad(gameObject); } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Docller.Core.Models { public class TransmittedFile : FileBase { public int RevisionNumber { get; set; } public string IssuedFileName { get; set; } public string IssuedTitle { get; set; } ...
using Abp.Application.Services.Dto; using System; namespace DgKMS.Cube { public class FundListDto : EntityDto<long> { public DateTime InsertTime { get; set; } public string ItemName { get; set; } public decimal OperateMoney { get; set; } public decimal RemainMoney { get; set...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace STLStruct { public class Vertex { //define a point public double[] points = new double[3]; } }
using Certificates; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Security.Cryptography.X509Certificates; using System.Security.Principal; using System.ServiceModel; using System.Text; using System.Threading.Tasks; namespace Client { class Progr...
namespace TripDestination.Tests.Web.MVC.Controllers { using Common.Infrastructure.Mapping; using NUnit.Framework; using TripDestination.Web.MVC.Controllers; using Moq; using Services.Data.Contracts; using Data.Models; using System.Linq; using System.Collections.Generic; using TestSt...
// Programming Using C# @MAH // Assignment 5 // Author: Per Jonsson // Version 1 // Created: 2013-07-11 // Project: CustomerRegistry // Class: Program.cs using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace ContactRegistry { /// <s...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DTO; using Dapper; using System.Data; using System.Windows.Forms; namespace DAO { public class DB_CTHoaDon { public static List<DTO_CTHoaDon> GetDSCTHoaDon(string maHD) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SingletonPatternExample { interface InterfaceEx { void InterfaceMethod1(); int interfaceMethod2(); } //Static interfaces ? static classes derive those ? //s...
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Xml.Serialization; using System.Xml; using System.Windows.Markup; using System.ComponentModel; using System.Windows.Input; using GalaSo...
public class Solution { public int[][] Insert(int[][] intervals, int[] newInterval) { var lst = new List<int[]>(); int[] curr = null; for (int i = 0; i < intervals.Length; i++) { if (newInterval[1] < intervals[i][0]) { lst.Add(newInterval); ...
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RPC.SQLAPI { public class JsonSQLError : Common.Web.JsonError { public int number; public int line; public st...
using System; namespace CourseHunter_60_Output_outParams { class Program { static void Main(string[] args) { Console.WriteLine("Enter a number"); string enterValue = Console.ReadLine(); //int number; // так надо было писать раньше теперь это не надо. ...
using System; namespace Reactive.Flowable.Subscriber { /** * A {@link Subscription} represents a one-to-one lifecycle of a {@link Subscriber} subscribing to a {@link Publisher}. * <p> * It can only be used once by a single {@link Subscriber}. * <p> * It is used to both signal desire for d...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CefSharp; namespace Browser.Core { public class Delegates { public delegate void MouseMove(int x, int y); public delegate void MouseDown(int x, int y); public deleg...
namespace Sentry; /// <summary> /// Span metadata used for sampling. /// </summary> public class SpanContext : ISpanContext { /// <inheritdoc /> public SpanId SpanId { get; } /// <inheritdoc /> public SpanId? ParentSpanId { get; } /// <inheritdoc /> public SentryId TraceId { get; } /// <...
using Alabo.Validations; using System.ComponentModel.DataAnnotations; namespace Alabo.App.Share.HuDong.Dtos { public class DrawInput { /// <summary> /// </summary> [Display(Name = "类型不能为空")] [Required(ErrorMessage = ErrorMessage.NameNotAllowEmpty)] public string Key { g...
using UnityEngine; using System.Collections; public class RetractablePlateSensor : MonoBehaviour { [SerializeField] private GameObject retractablePlate; private void Retract() { retractablePlate.GetComponent<Animator>().SetTrigger("retract"); } }
using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TP.Entities { [Table("JobAnswers")] public cla...
using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using NetCore.Interface; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NetCore.Service { public class UserService : BaseService, IUserService { priva...
using ImagoCore.Enums; using ImagoCore.Models; using ImagoCore.Models.Events; using Xunit; namespace ImagoCore.Tests.Models { public class AttributTests { [Fact] public void ChangeNw_RaisesEvent() { var id = ImagoEntitaetFactory.GetNewEntitaet(ImagoAttribut.Staerke);...
using EasyWebApp.API.Services.AuthSrv; using EasyWebApp.API.Services.UserSrv; using EasyWebApp.Data.Entities.AuthenticationEnties; using EasyWebApp.Data.Exception; using EasyWebApp.Data.ViewModels; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Identity; using Mic...
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; using System.Threading.Tasks; namespace KeepTeamAutotests.Pages { public class VacancyPage : CommonPage ...
using Microsoft.EntityFrameworkCore.Migrations; namespace CoffeeReview.Migrations { public partial class UpdatingDescription : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.UpdateData( table: "Coffee", k...
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Web; using System.Xml; namespace XH.Labs.AngularJs { public class MailServerConfigurationHandler : IConfigurationSectionHandler { public object Create(object parent, object configContext, XmlNod...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Question1 { class Program { static void Main(string[] args) { Console.WriteLine("Welcome to my app, it will give you the result of base exponents."); ...
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class StartUpController : Controller { public override void Execute(object data) { MVC.RegisterController(Consts.E_EnterSceneController, typeof(EnterSceneController)); MVC.RegisterController(Con...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ZombieAnimation : MonoBehaviour { GameObject player; private float dis; Animator ani; void Start() { this.player = GameObject.Find("Player"); ani = GetComponent<Animator>(); StartC...
using System; namespace TryHardForum.ViewModels.Post { public class EditPostModel { public string Title { get; set; } public string Content { get; set; } public DateTime Created { get; set; } } }
using LHRLA.Core.Helpers; using LHRLA.Core.Methods; using LHRLA.Core.ViewModel; using LHRLA.DAL; using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Web; using System.Web.Mvc; namespace LHRLA.Controllers { public class CaseController : Controller { ...
using Alabo.Domains.Entities; using Alabo.Domains.Enums; using Alabo.Framework.Core.WebUis; using Alabo.Web.Mvc.Attributes; using MongoDB.Bson.Serialization.Attributes; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Alabo.Cloud.Cms.BookDonae.Domain.Entities ...
using System; namespace Vehicles.Models { public class Bus : Vehicle { private const double AcConsumptionMod = 1.4; public Bus(double fuelQuantity, double fuelConsumptionLitersPerKm, double tankCapacity) : base(fuelQuantity, fuelConsumptionLitersPerKm, tankCapacity) { ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Data.SqlClient; using System.Windows.Forms.DataVisualization.Charting; namespac...
using LoowooTech.Stock.ArcGISTool; using LoowooTech.Stock.Models; using LoowooTech.Stock.Tool; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LoowooTech.Stock.Rules { public class ValueManageRule:ValueBaseRule2 { public override string RuleName { get { ...
using Autofac; using Tests.Pages.Advocacy; namespace Tests.Projects.Advocator { using Framework.Core.Common; using NUnit.Framework; using OpenQA.Selenium; [TestFixture] public class AddressValidationUnhappyScenarios : BaseTest { [Test] [Ignore] [TestC...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Dapper.DBContext; using EBS.Domain.Entity; using EBS.Infrastructure.Extension; namespace EBS.Domain.Service { public class RoleService { IDBContext _db; public...
namespace Olive.Web.MVC.Helpers { using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Text.RegularExpressions; using System.Windows.Forms; public class RtfHelper { public static string PlainText(string rtfString) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication { class Program { static void Main(string[] args) { string work; Console.WriteLine("Coefficient of variation and assimilation...
using ClassLibraryAandelen.basis; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; namespace ClassLibraryAandelen.classes { /// <summary> /// enumeratie van de soorten logs dat...
using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Web; namespace MisskeyDotNet { public static class ObjectExtension { public static Dictionary<string, object?> ConvertToDictionary(this object? o) { var dict = new Dictionary<string, objec...
using Motherload.Factories; using Motherload.Interfaces.Unity; using UnityEngine; namespace Assets.Scripts.UI { /// <summary> /// Classe que serve para criar atalhos /// </summary> public class KeyboardShortcuts : MonoBehaviour { #region Services private IGameUI m_GameUI; ...
using System.Collections.Generic; using Alabo.App.Asset.Bills.Domain.Entities; using Alabo.App.Asset.Bills.Domain.Services; using Alabo.AutoConfigs.Entities; using Alabo.Framework.Basic.AutoConfigs.Domain.Services; using Alabo.Test.Base.Core.Model; using Xunit; namespace Alabo.Test.Tenant { /// <summary> /// ...
namespace MySurveys.Models { using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Data.Common; public class Response : DeletableEntity { private ICollection<Answer> answers; public Response() { this.answers = new HashSet<Answer>(...
using System; using UnityEngine; using TMPro; public class TimerScript : MonoBehaviour { private static TimerScript instance = null; public static TimerScript Instance => instance ?? (instance = Instantiate(Resources.Load<TimerScript>("Timer"))); private float timer = 0.0f; private string timeTxt = ""; private...
using UnityEngine; using System.Collections; public class FloorCollision : MonoBehaviour { public GameObject MeObject; void OnCollisionEnter (Collision col) { MeObject.SendMessage ("OnBallFell"); } }
using DesignPatterns.Factory.AbstractFactory.Ingredients; namespace DesignPatterns.Factory.AbstractFactory { public abstract class Pizza { public string Name { get; set; } protected Dough dough; protected Sauce sauce; protected Veggies[] veggies; protected Cheese cheese...
using System; namespace Adapter { public class TanqueInimigo : IAtaqueInimigo { Random gerador = new Random(); public void ArmaFogo() { int danoAtaque = gerador.Next(10); Console.WriteLine($"Tanque inimigo fez {danoAtaque}."); } ...
using Comp; using Dapper; using Model.RawMaterial; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DAL.RawMaterial { /// <summary> /// 原料元素 /// </summary> public class D_Nutrie...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using Project3.Models; namespace Project3.Controllers { public class Cus...