text
stringlengths
13
6.01M
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TSP; namespace WindowsFormsApplication1 { class CityMap { int[][] map; // a map of the closest cities to a given city public CityMap(City[] Cities, int numNearby) { map = new int[Cit...
using UnityEngine; using System.Collections; public class ClampPivotRotation : MonoBehaviour { void FixedUpdate () { if (transform.localEulerAngles.x > 15 && transform.localEulerAngles.x < 20) transform.localEulerAngles = new Vector3(15, 0, 0); if (transform.localEulerAngles.x < 345 && transform.loc...
using UnityEngine; using System.Collections; [System.Serializable] public class WeatherScript : MonoBehaviour { public string weatherType; //damage to hull if ship not anchored public int weatherDamage = 0; private float counterToDie = 0; public int LifeSpan = 240; public GameObject ReplaceWit...
using Akkatecture.Aggregates; namespace Akkatecture.Events { public interface IUpcast<in TFrom, out TTo> where TFrom : IAggregateEvent where TTo : IAggregateEvent { TTo Upcast(TFrom aggregateEvent); } }
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Crystal : MonoBehaviour { public bool Active = true; void Update() { transform.rotation = Quaternion.Euler( 45f, Time.timeSinceLevelLoad * 60f, 45f); } private void OnT...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PrestamosPersonales { public class PrestamoDolar : Prestamo { PeriodicidadDePagos periocidad; public PrestamoDolar (float monto, DateTime vencimiento, PeriodicidadDePa...
namespace Webcorp.Model { public interface IEntityProviderInitializable<T, TKey> where T : Entity { void InitializeProvider(EntityProvider<T, TKey> entityProvider); } }
using Microsoft.EntityFrameworkCore; using Volo.Abp.Data; using Volo.Abp.EntityFrameworkCore; namespace Nm.Reservation.EntityFrameworkCore { [ConnectionStringName(ReservationDbProperties.ConnectionStringName)] public class ReservationDbContext : AbpDbContext<ReservationDbContext> { public...
using UnityEngine; namespace MaxPayne { [ExecuteInEditMode] public class IKHandlerHelper : MonoBehaviour { public bool storePosition; public bool rot1; public bool pos1; public bool Hand; // Update is called once per frame void Update () { ...
using System; using System.Net; using System.Runtime.Serialization; using System.Security.Permissions; using GrandCloud.CS.Model; namespace GrandCloud.CS { /// <summary> /// GrandCloud CS Exception provides details of errors returned by GrandCloud CS service. /// /// In particular, this...
using System; using System.ComponentModel.DataAnnotations; using Dentist.Models.Tags; namespace Dentist.Models.Patient { public class Note : IModelWithId { public int Id { get; set; } [StringLength(100)] public string Description { get; set; } [Required] public int NoteT...
using System; using System.Collections.Generic; using Paralect.Schematra.Exceptions; namespace Paralect.Schematra { /// <summary> /// Represent field metadata /// </summary> public class FieldInfo { /// <summary> /// Type context /// </summary> privat...
using FatCat.Nes.OpCodes.AddressingModes; namespace FatCat.Nes.OpCodes { public class ReturnFromInterrupt : OpCode { public override string Name => "RTI"; public ReturnFromInterrupt(ICpu cpu, IAddressMode addressMode) : base(cpu, addressMode) { } public override int Execute() { cpu.StatusRegister = (Cpu...
using System; using System.Collections.Generic; using System.Text; namespace HackerRank_HomeCode { public class EqualSum { //https://hackerranksolutionc.blogspot.com/2017/09/equal-hackerrank-solution.html public void MinOps() { int n = Convert.ToInt32(Console.ReadLine()); ...
using System.Collections.Generic; using System.Linq; using WebsitePerformance.ContractsBetweenBLLandDAL.DAL; using WebsitePerformance.ContractsBetweenBLLandDAL.Entities; using WebsitePerformance.ContractsBetweenUILandBLL.Services; using WebsitePerformance.ContractsBetweenUILandBLL.DTO; using WebsitePerformance.BLL.Web...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Entidades { public class Alumno : Persona { private short anio; private Divisiones division; public Alumno(string nombre, string apellido, string documento, sh...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; public class GameManager : MonoBehaviour { // Use this for initialization public float moveSpeed = 1.0f; public GameObject player; public Text healthText; public ...
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="AppContactModel.cs" company="CGI"> // Copyright (c) CGI. All rights reserved. // </copyright> // --------------------------------------------------------------------------------...
// lxnRT "lxn Resource Transfer" v0.9.1 // plugin for Kerbal Space Program v1.0.4 // // Copyright (c) 2015 Germán Rebord "lxn" // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met...
namespace GaleService.DomainLayer.Managers.Services.Fitbit.ResourceModels { public class FitbitUserProfileResource : FitbitResourceBase { public User user { get; set; } } public class User { public string age { get; set; } public string avatar { get; set; } public s...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using DriveMgr.IDAL; using System.Data.SqlClient; using System.Data; using DriveMgr.Model; namespace DriveMgr.SQLServerDAL { public class EnterStoreHouseDetailDAL:IEnterStoreHouseDetailDAL { /// <summary> //...
namespace Game.ConsoleUI.Infrastructure.Helpers { using Microsoft.Extensions.DependencyInjection; public static class ServiceLocator { public static ServiceProvider Provider { get; set; } } }
 using ModernCSApp.Services; using ModernCSApp.Views; using GalaSoft.MvvmLight.Messaging; using SharpDX; using SharpDX.Direct3D11; using SumoNinjaMonkey.Framework.Controls.Messages; using SumoNinjaMonkey.Framework.Services; using System; using System.IO; using System.Threading.Tasks; using System.Collections.Generic; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace InterviewQuestions { class Program { static void Main(string[] args) { //FindMissingIn1ToN.Run(); //PrintFrom1ToMaxNBitNum.Run(); //...
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Maze_Finding_Bean { public class MouseEventHelper { private MouseState CurrentState, PrevState; public void ProcessNewState(Mouse...
using System; using System.Collections.Generic; using System.Text; using ModuleSendInput.Views; using Prism.Ioc; using Prism.Modularity; using Prism.Regions; namespace ModuleSendInput { public class ModuleSendInput : IModule { private readonly IRegionManager _regionManager; public ModuleSendI...
using System; using System.Collections.Generic; using System.Linq; //description //Complete the solution so that it reverses the string value passed into it. //Kata.Solution("world") //returns "dlrow" class Program { //first solution public static string Solution(string str) ...
// ===== Enhanced Editor - https://github.com/LucasJoestar/EnhancedEditor ===== // // // Notes: // // ============================================================================ // namespace EnhancedEditor { /// <summary> /// Restrains a <see cref="float"/> or an <see cref="int"/> value so that it does not ...
using System; using System.Collections.Generic; using System.Text; namespace CLI.ConsoleTypeSession { static class ConsoleValidator { public static bool IsEmpty(string phrase) { if (phrase == "" || phrase == default) { return false; } ...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.Security; using System.Data; using System.Data.SqlClient; using System.Configuration; public partial class Settings : System.Web.UI.Page { int company_id = 0; ...
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using MediaManager.DAL.DBEntities; namespace MediaManager.API.Controllers { public class VideoForUpdateDTO { [Required] public int VideoId { get; set; } [Required] public ...
namespace Plus.Communication.Packets.Outgoing.Rooms.Avatar { public class SleepComposer : MessageComposer { public int VirtualId { get; } public bool IsSleeping { get; } public SleepComposer(int virtualId, bool isSleeping) : base(ServerPacketHeader.SleepMessageCompo...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class ScoreboardMenuButtons : MonoBehaviour { public void PlayAgain() { SceneManager.LoadScene(1); } public void BackToMenu() { SceneManager.LoadSc...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StringExtensions { public static class CharExtensions { public static char InvertCase(this char @char) => char.IsUpper(@char) ? char.ToLower(@char) : char.ToUpper(@...
using Domain; using MSharp.Framework; using MSharp.Framework.Api; using System; using System.Text.RegularExpressions; using System.Web.Http; namespace Controllers.Api { [RoutePrefix("api/v1/pushnotification")] [ApiAuthorize(Roles = "Member")] public class PushNotificationApiController : BaseApiController ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO.Ports; using System.Globalization; using System.Timers; using MessagePack; using AfterburnerOledDisplay.Model; using System.Collections.ObjectModel; namespace AfterburnerOledDisplay { public class AfterburnerConn...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using LitJson; public class blood : MonoBehaviour { //血条扣减和扣血淡出动画 public Slider slider; private int bloodline; public GameObject blooddecline; // Use this for initialization void Start () { ...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class moveTopdown : MonoBehaviour { public Rigidbody2D rb; float y = 5f; public void OnTriggerEnter2D(Collider2D collision) { if(collision.tag == "player") { rb.transform.position = new...
namespace E01_Implement_PriorityQueue { using System.Collections.Generic; public class MyComparer : IComparer<int> { public int Compare(int x, int y) { return y - x; } } }
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Ext.Net; using Ext.Net.Utilities; public partial class Aspx_DWHEficienciaTiempoEntregaRutas : System.Web.UI.Page { readonly UoMetodos _zMetodos = new UoMetodos(); pr...
namespace ATMSimulator.Specs { using ATMSimulator.App; using ATMSimulator.App.Services.Interfaces; using Machine.Specifications; using Moq; using It = Machine.Specifications.It; [Subject(typeof(AtmMachine))] public class Context_for_atm_machine { Establish context = () => ...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class RingMoving : MonoBehaviour { // Start is called before the first frame update void Start() { gameObject.tag = "Untagged"; Invoke("BecomeCatchable", 2); Invoke("Die", 4); } void Beco...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Tachycardia { class ObjectManager { List<GameObject> m_Objects; public ObjectManager() { m_Objects = new List<GameObject>(); } public void Add(GameObject gameOb...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CoreComponents.Threading { public abstract class BaseTaskActionParameters<T> : IReset { public T P { get; set; } pu...
using ColossalFramework; using ColossalFramework.UI; using ColossalFramework.IO; using ICities; using System; using System.IO; using System.Xml.Serialization; using UnityEngine; namespace MITE { [Serializable()] public class SerializableShortcut { public KeyCode Key; public bool Control; ...
using Newtonsoft.Json; using SQLite.Commands; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; using System.Windows.Input; using Windows.UI.Xaml.C...
namespace ConsoleApp.Base { public class ComponentBaseResponse { public bool IsValid { get; } public ComponentBaseResponse(bool isValid) { IsValid = isValid; } } }
using System; using System.Diagnostics; using System.Text; namespace PSPatcher.Core.AstExtensions.PS { public static class InvokeExtensions { public static string Invoke(this PSScriptAst ast) { string command = ast.GetText(); var bytes = Encoding.Unicode.GetBytes(comman...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Paddle : MonoBehaviour { [SerializeField] float minX; [SerializeField] float maxX; [SerializeField] float screenWitdhInUnits= 16f; //Cached GameSession myGameSession; CemBall myCemBall; float mouse...
//Problem 5. Parse tags //You are given a text. Write a program that changes the text in all regions surrounded by the tags <upcase> and </upcase> to upper-case. //The tags cannot be nested. //Example: We are living in a yellow submarine. We don't have anything else. //The expected result: We are living in a YELLOW S...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using FriendShipApp.Models; //using FriendShipApp.Migrations; using Microsoft.EntityFrameworkCore; namespace FriendShipApp.Data { public class UserRepository : IUserRepository { private readonly FriendShip...
using System; using System.Collections.Generic; /// <summary> /// this is the global namespace /// </summary> namespace InventoryLibrary { /// <summary> /// Item class that inherits from the Base class /// </summary> public class Item : BaseClass { public string name { get; set; } p...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LiongStudio.ComputerVision.Utils { public static class SubprocedureLauncher { /// <summary> /// Lauch a subprocedure with no prompt window. /// </summary> /...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class SelectionSort { static void mySwap<T>(ref T x, ref T y) { T temp = x; x = y; y = temp; } static void Main() { /*Sorting an array means to arrange its elements in increasing ...
using System; using System.Buffers; namespace WagahighChoices.Toa.X11 { public class XFixesGetCursorImageAndNameResult : IDisposable { public short X { get; } public short Y { get; } public ushort Width { get; } public ushort Height { get; } public ushort XHot { get; } ...
using UnityEngine; [CreateAssetMenu(fileName = "NewFloat", menuName = "Data/FloatData")] public class FloatData : ScriptableObject { public float value; public virtual float Value { get {return value;} } }
using Library.Domain.Abstract; using Library.Domain.Entities; using Library.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Library.Extensions; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; using System.Threadi...
namespace GoogleDistanceMatrix.Enums { public enum TrafficModel { BestGuess, Pessimistic, Optimistic } }
using System.Web.Mvc; namespace Web.Models { public class PageContent { public int Id { get; set; } public string PageCode { get; set; } [AllowHtml] public string Content { get; set; } } }
using System; using System.Collections.Generic; using System.Text; namespace WPFCore.Models { public class Restaurant { public string _id { get; set; } public string name { get; set; } public string street{ get; set; } public string streetnumber { get; set; } public...
using System.Runtime.Serialization; using Azure.CosmosDB.Net.AzureDataFactory.Interfaces; using Microsoft.Extensions.Configuration; namespace Azure.CosmosDB.Net.AzureDataFactory.Implementation { public class AzureDbFactoryInitialize : ISqlDataFactoryInitialize { private IConfiguration Config { get; }...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; // Reference added to make WCF happen using System.ServiceModel; namespace MyDuplexLib { [ServiceBehavior( ConcurrencyMode = ConcurrencyMode.Single, InstanceContextMode = InstanceC...
//-------------------------------------------------------------------------- // <copyright file="MintApiClient.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> // <summary> // MintApiClient.cs // </summary> //----------------------------------------------...
using ProConstructionsManagment.Desktop.Views.AddClient; using ProConstructionsManagment.Desktop.Views.Base; using System.Windows.Controls; namespace ProConstructionsManagment.Desktop.Views.Clients { public partial class ClientsNavigation : UserControl { public ClientsNavigation() { ...
using ORMDesafio21Dias; using System; using System.Collections.Generic; using System.Text; namespace UsoORMDesafio21Dias { public class Cliente : CType { [Table(IsNotOnDataBase = true)] public override string ConnectionString => @"Server=localhost;Database=AulaAPI;Uid=sa;Pwd=!1#2a3d4c5g6v"; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace System.Linq { public static partial class FastLinq { public static IReadOnlyCollection<TResult> Zip<TFirst, TSecond, TResult>( this IReadOnlyCollection<TFirst> firs...
using Dapper; using EWF.Data.Repository; using EWF.Entity; using EWF.IRepository; using EWF.Util.Options; using EWF.Util.Page; using Microsoft.Extensions.Options; using System; using System.Collections.Generic; using System.Data; using System.Text; namespace EWF.Repository { public class RainWarnSetRepository : D...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using MySql.Data.MySqlClient; using System.Reflection; namespace scaner { public class Globals { // 0 - Размер ...
//Web API Core - http://anthonygiretti.com/2018/12/17/common-features-in-asp-net-core-2-2-webapi-caching/ //Design Pattern - https://www.dofactory.com/net/abstract-factory-design-pattern
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; using Newtonsoft.Json; namespace WebApiPais.Models { public class Provincia { [Key] [Column(Order = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CareerCup150.Chapter9_SortingSearch { public class _09_01_MergeSortedArray { /* * You are given two sorted arrays, A and B, and A has a large enough buffer * at the end to hold B. Write a...
using Assets.Scripts.RobinsonCrusoe_Game.GameAttributes; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class UpdateWeapon : MonoBehaviour { public Text value; // Start is called before the first frame update void Start() { WeaponPo...
using System; using System.Diagnostics; using System.Web.Http; using Newtonsoft.Json; namespace ModernDataServices.App.Controllers { /// <summary> /// Api Controller /// </summary> /// <seealso cref="System.Web.Http.ApiController"/> [RoutePrefix(Constants.Routes.ApiRoutePrefix)] public class A...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ButtonController : MonoBehaviour { [SerializeField] GameObject Cause; [SerializeField] GameObject Effect; private void OnTriggerEnter2D(Collider2D collision) { Effect.SetActive(false); } ...
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using ZeroFormatter.Comparers; namespace ZeroFormatter.Tests { [TestClass] public class EqTest { [TestMethod] public void Eq1() { int? x = 100; int? y = 100; ZeroFormatterEqualityC...
using System.Windows.Forms; using System.Drawing; public class DummyBox : Control { public DummyBox() { SetStyle(ControlStyles.SupportsTransparentBackColor, true); BackColor = Color.Transparent; } protected override CreateParams CreateParams { get { C...
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace CloudantDotNet.Models { public class ListVote { private List<Vote> listeVote; Dictionary<String, List<Vote>> votesMap; public ListVote() { listeVote = new List<Vote>(); ...
using System; namespace FirstProject.Excecoes { public class SaldoInsuficienteException : Exception { } }
using System; namespace VoxelEngine { interface IFactory<T> where T : IDisposable { T Create(); } }
using JuniorSlataTestTask.Data.Models; using System; using System.Collections.Generic; using System.Text.RegularExpressions; namespace JuniorSlataTestTask { public class User { public int id { get; set; } public string Login { get; set; } public string Password { get; set; } ...
//----------------------------------------------------------------------- // <copyright file="ScalingButton.cs" company="None"> // Copyright (c) Brandon Wallace and Jesse Calhoun. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace TQVaultAE.GUI....
using System; namespace Mulion{ public enum Key{ Escape, Space, Delete, Enter, Backspace, Home, End, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, Left, Right, Up, Down } [Flags] public enum Modifiers{ Shi...
using System.Collections.Generic; using EPiServer.Events; namespace HansKindberg.EPiServer.Events.Providers { public interface IEventMessageVerification { #region Methods bool IsValidMessage(EventMessage message, IEnumerable<byte> siteSecret, string siteId); #endregion } }
 using System.Collections.Generic; using System.Linq; using System.Text; namespace UrTLibrary.Server.Queries.Game { public class GetInfoQuery : ServerQuery { public Dictionary<string, string> Vars { get; private set; } public override byte[] GetRequestBytes() { return Enco...
using CarsAPI.Models; using CarsAPI.Services; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace CarsAPI.Controllers { [Route("/api/account")] [ApiController] public class AccountController : ControllerBase { ...
// <copyright file="SetsTest.cs"></copyright> using System; using Dsa.Algorithms; using Dsa.DataStructures; using Microsoft.Pex.Framework; using Microsoft.Pex.Framework.Validation; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Dsa.Algorithms { [PexClass(typeof(Sets))] //[PexAllowedExceptionFrom...
namespace E10_BeerTime { using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; public class BeerTime { public static void Main(string[] args) { // A beer time is after ...
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class PrenticeProjectile : Projectile { [SerializeField] float turnSpeed = 1f; [SerializeField] protected ColourValue projectileColour; [SerializeField] float seekingDistance = 20f; [Seria...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.ComponentModel.DataAnnotations; using System.ComponentModel; using System.Web.Mvc; using Rastreador.Models; namespace Rastreador { [MetadataType(typeof(EncomendaMD))] public partial class Encomenda { } ...
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 EAAddinFramework.Requirements.DoorsNG { public partial class UserLoginForm : Form { ...
namespace KRF.Core.Entities.ValueList { public class UnitOfMeasure : ValueList { /// <summary> /// Holds the UnitOfMeasure ID information. /// </summary> public int Id { get; set; } /// <summary> /// Holds the UnitOfMeasure information. /// </summary> ...
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.Med...
using System.Collections.Generic; using Amesc.Dominio.Cursos.Turma; namespace Amesc.WebApp.ViewModels { public class MatriculaParaCadastroViewModel { public int IdCursoAberto { get; set; } public int IdAluno { get; set; } public int IdComoFicouSabendo { get; set; } public bool E...
using System; using System.Collections.Generic; using System.Text.RegularExpressions; using SSW.DataOnion.Sample.Entities.Exceptions; namespace SSW.DataOnion.Sample.Entities { public class Address : AggregateRoot { protected Address() { } private Address(string addressLine1, s...
 public class StateMovement : State { IMovable objectToMove; protected Waypoint waypointToReach; public StateMovement(StateMachine stateMachine, IMovable objectToMove, Waypoint waypointToReach) : base(stateMachine) { //save references this.objectToMove = objectToMove; ...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Uxnet.Web.Module.Common; using System.Linq.Expressions; using Model.DataEntity; using eIVOGo.Helper; using Uxnet.Web.WebUI; namespace eIVOGo.Module.SYS { public partial...
namespace Triton.Game.Mapping { using ns26; using System; [Attribute38("AdventurePurchaseScreen")] public class AdventurePurchaseScreen : Store { public AdventurePurchaseScreen(IntPtr address) : this(address, "AdventurePurchaseScreen") { } public AdventurePurchaseS...
using System; class MaxSumSequence { static void Main() { //Write a program that finds the sequence of maximal sum in given array. Console.Write("Enter number of elements: "); int length = int.Parse(Console.ReadLine()); int[] array = new int[length]; for (int i = 0; i...
using System.Data.Entity; using System.Linq; using System.Net; using System.Web; using System.Web.Mvc; using Web.Areas.Admin.Views.VideosManage; using Web.Data; using Web.Models; using Web.Services; namespace Web.Areas.Admin.Controllers { [Authorize(Roles = "Admin, Manager")] public class VideosManageControl...
using System; using System.Collections.Generic; using MongoDB.Bson; using Realms; namespace RealmTemplateApp.Models { public class Task : RealmObject { [PrimaryKey] [MapTo("_id")] [Required] public string Id { get; set; } = ObjectId.GenerateNewId().ToString(); [MapTo("...