text stringlengths 13 6.01M |
|---|
//
// Copyright 2012 Carbonfrost Systems, Inc. (http://carbonfrost.com)
//
// 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 r... |
using GoharSang.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace GoharSang.Controllers
{
public class HomeController : Controller
{
GoharSangEntities db = new GoharSangEntities();
public ActionResult Index()
{... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using TiledSharp;
namespace SimplePlatformer
{
public class Board
{
public List<Tile> Tiles = new List<Til... |
using UnityEngine;
public class LineHangString : MonoBehaviour
{
public LineRenderer lineRend;
public GameObject hangItem;
[Range(1f, 20f)]
public int segment;
[Range(-0.03f, 0.03f)]
public float amplitude;
[Range(-0.03f, 0.03f)]
public float amplitudeA;
[Range(-0.03f, 0.0... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UDM
{
public class MaxAggregation : Aggregation
{
public override Object GetAggregatedValue(List<Cell> cells)
{
double max = Double.MinValue;
foreach(Cell cell in cells)
... |
using BookStore.Core.Domain;
using System;
using System.Linq;
namespace BookStore.Core.Calculator
{
public class OrderCalculator
{
private readonly Order _order;
public OrderCalculator(Order order)
{
if (order == null)
throw new ArgumentNullException(nameof... |
namespace Acme.Core.Settings
{
/// <summary>
/// Cache settings.
/// </summary>
public class CacheSettings
{
/// <summary>
/// Turns on or off the integration with cache.
/// </summary>
public bool IsEnabled { get; private set; }
/// <summary>
/// Ho... |
using Moq;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Text;
using UnitTesterExample;
public class BankTests
{
[Test]
public void GetAccountBalance_FormatsToMoney()
{
string expectedValue = "20,00";
Bank bank = new Bank(new FakeAccountManager(20, "E... |
using Chapter2.Interface;
using Microsoft.ProjectOxford.Face;
using Microsoft.ProjectOxford.Vision;
namespace Chapter2.ViewModel
{
public class MainViewModel : ObservableObject
{
private IVisionServiceClient _visionClient;
private FaceServiceClient _faceServiceClient;
private Celebrit... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using Ninject;
using Dao.Mercadeo;
using Dao.Solicitud;
namespace Blo.Mercadeo
{
public class OportunidadBlo : GenericBlo<crmOportunidad>, IOportunidadBlo
{
private IOportuni... |
namespace Decorator
{
public class WholeGrainPancake : Pancake
{
public WholeGrainPancake()
{
this.Calories = 50;
this.Description = "Healthy whole grain pancake!";
}
public override double CalculateCalories()
{
return this.Calories;... |
namespace JustAsk.Data.Models
{
public enum VoteType
{
Zero = 0,
One = 1,
Two = 2,
Three = 3
}
}
|
using Swiddler.Serialization;
using System;
using System.IO;
using System.Threading;
using System.Windows;
using System.Windows.Threading;
namespace Swiddler.IO
{
public class StorageHandle : IDisposable
{
public string FileName { get; private set; }
public bool CanWrite { get; private set; }
... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Threading.Tasks;
using EchoNest;
using EchoNest.Artist;
using Microsoft.Practices.Prism.Events;
using Microsoft.Practices.Prism.Logging;
using Microsoft.Practices... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace ProyectoASPEmenic.Paginas.Servicios
{
public partial class ListadoTransporte : System.Web.UI.Page
{
Conexion conexion = new Conexion();
//string ... |
namespace ModelAndroidApp.ModelAndroid
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Spatial;
[Table("Condicao")]
public partial class Condicao
{
public ... |
namespace EpamTask4.BL.Models
{
using System;
public class Order
{
public Guid Id {get; set; }
public DateTime Data { get; set; }
public Item Item { get; set; }
public Customer Customer { get; set; }
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Webcorp.Model;
namespace Webcorp.Controller
{
public static class Extensions
{
public static bool HasError<T>(this List<ActionResult<T, string>> results) where T : Entity
{... |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Xunit;
namespace Microsoft.EntityFrameworkCore.ChangeTracking
{
... |
// IComparer의 활용
using System;
using System.Collections;
class Person
{
public Person(string name,int age)
{
_name = name;
_age = age;
}
public void printAll()
{
Console.WriteLine(_name);
Console.WriteLine(_age);
}
public string getName() { return _name; }... |
using System.Collections.Generic;
using System.Linq;
using CL.FormulaHelper.Attributes;
using MeasureFormulas.Generated_Formula_Base_Classes;
using MeasureFormula.Common_Code;
namespace CustomerFormulaCode
{
[Formula]
public class TransmissionLineReliabilityConsequence : TransmissionLineReliabilityConsequenceB... |
namespace WpfIntro.Models
{
public class MediaLog
{
public int Id { get; set; }
public string LogText { get; set; }
public MediaItem LogMediaItem { get; set; }
public MediaLog(int id, string logText, MediaItem logMediaItem)
{
this.Id = id;
this.L... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace HelpConsole
{
class Program
{
static void Main(string[] args)
{
//Regex regexTenDigits = new Regex(@"^[0-9]{10}$");
... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using InputHandlers.Keyboard;
using InputHandlers.Mouse;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
namespace InputHandlers.Sample
{
public c... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace ShCore.Attributes.Validators
{
/// <summary>
/// Validate sử dụng regex
/// </summary>
/// <Modified>
/// Name Date Comments
/// trungtq 14/09/2015... |
/*
* Copyright 2014 Technische Universität Darmstadt
*
* 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 appl... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//using Sfs2X.Entities.Data;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using UnityEditor;
using iTextSharp.text;
using iTextSharp.text.pdf;
using iTextSharp.text.html;
using iTextSharp.text.html.simpleparser;
us... |
using AutoMapper;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Promact.Oauth.Server.AutoMapper;
using Promact.Oauth.Server.Data;
using Promact.Oauth.Server.Data_Repository;
using Promact.Oauth.Server.Models;
using Pr... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Ramazan.UdemyBlogWebSite.Business.StringInfos
{
public class JwtInfo
{
public const string Issuer = "http://localhost:51921";
public const string Audience = "http://localhost:5000";
public const string Securit... |
using log4net;
using Nini.Config;
using Nwc.XmlRpc;
using OpenMetaverse;
using OpenSim.Addons.Store.Data;
using OpenSim.Framework;
using OpenSim.Framework.Servers.HttpServer;
using OpenSim.Server.Base;
using OpenSim.Server.Handlers.Base;
using OpenSim.Services.Interfaces;
using System;
using System.Collections;
using S... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProiectPOO
{
public class Produs : Form1
{
public static int nrproduse;
public string cod;
public string denumire;
public string descriere;
publ... |
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace BarinakProjesi.DATA.Context
{
public class SahiplenmeTalepleri
{
[Key]
public int id { get; set; }
[Display(Name ="Kullanıcı")]
public int kullanici_id { get; set; }
... |
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using HacktoberfestProject.Web.Models;
using HacktoberfestProject.Web.Models.DTOs;
using HacktoberfestProject.Web.Services;
... |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using VKDesktop.Api;
namespace VKDesktop.Core.Messages
{
public class LongPoll
{
public Nullable<int> failed
{
get;
... |
namespace Micro.Net.Abstractions.Sagas
{
public abstract class Saga<TData> where TData : class, ISagaData
{
protected internal TData Data { get; internal set; }
}
}
|
using System;
namespace SimpleCalculator
{
class SimpleProgram
{
static void oldMain(string[] args)
{
double num1 = 0;
double num2 = 0;
Console.WriteLine("console calculator in C#");
Console.WriteLine("------------------------");
Cons... |
using FluentValidation;
using ITQJ.Domain.DTOs;
using System;
namespace ITQJ.Domain.Validations
{
public class MessageDTOsValidation : AbstractValidator<MessageCreateDTO>
{
public MessageDTOsValidation()
{
RuleFor(message => message.ProjectId).NotEqual(Guid.Empty)
.... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace filter.framework.utility
{
/// <summary>
/// 枚举类型转换
/// </summary>
public static class EnumConverter
{
/// <su... |
using Contoso.XPlatform.ViewModels;
namespace Contoso.XPlatform.Services
{
public interface IFieldsCollectionBuilder
{
EditFormLayout CreateFields();
}
}
|
using System;
using DataDynamics.ActiveReports;
using DataDynamics.ActiveReports.Document;
namespace LiandaSys.LD50
{
public class LD501510RP : ActiveReport
{
public LD501510RP(string ZBR,string WTDW,string RQ1,string RQ2)
{
InitializeReport();
this.txtRQ1.Text = Convert.ToDateTime(RQ1).ToString... |
namespace Triton.Game.Mapping
{
using ns25;
using ns26;
using System;
using System.Collections.Generic;
[Attribute38("TournamentMedal")]
public class TournamentMedal : PegUIElement
{
public TournamentMedal(IntPtr address) : this(address, "TournamentMedal")
{
}
... |
using System.Collections.Generic;
using System.Linq;
namespace aoc2019
{
public class Day06
{
public int Solve(List<string> lines)
{
var links = Parse(lines);
CalculateDistances(links);
var sum = links.Values.Sum(v => v.Distance);
return sum;
... |
using Hospital.Entity;
namespace Hospital.Service
{
public interface IPacienteService:IService<Paciente>
{
}
} |
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using System.Net;
using System.Linq;
using Mic... |
using CP.i8n;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CriticalPath.Data
{
public partial class CountryDTO
{
partial void Initiliazing(Country entity)
{
... |
using System;
using System.Collections.Generic;
namespace RestApiEcom.Models
{
public partial class TOperation
{
public int IdOperation { get; set; }
public int? OpeId { get; set; }
public string IndCodeGauche { get; set; }
public string IndCodeDroit { get; set; }
publi... |
using HangoutsDbLibrary.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace WebAPI.Services
{
public interface IServicePlan
{
void AddPlan(Plan plan);
List<Plan> GetAllPlans();
Plan GetPlanById(int id);
void Updat... |
using FirstFloor.ModernUI.Windows;
using LosPollosHermanos.Infrastructure;
using LosPollosHermanos.ServiceContracts;
using System.Linq;
using System.Windows.Controls;
namespace LosPollosHermanos.Franchise
{
/// <summary>
/// Interaction logic for Order.xaml
/// </summary>
public partial class Product ... |
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace SendMedia
{
public class GiphySearch
{
private const string API_URL = "https://api.giphy.com/v1/gifs/... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Management;
using System.Data;
using System.Data.SqlClient;
namespace AppCommon.Environment
{
public static class ServerSpecs
{
/// <summary>
/// Get the operating system of the current server
... |
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Turbomix;
using Microsoft.Practices.Unity;
namespace TurbomixTest
{
[TestClass]
public class TurbomixServiceIntegracionTest
{
private Alimento mAlimento1;
private Alimento mAlimento2;
private TurbomixService su... |
//using System;
//namespace physics2
//{
// public class PointCloudPartical {
// Player player;
// // between +1 and -1
// double index;
// public PointCloudPartical(Player player, double index, double x, double y)
// {
// this.player = player ?? throw new ArgumentNul... |
using eIDEAS.Models;
using eIDEAS.Models.Enums;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using System;
using System.Linq;
namespace eIDEAS.Data
{
public class DbInitializer
{
public static void Initialize(ApplicationDbContext context)
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ERP_Palmeiras_LA.Models;
using ERP_Palmeiras_LA.Models.Facade;
using ERP_Palmeiras_LA.Core;
namespace ERP_Palmeiras_LA.Controllers
{
public class SolicitacoesCompraMateriaisController : BaseController
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Collect : MonoBehaviour {
private ScoreSystem ScoreSystem;
egGame game;
// Use this for initialization
void Start () {
ScoreSystem = GameObject.Find("GameLogic").GetComponent<ScoreSystem>();
game = GameObject.F... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using Bangazon.Data;
using Bangazon.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Aut... |
using System;
using System.Collections.Generic;
namespace _8_deckofcards{
public class Player{
public string name;
public List<Card> hand;
public Player(string name,List<Card> hand){
this.name = name;
this.hand = hand;
}
public Card draw(Deck deck){
Card c = deck.deal();
hand.Add(c);
return c... |
using System;
namespace ShogunOptimizer.ArtifactSets
{
public class EmblemOfSeveredFate : ArtifactSet
{
public override double GetStat(StatType statType, Build build, Character character, int count)
{
switch (count)
{
case 2 when statType == StatType.Ene... |
namespace Bjerner.LoremIpsum {
public class LoremIpsumConstants {
public static readonly string[] Fillers = new[] {
"consectetur",
"adipisicing",
"elit",
"sed",
"do",
"eiusmod",
"tempor",
"incididunt",
"ut",
"labore",
"et",
"dolore",
"magna",
"aliqua",
"ut... |
//-------------------------------------------------------------------
//版权所有:版权所有(C) 2010,Wakaoyun
//系统名称:
//作 者:dengqibin
//邮箱地址:wakaoyun@gmail.com
//创建日期:9/8/2010 10:38:51 AM
//功能说明:
//-------------------------------------------------------------------
//修改 人:
//修改时间:
//修改内容:
//------------------------... |
using Services.DTO;
using Services.Interfaces;
using Services.Log;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UGCS.Sdk.Protocol.Encoding;
namespace Services.SdkServices
{
public class VehicleService
{
ILogger logger = new L... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Students_and_Courses
{
public class Program
{
private const string pathToFile = @"../../students1.txt";
private static string tempCourseHol... |
using Json;
using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
namespace JsonFacts
{
public class AnyFacts
{
[Fact]
public void NullTextReturnFalse()
{
var a = new Any("aA");
Assert.False(a.Match(null).Success());
}
... |
using LuaInterface;
using SLua;
using System;
using UnityEngine;
public class Lua_UnityEngine_LayerMask : LuaObject
{
[MonoPInvokeCallback(typeof(LuaCSFunction))]
public static int constructor(IntPtr l)
{
int result;
try
{
LayerMask layerMask = default(LayerMask);
LuaObject.pushValue(l, true);
LuaObj... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication2
{
public partial class q4 :... |
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using Emgu.CV;
using Emgu.CV.CvEnum;
using Emgu.CV.Structure;
namespace ContarPersonas
{
public class Util
{
public static void ConvertBmpIntoJPG(Bitmap bmp, Stream outStream, int quality)
{
ImageCodecInfo jpgE... |
using UnityEngine;
public enum Move
{
Right, Left, Up, Down,
}
public class FollowState : State
{
public FollowState(GameObject enemy, StateType state) : base(enemy, state) { }
protected Enemy enemyBehavior;
protected Vector2 direction;
protected Vector2? destination;
protected bool hit, hi... |
namespace MediaSystem.Api.Models
{
using System.ComponentModel.DataAnnotations;
using MediaSystem.Models;
public class SongApiModel
{
public int Id { get; set; }
[Required]
[MinLength(2)]
[MaxLength(50)]
public string Title { get; set; }
[MinLength(2)... |
using Jieshai.Core;
using System;
namespace Jieshai.Web.Models
{
public class InverstorCreateModel
{
public InverstorCreateModel()
{
}
public string Name { set; get; }
public string Remark { set; get; }
}
public class InvestorSearchModel
{
public ... |
namespace TestSchool
{
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using StudentsAndCourses;
[TestClass]
public class StudentTest
{
[TestMethod]
[ExpectedException(typeof(Exception))]
public void TestIfNameIsEmpty()
{
var studen... |
using HardwareInventoryManager.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace HardwareInventoryManager.Helpers
{
public class PermissionHelper
{
private IQueryable<RolePermission> _rolePermissions { get; set; }
public PermissionHelper(IQ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
namespace EarthDefender
{
class CreditsScene : Scene
{
Game mGame;
SpriteFont mFont;
Sprite... |
using UIKit;
using ScreenLock.iOS;
[assembly: Xamarin.Forms.Dependency(typeof(CScreenLock))]
namespace ScreenLock.iOS
{
public class CScreenLock : IScreenLock
{
public CScreenLock()
{
}
public void Lock()
{
UIApplication.SharedApplication.IdleTimerDisabled ... |
using Entidades;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Datos
{
public class PostDatos
{
private readonly string cadenaDeConexion;
public PostDatos()... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using _5._15._19.Models;
using Microsoft.Extensions.Configuration;
using Data;
using Microsoft.AspNetCore.Authorization;
namespace _5._15._19.Controllers
{
pub... |
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleCalculator
{
public class Calculator
{
public int Calculate(int val1, int val2, string operation)
{
//if(operation == null)
//{
// throw new NullReferenceException("operat... |
using System;
using System.Linq;
class MaximalKSum
{
static void Main()
{
//Write a program that reads two integer numbers N and K and an array of N elements from the console.
//Find in the array those K elements that have maximal sum.
Console.Write("Enter number of elements: ");
... |
//
// 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;
#endregion
namespace DotNetNuke.UI.WebControls
{
/// -----------------------------------------------------------------... |
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace Im.Access.GraphPortal.Data
{
public interface IChaosPolicyStore
{
Task<IEnumerable<DbChaosPolicy>> GetChaosPoliciesAsync(CancellationToken cancellationToken);
Task<DbChaosPolicy> Ge... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace MemoryGame.ViewModels
{
public class Klasa : ObservableObject
{
private const int _maxAttempts = 10;
private int _matchAttempts { get; set; }
... |
using Microsoft.AspNetCore.Http;
using System.ComponentModel.DataAnnotations;
namespace store_api.Dtos
{
public class ProductReadDto
{
public int Id { get; set; }
public string name { get; set; }
public string description { get; set; }
public bool status { get; set; }... |
namespace Triton.Game.Mapping
{
using ns26;
using System;
using Triton.Game;
using Triton.Game.Mono;
[Attribute38("BnetAccount")]
public class BnetAccount : MonoClass
{
public BnetAccount(IntPtr address) : this(address, "BnetAccount")
{
}
public BnetAccount... |
namespace TeamBuilder.App.Core
{
using Commands;
using System;
using System.Linq;
public class CommandDispatcher
{
public string Dispatch(string input)
{
string result = string.Empty;
string[] inputArgs = input.Split(new[] { ' ', '\t' }, StringSplitOptions.... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMove : MonoBehaviour
{
//角色移动速度
public float PlayerSpeed = 1f;
//方向X,动作为Y
int a ;
int b ;
//移动方向为1上2下3左4右 (a*10 + b)
int DirID;
//角色目标点(这里要取地图离角色最近的节点做处理)
private Vector2 TargetP... |
using System;
namespace SentenceGenerator
{
public class Verb : Word
{
public Verb(string baseForm)
{
Base = baseForm;
}
public string Ing {
get {
string ingForm = Base;
if (WordEndsCe())
ingForm = RemoveLastLetter() + "ing";
else if (WordEndsCVC())
ingForm = DoubleLastLetter() ... |
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.SqlClient;
using System.Web.Http;
using Torneio.API.Models;
namespace Torneio.API.Controllers
{
public class TimeController : ApiController
{
private SqlConnection sqlConnection;
private void SqlConn... |
using System.Threading.Tasks;
using System.Windows;
using BPiaoBao.AppServices.Contracts.SystemSetting;
using BPiaoBao.AppServices.DataContracts.SystemSetting;
using BPiaoBao.Client.Module;
using BPiaoBao.Client.UIExt;
using BPiaoBao.Common.Enums;
using GalaSoft.MvvmLight.Threading;
using System;
using System.Collecti... |
namespace MFW.LALLib
{
public enum PipeTypeEnum
{
PLCM_MFW_PIPE_UNKNOWN
, PLCM_MFW_PIPE_ARX /**< Incoming audio stream. */
, PLCM_MFW_PIPE_ATX /**< Outgoing audio stream. */
, PLCM_MFW_PIPE_PVRX /**< Incoming video stream. */
, PLCM_MFW_PIPE_PVT... |
using System.Collections.Generic;
using CloneDeploy_Entities;
using CloneDeploy_Entities.DTOs;
using RestSharp;
namespace CloneDeploy_ApiCalls
{
public class SettingAPI : BaseAPI
{
private readonly ApiRequest _apiRequest;
public SettingAPI(string resource) : base(resource)
{
... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
namespace TeacherStudentProject
{
public class Course
{
public int Id { get; set; }
public string Name { get; set; }
public i... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Logic
{
public static class DataProvider
{
static public string GetStringFromFile(string path)
{
string text;
try
{... |
// ===== Enhanced Editor - https://github.com/LucasJoestar/EnhancedEditor ===== //
//
// Notes:
//
// ============================================================================ //
namespace EnhancedEditor {
/// <summary>
/// Draws a <see cref="bool"/> as a toggle button.
/// </summary>
public class ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using org.sola.webservices.referencedata;
using org.sola.webservices.referencedata.extra;
namespace org.sola.services.boundary.wsclients
{
public class ReferenceDataServicePro... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace apiInovaPP.Models.Entrega
{
public class Historico
{
public int Id_Historico { get; set; }
public int IdEntrega { get; set; }
public DateTime Data_Historico { get; set; }
public Strin... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Psub.Domain.Entities;
using psub.net.Shared;
using UESPDataManager.DataService.HandlerPerQuery.Abstract;
namespace Psub.DataService.HandlerPerQuery.CommentProcess.Entities
{
public class Commen... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Diagnostics;
using LiongStudio.ComputerVision.Utils;
namespace FVBatch
{
class Program
{
static void Main(string[] args)
{
var searchDepth = 5;
Console.WriteLine("Batch work started, {0} batches will be despatched.", args.Length... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Planning
{
class HSPHeuristic
{
private List<Action> actions;
private List<Predicate> m_lGoal;
public bool m_bMax;
//the bMax flag is used to indicate using max or sum when computi... |
using Entities.nhrappdata;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Entities.Repositories
{
public class EmployeeRepository : GenericRepository<Employee>
{
public EmployeeRepository(nhrappdataContext context) : base(context)
{
}
... |
using System.Collections.Generic;
using System.Linq;
namespace Containerschip
{
public class Stack
{
private const int maxStackWeight = 120;
private List<Container> containersInStack { get; }
private bool first;
private bool last;
public Stack(bool first, bool last)
... |
using System;
using SharpDL.Events;
using SharpDL.Graphics;
namespace SharpDL
{
public interface IGameEngine : IDisposable
{
/// <summary>Defines the Initialize method that should be injected into the game loop.
/// This method should initialize any long running game assets, systems, and servic... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.