text stringlengths 13 6.01M |
|---|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 与子弹检测碰撞
/// </summary>
[RequireComponent(typeof(Collider))]
public abstract class AmmoDetector : MonoBehaviour {
private void OnCollisionEnter(Collision collision)
{
if(collision.gameObject.tag == "Ammo")... |
using UnityEngine;
using System.Collections;
public class walk : MonoBehaviour {
private bool goRight = true;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (goRight)
{
transform.Translate(new Vec... |
using REQFINFO.Repository;
using REQFINFO.Domain;
using REQFINFO.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace REQFINFO.Business.Interfaces
{
public interface IWorkflowBusiness
{
List<WorkFlowModel> GetUserWorkf... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JOToolbox.DateTimeHelper
{
public class JODateTime
{
public DateTime ConvertToDateTime(string val)
{
DateTime dt = DateTime.Now;
if (string.IsN... |
// Copyright 2017-2019 Elringus (Artyom Sovetnikov). All Rights Reserved.
using UnityCommon;
using UnityEditor;
namespace Naninovel
{
public class ScriptAssetPostprocessor : AssetPostprocessor
{
private static ScriptsConfiguration configuration = default;
private static EditorResources editor... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... |
using System.Collections.Generic;
using Newtonsoft.Json;
namespace CarWash.Bot.CognitiveModels
{
internal class LuisEntityResponse
{
[JsonProperty("$instance")]
internal IDictionary<string, IEnumerable<CognitiveModel>> Instance { get; set; }
[JsonExtensionData]
internal IDicti... |
namespace Plus.Communication.Packets.Outgoing.Rooms.Session
{
internal class OpenConnectionComposer : MessageComposer
{
public OpenConnectionComposer()
: base(ServerPacketHeader.OpenConnectionMessageComposer)
{
}
public override void Compose(ServerPacket pa... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SKT.WMS.WMSBasicfile.BLL;
using SKT.WMS.WMSBasicfile.Model;
using SKT.WMS.Web.AjaxServices.WMSRstorage;
using SKT.WMS.WMSRstorage.Model;
using SKT.WMS.WMSRstorage.BLL;
names... |
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using NaturalDisa... |
using DNI.Shared.Contracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using TaskMan.Contracts.Services;
namespace TaskMan.Services
{
public class TaskService : ITaskService
{
private readonly IRepository<... |
using System;
namespace Objects
{
public sealed class EmailNotification : INotification<EmailMessage>
{
public void Notify(EmailMessage message)
{
Console.WriteLine(nameof(EmailNotification));
}
}
}
|
using KPI.Model.DAO;
using MvcBreadCrumbs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
namespace KPI.Web.Controllers
{
[BreadCrumb(Clear = true)]
public class ListUserLevelController : BaseController
{
// ... |
namespace OCP.AppFramework.Http.Template
{
/**
* Class SimpleMenuAction
*
* @package OCP\AppFramework\Http\Template
* @since 14.0.0
*/
class SimpleMenuAction : IMenuAction {
/** @var string */
private id;
/** @var string */
private label;
/** @var string */
private icon;
/** @va... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Windows.Forms;
namespace ProiectPOO
{
class Administrator
{
public static Administrator admin;//o singura instanta care este disponibila oriunde in aplicati... |
using System.Threading.Tasks;
using Meziantou.Analyzer.Rules;
using TestHelper;
using Xunit;
namespace Meziantou.Analyzer.Test.Rules;
public sealed class ValidateArgumentsCorrectlyAnalyzerTests
{
private static ProjectBuilder CreateProjectBuilder()
{
return new ProjectBuilder()
.WithAnaly... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Node
{
public enum State { Untested, Open, Closed}
public Vector2Int position;
public bool isWalkable;
public float G;
public float H;
public float F { get { return G + H; } }
public Node parent;
... |
using AutoMapper;
using L7.Domain;
namespace L7.Business
{
public class ProductMapping : Profile
{
public ProductMapping(){
CreateMap<Domain.Product, ProductModel>();
}
}
} |
using Enrollment.Domain.Entities;
using Enrollment.Forms.Configuration.DataForm;
using Enrollment.XPlatform.Tests.Helpers;
using Enrollment.XPlatform.Services;
using Enrollment.XPlatform.ViewModels.Factories;
using Enrollment.XPlatform.ViewModels.Validatables;
using Microsoft.Extensions.DependencyInjection;
using Syst... |
using MilitaryElite.Interfaces;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace MilitaryElite.Models
{
class LeutenantGeneral : ISoldier, ILieutenantGeneral,IPrivate
{
public LeutenantGeneral(string id,string firstName,st... |
using MaterialSurface;
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using TutteeFrame2.Controller;
using TutteeFrame2.Model;
using TutteeFrame2.Utils;
namespace TutteeFrame2.View
{
public partial class PunishmentView : UserControl
{
PunishmentController controller;
... |
using Infated.Tools;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Infated.CorgiEngine
{
/// <summary>
/// This decision will return true if the Brain's current target is facing this character.
/// </summary>
public class AIActionWaitConversationEnd : AIDecis... |
using UnityEngine;
using UnityEngine.UI;
namespace Submarine
{
public class SubControll : MonoBehaviour
{
private Rigidbody2D _rigidbody2D;
private SpriteRenderer _spriteRenderer;
public Text SpeedText;
private void OnEnable()
{
_rigidbody2D = GetComponent... |
using UnityEngine;
using System.Collections.Generic;
using UnityEngine.UI;
public class DisplayLoot : MonoBehaviour
{
public Transform pickupDisplay;
public List<Transform> popups;
private Loot currentLoot;
private Inventory inv;
private bool showingLoot;
private KeyCode interactionButton;
v... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class movimiento : MonoBehaviour
{
public float speed;
void Update()
{
// transform.rotation = Quaternion.Euler(new Vector3(speed++,0,0));
transform.Rotate(speed * Time.deltaTime,0,0);
}
}
|
using System;
using System.Collections.Generic;
using System.Text;
namespace Converter.Units
{
class Bit : DataUnit
{
protected override double UnitDevidedByByte => 0.125;
public override string ToString()
{
return nameof(Bit);
}
}
}
|
using System.Diagnostics;
namespace ClearSight.Core
{
/// <summary>
/// Provides assertion methods. Use these instead of the .net assertions for better control.
/// Asserts should only be used for critical errors in the programming. They are well suited to document invarients.
/// </summary>
stati... |
/*
* Copyright © 2019 GGG KILLER <gggkiller2@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the “Software”), to deal in the Software without
* restriction, including without limitation the rights to use, copy, modif... |
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
using MusicAppWeb.Models;
using MusicAppWeb.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace MusicAppWeb.Pages
{
public class IndexMode... |
using System;
using OpenTK;
namespace Common.Utils
{
public static class GeometryHelper
{
public static bool BetweenX(this Vector3 point, Vector3 left, Vector3 right)
{
return left.X <= point.X && right.X >= point.X;
}
public static bool BetweenY(this Vector3 point... |
using AutoMapper;
using BLL.DTO;
using DAL;
namespace BLL
{
public class MappingProfile : Profile
{
public MappingProfile()
{
CreateMap<UserDTO, User>().ReverseMap();
CreateMap<RoleDTO, Role>().ReverseMap();
CreateMap<PermissionDTO, Permission>().ReverseMap(... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
using UnityEngine.SceneManagement;
public class PlayerUI : MonoBehaviour {
public TextMeshProUGUI m_interactText;
public TextMeshProUGUI m_reactText;
public TextMeshProUGUI m_paperText;
p... |
using System;
namespace OnlyOrm
{
///<summary>
/// 想要让一个实体类实现ORM操作,必须继承自这个方法
///</summary>
public class OrmBaseModel
{
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Application.Common.Dtos;
using Application.Common.Exceptions;
using Application.Common.Interface;
using Application.Common.Models;
using AutoMapper;
using AutoMapper.QueryableExtensions;
using ... |
using LDMApp.Services.Interfaces;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace LDMApp.Controllers
{
[ApiController]
public class DatasetController
{
private readonly IDatasetApi datasetApi;
publi... |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Bindable.Linq.Tests.TestLanguage.EventMonitoring
{
/// <summary>
/// A helper class for testing Bindable LINQ queries.
/// </summary>
internal abstract class EventMonitor<TPublisher, TEventArgs> : IDisposable
... |
namespace Figure
{
abstract class Shape
{
public abstract double Area();
public abstract double Perimeter();
}
}
|
using System;
using UnityEngine;
namespace FootBallKick{
public class AimTarget : MonoBehaviour
{
void OnTriggerEnter(Collider other){
if (other.gameObject.layer == LayerMask.NameToLayer("Ball")){
MessageHandler.instance.Send(new HitTargetMessage());
Destroy... |
using System;
using MathNet.Numerics.LinearAlgebra;
namespace DLOCRModel.Math.Layer {
/// <summary>
/// ReLU層
/// </summary>
/// <remarks>
/// 該層屬於激活函數,並不具備學習能力
/// </remarks>
public sealed class ReluDouble : IHiddenLayer<Double> {
private Matrix<Double> _maskMatrix;
///... |
//
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
//
namespace DotNetNuke.Entities.Tabs.Actions
{
public interface ITabEventHandler
{
void TabCreated(object sender, TabEventArgs args);
... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Demo6.Models;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
namespace Demo6.Controllers
{
public class JobController : Controller
{
//private readonly Registera... |
using NodeGraph.Model;
using NodeGraph.View;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NodeGraph.ViewModel {
[NodeFlowPortViewModel()]
public class NodeFlowPortViewModel : NodePortViewModel {
#region Constructor
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace apiInovaPP.Excecao
{
public class ParametroInvalidoException:Exception
{
public static string ParametroNaoInformado { get { return "Parâmetro {0} não informado."; } }
public static string ParametroIn... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
/* Write a program that reads a text file containing a square matrix of numbers and
* finds in the matrix an area of size 2 x 2 with a maximal sum of its elements. The
* fir... |
using Ghost.Utils;
using LuaInterface;
using SLua;
using System;
using UnityEngine;
public class Lua_Ghost_Utils_DebugUtils : LuaObject
{
[MonoPInvokeCallback(typeof(LuaCSFunction))]
public static int DrawDoubleCircle_s(IntPtr l)
{
int result;
try
{
Vector3 origin;
LuaObject.checkType(l, 1, out origin);... |
// <copyright file="AvlTreeTTest.cs"></copyright>
using System;
using System.Collections.Generic;
using Dsa.DataStructures;
using Microsoft.Pex.Framework;
using Microsoft.Pex.Framework.Validation;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Dsa.DataStructures
{
[PexClass(typeof(AvlTree<>))]
/... |
//
// 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.Reflection;
using System.Xml.XPath;
using DotNetNuke.Application;
#endregion
namespace DotNetNuke.Services.I... |
using System;
using System.Collections.Generic;
using System.Linq;
using CloneDeploy_DataModel;
using CloneDeploy_Entities;
using CloneDeploy_Entities.DTOs;
namespace CloneDeploy_Services
{
public class ComputerLogServices
{
private readonly UnitOfWork _uow;
public ComputerLogServices()
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.IO;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class GameManager : MonoBehaviour
{
public bool devSaveTest = false;
//CHALLENGES
//[HideInInspector]
public List<ChallengeSystem.Challenge> c... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BasicProgramDay5
{
public class Alphabet
{
public void Vowel()
{
char letter;
Console.WriteLine("Problem:Check alphabet is Vowel or Consonant");... |
using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Tes4._3_Tier.DTO;
namespace Tes4._3_Tier.DAL
{
class query_medicine_patient_DAL
{
private stati... |
using Checkout.Payment.Gateway.Seedwork.Interfaces;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.IdentityModel.Tokens;
using System;
using System.Text;
namespace Checkout.Payment.Gateway.Extensions
{
public static class AuthenticationExtensio... |
using System;
using System.Data.SqlClient;
namespace JqD.Data
{
public class RepositoryException : Exception
{
public RepositoryException(Exception exception, string message) : base(message, exception)
{
}
public static RepositoryException DatabaseError(SqlException sqlExcept... |
using System;
using System.Collections.Generic;
#nullable disable
namespace Crt.Data.Database.Entities
{
public partial class CrtProject
{
public CrtProject()
{
CrtFinTargets = new HashSet<CrtFinTarget>();
CrtNotes = new HashSet<CrtNote>();
CrtQtyAccmps = n... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace SoftwareDeveloperIO.Collections.Generic.Test
{
[TestClass]
public class AddFirstTests
{
[TestMethod]
public void Should_ListBeNotEmpty_When_Adding1Node()
{
ILinkedList<int> list = new LinkedList<int... |
using App.Utilities.Access;
using App.Utilities.Controls;
using App.Entity;
using App.Entity.AttibutesProperty;
using App.Logic;
using App.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace App_Market.Forms
{
/// <seealso cref="System.Windows.Forms.... |
using Microsoft.AspNetCore.Mvc;
namespace Rinsen.IdentityProviderWeb.Controllers
{
public class ManageIdentityController : Controller
{
}
}
|
namespace Kers.Models.Entities.UKCAReporting
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
[Table("zCesTaxExemptEntity")]
public partial class zCesTaxExemptEntity
{
[Key]
[Co... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using CommonCore;
using CommonCore.ObjectActions;
using CommonCore.State;
using CommonCore.Rpg;
using CommonCore.World;
using CommonCore.Audio;
using CommonCore.Messaging;
using CommonCore.Dialogue;
namespace World.Ext.TestIsland
{
pu... |
using System.Linq;
using System.Threading.Tasks;
using NUnit.Framework;
using W3ChampionsStatisticService.PadEvents;
using W3ChampionsStatisticService.W3ChampionsStats;
using W3ChampionsStatisticService.W3ChampionsStats.HeroWinrate;
namespace WC3ChampionsStatisticService.UnitTests
{
[TestFixture]
public class ... |
using System;
using System.Text;
using Model.Security.MembershipManagement;
namespace Model.UploadManagement
{
public interface ICsvUploadManager : IDisposable
{
bool IsValid { get; }
void ParseData(UserProfileMember userProfile, string fileName, Encoding encoding);
bool Save();
... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace EdubranApi.Models
{
public class CommentPostDTO
{
[Required]
public int project_id { get; set; }
[Required]
public string comment { get; s... |
using System;
using System.Windows;
using ClickPizza.WindowsPhone.Model;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using Microsoft.Phone.Controls;
namespace ClickPizza.WindowsPhone.ViewModel
{
public class PizzaCartItemViewModel : ViewModelBase
{
private PizzaCartItemModel _cartItemM... |
using System;
namespace SiDualMode.OutputAdapter.ConsoleAdapter {
//Configuration used by the factory
public class ConsoleOutputConfig {
public bool ShowCti { get; set; }
public ConsoleColor InsertEventColor { get; set; }
public ConsoleColor CtiEventColor { get; set; }
public b... |
using System;
using System.Linq;
namespace Date
{
public class Date
{
static void Main(string[] args)
{
string input1 = Console.ReadLine();
string input2 = Console.ReadLine();
DateModifier modifier = new DateModifier();
modifier.CalculateDifferen... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using CryptoCollection;
namespace Testing
{
class Program
{
static void Main(string[] args)
{
byte[] input = new ... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/**
* Copyright (c) blueback
* Released under the MIT License
* https://github.com/bluebackblue/fee/blob/master/LICENSE.txt
* http://bbbproject.sakura.ne.jp/wordpress/mitlicense
* @brief JSON。実装。
*/
/** NJsonItem
*/
... |
using System.Collections.Generic;
using MinimalExtended;
using Sandbox;
namespace PermissionSystem
{
[Library( "permission-system-info" )]
public class AddonInfo : BaseAddonInfo
{
public override string Name => "Permission System";
public override string Description => "Adds an abstraction layer for a p... |
using AutoMapper;
using CheckMySymptoms.AutoMapperProfiles;
using CheckMySymptoms.Domain;
using CheckMySymptoms.Flow;
using CheckMySymptoms.Flow.Cache;
using CheckMySymptoms.Flow.Rules;
using CheckMySymptoms.Forms.View;
using CheckMySymptoms.Repositories;
using CheckMySymptoms.Utils;
using CheckMySymptoms.ViewModels;
... |
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 SETLine
{
public partial class Menu : Form
{
public Menu()
{
... |
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using VehiculosSanJoaquinMVC.Models.Abstract;
using VehiculosSanJoaquinMVC.Models.Entities;
namespace VehiculosSanJoaquinMVC.Controllers
{
public class ListasController : Controller
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Spawn_Manager : MonoBehaviour {
[SerializeField]
private GameObject enemyShipPrefab;
[SerializeField]
private GameObject[] powerups;
private GameManager _gameManager;
void Start()
{
_gameMa... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.Odbc;
namespace SistemaPreguntas
{
public partial class nuevoAlum : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using PESWeb.Friends.Interface;
using Pes.Core;
using StructureMap;
namespace PESWeb.Friends.Presenter
{
public class ConfirmFriendshipRequestPresenter
{
private IConfirmFriendshipRequest _view;
p... |
using Entidades;
using ProyectoFinal.UI.Consultas.Reporte;
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 ProyectoFinal.UI.Consultas.ReportVi... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BulletControl : MonoBehaviour {
public float Speed = 7.0f;
void Update () {
float moveAmnt = Time.deltaTime * Speed;
transform.Translate(Vector3.forward * moveAmnt);
if (transform.position.z... |
using System;
namespace Proxy
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine();
Console.WriteLine("-------- USANDO PATRÓN PROXY --------");
Console.WriteLine();
//Proxy.IObject proxySencillo = new Proxy.ProxySencillo();
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class EnemyCountManager : MonoBehaviour
{
public int enemyCount;
public Transform enemyList;
void Start()
{
enemyCount = enemyList.childCount;
... |
using AutoMapper;
using AutoMapper.Configuration;
using Demo.Employee.MVC.Core.Infrastructure;
using Demo.Employee.MVC.Core.Mappers;
using Demo.Employee.MVC.Core.Models;
using Demo.Employee.MVC.Core.Repository.Implementations;
using Demo.Employee.MVC.Core.Repository.Interfaces;
using Demo.Employee.MVC.Web.Controllers;... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace YzkSoftWare
{
/// <summary>
/// 对象为null错误
/// </summary>
public class ObjectIsNullException : Exception
{
public ObjectIsNullException(string objdesc... |
using NetworkToolkit.Connections;
using NetworkToolkit.Http.Primitives;
using System;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace SimpleRequestSample
{
class Program
{
static async Task Main(string[] args)
{
await using Connec... |
using System.Reflection;
using Autofac;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using Castle.Windsor.Installer;
using NUnit.Framework;
using StructureMap;
using StructureMap.Configuration.DSL;
using Module = Autofac.Module;
namespace A... |
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Sisc.Api.Data.Common;
using Sisc.Api.Data.Repositories;
namespace Sisc.Api.Data
{
public class StartUp
{
public void ConfigureServices(IServiceCollection services, List<string> ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Numero14
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Ingrese algo:");
string ingreso1 = Console.ReadLine();
... |
using UnityEngine;
using System.Collections;
[System.Serializable]
public class Boundary
{
public float xMin, xMax, yMin, yMax;
}
public class PlayerJetpackController : MonoBehaviour
{
public float jetpackForce = 5.0f;
public float tilt;
public Boundary boundary;
Rigidbody playerRigidbody;
public bool isPl... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// Improve this!
public class BushfireGameManager : MonoBehaviour
{
public enum GameState { MainMenu, InGame, GameOver }
public static GameState currentState = GameState.MainMenu;
float fireSpawnTimer = 0.5f;
public static... |
using UnityEngine;
public class PlayerCollision : MonoBehaviour {
public PlayerMovement movement;
private void OnCollisionEnter(Collision collisionInfo) {
if (collisionInfo.collider.tag.Equals("ImpossibleObstacle")) {
FindObjectOfType<GameManager>().EndGame();
} else if (collision... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ScoreManager : MonoBehaviour
{
public static int score;
public static int lines;
public static int level;
int topScore;
public static int startLevel;
int previousLines;
[Seria... |
//
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
//
using System;
using System.ComponentModel.DataAnnotations;
using DotNetNuke.ComponentModel.DataAnnotations;
namespace DotNetNuke.Entities.Content.Workflo... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace csEnumSample
{
class MonthEnum
{
enum Months{
JANUARY = 1,
FEBRUARY = 2,
MARCH = 3,
APRIL = 4,
MAY = ... |
using System.Threading.Tasks;
using lauthai_api.DataAccessLayer.Data;
using lauthai_api.DataAccessLayer.Repository.Implements;
using lauthai_api.DataAccessLayer.Repository.Interfaces;
namespace lauthai_api.DataAccessLayer.Repository
{
public class UnitOfWork : IUnitOfWork // dùng chung service
{
privat... |
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
namespace CoreFrameWork.EventBus
{
/// <summary>
/// 事件总线构建器
/// </summary>
public class EventBusBuilder
{
public EventBusBuilder(IServiceCollection s... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using SincolPDV.DAL;
namespace SincolPDV.BLL
{
public class Cliente
{
#region atributos
int codigo;
string nome;
string tp_pessoa;
int status;
string cpf;
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace RemoteTech
{
public class FlightComputer
{
double torqueRAvailable, torquePYAvailable, torqueThrustPYAvailable;
private int[] rapidToggleX = { 0, 0, 0, 0 }; //Array size determ... |
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
namespace Store_Mvc.Models
{
public class StoreDbContext:DbContext
{
//omarJaab
public StoreDbContext() : base("StoreEntity")
{
Database.SetInitializer<StoreDbCont... |
using System;
using System.Collections;
using System.Collections.Generic;
using UI;
using UnityEngine;
public class Interacting : MonoBehaviour
{
private IInteractable _interactable = null;
private bool _canInteract = false;
private bool _canGrab = false;
private bool _canMakeAction = false;
priva... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigati... |
#region 版本说明
/*****************************************************************************
*
* 项 目 :
* 作 者 : 张宏丹
* 创建时间 : 2014/8/27 13:30:06
*
* Copyright (C) 2008 - 鹏业软件公司
*
*****************************************************************************/
#endregion
using System;
using System.Collec... |
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.Json;
namespace FatCat.Nes.OpCodes.Repository
{
public class OpCodeReader
{
private static List<OpCodeItem> OpCodes { get; } = LoadOpCodes();
public OpCodeItem Get(byte value) => OpCodes.FirstOrDefault(i => i.Value == value)... |
// <copyright file="IReaderRepository.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace Library.Repositories
{
using Library.Models;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.