text stringlengths 13 6.01M |
|---|
using System;
namespace Detego.API.Entity
{
public class Characteristic
{
public Guid Id { get; set; }
public int BackStore { get; set; }
public int FrontStore { get; set; }
public int ShopWindow { get; set; }
public float Accuracy { get; set; }
public float Avai... |
// Copyright (c) Christopher Clayton. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace praxicloud.core.metrics.traceprovider
{
/// <summary>
/// An extension class for metric factories
/// </summary>
public static clas... |
using AmazonReloader;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
namespace AccountEncryptor
{
class Program
{
static void Main(string[] args)
{
while (true)
{
Console.WriteLine("Cho... |
namespace UpgradedMatcher
{
using System;
using System.Linq;
public class StartUp
{
public static void Main()
{
var products = Console.ReadLine()
.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries)
.ToArray();
var quanti... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;
namespace SupplianceStore.Domain.Entities
{
public class Product
{
[HiddenInput(DisplayValue = false)]
public i... |
namespace Motherload.Enums
{
/// <summary>
/// Tipos de items existentes no jogo
/// </summary>
public enum ItemTypes
{
NONE = 0,
ORE = 1,
DRILL = 2,
HULL = 3,
RADIATOR = 4,
TANK = 5,
CARGO = 6,
ENGINE = 7,
}
}
|
using Library.DataStorage.Contracts;
using Library.Entities.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Library.Extensions;
namespace Library.Entities.Filters
{
public class BaseFilter<TKey, TIndex> where TIndex : struct
{
public IEnumerable<TKey... |
using AbiokaScrum.Api.Helper;
using DapperExtensions;
using System;
using System.Collections.Generic;
namespace AbiokaScrum.Api.Data.Transactional.Dapper.Operations
{
public class Operation<T> : IOperation<T> where T : class, new()
{
public virtual void Add(T entity) {
Safely.Run... |
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 FootballManager.Models;
using System.IO;
using System.Data.Entity.Validation;
using FootballManager.DAL;
namespace FootballManager.Controllers... |
using UnityEngine;
namespace Command
{
class MoveForward : ICommand
{
public void Execute(Transform transform, float speed)
{
transform.position += new Vector3(0, 1, 0) * (speed * Time.deltaTime);
}
public void Undo(Transform transform, float speed)
{
transform.position -= new Vector3(0, 1, 0) * (s... |
using Microsoft.AspNetCore.Http;
using SFA.DAS.CommitmentsV2.Api.Types.Requests;
using System.Collections.Generic;
namespace SFA.DAS.ProviderCommitments.Web.Models.Cohort
{
public interface IBulkUploadFileParser
{
List<CsvRecord> GetCsvRecords(long providerId, IFormFile attachment);
}
}
|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Com.Colin.UI.Models
{
public class Menu
{
public int Id { get; set; }
[Required, StringLength(25)]
public string Text { get; set; }
[DisplayName("... |
using System;
namespace MatrixShortestPath
{
public class Program
{
static void Main(string[] args)
{
Console.WriteLine("Given a matrix of N * M order, find the shortest distance from a starting cell to a destination cell, traversing through valid cells only.");
Console... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Projets_MDL
{
class Clubs
{
private int Id;
private string Nom;
private string LienSite;
private string Adresse;
private string Ville;
p... |
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Aquamonix.Mobile.Lib.Domain.Responses
{
[DataContract]
public class ErrorResponse : ApiResponse<ErrorResponseBody>
{
public ErrorResponse() : base()
{
}
}
[DataContract]
public class ErrorResponseBody : Response... |
using System;
using Upgrader.Infrastructure;
namespace Upgrader.Schema
{
/// <summary>
/// Column information and modification.
/// </summary>
public class ColumnInfo
{
private readonly Database database;
internal ColumnInfo(Database database, string tableName, string columnColum... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FRCTeam16TargetTracking
{
public static class Conversions
{
public static double MMToFeet(double mm)
{
return mm * .003281;
}
public static double InchesToMM(double mm)
... |
using Holiday_Optimizer.APP.Models;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Holiday_Optimizer.APP.Services
{
public interface IHolidayService
{
Task<CountryReponse> GetCountryWithMostHolidays();
MonthResponse GetMonthWithMostHo... |
using Boxofon.Web.Mailgun;
using Boxofon.Web.Model;
namespace Boxofon.Web.MailCommands
{
public interface IMailCommandFactory
{
IMailCommand Create(MailgunRequest request);
}
} |
using System;
using FluentAssertions;
using Xunit;
namespace PluralsightDdd.SharedKernel.UnitTests.DateTimeRangeTests
{
public class DateTimeRange_Equality
{
[Fact]
public void ReturnsTrueGivenSameStartEnd()
{
var dtr1 = new DateTimeRange(DateTimes.TestDateTime, TimeSpan.FromHours(1));
var... |
using MongoDb.CarPark.Entities.Abstract;
using MongoDB.Bson.Serialization.Attributes;
using System;
namespace MongoDb.CarPark.Entities.Concrete
{
public class Brand : MongoDbEntity
{
public string Name { get; set; }
[BsonDateTimeOptions(Kind = DateTimeKind.Utc)]
public DateTime? Updat... |
namespace Tutorial.LinqToEntities
{
#if EF
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using ModelBuilder = System.Data.Entity.DbModelBuilder;
#else
using Syst... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using WebUI.Data.Abstract;
using WebUI.Entity;
namespace WebUI.Controllers
{
public class SiteSettingController : Controller
{
private ISiteSettingRepository _siteSettingRep... |
using System;
using System.Collections.Generic;
using TwingateExrc.Exceptions;
namespace TwingateExrc.Tests
{
public static class MemoryOverflowTest
{
public static void Run()
{
Console.WriteLine("Memory overflow tests start:");
var m = new MemoryManager(4);
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CurveGenerator : MonoBehaviour
{
public List<GameObject> controlPoints = new List<GameObject>();
public List<GameObject> curvePoints = new List<GameObject>();
public GameObject controlPointPrefab;
public GameO... |
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using DataAnnotationsExtensions;
namespace CAPCO.Infrastructure.Domain
{
public class AccountRequest : Entity
{
public virtual ApplicationUser User { get; set; }
[Required, DisplayName("Company Nam... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Configuration;
using Boxofon.Web.Helpers;
using Boxofon.Web.Messages;
using Boxofon.Web.Model;
using Boxofon.Web.Security;
using Boxofon.Web.Twilio;
using Boxofon.Web.ViewModels;
using NLog;
using Nancy;
using Nancy.Security;
using Tin... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml;
/// <summary>
/// Summary description for Task
/// </summary>
public abstract class Task : WorkItem
{
public Task()
{
}
public string TaskID { get; set; }
public Guid TaskGUID { get; set; }
public Gu... |
using System;
namespace AreaDoRetangulo
{
struct AreaDoRetangulo
{
double x, y;
public double calcularArea()
{
x = 400;
y = 200;
return x * y;
}
}
class ProgramValidar
{
static void Main(string[] args)
... |
namespace Strategy_Checkpoint
{
public class FuelStation
{
public string CalculateFuel(int current, int max, IVehicle vehicle)
{
var fuelConsumed = max - current;
var cost = vehicle.FuelCost(fuelConsumed);
return $"Fuel Consumed: {fuelConsumed}; Total Cost: {cost}";
}
}
} |
using FluentMigrator;
namespace Profiling2.Migrations.Migrations
{
[Migration(201302011702)]
public class ViolationKeywords : Migration
{
public override void Down()
{
Delete.Column("Keywords").FromTable("PRF_Violation");
}
public override void Up()
{
... |
using System;
using Entities.Models;
using Repository.DTOs;
namespace Repository.Utils
{
public class PatientHandler
{
public static PatientDTO MapToApp(Patient model)
{
try
{
return new PatientDTO()
{
Id = model.Id,
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace FallstudieSem5.Models
{
[Table("City")] // created Table with the Name Cit... |
using Google.Protobuf;
using Sentry.Extensibility;
using Sentry.Internal.Extensions;
namespace Sentry.AspNetCore.Grpc;
/// <summary>
/// Dispatches request message extractions if enabled and within limits.
/// </summary>
public class ProtobufRequestExtractionDispatcher : IProtobufRequestPayloadExtractor
{
private... |
using System;
using Extensions;
namespace MOTHER3
{
// TODO: action order?
// TODO: outside sprite!
public class EnemyData : M3Rom
{
public static int Address = 0xD0D28;
public static int Length = 144;
public static int Entries = 257;
public static EnemyData[... |
using System;
using InterestRateApp.Contracts.Requests;
using InterestRateApp.Contracts.Responses;
using InterestRateApp.Domain;
using InterestRateApp.Domain.Entities;
using InterestRateApp.Domain.Models;
namespace InterestRateApp.Services.Mappers
{
public static class AgreementMapper
{
public static ... |
//-----------------------------------------------------------------------
// <copyright file="IISBNService.cs" company="Caspian Pacific Tech">
// Copyright (c) Caspian Pacific Tech. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace SmartLibrar... |
#region << 版本注释 - v1 >>
/*
* ========================================================================
* 版本:v1
* 时间:18-12-05
* 作者:Lith
* Q Q:755944120
* 邮箱:litsoft@126.com
*
* ========================================================================
*/
#endregion
using System;
using System.Collections.Gen... |
using UnityEngine;
using System.Collections;
public class Switch : MonoBehaviour {
public Sprite on;
public Sprite off;
public string gateName;
private bool isOn;
private bool onlyOnce;
void Update() {
if (isOn && !onlyOnce) {
GetComponent<SpriteRenderer> ().sprite = on; // change sprite
GameObje... |
// <copyright file="AssetServiceBaseFixture.cs" company="Morten Larsen">
// Copyright (c) Morten Larsen. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
// </copyright>
using System;
using Moq;
namespace AspNetWebpack.AssetHelpers.Testing
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace BeerShop.Controllers
{
public class IntendantMenuController : Controller
{
// GET: IntendantMenu
public PartialViewResult IntendantMenu()
{
return PartialVie... |
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using contracted.Models;
using contracted.Services;
using CodeWorks.Auth0Provider;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace contracted.Controllers
{
[ApiController]
[Route("/api/companies")]
p... |
using System;
namespace ServerApi.Exceptions
{
public class DeviceGuidMissingException : Exception
{
public DeviceGuidMissingException() :
base("The required \"DeviceGuid\" header was not found in the request!") {}
}
} |
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using OrchardCore.ContentManagement.Metadata;
using OrchardCore.ContentManagement.Metadata.Models;
namespace DFC.ServiceTaxonomy.GraphSync.Helpers
{
public static class ContentDefinitionHelper
{
priv... |
using System;
using System.Collections.Generic;
namespace DemoApp.Entities
{
public partial class CentreSubjectSanctions
{
public Guid Id { get; set; }
public Guid? CentreSanctionId { get; set; }
public Guid? SubjectId { get; set; }
public bool? IsActive { get; set; }
... |
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace SpeedSlidingTrainer.CoreTests.Utils
{
internal static class ExceptionAssert
{
public static void Throws(Action action, Type exceptionType)
{
try
{
action();
Asser... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SharpNES.Core
{
static public class CPUConstants
{
public static readonly UInt32 Frequency = 1789773;
public enum InterruptType
{
None,
... |
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class PreguntaSkate : MonoBehaviour
{
public Camera camSkt;
public Text AnswerS;
private bool change;
private int rtaSkt;
public static int alNext;
private string textoPBar, textoOp1, textoOp2, textoOp3, textoOp4;
p... |
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 KartObjects;
using KartLib;
namespace KartSystem
{
/// <summary>
/// Редактор страны. Позволяет задавать название и бу... |
using System.Threading.Tasks;
using Models.Login.Models;
namespace NotificationContents
{
public class TaskNotification
{
public async Task CreateTaskNotificationAsync(Notification NN, string User)
{
NotificationSave ns = new NotificationSave();
await ns.SaveNotificatio... |
using Northwind.Traders.Employees.Model.Contracts;
using Northwind.Traders.Employees.Model.Entities;
namespace Northwind.Traders.Employees.Api.Extensions
{
public static class Extensions
{
public static EmployeeDTO AsDTO(this Employee employee)
{
return new EmployeeDTO
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace webApp.Models
{
public class MenuViewModels
{
public String id { get; set; }
public String padre { get; set; }
public Int32 hijos { get; set; }
public String area { get; set; }
... |
using System;
using DelftTools.Utils.Collections;
using log4net;
using PostSharp.Laos;
namespace DelftTools.Utils.Aop.NotifyCollectionChange
{
/// <summary>
/// Implementation of <see cref="CompositionAspect"/> that adds the <see cref="INotifyCollectionChange"/>
/// interface to the type to which it is ap... |
using System;
using System.Threading.Tasks;
using AutoMapper;
using DataAccess.Roles;
using DB;
using Entities;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Identity;
using ViewModel.Roles;
namespace DataAccess.DbImplementation.Roles
{
public class AddRoleToUserCommand : IAddRoleToUserCommand
{... |
using System;
using System.Collections.Generic;
namespace QueenAttack{
class Program
{
public static void PrintMap(string[][] masterArray)
{
Array.Reverse(masterArray);
Console.WriteLine("Map Start");
foreach (string[] array in masterArray)
{
string mapLine = ... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
using TMPro;
public class UIManager : Singleton<UIManager>
{
[SerializeField] MainMenu mainMenu;
[SerializeField] Camera mainCamera;
[SerializeField] TextMeshProUGUI UISizeT... |
using System.Linq;
using System.Reflection;
using Microsoft.EntityFrameworkCore;
namespace ApiTemplate.Data.Extensions
{
public static class ModelBuilderExtensions
{
public static void RegisterEntities<TType>(this ModelBuilder builder, params Assembly[] assemblies)
{
//GetExported... |
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace GitHubFS
{
class GitHubFSApplicationContext : ApplicationContext
{
public GitHubFSApplicationContext()
{
Form main = new FormMain... |
using gView.Framework.Geometry;
namespace gView.Framework.Data
{
public class SpatialIndexedIDSelectionSet : SpatialIndexedIDSelectionSetTemplate<int>, ISpatialIndexedIDSelectionSet
{
public SpatialIndexedIDSelectionSet(IEnvelope bounds)
: base(bounds)
{
}
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
using Swashbuckle.AspNetCore.Swagger;
using Swashbuckle.AspNetCore.SwaggerGen;
namespace App.Web... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace BlogLab.Models.Account
{
public class ApplicationUserLogin
{
[Required(ErrorMessage = MessagesForErrors.UsernameRequired)]
[MinLength(5, ErrorMessage = MessagesForErrors.Us... |
using System.Diagnostics.CodeAnalysis;
using EnsureThat.Internals;
using JetBrains.Annotations;
namespace EnsureThat.Enforcers
{
[SuppressMessage("Performance", "CA1822:Mark members as static")]
public sealed partial class ComparableArg
{
public double Is(double value, double expected, [InvokerPar... |
using Cs_Gerencial.Dominio.Entities;
using Cs_Gerencial.Dominio.Interfaces.Repositorios;
using Cs_Gerencial.Dominio.Interfaces.Servicos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cs_Gerencial.Dominio.Servicos
{
public class Servic... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WcfServiceHost.ITS_Service
{
using Entity;
using Repository.ITSRepo;
using DTO.ITSDTO;
using System.ServiceModel;
public class EtiketlerService : ITS_ServiceBase<Etiketle... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _8_Condicionais2
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Executando projeto 8 Condicionais2");
int idadeJoao = 1... |
<Query Kind="Expression">
<Connection>
<ID>8af4b037-de64-4731-986a-fb3e0756e755</ID>
<Server>.</Server>
<Database>WestWind</Database>
</Connection>
</Query>
// B) List all the companys sorted by Company Name. Include the company's company name, contact name, and other contact information in the result.... |
using System.Collections.Generic;
using System.Linq;
using LevelGenerator.Scripts.Exceptions;
using LevelGenerator.Scripts.Helpers;
using LevelGenerator.Scripts.Structure;
using UnityEngine;
namespace LevelGenerator.Scripts
{
public class LevelGenerator : MonoBehaviour
{
//public static LevelGenerator... |
using Microsoft.EntityFrameworkCore;
using MySql.Data.EntityFrameworkCore.Extensions;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace CheckLinkConsole
{
public class LinksDb : DbContext
{
public DbSet<LinkCheckResult> Links { get; set; }
protected... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using Sirenix.OdinInspector;
using Sirenix.OdinInspector.Editor;
using Sirenix.Utilities;
using UnityEditor;
using UnityEngine;
using XNode;
using XNode.Odin;
using static XNode.Node;
namespace XNodeEditor.Odin
{... |
using System;
using Framework.Core.Common;
using OpenQA.Selenium;
using Tests.Data.Van.Input.Filters;
using Tests.Pages.Van.Main.Common;
namespace Tests.Pages.Van.Main.WalkManagerPages
{
public class WalkManagerListPage : VanBasePage
{
#region Page Element Declarations
public By E... |
using System;
using ApplicationCore.Interfaces;
using Autofac;
using Infrastructure.ObjectMapping;
namespace TreeVisualization
{
public class Program
{
[STAThread]
private static void Main()
{
var builder = new ContainerBuilder();
builder.RegisterType<ObjectMapF... |
namespace Demo
{
public class CTCProcess
{
// Constructor
public CTCProcess()
{
}
// Executes the full import process from start to finish
public RunImport(string userId, int countyNumber)
{
var configGrabber = new PortalConfigPr... |
using EmberKernel.Services.EventBus;
namespace BeatmapDownloader.Abstract.Models.Events
{
public class BeatmapDownloadTaskProgressUpdated : Event<BeatmapDownloadTaskProgressUpdated>
{
public DownloadBeatmapSetTask Task { get; set; }
public int PercentCompleted { get; set; }
public long... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UgyfelNyilvantartas
{
class Ugyfel
{
int ugyfel_ID;
string ugyfel_nev;
string ugyfel_tel;
string ugyfel_email;
string ugyfel_mas;
string... |
using UnityEngine;
public class ToolsBox : Interactable
{
public Sprite toolImage = null;
public Item toolItem;
[Header("Item Dialog")]
[SerializeField] private IconBox iconBox = null;
public override void Interact(Player player)
{
if (player.activeItem == null) player.activeItem = t... |
using System;
using System.Windows.Forms;
using Appnotics.Library.UI.Helpers;
using System.Reflection;
using System.Diagnostics;
namespace Appnotics.PCBackupTrayApp
{
/// <summary>
///
/// </summary>
static class Program
{
public static BugLogger bugLogger;
/// <summary>
/// The main entry point for the ... |
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
namespace CSharp.Enums.LikeJava
{
public class PlanetAttribute : Attribute
{
public double Mass { get; private set; }
public double Radius { get; private set; }
public PlanetAttribute(double ma... |
using Microsoft.AspNetCore.Http;
namespace Zesty.Core.Entities
{
public class ApiInputHandler
{
public string Resource { get; set; }
public string Body { get; set; }
public HttpContext Context { get; set; }
public string Get(string parameterName)
{
if (Cont... |
using System;
using System.Threading.Tasks;
using Uintra.Core.User.Models;
using Uintra.Infrastructure.ApplicationSettings;
using Uintra.Infrastructure.Extensions;
using Umbraco.Core.Models.Membership;
using Umbraco.Core.Services;
namespace Uintra.Core.User
{
public class IntranetUserService<T> : IIntranetUserSer... |
using System;
using System.Threading.Tasks;
using MQTTnet.Adapter;
using MQTTnet.Client.Receiving;
using MQTTnet.Diagnostics;
using MQTTnet.Diagnostics.Logger;
using MQTTnet.Packets;
namespace MQTTnet.Server.Internal
{
public sealed class MqttServerEventDispatcher
{
readonly MqttNetSourceLogger _logger... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
//Code was added in Git Hub.
// Another Code Added Here.
//Code Ad... |
using Properties.Core.Interfaces;
using Properties.Core.Objects;
namespace Properties.Infrastructure.Data.Mappers
{
public class ContactDetailMapper : IMapToExisting<ContactDetail, ContactDetail>
{
public bool Map(ContactDetail source, ContactDetail target)
{
target.MarkClean();
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
using UnityEngine.SceneManagement;
public class PlayerInstantiator : MonoBehaviour
{
NetworkManager manager;
string[] singlePlayerSessions;
string[] multiPlayerSessions;
// Use this for initia... |
using UnityEngine;
using System.Collections;
public class SpawnScript : MonoBehaviour {
public GameObject Spawn;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (Input.GetKeyDown(KeyCode.Keypad1))
{
Instantiate(Spawn, ne... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Malware : MonoBehaviour, IEnemy {
public GameObject pointDisplay;
public GameObject target;
public GameObject spawnEffect;
public GameObject explosionEffect;
public int damage = 10;
public int points = 10;
public stri... |
using UnityEngine;
using System.Collections;
public class MissionManager : MonoBehaviour {
#pragma warning disable 0649
[SerializeField]
Ship startingShip;
#pragma warning restore 0649
//DEBUG Initialization
void Start () {
if( startingShip is Flagship ){
Flagship startShip = (Flagship)startin... |
using DataAccessLibrary.Models;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataAccessLibrary.Logic
{
public class CalculatePie
{
ApplicationContext application;... |
using Bank.Models;
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 Bank
{
public partial class LoginForm : Form
{
public Login... |
namespace PFM.Products.Interfaces
{
public interface IProduct
{
string Id { get; }
decimal Price { get; }
}
} |
using System;
namespace CaeserCipher
{
public class ConsoleLogger : ILogger
{
public void LogError(string message)
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("ERROR: " + message);
}
public void LogInfo(string message)
{
... |
using System;
using System.Windows.Forms;
namespace Roman.UI
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void TbNumberInput_KeyPress(object sender, KeyPressEventArgs e)
{
e.Handled = !char.IsDigit(e.KeyChar) && !char.IsControl(e.KeyChar);
}
private v... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/**
* This class represents items that can be picked up and thrown
*/
[RequireComponent(typeof(Rigidbody))]
public class Interactable : Hookable
{
protected Controller controller;
public AudioSource attach;
public virtual... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Laoziwubo.IBLL;
using Laoziwubo.Model.Common;
using Laoziwubo.Model.Content;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Net.Http.Headers;
namespace Laoziwubo.We... |
using UnityEngine.SceneManagement;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class collectible2 : MonoBehaviour {
public AudioClip collectibleSound2;
public AudioClip collectibleWinSound2;
static public float numberOfCollectibles2 = 0;
public Text... |
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ContosoUniversity.Tests.Tools
{
public abstract class IntegrationTestsBase
... |
using SpatialEye.Framework.Client;
namespace Lite
{
/// <summary>
/// Request for carrying out selection in case selection on the Map
/// (by mouse click) didn't find anything
/// </summary>
public class LiteCustomSelectionRequestMessage : MessageBase
{
#region Constructor
/// <summary>
/// Co... |
using System;
using System.Collections.Generic;
[Serializable]
public class Books {
public List<BookData> list;
}
[Serializable]
public class BookData {
public string book_id;
public string book_name;
public string description;
public string user_creator;
public string image;
}
[Serializable]
public class Bo... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour{
private DartGameUtils.GameMode currentGameMode;
public static string currentGameId;
public static string currentGameBetId;
public int betColour;
public int betAmount;
public boo... |
using System;
using System.Linq;
using MongoDB.Bson;
using Alabo.Domains.Services;
using Alabo.Data.Targets.Reports.Domain.Entities;
using Alabo.Domains.Entities;
namespace Alabo.Data.Targets.Reports.Domain.Services {
public interface ITargetReportService : IService<TargetReport, long> {
}
}
|
using System.Collections.Generic;
using System.Linq;
using BLL.Contracts;
using DAL.Contracts;
using DAL.Models;
namespace BLL.Services
{
public class CountryService : ICountryService
{
private ICountryRepository _repo;
public CountryService(ICountryRepository repository)
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.