text stringlengths 13 6.01M |
|---|
using System;
using System.Collections.Generic;
using System.Text;
namespace Problems.XII
{
public class Numbers
{
public List<int> GetNumber(int n)
{
List<int> arr = new List<int>() { 3,4,5,6,7,8,9,10,11,12,13,14,15,16};
List<int> result = new List<int>() { 1,2};
... |
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace FinalProject
{
static class Program
{
// This variable holds all of the nouns common typos (can be used in multiple tests)
public static ... |
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class Version : MonoBehaviour {
// <branch> YYMMDD.hhmm
public const string VersionString = "Tutorial 161101.2305";
// Use this for initialization
void Start () {
GameObject tVersionNo = GameObject.Find("tVersionNo");
... |
using InstaMagic;
using System;
using System.Collections.Generic;
using System.Text;
using Xamarin.Auth;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
[assembly: ExportRenderer(typeof(LoginPage), typeof(InstaMagic.iOS.Renderers.LoginPageRenderer))]
namespace InstaMagic.iOS.Renderers
{
public class Login... |
//
// 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.Collections.Generic;
using System.Data;
using System.Runtime.Serialization;
using DotNetNuke.ComponentModel.Dat... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class SceneManerger : MonoBehaviour {
public static SecneType TO_SCENETYPE;
void Start () {
}
public static void LoadScene(SecneType p_ToSceneType){
TO_SCENETYPE = p_ToSceneType;
SceneMan... |
// <copyright file="ShakespeareContents.cs" company="Visualbean">
// Copyright (c) Visualbean. All rights reserved.
// </copyright>
namespace Visualbean.Pokemon.Shakespeare
{
using Newtonsoft.Json;
/// <summary>
/// The ShakespeareContents.
/// </summary>
public class ShakespeareContents
{
... |
using LogicBuilder.Attributes;
using System;
using System.Collections.Generic;
using System.Text;
namespace Contoso.Forms.Parameters.Common
{
public class SelectParameters
{
public SelectParameters()
{
}
public SelectParameters
(
[Comments("Property name fo... |
using System;
using OpenCvSharp;
namespace opencvsharpudemy.Chapter5
{
public class ImageOperations
{
public static void Main(string[] args)
{
string filepath = @"images/lenna.png";
Mat colorImage = Cv2.ImRead(filepath, ImreadModes.Color);
// Image Shifting,... |
using JKMPCL.Model;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace JKMPCL.Services
{
/// <summary>
/// Class Name : MyDocument
/// Author : Vivek Bhavsar
/// Creation Date : 09 Feb 2018
/// Purpose : to get set my document details from service.
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Bai1.Models
{
public class HinhChuNhat
{
//Field
private double dai;
private double rong;
public double Dai
{
get => dai;
set
... |
using System;
[Serializable]
public class Politician {
public string name;
public float[] attributes = new float[5];
}
[Serializable]
public class PoliticianArray {
public int size;
public Politician[] politicians;
public int Size {
get {
return size;
}
set {
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
//data transfer object of arrow
public class ArrowDefinition
{
public long id;
public long startCubeDefinitionId;
public long endCubeDefinitionId;
public ArrowDefinition(long _id, long _startC... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public abstract class Interactable : MonoBehaviour {
public static int Counter = 0;
[SerializeField]
private float holdInteractionTime = 1.0f;
private float beamHoldInteractionTime = 1.0f;
private float currentHoldInteractionTime... |
using System;
using Shunxi.Business.Models.devices;
namespace Shunxi.Business.Models.cache
{
public class PumpRealTimeStatus :BaseDevice
{
public Pump Device { get; set; }
private double _RealTimeFlowRate;
public double RealTimeFlowRate
{
get => _RealTimeFlowRate;
... |
namespace System.Linq
{
using System.Collections.Generic;
using System.Collections.ObjectModel;
public static partial class FastLinq
{
// TODO: Tests and perf
internal static IReadOnlyList<T> AsReadOnly<T>(
this IList<T> source)
{
if (source == null)
... |
/*
* Copyright 2014, 2015 James Geall
*
* 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 applicable law or agree... |
using System;
using System.Collections.Generic;
using System.Text;
namespace ExpenseTracker
{
public class IncomeEntry
{
public int ID { get; set; }
public int User_ID { get; set; }
public string AccountName { get; set; }
public double IncomeAmount { get; set; }
public string Incom... |
using ZooApp.Application.Common.Exceptions;
using ZooApp.Application.Common.Interfaces;
using MediatR;
using System.Threading;
using System.Threading.Tasks;
namespace ZooApp.Application.Animal.Commands.UpdateAnimal
{
public class UpdateAnimalCommand : IRequest
{
public int Id { get; set; }
pub... |
using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Challenge_App.Repo.Migrations
{
public partial class FirstSetup : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.Creat... |
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... |
using SWAPITestDriveLibrary.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace SWAPITestDriveLibrary
{
public class SwApiProcessor
{
public static async Task<Object> LoadData(Resource resource, s... |
/*
* Bungie.Net API
*
* These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality.
*
* OpenAPI spec version: 2.1.1
* Contact: support@bungie.com
* Generated by: https://github.com... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Offline.Payment.Business.Models
{
public class UserTransaction
{
public int Id { get; set; }
public int? UserId { get; set; }
public int? VendorId { get; set; }
public decimal? Amount { get; set; }
... |
using System;
namespace InterviewCake
{
public class BinaryTreeNode
{
public int value;
public BinaryTreeNode left;
public BinaryTreeNode right;
public BinaryTreeNode(int value)
{
this.value = value;
}
public BinaryTreeNode insertLeft(int ... |
using AccessControlSystem.Core;
using AccessControlSystem.Models;
using Microsoft.AspNetCore.Mvc;
using System.Linq;
namespace AccessControlSystem.Controllers
{
public class ManagementController : Controller
{
private AccessControlSystemContext _dbContext;
public ManagementController(AccessCo... |
using System;
using System.Collections.Generic;
using System.Text;
namespace ExmploClaseInterfaz
{
class Soldado
{
private IDisparar Ataque;
public Soldado(IDisparar arma)
{
Ataque = arma;
}
public void Disparar()
{
Console.WriteLine(Ataq... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace WpfApplication2
{
class User
{
public string Name { get; private set; }
public string SurName { get; private set; }
p... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TurnOnChoices : MonoBehaviour
{
[SerializeField]
private GameObject[] Choices;
public float SecondsToWait = 0;
public bool AutoStart = true;
private void Start()
{
if (AutoStart) {
Sta... |
using Ghost.Extensions;
using System;
using UnityEngine;
namespace RO
{
public class ParticleSystemController : MonoBehaviour
{
public ParticleSystem[] particaleSystems;
public void SetPlaybackSpeed(float speed)
{
if (!this.particaleSystems.IsNullOrEmpty<ParticleSystem>())
{
ParticleSystem[] array =... |
using System;
using System.Collections;
using TNRD.Constraints;
using UnityEditor;
using UnityEngine;
namespace TNRD.Utilities
{
[CustomPropertyDrawer(typeof(EnumAsIndexAttribute))]
public class EnumAsIndexPropertyDrawer : PropertyDrawer
{
public override void OnGUI(Rect position, SerializedProper... |
using UnityEngine;
using System.Collections;
public class Metronome : MonoBehaviour
{
public static int beat;
public static bool beatDidChange = false;
private int lastBeat;
private int beatsPerMinute = 60;
private float interval;
// Use this for initialization
void Start ()
{
interval = 60 / beats... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CafeMana.DTO
{
public class Hash
{
public string MD5(string txt)
{
String st = "";
Byte[] buf = System.Text.Encoding.UTF8.GetBytes(txt);
... |
using AutoMapper;
using CarsAPI.Authorization;
using CarsAPI.Entities;
using CarsAPI.Exceptions;
using CarsAPI.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CarsAPI.Servi... |
using Moq;
using NUnit.Framework;
using P10Gen.Core.Model;
using P10Gen.Core.Services;
using P10Gen.Core.UtilAdapter;
namespace G10Gen.Core.Tests
{
[TestFixture]
class CreateCombinationServiceTest
{
private ICreateCombinationService createPhaseService;
private Mock<IRandomAdapter> randomAd... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AlgorithmsChapter1
{
public class _1_3_12_CopyStack
{
/*
* Clone a stack.
*/
public Stack<int> Copy(Stack<int> input)
{
Stack<int>... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
namespace sang
{
public partial class message1 : System.Web.UI.Page
{
SqlConnection cn = Class1.cn;
protect... |
using System;
using System.Web.Optimization;
namespace FullStack.App_Start
{
public class BundleConfig
{
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Assets/lib/jquery/dist/jquery.min.js"));... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Entities
{
public class Block : INotifyPropertyChanged
{
public string BlockId { get; set; } //номер блоку
public string CuttingType { get;... |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="BaseFactory.cs" company="CGI">
// Copyright (c) CGI. All rights reserved.
// </copyright>
// ------------------------------------------------------------------------------------... |
using Extension;
using UnityEngine;
using Zenject;
namespace Lonely
{
public class PlayerState_Move : State
{
public PlayerState_Move(IStateEnter enter, IStateExit exit, IStateUpdate update)
: base(enter, exit, update)
{
}
public class CustomFactory : IFactory<Stat... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace d05_interface
{
class Program
{
static void Main(string[] args)
{
ProductCatalog a = new ProductCatalog();
string op = "";
while ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using XRTTicket.Contexts;
using XRTTicket.Models;
namespace XRTTicket.DAO
{
public class PriorityDao : BaseContext<Priority>, IUnitOfWork<Priority>
{
public int Next() => DbSet.Max(x => x.PriorityId ) + 1;
}
... |
using FluentAssertions;
using Xunit;
namespace LeeConlin.ExtensionMethods.Tests.DecimalExtensions
{
public class IsTruthy_Should
{
[Theory]
[InlineData(1)]
[InlineData(2)]
[InlineData(10)]
[InlineData(100)]
[InlineData(999)]
[InlineData(-1)]
[Inl... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LabProject
{
class Degree
{
//Properties
public string Name { get; set; }
public Course Courses { get; set; }
//Constructor
public Degree(str... |
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.RegularExpressions;
namespace TableTopCrucible.Core.Helper
{
public static class StringHelper
{
public static bool Like(this string value, string wildcard)
=> Regex.I... |
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using TestWebMVC.Models;
namespace TestWebMVC.Data
{
public class ApplicationDbContext : IdentityDbContext
{
public ApplicationDbContext(DbCo... |
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 MySql.Data.MySqlClient;
using System.IO;
namespace MasterCheck2._0
{
public partial class Form1... |
namespace HaloHistory.Business.Models.Stats.Common
{
public class Enemy
{
public string Name { get; set; }
public string Description { get; set; }
public int Kills { get; set; }
public int Deaths { get; set; }
public string ImageUrl { get; set; }
public string E... |
using System;
using System.Collections.Generic;
using ALM.Empresa.Entidades;
using System.Data;
using MySql.Data.MySqlClient;
using ALM.Empresa.AccesoDatos;
namespace ALM.Empresa.Datos {
public class DCliente : Conexion {
public List<ECliente> ObtenerClientes(string razonSocial, int activo, int idEmpresa)... |
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.OleDb;
using System.Data.SQLite;
using HPMS.Config;
using Tool;
using _32p_analyze;
namespace HPMS.DB
{
public class ProjectHelper
{
public static Project Find(string pn)
{
var temp = ... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace Modelos.Admin.Acessos
{
public class Menu
{
[Key]
public virtual int Id { get; set; }
[Required]
public virtual string Controller { get; set; }
[R... |
using Dapper;
using Dominio;
using Oracle.ManagedDataAccess.Client;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DAL
{
public class DbMunicipio : IDisposable
{
public IEnumerable<Municipio> RetornaMunicipio()
{
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class CellManager : MonoBehaviour {
// Dimensions of the Cell Table
[Range(3, 100)]
[Tooltip("Width of the Cells")]
public int m_width;
[Range(3, 100)]
[Tooltip("Height of the Cells")]... |
using Student_Management.BL;
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 Student_Management.UI
{
public partial class Student : Form
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace Sample.InputKit
{
public partial class MainPage : ContentPage
{
async void Handle_Clicked(object sender, EventArgs e)
{
string opcaoSex... |
namespace Probelms.Kattis.Com.Core
{
public interface IProblem<T>
where T : IItem
{
void Solve(IFactory<T> dollFactory);
}
} |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace FlipLeaf.Core.Inputs
{
public class FileInputSource : IInputSource
{
private static readonly string[] WildcardPattern = new[] { "*" };
private readonly string[] _patterns;
private readonly str... |
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace TheMinepack.Projectiles
{
public class StarrySkyProjectileSmall : ModProjectile
{
public override void SetDefaults()
{
pro... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace PWEB.Models
{
public class Constant
{
public enum Tipo_User
{
[Display(Name = "Funcionario")]
FUNCIONARIO,
[Display(... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ServerKinect.HandTracking
{
public class HandDataSourceSettings
{
public HandDataSourceSettings()
{
SetToDefault(this);
}
public float MinimumDistanceBetwe... |
using System.Xml.Linq;
using PlatformRacing3.Common.Campaign;
using PlatformRacing3.Common.User;
using PlatformRacing3.Web.Controllers.DataAccess2.Procedures.Exceptions;
using PlatformRacing3.Web.Extensions;
using PlatformRacing3.Web.Responses;
using PlatformRacing3.Web.Responses.Procedures;
namespace PlatformRacing3... |
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using MonoGame.Extended;
using MonoGame.Extended.Shapes;
using MonoGame.Extended.TextureAtlases;
namespace Demo.SpaceGame.Entities
{
public class MeteorFacto... |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
namespace PuzzleCore
{
public class Game
{
public Game(BoardState startState, BoardState finalState = null)
{
if (finalState == null)
{
finalState = ... |
//Problem 13.* Comparing Floats
// Write a program that safely compares floating-point numbers (double) with precision eps = 0.000001 .
//Note: Two floating-point numbers a and b cannot be compared directly by a == b
// because of the nature of the floating-point arithmetic. Therefore, we assume two numbers
... |
namespace JabberPoint.Domain.Themes
{
/// <summary>
/// interface for footerdata
/// </summary>
public interface IFooterData
{
/// <summary>
/// the text shown in the footer
/// </summary>
string Text { get;}
/// <summary>
/// the level that determine... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AutoMapper;
using DeliverySystem.Data;
using DeliverySystem.Dtos.Delivery;
using DeliverySystem.Models;
using Microsoft.EntityFrameworkCore;
namespace DeliverySystem.Services.DeliveryService
{
public class Delive... |
using Modelos.Cadastros.Visitantes;
using Modelos.Relatorios.Parametros;
using NHibernate;
using NHibernate.Criterion;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DAL.DAOs.Cadastros.Visitantes
{
/// <summary>
/// Classe de cont... |
using IES.G2S.Resource.DAL;
using IES.G2S.Resource.IBLL;
using IES.Resource.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IES.G2S.Resource.BLL
{
public class KeyBLL:IKeyBLL
{
public List<IES.Resource.Model.Key> Key... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using POG.Forum;
namespace POG.Werewolf
{
[DataContract()]
public class RolePMSet
{
public RolePMSet(string name, List<Team> teams)
{
Name = name;
... |
using System;
using System.Drawing;
using System.Windows.Forms;
using Newtonsoft.Json;
using System.Net.Http;
using System.Net;
using System.Threading.Tasks;
namespace NasaProjekt
{
public partial class MainProgram : Form
{
public MainProgram()
{
InitializeComponent();
... |
/********************************************************************
* FulcrumWeb RAD Framework - Fulcrum of your business *
* Copyright (c) 2002-2009 FulcrumWeb, ALL RIGHTS RESERVED *
* *
* THE SOURCE CODE CONTAINED WITHIN THI... |
// implementation by Aaron Bellis u0981638 for CS 3500 2017 Fall Semester.
// Documentation copied from interface written by Joe Zachary for CS 3500, September 2013
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SpreadsheetUtilities;
using Sys... |
using UnityEngine;
using System.Collections;
namespace Ph.Bouncer
{
public class DebugKeyboardShortcuts : MonoBehaviour
{
void Update ()
{
if(Input.GetKeyDown(KeyCode.N))
LevelLoadHelper.NextLevel();
else if(Input.GetKeyDown(KeyCode.D))
{
PlayerPrefs.DeleteAll();
PlayerPrefs.Save();
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HashChains
{
public delegate void InputsForProblem();
class Program
{
static void Main(string[] args)
{
InputsForProblem input = HashingWithChains;
... |
namespace Stundenplan.Services
{
public class PositionService
{
public int GetPostionOfNewLesson(string text)
{
int count = 0;
int position = 0;
foreach (char zeichen in text)
{
if (count != 4)
{
if (zeichen == ' ')
{
count++;
}
position++;
}
}
return pos... |
namespace Development.CodeGeneration.Editor.Templates
{
public partial class AnimationMixerBehaviourTemplate
{
private readonly string _bindingName;
public AnimationMixerBehaviourTemplate(string bindingName)
{
_bindingName = bindingName;
}
}
} |
namespace AutoBazar
{
public abstract class EnumList
{
public enum ColorTypeEnum { Modrá, Červená, Zelená, Žlutá, Hnědá, Oranžová, Šedá, Bíla, Černá }
public enum FuelTypeEnum { Elektřina, Benzín, Nafta, BioPlyn }
public enum MotorTypeEnum { Elektrický, Spalovací }
public enum G... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace KsuMvcApp.Models
{
public class Notification
{
public int Id { get; set; }
public int Id_User { get; set; }
public string Notification_Type { get; set; }
public int Notification_Query { get; set; }
public string... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Tes4._3_Tier.DTO;
using Tes4._3_Tier.DAL;
using Tes4._3_Tier.BUS;
nam... |
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using ProjectRestaurant.Domains.Entities;
using ProjectRestaurant.Domains.Enums;
using ProjectRestaurant.Domains.ValueObjects;
namespace ProjectRestaurant.Data.Schemas
{
public class RestaurantSchema
{
[BsonRepresentation(BsonType.Object... |
using System;
using System.Linq;
namespace ProtoTypePattern.Models
{
public class Teacher
{
public Paper[] CreateCrystals()
{
Paper protoType = new Paper("雪の結晶");
DrawCrystal(protoType);
CutAccordanceWithLine(protoType);
PrototypeKeeper.AddIClon... |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ContactsList.cs" company="CGI">
// Copyright (c) CGI. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------------------... |
using System.IO;
using System.Threading.Tasks;
namespace LCTP.Extensions
{
public static class StreamWriterExtensions
{
public static async Task WriteLineAndFlushAsync(this StreamWriter writer, string line)
{
await writer.WriteLineAsync(line);
await writer.FlushAsync();... |
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 Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.TestHost;
using Newtonsoft.Json;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using TourApi.Models;
using TourApi.ViewModels;
namespace ApiTester.Tests
{
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class GameManager : MonoBehaviour {
public static bool gmMover = true;
public static bool purajAlive = true;
public Text textScore;
public static int score;
public float textSize = .5f;
public static int ... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml.Linq;
namespace Projet_WF1
{
partial class PanelEdt : Pan... |
using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
using Branching;
namespace MyXUnitTests
{
public class RobotUnitTest
{
[Fact]
public static void Test()
{
Assert.True(Robot.ShouldFire0(false, "me", 50) ==
Robot.ShouldFi... |
using LuaInterface;
using SLua;
using System;
using UnityEngine;
public class Lua_UnityEngine_Rect : LuaObject
{
[MonoPInvokeCallback(typeof(LuaCSFunction))]
public static int constructor(IntPtr l)
{
int result;
try
{
int num = LuaDLL.lua_gettop(l);
if (num == 5)
{
float num2;
LuaObject.check... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SimpleSnake.Core.GameObjects.Foods
{
public abstract class Food : Point
{
private readonly Wall wall;
private readonly Random random;
private readonly char foodSymbol;
protected Foo... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
using Mic... |
using System;
using System.Collections.Generic;
using Moq;
using Xunit;
namespace FunctionalDemo
{
public class UnitTests
{
[Fact]
public void ObjectOrientedTest()
{
// Arrange
var customerDataMock = new Mock<ICustomerData>();
var reportBuilderMoc... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public class Map: IMap
{
private IMapCell[,] _map;
private void CheckMapConditions(int sizeY,int sizeX)
{
if (sizeX < 3 || sizeY < 3)
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace System_Activity_Monitor.Command
{
class ChangeActiveWindowCommand : ICommand
{
private TitleParser parser;
private string windowTitle;
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Mirror;
using UnityEngine.EventSystems;
public class UnitsSpawner : NetworkBehaviour, IPointerClickHandler
{
[SerializeField] private GameObject unitPrefab = null;
[SerializeField] private Transform unitSpownPoint = ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
namespace Webshop.Logic
{
public class UserManager : BaseManager<User>
{
public UserManager(WebShopDB db)
:base(db)
{
}
... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using ORMHandsOn;
using System.Collections.Generic;
using System.Linq;
using Test.ORM.Infrastructure;
namespace Test.ORM.Exercises
{
[TestClass]
public class WhenAddingAnInstructor : WithFreshDatabaseForEveryTest
{
[TestMethod]
public void... |
namespace TiendeoAPI.Models
{
public class StoreModel : LocalModel
{
public string Name { get; set; }
public int Rank { get; set; }
public BusinessModel Business { get; set; }
}
}
|
namespace UniversitySystem.ConsoleCl
{
using System;
using Data;
using Models;
public class Startup
{
public static void Main(string[] args)
{
//// connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=UniversitySystem;Integrated Security=true;"
var db... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.