text
stringlengths
13
6.01M
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; namespace Mercado.Dao { public abstract class BaseDao { private string ConnectionString { get; set; } protected BaseDao(string connectionString) { ConnectionString = connection...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerPrefsValue : MonoBehaviour { public string key = "myValue"; private int num; public int Num { get { if (PlayerPrefs.HasKey(key)) { num = PlayerPref...
namespace AjLisp.Primitives { using System; using System.Collections.Generic; using System.Text; using AjLisp.Language; public class SubrFunctionP : SubrUnaryOperation { public override object Execute(object argument, ValueEnvironment environment) { retu...
using CommClass; using CommunalClass; using Utils; using NetExtensions; namespace DBPusher { class NetInteractive:BaseModule { private WebServer2 _Server = new WebServer2(); public override void Init() { } public override void Close() ...
using System; namespace Doggo_Capstone_backEnd.ViewModels { public class UserItem { public int Id { get; set; } public string Name { get; set; } public string About { get; set; } public string Breed { get; set; } public string Size { get; set; } public string Sex { get; set; } public st...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PokerProbability { public class Player { public enum BLIND { Big, Small, None } public BLIND Blind { get; set; } public int Chips { get; set; } pub...
using System; using System.Collections.Generic; using System.Data.Entity; using System.Diagnostics; using System.Linq; using System.Linq.Expressions; using DAL.Interface.DTO; using DAL.Interface.Repository; using ORM; using DAL.Mappers; namespace DAL.Concrete { public class UserRepository : IUserRepository { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TableManageData { public class Dish { public int Id { get; set; } public decimal Price { get; set; } public decimal Cost { get; set; } public string ...
using System; using System.IO; using System.Web; using System.Web.Mvc; using System.Web.UI; namespace ZiZhuJY.Web.UI.Helpers { public static class UrlExtensions { public static string Content(this UrlHelper urlHelper, string contentPath, bool toAbsolute = false) { var path = urlHel...
using System; using System.Collections.Generic; using City_Center.Clases; using Xamarin.Forms; using City_Center.PopUp; using Rg.Plugins.Popup.Extensions; using static City_Center.Models.HabitacionesResultado; using City_Center.ViewModels; using System.Linq; using City_Center.Models; using System.Collections.ObjectMod...
// // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See LICENSE file in the project root for full license information. // #region Usings using System; using System.Collections.Generic; using System.Web.UI; using System.Web.UI.WebControls; #endregion namespace DotNetNuke.We...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using TQVaultAE.Domain.Entities; using TQVaultAE.Domain.Helpers; namespace TQVaultAE.Domain.Results; public class ToFriendlyNameResult { IEnumerable<string> _FullText = null; private void FulltextBuild() { ...
namespace AjLisp.Primitives { using System; using System.Collections.Generic; using System.Text; using AjLisp.Language; public class SubrList : Subr { public override object Execute(List arguments, ValueEnvironment environment) { return arguments; ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Sockets; using System.Reflection; using System.Threading; using System.Threading.Tasks; using System.Web; using Micro.Net.Abstractions; using Micro.Net.Core.Abstractions.Pipelin...
using System; using System.Net; using System.Threading.Tasks; using System.Web.Mvc; using LearningSignalR.BackEnd.DbRepository.Entity; using LearningSignalR.BackEnd.ViewModels.Messages; using LearningSignalR.Infrastructure; using LearningSignalR.Infrastructure.Hubs; using Microsoft.AspNet.Identity; using Microsoft.Asp...
using Microsoft.Extensions.DependencyInjection; using Microsoft.VisualBasic; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Windows.Forms; using TNBase.DataStorage; using TNBase.Objects; namespace TNBase.Forms { public partial class FormFindListener : Form {...
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 SmartClass { public partial class LoginForm : Form { private bool login_succes...
//using Microsoft.Practices.Prism.Mvvm; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PheonixRt.Mvvm { /// <summary> /// view model to represent meta data for a structure /// </summary> public ...
using FatCat.Nes.OpCodes.Transfers; using JetBrains.Annotations; namespace FatCat.Nes.Tests.OpCodes.Transfers { [UsedImplicitly] public class TransferYToAccumulatorTests : TransferTests { protected override byte CpuTransferFromItem { get => cpu.YRegister; set => cpu.YRegister = value; } protected ove...
using Mirror; using System.Collections; using System.Collections.Generic; using UnityEngine; public class ColorScript : NetworkBehaviour { private Color colour; // Start is called before the first frame update void Start() { if (!isLocalPlayer) { return; } ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Xml; using InvoiceClient.Properties; using Utility; using Model.Schema.TXN; using InvoiceClient.Helper; using InvoiceClient.TransferManagement; using System.Threading.Tasks; usin...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace cocoapuffs { class CotophaAST { public class CotophaGeneric { public Int32 relativeOffset; public Int32 absoluteOffset; public byte opcode; public str...
namespace RedLine.Models { public enum RemoteTaskAction { Download, RunPE, DownloadAndEx, OpenLink, Cmd } }
using Modelos.Cadastros.Visitantes; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Factorys.Cadastros.Visitantes { /// <summary> /// Factory resposável por conversões de Controle de Acesso /// </summary> public static class...
using Relocation.Base.UI; using Relocation.Data; using Relocation.Base; namespace Relocation.Forms.ListBase { public class UserListBase:BaseFormList<User> { public UserListBase():base() { } public UserListBase(Session session) : base(session) { } protected override string Entity2...
using Xunit; using Zip.CreditInputs; namespace CreditCalculatorTests.CreditInputTests { public class CompletedPaymentsCalculatorTests { [Fact] public void Constructor_Exception_TooLow() { Assert.Throws<CreditInputException>(() => new CompletedPaymentsCalculator(-1)); ...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class FollowMouseCursor : MonoBehaviour { private Camera cam; private Vector3 mousePos; private float screenWidth; private float screenHeight; private void Start() { cam = Camera.main; screenWidt...
using System.Collections.Generic; using System.Linq; namespace SolidabisChallenge { class ConsecutiveConsonantAnalyzer : ISentenceAnalyzer { public bool CanBeFinnish(Sentence sentence) { foreach (string word in sentence.DecipheredWords) { if (AreAllChara...
using FastSQL.Core; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace FastSQL.API.ViewModels { public class CreateAttributeViewModel { public string Name { get; set; } public string Description { get; set; } public st...
using System.Collections; using System.Collections.Generic; using UnityEngine; [CreateAssetMenu(fileName = "SOVector3", menuName = "NateStuff/ScriptableObjects/Vector3")] public class SOVector3 : ScriptableObject { public Vector3 vector; }
using Xamarin.Forms; namespace AnimeViewer.Views.Partials { public partial class BannerView : ContentView { private View _customView; private string _text; public BannerView() { InitializeComponent(); BindingContext = this; } public str...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; using System.Xml.Serialization; namespace ExpManagerToOwnMoney.Models { [Serializable] [XmlRoot("expmanager")] public class ExpManagerXmlModel { public ExpManag...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ApiCatalogoCarro.Exceptions { public class CarroNaoCadastradoException : Exception { public CarroNaoCadastradoException() : base("Este carro não está cadastrado") {...
#if UNITY_EDITOR using UnityEditor; #endif using UnityEngine; using System.Collections; namespace ProjectV.ItemSystem{ [System.Serializable] public class ISArmor : ISObject,IISArmor,IISDestructable,IISGameObject { [SerializeField]int _currentArmor; [SerializeField]int _maxArmor; [SerializeField]int _durabilit...
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WpfAppAbit2.Models { public interface IRepository<T> where T : class { ObservableCollection<T> GetAll(); void Create(T item); ...
using System; namespace DevDevDev.Models { public class SessionSubmission : Microsoft.WindowsAzure.Storage.Table.TableEntity { public SessionSubmission() { PartitionKey = "Session"; RowKey = Guid.NewGuid().ToString(); SubmittedDateUtc = DateTime.UtcNow; ...
using BPiaoBao.DomesticTicket.Domain.Models.Orders; using System; using System.Collections.Generic; using System.Data.Entity.ModelConfiguration; using System.Linq; using System.Text; namespace BPiaoBao.DomesticTicket.EFRepository.OrdersMap { public class TicketMap : EntityTypeConfiguration<Ticket> { p...
using Query_Creator_for_Excel.Properties; using System; using System.Collections.Generic; using System.Diagnostics.Eventing.Reader; using System.Globalization; using System.IO; using System.Linq; using System.Reflection; using System.Resources; using System.Windows.Forms; namespace Query_Creator_for_Excel { publi...
using System.Collections.Generic.V40; namespace System.Collections.Immutable { using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reflect...
using Microsoft.VisualBasic.CompilerServices; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Text; using System.Text.Json; using TableTopCrucible.Data.SaveFile.DataTransferObjects; using TableTopCrucible.Domain.Models.Sources; using TableTopCrucible.D...
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 Maze { public partial class Form1 : Form { enum DoorOfRoom { ...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyController : MonoBehaviour { private bool onGround; [SerializeField] LayerMask engel; private float width; private Rigidbody2D enemyBody; private static int EnemyCounter; // Start is called before ...
using System; using System.ComponentModel.Composition; using System.Windows; using System.Windows.Threading; namespace Torshify.Radio.Core.Views { [Export(typeof(MainView))] public partial class MainView { #region Fields private readonly DispatcherTimer _deferredAutoCompleteTimer; ...
using LuaInterface; using SLua; using System; public class Lua_UnityEngine_ComputeBufferType : LuaObject { public static void reg(IntPtr l) { LuaObject.getEnumTable(l, "UnityEngine.ComputeBufferType"); LuaObject.addMember(l, 0, "Default"); LuaObject.addMember(l, 1, "Raw"); LuaObject.addMember(l, 2, "Append")...
using UnityEngine; public class playanim : MonoBehaviour { #region Fields [SerializeField] private string animName; #endregion #region Unity Methods void Update() { GetComponent<Animation>().CrossFade(animName); } #endregion }
using System.ComponentModel; using System.Globalization; using System; namespace ShCore.Types { [ConverterOf(Target = typeof(long))] public class Int64Converter : ShTypeConverter { public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value, ShTypeCode typeC...
using Psub.DataAccess.Abstract; using Psub.DataService.HandlerPerQuery.SectionProcess.Entities; using Psub.Domain.Entities; using UESPDataManager.DataService.HandlerPerQuery.Abstract; namespace Psub.DataService.HandlerPerQuery.SectionProcess.Handlers { public class MainSectionCreatePostHandler : IQueryHandler<Mai...
using System; using System.Collections.Generic; using System.Fabric; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.ServiceFabric.Data.Collections; using Microsoft.ServiceFabric.Services.Communication.Runtime; using Microsoft.ServiceFabric.Services.Runtime; using RedditSharp; ...
using System; using System.Runtime.InteropServices; using System.Windows.Forms; using TutteeFrame2.Controller; using TutteeFrame2.Model; namespace TutteeFrame2.View { public partial class ChangeSchooInfo : Form { private String userID; private SchoolInfoController schoolInfoController; ...
using CrazyPost.Models; using Microsoft.EntityFrameworkCore; namespace CrazyPost.Contexts { public class ApiDbContext : DbContext { public ApiDbContext(DbContextOptions<ApiDbContext> options) : base(options) { } public ApiDbContext() { } public DbSet<Post> Post { get; set;...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace MediaManager.API.Repository { public interface IRepository<T> { T GetEntity(string user, int id); List<T> GetEntities(string user); bool DeleteEntity(T entity); ...
namespace GameCloud.Core { public class MessageFlags { public const byte InternalMessage = (1 << 0), Request = (1 << 1), Response = (1 << 2), RelayedForward = (1 << 3), RelayedBackward = (1 << 4), PaddedPeerId = (1 << 5); } }
// 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. namespace Microsoft.EntityFrameworkCore.Metadata.Conventions { /// <summary> /// Represents an operation that should be performed after a mo...
namespace SimpleHttpClient { using System; using System.Net.Http; using Newtonsoft.Json; using Task03_Media_System_Console_Test.Controllers; using Task03_Media_System_Console_Test.Models; public class Program { private const string ServerAddress = "http://localhost:6443/api/"; ...
using System; using System.Collections; using System.Collections.Generic; namespace MyStack { class Queue<T> : IQueue<T> { private List<T> _queueList; public Queue() { _queueList = new List<T>(); } public Queue(IEnumerable<T> collection) { _queueList = new List<T>(collection); } public int C...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PengeSoft.CMS.BaseDatum { public enum EPersonType { 未设置 = 0, 人员 = 1, 部门 = 2 } }
using System; using System.Collections.Generic; using System.Net; using System.Net.Http; using System.Threading.Tasks; using domain_models; using RestSharp.Portable; namespace web_client { public class ComponentRestServiceRepositoryAsync : IComponentRepositoryAsync { private readonly IRestClient _clie...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Windows.Forms; using System.Xml.Linq; namespac...
using UnityEngine; using System.Collections; using UnityEngine.UI; using System; public class UIAlertView : MonoBehaviour { private Vector3 mDefScale; private float m_defAlpha; private float mStartScale = 1.4f; private float mEndScale = 2f; private float mStartPos = 5.0f; private bool mIsAnim...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerController : MonoBehaviour { public float moveSpeed; public float projectileSpeed; public GameObject projectile; public GameObject projectileSpawn; private Rigidbody projectileRB; // Start is cal...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using MessengerApp.Infrastructure; using MessengerApp.Models.Account; using MessengerApp.Models.Channel; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; namespace MessengerApp.Controllers { public...
using System; using System.Timers; namespace NewTimeBomb { class Program { public static int Time = 0; public static int LastPosCur = 0; public static int CountRandomNumber = 0; public static int CorrectNumber = 0; public static int CorrectPos = 0; public static...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DataObject.Abstract; namespace DataObject { public class PhanCong:Vat { private int maNhanVien; private string thoiGianPhanCong; private int maCongViec; priv...
using UnityEngine; using UnityEngine.AI; public class MovEspectadores : MonoBehaviour { [SerializeField] private Fantasma phantom; [SerializeField] private GameObject lampEast; [SerializeField] private GameObject lampWest; [SerializeField] private Transform destination; // Numero d...
using UnityEngine; public class ITweenPathPattern : Pattern { [Header("ITween Path Pattern")] [SerializeField] private iTweenPath[] m_Paths; private iTweenPath m_CurrentPath; [SerializeField] private float m_MaxEnemySpawnPeriod; [SerializeField] private float m_MinEnemySpawnPeriod; [SerializeField] private Ani...
using System; [Serializable] public class KeepData { public int[] team; public string gameMode; public KeepData (int[] team) { this.team = team; } public KeepData(string gameMode) { this.gameMode = gameMode; } }
using System; using System.Collections.Generic; using System.Text; using Xamarin.Forms; namespace Tarea.Validaciones { public class NumberValidatorBehavior:Behavior<Entry> { static readonly BindablePropertyKey IsValidPropertyKey =BindableProperty.CreateReadOnly("Valido", typeof(bool),typeof(NumberVali...
namespace GenerateHuman.Enums { public enum Gender { Male, Female } }
namespace WeddingRental.Models.Views.User { public class SignUpModel { public string Email { get; set; } public string Password { get; set; } public string ConfirmPassword { get; set; } public int? TerritoryId{ get; set; } } }
using System; using System.Collections.Generic; using System.IO; using System.Text; namespace Threads.modules { public class CopyFunc { public readonly string to; public readonly string from; public CopyFunc(string from, string to) { this.from = from; t...
using GameLib; namespace JumpAndRun.API { public interface IGlobalCache { int Count { get; } float Space { get; } Chunk GetChunk(Index2 position); void SetChunk(Index2 position, Chunk chunk); void SubscribeChunk(Index2 position); int Subscribes(Index2 po...
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace BookSys.Model { public class Livro { public int Id { get; set; } public string Nome { get; set; } public string Autor { get; set; } public string Editora { get; set; } ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Simon.Pattern.Singleton { /// <summary> /// Singleton Pattern /// 保证一个类只有一个实例,并提供访问一个全局的访问点 /// </summary> public class SingletonDemo { public static void Run() { ...
namespace AspenReport.Migrations { using System; using System.Data.Entity.Migrations; public partial class ST_Model_Nullable : DbMigration { public override void Up() { AlterColumn("dbo.STs", "Fiscal_Year", c => c.Double()); AlterColumn("dbo.STs", "Fiscal_Qua...
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using UnityEngine; public class EllipticalOrbit : MonoBehaviour { // Float to hold the days per one revolution. public float DaysPerRevolution; // Float to hold the radius of the orbit. publ...
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="BaseImporterModel.cs" company="CGI"> // Copyright (c) CGI. All rights reserved. // </copyright> // ------------------------------------------------------------------------------...
using System; using KelpNet.Common; using KelpNet.Common.Optimizers; namespace KelpNet.Optimizers { [Serializable] public class Adam : Optimizer { public Real Alpha; public Real Beta1; public Real Beta2; public Real Epsilon; public Adam(double alpha = 0.001, double ...
using Avalonia.Controls; using Avalonia.Markup.Xaml; using Avalonia.Input; using Windore.Settings.Base; using System; namespace Windore.Settings.GUI { public class DefaultSettingControl : UserControl { private TextBlock nameTB; private TextBlock invalidInputTB; private TextB...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class RotationOffset : MonoBehaviour { private JohnArduinoManager Arduino; Quaternion imucap; public GameObject GameObject; Quaternion offSet; private float zAngle = 0f; private float zAnglePrev = 0f; pri...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Okra.Sharing { public static class SharePackageEx { // *** Static Methods - SetXxx *** public static void SetApplicationLink(this ISharePackage sharePackage, Uri value...
using System; /// <summary> /// Advent of Code - Day 5 namespace /// </summary> namespace AdventOfCodeDay5 { /// <summary> /// Intcode invalid parameter mode exception /// </summary> public class IntcodeInvalidParameterModeException : Exception { /// <summary> /// Parameter mode ...
using PDV.DAO.Atributos; using System; namespace PDV.DAO.Entidades.Financeiro { public class ContaReceber { [CampoTabela("IDCONTARECEBER")] public decimal IDContaReceber { get; set; } = -1; [CampoTabela("IDCONTABANCARIA")] public decimal? IDContaBancaria { get; set; } ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SqlClient; using System.Linq.Expressions; using System.Data.Entity; using System.Data.Entity.Core.Objects; using ModelMVPDataBasePart.Common; using System.Data.Common; using ModelMVPDat...
using UnityEngine; using System.Collections; public class FireFlikker : MonoBehaviour { private Light lys; private bool isDay; private bool fasebytte; private float lysstyrke; private FasebytteGraphics fasebytteGraphics; void Awake(){ lys = gameObject.GetComponent<Light> (); fasebytteGraphics = GameObject...
using System.Threading.Tasks; using hhsinfh.Models; using Microsoft.AspNetCore.Mvc; using System; using hhsinfh.Data; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Hosting; using System.IO; namespace hhsinfh.Controllers { [Route("api/[controller]")] publi...
using System; using System.Collections; using System.Globalization; using System.Windows; using System.Windows.Data; using Castle.Core.Internal; namespace Athena.Converters { public class EmptyListVisibilityConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter...
using Learn.IRepository; using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; using SqlSugar.IOC; using Learn.Model; namespace Learn.Repository { public class BaseRepository<TEntity> : SimpleClient<TEntit...
using Contoso.Forms.Configuration; using Contoso.Forms.Configuration.DataForm; using Contoso.XPlatform.Flow.Requests; using Contoso.XPlatform.Flow.Settings.Screen; using Contoso.XPlatform.Services; using Contoso.XPlatform.Utils; using Contoso.XPlatform.ViewModels.ReadOnlys; using Microsoft.Extensions.DependencyInjecti...
using System; namespace RabbitMQ.Async { public class RabbitNackException : Exception { } }
using UnityEngine; using System.Collections; public abstract class HitEvent : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { } public virtual void hurt(int damage, Vector2 force, Utils.EnemyAreaType area) { } }
using AutoMapper; using Microsoft.AspNetCore.Http.Features; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using TanoApp.Application.Interfaces; using TanoApp.Application.View...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NopSolutions.NopCommerce.DataAccess.Colors { public partial class DBColors { #region Ctor /// <summary> /// Creates a new instance of the DBColors class /// </summary> public...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace _01委托定义 { ///定义:委托是C#中函数回调机制,就是c语言中的函数指针在面向对象中的封装; /// 它定义了方法的类型,使得可以将方法当作另一个方法的参数来进行传递。 /// /// 委托和类相似,都是用户自定义的一种类型,只不过类表示的数据的集合,而委托表示的是一个或多个方法 /// ///理解:类比“string name ”,其中string...
using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Linq; using System.Net; using System.Web; using System.Web.Mvc; using NewsEngine.Models; using System.Text.RegularExpressions; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; usin...
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; namespace FelixTheCat.BlackHole { public static class FiguresGenerator { private static readonly List<string[,]> symbols = new List<string[,]>(); private static readonly Lis...
using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(PlayMakerFSM))] public class ReturnToMenu : MonoBehaviour { PlayMakerFSM fsm; private void Start() { fsm = GameObject.Find("AppFlow").GetComponent<PlayMakerFSM>(); } void Update () { ...
using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace DataLayer.Entities { /** * Cущность Покупка / Приобретение * @Id - идентификатор покупки * @Quantity - количество купленного продукта * @DateCreated - дата добавления покупки ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.ComponentModel.DataAnnotations; namespace BarberShop.Models { public class RegisterDetails { [Required] [DataType(DataType.EmailAddress)] public string Email { get; set; } ...
// ----------------------------------------------------------------------- // <copyright file="CppObjectOffsetStaticAssertCodeWriter.cs" company="Microsoft Corporation"> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root // for license inf...
namespace TraverseMatrix { using System; public class MainProgram { public static void Main() { Console.Write("Enter a number: "); int value = int.Parse(Console.ReadLine()); Matrix matrix = new Matrix(value); Console.WriteLine(matrix); ...