text
stringlengths
13
6.01M
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using SSLS.Domain.Concrete; using SSLS.Domain.Abstract; using SSLS.WebUI.Models; namespace SSLS.WebUI.Controllers { public class BookController : Controller { // GET: Book p...
 public class LuckView : ILuckView { public string View(ILuckResult<Luck> fiveLuck) { var b = new StringBuilder(); b.AppendFormat("{0}:{1}", "天格", ToView(fiveLuck.Ten)); b.AppendLine(); b.AppendFormat("{0}:{1}", "人格", ToView(fiveLuck.Jin)); b.AppendLine(); b.Appe...
using System.Collections; using System.Collections.Generic; using UnityEngine; using Heyzap; public class HeyZapScript : MonoBehaviour { // Use this for initialization void Start () { HeyZapInit(); //HeyzapAds.ShowMediationTestSuite(); } // Update is called once per frame void Update () { ...
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using QLThuVien.DATA; using QLThuVien.Model; namespace QLThuVien.BUS { ////////////////////////////////////////////KHOONG SU DUNG LINQ CHO Sach class BUS_Sach { ...
namespace ServicesLibrary.Models { public class ServiceDto : LocalDto { public int ServiceType { get; set; } } }
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using UniRx; using UnityEngine; public class UnitStackController : UnitStackControllerBase { [Inject] public CityController CityController { get; set; } public override void InitializeUnitStack(UnitStackViewModel u...
using System.Collections.Generic; using System.Linq; using Caliburn.Micro; namespace Frontend.Core.Converting.Operations { public class OperationProvider : IOperationProvider { private readonly IEventAggregator eventAggregator; private readonly IList<IOperationViewModel> registeredOpe...
namespace SoSmartTv.VideoService.Store { public class RedundantEntity<T, TOuter> { public T Entity { get; } public TOuter JoinedEntity { get; } public bool IsJoined => JoinedEntity != null; public RedundantEntity(T entity, TOuter joinedEntity) { Entity = entity; JoinedEntity = joinedEntity; } p...
using Swiddler.IO; using Swiddler.Serialization; using System; using System.IO; using System.Text; using System.Xml; using System.Xml.Serialization; namespace Swiddler.DataChunks { public enum MessageType : byte { Information, Error, SocketError, Connecting, ConnectionB...
using Assets.Scripts.RobinsonCrusoe_Game.Cards.IslandCards; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class PopUp_Production_Show : MonoBehaviour { public GameObject popUp; public Text infoText; public Button confirm; pri...
using System; using System.Collections.Generic; using System.Collections; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; using System.Xml.Serialization; using System.Xml; using System.Xml.Schema; namespace _2048 { [Serializable] public class Field { pub...
using System.Collections.Generic; using System.Threading.Tasks; namespace CoinBot.Core { public interface IMarketClient { string Name { get; } /// <summary> /// TODO /// </summary> /// <returns></returns> Task<IReadOnlyCollection<MarketSummaryDto>> Get(); } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ReadThenDisplay { class Program { /// <summary> /// /// </summary> /// <param name="args"></param> static void Main(string[] args...
using System.Data; using System; //Simple Class Declaration namespace oopsconcepts { public delegate void samp(); partial class Example { public void method1() { Console.WriteLine("Hello method1"); } public void method3() { ...
#region Copyright and License // Copyright (c) 2013-2014 The Khronos Group Inc. // Copyright (c) of C# port 2014 by Shinta <shintadono@gooemail.com> // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and/or associated documentation files (the // "Materials"), to deal...
using MDFe.Classes.Retorno; using MDFe.Damdfe.Fast; namespace PDV.CONTROLLER.MDFE.Util { public class RetornoTransmissaoMDFe { public decimal IDMovimentoFiscalMDFe { get; set; } public decimal IDMDFe { get; set; } public MDFeProcMDFe MDFeComProtocolo { get; set; } public bool ...
namespace Triton.Game.Mapping { using ns26; using System; using Triton.Game.Mono; [Attribute38("LightFileInfo")] public class LightFileInfo : MonoClass { public LightFileInfo(IntPtr address) : this(address, "LightFileInfo") { } public LightFileInfo(IntPtr addre...
using System; using System.Collections.Generic; using System.Runtime.InteropServices.WindowsRuntime; using System.Web.UI.WebControls; using System.Xml.Serialization; namespace War { public class Battle { private readonly Label _label; private readonly Player _player1; private readonly ...
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 System.Data.SqlClient; namespace SchoolManagementSystem { public partial class DeleteStudent : Form { public Del...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; using System.ComponentModel; namespace CG { class TopHat : MatrixFilter { public TopHat() { this.kernel = null; } public TopHat...
using System; namespace Alfheim.FuzzyLogic.FuzzyFunctionAttributes { [AttributeUsage(AttributeTargets.Property)] public class ReferencePointAttribute : Attribute { } }
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Networking; public class LoadDistrictData : ILoadData { private string _url = "https://denisnvgames.000webhostapp.com/DistrictLoad.php"; private string[] _district; public string[] District { get => _district;...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; using Windows.UI.Xam...
using System; class Program { static void Main(string[] args) { Console.WriteLine("Digite um numero:"); float numero = float.Parse(Console.ReadLine()); if(numero%2==0){ Console.WriteLine("O numero e par"); } else Console.WriteLine("o numero e impar"); } }
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace TestWeb { public partial class frmConcurrenciaClientes : System.Web.UI.Page { ProxyCliente.ServicioClienteClient objServicioCliente = new ProxyCliente.Se...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using AjaxPro; using SKT.WMS.WMSOut.Model; using SKT.MES.Web; using SKT.WMS.WMSOut.BLL; namespace SKT.MES.Web.AjaxServices.WMSOut { public class AjaxServiceWMSRdRecord { [AjaxMethod] public void EditWMSRdRecor...
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; using FantasyStore.Domain; namespace FantasyStore.Infrastructure.Repositories { public class ProductRepository { private readonly FantasyStoreDbContext _context...
using UnityEngine; using UnityEngine.Audio; [System.Serializable] public class Sound { // lists sounds // enter values in user interface of Unity // adapted from https://www.youtube.com/watch?v=6OT43pvUyfY public string name; public AudioClip clip; [Range(0f,1f)] public float volume; ...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Rock : MonoBehaviour { public float startingY = 5.8f; public float spinSpeed = 200.0f; private bool grounded = false; void Start() { spinSpeed = Random.Range(spinSpeed - 50f, spinSpee...
using System.Collections.Generic; using MediatR; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using OmniSharp.Extensions.DebugAdapter.Protocol.Models; using OmniSharp.Extensions.DebugAdapter.Protocol.Serialization; using OmniSharp.Extensions.JsonRpc; using OmniSharp.Extensions.JsonRpc.Generation; // ReShar...
using System.Collections; using System.Collections.Generic; using UnityEngine; [System.Serializable] public class Ellipse { public float osX; public float osY; public Ellipse (float osX, float osY) { this.osX = osX; this.osY = osY; } public Vector2 Evaluate(float t) { ...
public abstract class ArabaBuilder { protected Araba _araba; public Araba araba { get { return _araba; } } public abstract void MotorTak(); public abstract void LastikTak(); }
using System; using System.Collections.Generic; using System.Threading.Tasks; namespace iCopy.SERVICES.IServices { public interface IReadService<TResult, TSearch, TPk> { Task<List<TResult>> GetAllAsync(); Task<TResult> GetByIdAsync(TPk id); Task<List<TResult>> GetByParametersAsync(TSe...
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PointOfSalesV2.Entities { public class CommonData : ICommonData { public virtual...
namespace MarsRoverProject.Domain { public class MovementCommand { public string Message { get; internal set; } public MovementCommand(string message) { Message = message; } } }
using PetaPoco; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Prj.Respositories.Entity { [TableName("GroupPage")] [PrimaryKey("Id", autoIncrement = true)] public class GroupPageEntity : LogsDateEntity { ...
// <copyright file="NetTimeTest.cs" company="Microsoft">Copyright © Microsoft 2010</copyright> using System; using Lidgren.Network; using Microsoft.Pex.Framework; using Microsoft.Pex.Framework.Validation; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Lidgren.Network { [PexClass(typeof(NetTime))] ...
using UnityEngine; namespace HT.Framework { /// <summary> /// 调试管理器的助手接口 /// </summary> public interface IDebugHelper : IInternalModuleHelper { /// <summary> /// 初始化调试器 /// </summary> /// <param name="debuggerSkin">调试器皮肤</param> void OnInitDebugger(GUISkin d...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Alfheim.FuzzyLogic.Variables.Model { public class TermsFactory { private static TermsFactory instance; public static TermsFactory Instance { get ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using LowLevelNetworking.Shared; using WUIShared.Objects; using WUIShared.Packets; namespace WUIServer.Components { public abstract class Collider : GameObject { public delegate void Collisi...
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Comp229_Assign03 { public partial class About : Page { protected void Page_Load(object sender, EventArgs e) { ...
using System; using System.IO; using System.Linq; using System.Text; namespace TextProcessing { /// <summary> /// Text writer that supports indenting for string creation /// </summary> public class IndentableTextWriter : TextWriter { private StringBuilder _innerStringBuilderx = null; ...
using System; using System.Text; using System.Collections.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace yocto.tests { /// <summary> /// Summary description for Parameter /// </summary> [TestClass] public class ParameterTests { public ParameterTests() { ...
using System; using System.Collections.Generic; using System.Net; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using Application.Common.Dtos; using Application.Common.Models; using Application.Common.Vm; using Application.Product.Commands.CreateProductCommands; using Application.Product...
using UnityEngine; using System.Collections; public class CatapultTouchControls : MonoBehaviour { float m_torque = 0; bool m_pointerDown = false; public GameObject CannonballPrefab; public CatapultVisualizer Visualizer; public Vector3 ShootStartPosition= new Vector3(0, 1.5f); public Vect...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; using BepInEx; using COM3D2.SimpleUI; using COM3D2.SimpleUI.Extensions; namespace COM3D2.SimpleUIDemo { [BepInPlugin("org.bepinex.plugins.com3d2.simpleuidemo", "SimpleUIDemo", "1.0.0.0")] public class Si...
using System; namespace test{ class Program{ static FileReader reader; static Lexer lexer; static Parser parser; static void Main(string[] args){ reader = new FileReader(args[0]); lexer = new Lexer(reader.text); parser = new Parser(lexer); parser.parse(); } } }
using Arch.Data.Orm.sql; using System; using System.Collections.Generic; namespace Arch.Data.Orm.Dialect { /// <summary> /// 数据库方言接口 /// </summary> public interface IDbDialect { /// <summary> /// 结束 /// </summary> Char OpenQuote { get; } ///...
using System; using System.Collections.ObjectModel; namespace GetLogsClient.ViewModels { public interface IMainWindowViewModel : IDisposable { ObservableCollection<string> PatternList { get; set; } string SaveDirectory { get; set; } void ExternalInitializer(); void GiveGl...
using System.Collections.Concurrent; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; namespace Umbraco.Core.Persistence.Mappers { /// <summary> /// Represents a <see cref="MediaType"/> to DTO mapper used to translate the properties of the public api /// implementation to that of the databa...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sunny.Lib.Test { public class TestHelper { public static string TestFileFolder = GetTestFileFolder(); public static string GetTestFileFolder() ...
using System; using System.Collections.Generic; using System.IO; using System.Text; using NUnit.Framework; namespace nuru.IO.Unit.Tests { public class FormatReaderTests { MemoryStream stream; BinaryWriter writer; FormatReader reader; [SetUp] public void Setup() ...
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Web; namespace cataloguehetm.Models { public class BddContext : DbContext { public BddContext() { Database.SetInitializer<BddContext>(null); } public DbSet<Admi...
using System; using System.Collections.Generic; using System.IO; using System.Resources; using System.Text; namespace FastSQL.Core { public class ApplicationManager : IApplicationManager { private readonly ResourceManager resourceManager; public ApplicationManager(ResourceManager ...
using NUnit.Framework; using Xander.PasswordValidator.Exceptions; namespace Xander.PasswordValidator.TestSuite.Exceptions { [TestFixture] public class CustomValidationFileExceptionTests { [Test] public void Constructor_MessageWithFileName_CorrectlyFormatsMessage() { var ex = new CustomVali...
namespace ITQJ.WebClient.Models { public class UserInfoM { public string Subject { get; set; } public string Email { get; set; } public string Role { get; set; } } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TwinkleStar.Data { public class SavedEventArgs : EventArgs { public object Item = null; public SaveAction SaveAction = SaveAction.Insert; public SavedEventArgs(object item, SaveAction action...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.Script.Serialization; namespace TxHumor.Common { public class JsonHelper { /// <summary> /// 生成Json格式 /// </summary> /// <param name="obj">待转换的类型</param> /// <returns>...
using System; using System.Collections.Generic; using System.Text; namespace JabberPoint.Domain.Helpers { public enum Alignment { Left=0, Right=1, Centered = 2 } }
using System; namespace NewColoring { class Program { static void Main(string[] args) { Console.Title = "Training by KeenMate"; Write("Training by KeenMate \t\t\t\t\t Done by Damien Clément", ConsoleColor.Green, true); ChangeColor(); } publi...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; namespace WEBAPP { [BroadcastReceiver] public class ExitReceiver : BroadcastReceiver { ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Security.Cryptography; using OfficeOpenXml; using ThreatsParser.Entities; using ThreatsParser.Exceptions; namespace ThreatsParser.FileActions { static class FileUpdater { private static b...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.IO; namespace GuardarImagenBaseDatos.ListarArchivos { public partial class ListarImagenes : System.Web.UI.Page { protected void Page_Load(object sende...
using System; using System.Globalization; namespace MineSweepCS { #if WINDOWS || LINUX /// <summary> /// The main class. /// </summary> public static class Program { public static long nesting = 0; /// <summary> /// The main entry point for the application. /// </s...
using System; using System.Collections.Generic; using System.Text; namespace TrabalhoPratico2 { class Program { static void desenhaTabuleiro(char[,] matriz) //Escreve tabuleiro na tela { Console.WriteLine(" | | "); Console.WriteLine(" | | "); Console.WriteLine(" ...
using System; using lesson8library; namespace l8p { class Program { static void Main(string[] args) { helloClass user = new helloClass(); user.PrintHello(); helloClass custom = new helloClass("Андрей", "Пивет.."); custom.PrintHello(); ...
using System; using System.Collections.Generic; using System.Data; using System.Text; using MySql.Data.MySqlClient; using Models; namespace DAL { public class rewardinfoData : POJO<tb_rewardinfo> { public rewardinfoData() { } #region 成员方法 /// <summary> /// 增加一条数据 ...
using App.Models; namespace App.BusinessRules { public interface ICreditCheckRule { CreditStatus Apply(Customer customer); } }
using System; using System.Windows; using BusyBox.Demo.ViewModels; using BusyBox.Demo.Views; namespace BusyBox.Demo { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { public MainWindow() { InitializeComp...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Mccole.Geodesy { /// <summary> /// Common radius values for the Earth, expressed in metres. /// </summary> public static class Radius { /// <summary> /// Th...
using System; using Server.Mobiles; using Server.Targeting; namespace Server.Items { public class MageArmorRune : BaseMinorRune { [Constructable] public MageArmorRune() : base() { BaseAmount = 1; MaxAmount = 1; } public MageArmorRune( Serial serial ) : base( serial ) { } pu...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PalmBusinessLayer { class Project_Issue { private String id; private String project; private String status; private DateTime assignedUser; priva...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OOD { /* Desing the data structures for a generic deck of cards. explain how your * would subclass the data structures to implement the blacjack. */ public enum Suit { ...
using UnityEngine; using System.Collections; using UnityEditor; public class userPlayer : Player { public static userPlayer instance; public Material origional; public Material chosen; public void resetMaterial() { renderer.material = origional; } void Awake() { instance = this; } // Use this for init...
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Image_processing.Processing { public class NullProcess : Process { public override void Draw(Bitmap bitmap, int delta) { for(int i = 0...
using Microsoft.VisualBasic.CompilerServices; using System; using System.Security.Cryptography.X509Certificates; namespace Tic_Tac_Toe_Challenge { class Program { static char[,] array = { { '1', '2', '3' }, { '4', '5', '6' }, { '7', '8', '9' } }; static int choice = 0; static int playe...
using Microsoft.AspNetCore.Mvc; using Oef2.Models; using Oef2.PresentationModel; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Oef2.Controllers{ public class AgendaController: Controller { [HttpGet] public ActionResult Index() { ...
 using System.Collections.Generic; using System; namespace FileNamer { public class FileRenamer { private IFileWrapper _fileWrapper; public FileRenamer(IFileWrapper fileWrapper) { _fileWrapper = fileWrapper; } public void RenameFilesInFolder(string folderP...
using BigEndian.IO; namespace nuru.IO.NUI.Cell.Metadata { public class MetadataUInt8Writer : IMetadataWriter { public virtual void Write(BigEndianBinaryWriter writer, ushort metadata) { writer.Write((byte)metadata); } } }
using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using MongoDB.Bson; using W3ChampionsStatisticService.CommonValueObjects; using W3ChampionsStatisticService.Ports; namespace W3ChampionsStatisticService.Matches { [ApiController] [Route("api/matches")] public class MatchesController : Controlle...
using Cofoundry.Domain; using Microsoft.AspNetCore.Html; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Cofoundry.Samples.SimpleSite { public class AuthorDetails { public string Name { get; set; } public IHtmlContent Biography { get;...
// Copyright 2016, 2017 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by a...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.Entity; using System.ComponentModel.DataAnnotations; namespace TheatreDatabase { public class TheatreDbInitialization : DropCreateDatabaseIfModelChanges<TheatreContext> { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace console { public class _046_AtoI { /// <summary> /// Implement atoi to convert a string to an integer. /// Hint: Carefully consider all possible input cases. If you want a challenge, please ...
using UnityEngine; using System.Collections; public class ElevatorButton2ndFloor : MonoBehaviour { public bool playBrokenElevatorSoundFirst = false; public bool breakTheElevator = false; public int flickerNum = 20; private GameObject elevatorLights = null; private LightFlicker lightFlicker; public bool lights...
using RollerStore.Data.Store; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace RollerStore.Data.Roller { [Table("tbl_roller")] public class RollerEntity { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] [Column("...
using System; using IMDB.Api.Core; using IMDB.Api.Repositories.Interfaces; namespace IMDB.Api.Repositories.Implementations { public class PersonRepository : GenericRepository<Entities.Person>, IPersonRepository { public PersonRepository(DatabaseContext context): base(context) { } } }
using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Da...
using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Web.Http; namespace WebApi { public static class WebApiConfig { public static void Register(HttpConfiguration config) { ...
using System; using UnityEngine; namespace RO { [CustomLuaClass] public class CharacterSelector : MonoBehaviour { public Animator rootAnimator; public Action<GameObject> selectedListener; public Action updateListener; private CharacterSelectorInputController inputController; private bool running; p...
namespace MvcMonitor.Data.Providers.Factories { public class IndexProviderFactory : IIndexProviderFactory { public IIndexProvider Create() { return new IndexProvider(new Repositories.ErrorRepositoryFactory()); } } }
using System; using System.Collections.Generic; namespace SheMediaConverterClean.Infra.Data.Models { public partial class VRegister { public int RegisterId { get; set; } public string Ordnungsziffer { get; set; } public string Register { get; set; } public bool? Aktiv { get; se...
// Copyright 2021 Google LLC. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
using Address_API.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Address_API.Repositories { public class AddressRepository : IAddressRepository { private readonly AddressContext _context; ...
// Copyright (C) 2018 Kazuhiro Fujieda <fujieda@users.osdn.me> // // 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 re...
//----------------------------------------------------------------------- // <copyright file="Program.cs" company="None"> // Copyright (c) Brandon Wallace and Jesse Calhoun. All rights reserved. // </copyright> //----------------------------------------------------------------------- using Microsoft.Extensions.Depe...
using System; using Xunit; namespace DemoCode.Tests { public class CalculatorTests { [Fact] public void ShouldAdd() { var sut = new Calculator(); var result = sut.Add(1, 2); Assert.Equal(3, result); } } }
using LuaInterface; using SLua; using System; public class Lua_BMFont : LuaObject { [MonoPInvokeCallback(typeof(LuaCSFunction))] public static int constructor(IntPtr l) { int result; try { BMFont o = new BMFont(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Ex...
using Ambassador.Entities; using Ambassador.Models; using Ambassador.Models.EventModels; using System.Collections.Generic; using System.Threading.Tasks; namespace Ambassador.Services.Interfaces { public interface IAmbassadorEventManager { Task<IEnumerable<Event>> AllAsync(string ambassadorId); ...
using System.Collections.Generic; namespace API.Models { public class Attachment { public int Id { get; set; } public string Name { get; set; } public string Description { get; set; } public string Url { get; set; } public int PatternId { get; set; } public Accre...