text stringlengths 13 6.01M |
|---|
using System;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Web.Mvc;
using HCL.Academy.Model;
using System.Net.Http;
using OfficeOpenXml;
using System.IO;
using OfficeOpenXml.Style;
using System.Configuration;
using Microsoft.ApplicationInsights;
using System.Diagnostics;
namespace HCLAc... |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace Ai
{
public class CharacterStateListener : Singleton<CharacterStateListener>
{
private Dictionary<ICharacter, List<KeyValuePair<float, CharacterState>>> states = new Dictionary<ICharacter, List<KeyValuePair<float,... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteInEditMode]
public class AssimetricEditor : MonoBehaviour {
public Assimetric script;
// Use this for initialization
void Start () {
script = this.GetComponent<Assimetric>();
script.initialize();
}
// Update is called ... |
//
// 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.ComponentModel
{
public interface IComponentInstaller
{
void InstallComponents(IContainer container);
}
}
|
using System;
public class Program
{
public static void Main()
{
var distance = float.Parse(Console.ReadLine());
var hours = float.Parse(Console.ReadLine());
var minutes = float.Parse(Console.ReadLine());
var seconds = float.Parse(Console.ReadLine());
var totalSeconds ... |
using System;
using System.Collections.Generic;
using System.Text;
namespace IAI_Robot_Nav
{
/// <summary> Interface for the Bots to gain information about the environment through. </summary>
public class Environment
{
public RawEnvironment rawEnv = new RawEnvironment();
public CellState[,... |
using System.Collections.Immutable;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Operations;
namespace Meziantou.Analyzer.Rules;
[DiagnosticAnalyzer(LanguageNames.CSharp)]
public sealed class UseGuidEmptyAnalyzer : DiagnosticAnalyzer
{
private static readon... |
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Fra... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Dog : Animal, ISound
{
public override void ProduceSound()
{
Console.WriteLine("I am {0} the dog - wof, wof", base.Name);
}
public Dog(string name, int ag... |
using Microsoft.Xna.Framework.Media;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media.Imaging;
namespace GaurdApp.Core
{
public class LockScreenHelper
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace CheckDomain
{
class Program
{
static CheckDomain d;
static void Main(string[] args)
{
while(true)
{
... |
using System;
using System.Collections.Generic;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using Tookan.NET.Http;
using Tookan.NET.Sanity;
namespace Tookan.NET.Helpers
{
/// <summary>
/// Extensions for working with the <see cref="IApiConnection"/>
/// </summary>
public st... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _12.SumAdjacentEqualNumbers
{
class Program
{
static void Main(string[] args)
{
var numbers = Console.ReadLine().Split(' ').Select(double.Parse).ToList();
... |
// Copyright 2018 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 applica... |
using System;
using System.Collections.Generic;
using System.Linq;
using Oak;
using NSpec;
using NUnit.Framework;
namespace DynamicTests.ArgumentArrays
{
class Foo
{
public IEnumerable<Type> ClassNames(params object[] args)
{
return args.Select(arg => arg.GetType());
}
... |
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
using LateOS.Models;
using LateOS.Filters;
namespace LateOS.Controllers
{
public class TipoDescuentoController : Controller
{
privat... |
using System;
namespace exe_14
{
class Program
{
static void Main(string[] args)
{
Console.Clear();
System.Console.WriteLine("============* Verbo no infinitivo *============");
System.Console.WriteLine("Verbo no infinitivo terminado com ar, e... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraController : MonoBehaviour
{
public float moveSpeed = 6.0f;
public float rotateSpeed = 6.0f;
private Vector3 moveDirection = Vector3.zero;
public void DoUpdate()
{
// handle clicks on object... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WF.SDK.Models
{
[Serializable]
public class ApiResult<T>
{
public bool Success { get; set; }
public string ErrorString { get; set; }
public string InfoString { get; set; }
public T Result... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Hotel.Web.Areas.ModulAdministracija.ViewModels;
using Hotel.Data.Models;
using Hotel.Web.Helper;
namespace Hotel.Web.Areas.ModulAdministracija.Controllers
{
[Area("ModulAdministra... |
namespace Triton.Game.Mapping
{
using ns26;
using System;
[Attribute38("HeroXPBar")]
public class HeroXPBar : PegUIElement
{
public HeroXPBar(IntPtr address) : this(address, "HeroXPBar")
{
}
public HeroXPBar(IntPtr address, string className) : base(address, classNa... |
using Models;
using Admin.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;
using System.IO;
namespace Web.Helpers
{
public class FunctionHelper
{
#region Methods
public void InsertErrorLog(Exception ex, string action, stri... |
using System;
namespace OSGeo.GDAL
{
public enum RWFlag
{
GF_Read,
GF_Write
}
} |
using System;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Sesi.WebsiteDaSaude.WebApi.Interfaces;
using Sesi.WebsiteDaSaude.WebApi.Models;
using Sesi.WebsiteDaSaude.WebApi.Repositories;
namespace Sesi.WebsiteDaSaude.WebApi.Controllers
{
[ApiController]
[Route("api/[controller... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace nmct.ba.cashlessproject.ui.ViewModel
{
class KL_RegistreerVM: ObservableObject, IPage
{
public string Name
{
get { return "Klanten Registreren"; }
... |
using UnityEngine.UI;
using UnityEngine;
public class Scoring1 : MonoBehaviour
{
public int score;
int fastScore;
Scoring realScore;
public Text scoreText;
public GameObject player;
// Update is called once per frame
void Update()
{
realScore = GameObject.Find("Time").GetC... |
using System.ComponentModel.DataAnnotations;
using RPG_Project.Validations;
namespace RPG_Project.DTOs
{
public class AddWeaponDto
{
[FirstLetterUpperCaseAttribute]
[Required]
public string Name { get; set; }
[Required]
[Range(1, 100)]
public int Damage { get; se... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ISKlinike
{
[Table("Korisnici")]
public class Korisnik
{
public int Id { get; set; }
public string Ime { get; se... |
namespace Triton.Game.Mapping
{
using ns26;
using System;
[Attribute38("RankChangeStar")]
public class RankChangeStar : MonoBehaviour
{
public RankChangeStar(IntPtr address) : this(address, "RankChangeStar")
{
}
public RankChangeStar(IntPtr address, string classNam... |
using System.Linq;
using System.Web.Http;
using MusicCatalogue.Data;
using MusicCatalogue.Model;
using MusicCatalogue.Model.ServiceModels;
namespace MusicCatalogue.Services.Controllers
{
public class SongsController : ApiController
{
private const string InvalidArtistID = "Bad request - invalid artist... |
using Godot;
using System.Collections.Generic;
public class SymbolTile : Tile
{
public Symbol Symbol { get; protected set; }
public override void _Ready()
{
base._Ready();
TileSlot = GetNode<SymbolTileSlot>("/root/Game/MatchTileStream/SymbolTileSlot");
}
public override void Initialize<T>(TraySlot traySlot... |
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 Microsoft.Extensions.Configuration;
namespace Clou... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Pes.Core;
namespace PESWeb.Profiles.Interface
{
public interface IManageProfile
{
void ShowMessage(string Message);
void LoadLevelOfExperienceTypes(List<LevelOfExperienceType> types);
... |
/*
* Author: Konstantin Ivanov
*
* Official site: http://konstantini.data.bg/sharpbelot
*
* */
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using Belot;
namespace SharpBelot
{
public partial... |
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Project8_GroupProject.Models;
namespace Project8_GroupProject.Data
{
/// <summary>
/// Used to define the "context" for our database
/// </summary>
public class G... |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
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.Win... |
using System;
using System.Collections.Generic;
using System.Text;
namespace EFCoreDemo
{
class baba
{
}
}
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AP_BaddyRoomPopulator : AP_RoomPopulator {
public override void PopulateRoom (int level)
{
//Reset our list of gridpositions.
InitializeList ();
// Create a random number of inert obstacles, calling Devin's method
... |
using PDV.DAO.Custom;
using PDV.DAO.DB.Controller;
using PDV.DAO.Entidades;
using PDV.DAO.Enum;
namespace PDV.CONTROLER.Funcoes
{
public class FuncoesContato
{
public static bool ExisteContato(decimal IDContato)
{
using (SQLQuery oSQL = new SQLQuery())
{
... |
using bot_backEnd.DAL.Interfaces;
using bot_backEnd.Data;
using bot_backEnd.Models.DbModels;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace bot_backEnd.DAL
{
public class PostNotificati... |
using System.IO;
namespace Augury.Base
{
public interface ISerializer<T>
{
T Deserialize(Stream stream);
void Serialize(Stream stream, T data);
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace WebIBOST1.DataModel
{
public class SOModel
{
public List<SOHeader> GetCountSO()
{
List<SOHeader> oReturn = null;
IBOrderTrackingEntities oConnection = new IBOrderTrackingEnti... |
using Everest.Entities;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Everest.Repository.Interfaces
{
public interface IUbicacionRepository
{
Task<UbicacionEntity> ConsultarPorAnuncioAsync(int id);
Task<int> CrearUbicacion... |
using heitech.MediatorMessenger.Implementation.Messages;
using heitech.MediatorMessenger.Interface;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
namespace heitech.MediatorMessenger.Tests.Implementation.Messages
{
[TestClass]
public class ExtensionTests
... |
/// A quick summary of a tutorial by GameGrind: https://www.youtube.com/watch?v=6yDRbnXve_0 (thanks!)
/// on how to use the JSONUtility to save and load data to PC games and applications built using Unity3D.
///
/// GameGrind channel: https://www.youtube.com/channel/UCTY3kks3U4RDvpMX87fvo1A, like and subscribe to the... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace PmSoft.Utilities
{
/// <summary>
/// 权重对象
/// </summary>
public interface IWeightObject
{
/// <summary>
/// 权重
/// </summary>
int Weight { get; }
... |
using System;
using System.Collections.Generic;
using System.Text;
namespace AppDuoXF.Models
{
public class Friend
{
public string Photo { get; set; }
public string Name { get; set; }
public string Experience { get; set; }
}
}
|
using DUTAdmissionSystem.Commons;
using DUTAdmissionSystem.Database;
using DUTAdmissionSystem.Database.Schema.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Web;
using System.Web.Mvc;
using Excel = Microsoft.Office.Interop.Excel;
namespace... |
using System.Collections.Generic;
using System.Configuration;
using System.Threading.Tasks;
using ZeyrekFramework.Business.Abstract;
using ZeyrekFramework.DataAccess.Abstract;
using ZeyrekFramework.Entities.Concrete;
namespace ZeyrekFramework.Business.Concrete.Managers
{
public class ParameterManager : IParameter... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace BDProblems
{
public partial class Problem
{
public Problem()
{
ProblemGrade = new HashSet<ProblemGrade>();
ProblemT... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class YouMissed : MonoBehaviour {
public int numMisses;
void Start()
{
numMisses = 0;
}
void OnTriggerEnter2D(Collider2D other)
{
if (numMisses == 2)
... |
using Toppler.Core;
namespace Toppler
{
interface ITopplerContext
{
Granularity[] Granularities { get; }
string Namespace { get; }
int DbIndex { get; }
IKeyFactory KeyFactory { get; }
}
}
|
using GaleService.Controllers.Mappers;
using GaleService.Controllers.ResourceModels;
using GaleService.DomainLayer.Managers.Enums;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Diagnostics.CodeAnalysis;
namespace ControllerTests
{
[TestClass]
[ExcludeFromCodeCoverage]
publ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OtherQuestions.cs
{
public class _011_FindAnagram
{
/*
* 在一个大串中查找和另外一个字符串是anagram的子串:
* GetAnagram(‘‘abcdbcsdaqdbahs’’, ‘‘scdcb’’) ==> ‘‘cdbcs’’
*/
... |
using DLL.DBContext;
using DLL.Models;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Linq.Dynamic.Core;
using Microsoft.AspNetCore.Http;
using DLL.Wrapper;
using ViewModels.Request;
namespace DLL.Re... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Routing;
using System.Web.Security;
using System.Web.SessionState;
namespace Ws2008.WEB
{
public class Global : System.Web.HttpApplication
{
public static void RegisterRoutes(RouteCollecti... |
//-----------------------------------------------------------------------
// <copyright file="ModuleItem.cs" company="Aranea IT Ltd">
// Copyright (c) Aranea IT Ltd. All rights reserved.
// </copyright>
// <author>Szymon Sasin</author>
//-----------------------------------------------------------------------
name... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
public class Bullet : NetworkBehaviour
{
[HideInInspector]
public Vector3 direction;
float speed = 1.2f;
void FixedUpdate()
{
transform.position += direction * speed;
}
void OnCollisionEnte... |
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CarRental.Models.Database
{
public class DatabaseContext : IdentityDbContext... |
using System.Collections.Generic;
using System.Threading.Tasks;
namespace ProductsSrvc
{
public interface IProductsRepository
{
Task<IEnumerable<Product>> GetProducts();
Task<Product> GetProduct(int Id);
Task<int> AddProduct(Product product);
Task UpdateProduct(int Id, Product... |
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using ObjectDataTypes;
namespace PirateWars
{
/// <summary>
/// Base class for all player controlled ships. Extends from ship but includes more data necessary for the use ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Data.SqlClient;
using System.Configuration;
namespace SQLServerWebservice
{
/// <summary>
/// Summary description for WebService1
/// </summary>
[WebService(Namespace = "http://... |
using Caliburn.Micro;
using Rateit.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Rateit.Events;
namespace Rateit.ViewModels
{
//By Johann
public class ShellViewModel : Conductor<object>, IHandle<LoginEvent>, IHandle<LogoutEvent>
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ScoreScript : MonoBehaviour {
public static int score;
public static int highScore;
public static bool isUpdatedScore;
// Use this for initialization
void Start () {
... |
using OpenQA.Selenium;
using OpenQA.Selenium.Support.UI;
using System.Threading;
/*
* ClassName: Login
* Description:
* It is the class to login with pasword and username.
*
*/
namespace Rightmove
{
public class Search
{
public static bool SearchToRent( string findstr, IWebDriver webDrive... |
using System;
namespace Address_Book
{
class Contact {
public string FirstName {get; set;}
public string LastName {get; set;}
public string Email {get; set;}
public string Address {get; set;}
public string FullName {
get {
return FirstName + " " +... |
#region using
using System;
#endregion
namespace EfCore.Shaman
{
[AttributeUsage(AttributeTargets.Property)]
public class DecimalTypeAttribute : Attribute
{
#region Constructors
public DecimalTypeAttribute(int length, int decimalPlaces)
{
Length = length;
... |
using System;
public class Kata
{
public static bool IsIsogram(string s)
{
string str = s.ToLower();
string check = "";
for(int i = 0; i< str.Length; i++){
for(int n = i +1; n<str.Length; n++){
if(str[i] == str[n]){
check += str[i];
}
}
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraController : MonoBehaviour
{
const float speed = 3f;
const float moveSpeed = 5f;
const float scrollSpeed = 20f;
const float rotateSpeed = 60f;
Transform cam;
void Start()
{
cam = C... |
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
namespace iCopy.SERVICES.Attributes
{
public class AutoValidateModelStateAttribute : ActionFilterAttribute
{
public override async Task OnActionExecutionAsync(Acti... |
using DataLayer.Entities;
using System;
using System.Linq;
using System.Linq.Dynamic.Core;
using Repository.Extensions.Utility;
namespace Repository.Extensions
{
public static class RepositoryPurchaseExtensions
{
public static IQueryable<Purchase> FilterPurchases(this IQueryable<Purchase> purchases, s... |
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
namespace Maunts
{
/// <summary>
/// Provides various general helpers-methods.
/// </summary... |
using System.Collections.Generic;
using Psub.DTO.Entities;
namespace Psub.DataService.Abstract
{
public interface IPublicationService
{
IEnumerable<PublicationDTO> GetPublicationList(int publicationSectionId, int publicationMainSectionId);
int SaveOrUpdate(PublicationDTO publication);
... |
using UnityEngine;
using System.Collections;
public class Hazard : MonoBehaviour
{
private Controls player;
public Transform start;
public GameObject Explode;
void Start()
{
player = FindObjectOfType<Controls>();
}
void Update()
{
}
void OnTriggerEnter2D(Collider2D ... |
using CDSShareLib.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace sfShareLib
{/*
public class CDSException : System.Exception
{
public class Detail
{
public int ErrorCode;
public strin... |
// 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;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore.Diagnostics;
using Microsoft.EntityFrameworkCore.Tes... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Shooter
{
class OptionKey : IOption
{
public OptionKey()
{
}
public OptionKey(string name)
{
this.Name = name;
this.KeyName = "<none>";
}
public OptionKey(string name, int key)
... |
/*
>>>----- Copyright (c) 2012 zformular ----->
| |
| Author: zformular |
| E-mail: zformular@163.com |
| Date: 9.27.2012 |
| |
╰==========================... |
using System.Data.Entity;
using Microsoft.AspNet.Identity.EntityFramework;
namespace LearningSignalR.Db.Models.Identity
{
public class Role : IdentityRole<long, UserRole>
{
internal static void AddModelDefinition(DbModelBuilder modelBuilder, string tableName = "Roles", string schemaName = "dbo")
... |
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Linq;
using System.Threading.Tasks;
using Warehouse.Core.Data;
using Warehouse.Core.Models;
using WarehouseService.Infrastructure.DataMapping;
using WarehouseService.Models;
n... |
using System;
using System.Windows.Input;
using City_Center.Clases;
using City_Center.Models;
using City_Center.Page;
using City_Center.PopUp;
using City_Center.Services;
using GalaSoft.MvvmLight.Command;
using Xamarin.Forms;
using static City_Center.Models.PromocionesResultado;
namespace City_Center.ViewModels
{
... |
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Localization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Hahn.ApplicatonProcess.December2020.Web.Controllers
{
[Route("home")]
[ApiController]
public ... |
using System.Web;
using Logs.Providers.Contracts;
using Moq;
using NUnit.Framework;
namespace Logs.Providers.Tests.CachingProviderTests
{
[TestFixture]
public class GetItemTests
{
[TestCase("key")]
[TestCase("cachekey")]
public void TestGetItem_ShouldCallHttpContextProviderCurrentC... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerHealth : MonoBehaviour
{
public int health;
public void TakeDamage(int damage)
{
if (health > 0)
{
health -= damage;
Debug.Log("Health = " + health.ToString());
}
if (health == 0)
{
... |
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Imaging;
namespace GrafikaProj
{
/// <summary>
/// Klasa obsługująca przetwarzanie obrazu
/// </summary>
class ImageCustomizator
{
/// <summary>
/// Obraz źródłowy
/// </summary>
private Bi... |
using System;
using System.Collections.Generic;
using System.Text;
using Uplift.DataAccess.Data.Repository.IRepository;
namespace Uplift.DataAccess.Data.Repository
{
public class UnitOfWork : IUnitOfWork
{
private readonly ApplicationDbContext _applicationDbContext;
public UnitOfWork(Applicat... |
using PDV.DAO.Custom;
using PDV.DAO.DB.Controller;
using PDV.DAO.Entidades.MDFe;
using PDV.DAO.Enum;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PDV.CONTROLER.Funcoes
{
public class FuncoesCondutor
{
... |
using Microsoft.AspNetCore.Mvc;
using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using XPowerAPI.Logging;
using XPowerAPI.Models;
using XPowerAPI.Models.Params;
using XPowerAPI.Repository.Col... |
namespace NDDDSample.Infrastructure.Validations
{
#region Usings
using System;
using System.Collections.Generic;
#endregion
/// <summary>
/// Provides a set of assertion checks.
/// </summary>
public static class Validate
{
/// <summary>
/// Tests if a object is n... |
using System.Text.RegularExpressions;
using BPiaoBao.Client.Module;
using BPiaoBao.Client.UIExt.CommonWindow;
using BPiaoBao.Common.Enums;
using GalaSoft.MvvmLight.Threading;
using JoveZhao.Framework;
using System;
using System.Linq;
using System.ServiceModel;
using System.Windows;
using Microsoft.Win32;
namespace BP... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LightwaveDaemon
{
internal enum DeviceName
{
Hallway
}
internal static class Configuration
{
public static string EmailFromAddress = "addres... |
namespace AmqpNetLiteRpcCore
{
internal class RpcBase
{
public AmqpRpcNode ParseRpcNodeAddress(string nodeAddress)
{
var result = new AmqpRpcNode();
if (!nodeAddress.Contains("/"))
{
result.Address = nodeAddress;
return result;
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Utilities.Enums
{
/// <summary>
/// Enumerable para resolver la extencion del archivo
/// </summary>
public enum ExtencionFile
{
txt
}
}
|
namespace APICaller
{
public class MintConfig
{
public string UrlEndPoint { get; set; }
public string CertSubjectName { get; set; }
public static MintConfig Config = ConfigHelper.LoadConfig<MintConfig>(ConfigFile.MINT);
}
}
|
using UnityEngine;
using System;
namespace CoreEngine.Math
{
[Serializable]
public sealed class DoubleVector2 : BaseVector2<DoubleVector2,double>
{
static DoubleVector2()
{
OperatorAdd = (a,b)=>a+b;
OperatorSubstract = (a,b)=>a-b;
OperatorMultiply = (a,b)=>a*b;
OperatorDivision = (a,b)... |
using System;
using System.Threading;
using System.Threading.Tasks;
using ApplicationCore.Entities;
using ApplicationCore.Interfaces;
using Microsoft.AspNetCore.Identity;
namespace Infrastructure.Identity
{
public class UserStore : IUserPasswordStore<User>
{
private readonly IUserRepository _userRepos... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SolarSystem
{
class PlanetAndStellars: Planet
{
List<Stellar> Stellars = new List<Stellar>();
public PlanetAndStellars(float posX, float posY, float vX, float vY, floa... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
namespace TxHumor.Common
{
public sealed class com_XmlLoad
{
private com_XmlLoad()
{
}
private static XElement _instance = null;
priva... |
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using IdentityServer4.Models;
using System.Collections.Generic;
namespace Hexagon.IdentityServer
{
using IdentityServer4;
using Micro... |
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;
using Lib;
namespace Team_Agile.Pages
{
public partial class SubmitProblem : Form
{
publ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.