text stringlengths 13 6.01M |
|---|
using Toppler.Core;
using System.Linq;
using Xunit;
namespace Toppler.Tests.Unit.Core
{
public class ProgressionTest
{
[Fact]
public void Progression_None()
{
var NbItems = 5;
var actual = Enumerable.Range(0, NbItems).Select(k => WeightFunction.Empty.Weight(k, ... |
using ASPNET5ToDoList.Application;
using ASPNET5ToDoList.Models;
using Microsoft.AspNet.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ASPNET5ToDoList.Controllers
{
public class TodoItemController : Controller
{
private ITodoAppService T... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace StaticConstructor.CSharpLearning
{
public class StaticConstructor
{
public static int Count = 0;
static StaticConstructor()
{
Count++;
Console.WriteLine("Static" + ... |
namespace DxMessaging.Unity
{
using Core;
using System;
using System.Collections.Generic;
using UnityEngine;
[Serializable]
[DisallowMultipleComponent]
public sealed class MessagingComponent : MonoBehaviour
{
private MessageHandler _messageHandler;
private readonly Dict... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ToggleMiniMap : MonoBehaviour
{
private bool isOn = true;
void Update()
{
// turns off camera
if ((Input.GetKeyDown("1") || Input.GetKeyDown("joystick button 3"))&& i... |
// ----------------------------------------------------------------------------------------------------------------------------------------
// <copyright file="TcpConnectionListener.cs" company="David Eiwen">
// Copyright © 2016 by David Eiwen
// </copyright>
// <author>David Eiwen</author>
// <summary>
// This file c... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using Grisaia.Mvvm.Extensions;
using Grisaia.SpriteViewer.Extensions;
namespace Grisaia.Spri... |
using UnityEngine;
using System.Collections;
public class DemonHandler : MonoBehaviour {
[SerializeField]
protected DemonTarget[] demonPrefabs;
[SerializeField]
protected Transform demonTarget;
[SerializeField]
protected Transform demonParent;
// demon statistics
protected float demonHealthMultiplier;
prot... |
using System.Collections.Generic;
namespace HCL.Academy.Model
{
public class CheckListItem
{
public int id { get; set; }
public string name { get; set; }
public string internalName { get; set; }
public string desc { get; set; }
public stri... |
using System.IO;
using Xunit;
namespace FlipLeaf.Core.Text
{
public class YamlConfigParserTests
{
[Fact]
public void Empty_Config_Should_Result_In_Default_Config()
{
// arrange
var reader = new StringReader(string.Empty);
// act
var con... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MapTile : MonoBehaviour
{
//타일 속성
[SerializeField]
bool _FIRE, _WATER, _EARTH, _LIGHT, _DARKNESS;
#region 타일 원소속성
public bool FIRE
{
get
{
return _FIRE;
}
s... |
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 sales_management_system
{
public partial class 出庫情報 : Form
{
public 出庫情報()
... |
namespace AlienEngine
{
/// <summary>
/// Rollof algorithms used by 3D <see cref="AudioSource"/>s.
/// </summary>
public enum AudioRolloffAlgorithm
{
/// <summary>
/// No volume rollof algorithm is used for this <see cref="AudioSource"/>.
/// </summary>
None,
... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml;
namespace Mesh_Decreaser
{
public partial class Form1 : Form
... |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NicoLiveAlertTwitterWPF.OtherLive
{
class OtherLiveList
{
//URL一覧ListViewにいれるやつ
public ObservableCollection... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ResultData
{
public int PlayerID { get; private set; }
public float Score { get; private set; }
public int Rank { get; private set; }
public ResultData(int playerId, float score, int rank)
{
Playe... |
using System;
using System.Net.Http;
using System.Threading.Tasks;
using Checkout.Payment.Gateway.Seedwork.Interfaces;
using Checkout.Payment.Gateway.MicroServices.Configurations;
using Checkout.Payment.Gateway.Seedwork.Models;
using Newtonsoft.Json;
using Checkout.Payment.Gateway.Domain.Models;
using Microsoft.Extens... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Threads.Services.ThreadsService;
namespace Tasks.Examples
{
public static class TaskFactoryExample
{
public static void ShowTaskFactory()
{
//Task is alr... |
/* **************************************************************
* Copyright(c) 2014 Score.web, All Rights Reserved.
* File : User.cs
* Description : 用户相关实体类定义
* Author : Fenglujian
* Created : 2014-10-01
* Revision History :
*************************************... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public abstract class Strategy: IStrategy
{
public abstract void Behavior(AbstractActor self, List<AbstractActor> all);
public abstract void ReactToEvent(AbstractActor self, M... |
//
// 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.ExtensionPoints.Filters
{
public class FilterByHostMenu : IExtensionPointFilter
{
private readonly bool isHostMenu;
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class MenuMethods : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
... |
using System.Security.Policy;
namespace ToyTwoToolbox {
public class Linker {
public string LinkID;
public int ShapeID;
}
} |
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;
//COM ISSO POSSO USAR OS OBJETOS CONTIDOS EM OBJETOS TRANSFERENCIA
using ObjetoTransferencia;
using Nego... |
using System;
using System.CodeDom.Compiler;
using System.Collections.Specialized;
namespace Unicorn
{
public class LampBehaviour : UniBehaviour
{
// Variables
public bool activate = false;
public int wayPointID;
public int player_ID;
public int cam_ID;
public int light_ID;
... |
using System;
using System.Drawing;
namespace BridgeBuilder
{
[Serializable]
internal class Edge
{
public Vertex U { get; }
public Vertex V { get; }
public float CurrentLength => U.Position.Sub(V.Position).Mag();
public float Length;
public bool IsRoad = false;
... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace LojaYgor3.Models
{
public class Produto
{
public int Id { get; set; }
[Required(ErrorMessage = "Campo obrigatório")]
public string Nome { get; set... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using System.Data;
using System.Windows.Forms;
namespace Project_1.DAL
{
public class ConectSQL
{
SqlConnection conn ;
SqlDataAdapter ada ;
D... |
// Copyright (c) Quinntyne Brown. All Rights Reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using Microsoft.Extensions.Configuration;
using System.IO;
namespace MediatRAndRecordTypes.Testing.Factories;
public static class ConfigurationFactory
{
private ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Console2.From_026_To_050
{
public class _028_LongestPalindro
{
/*
* Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of
* S is 1000, a... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//////////////////////////////////////////////////////////////////
//Created by: Daniel McCluskey
//Project: CT6024 - AI
//Repo: https://github.com/danielmccluskey/CT6024-AI
//Script Purpose: Checks if the spy has the totem
//////... |
using System;
namespace _28
{
class Program
{
static void Main(string[] args)///// method main
{
Console.WriteLine("HOROSCOPE");
int number = 7;
int count = 1;
count = number - 1;
for (int j = 1; j <= number; j++)
... |
using System;
using System.Collections.Generic;
using System.Linq;
class SequenceMajorantTwo
{
static int DetermineMajorant(List<int> input)
{
input.Sort();
int majorantRequirement = input.Count / 2 + 1;
int currentCount = 1;
for (int i = 1; i < input.Count; i++)
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.IO;
using System.Text;
using CsvHelper;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ModelBinding.Binders;
using Newtonsoft.Json;
namespace WebApplication1.Controllers
{
[Route("api/[con... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Arena_Fight
{
class Orc : Enemy
{
public Orc()
{
Random rnd = new Random();
currentHp = rnd.Next(50, 66);
strength = rnd.Next(5, 10... |
namespace Plus.Communication.Packets.Outgoing.Catalog
{
internal class PresentDeliverErrorMessageComposer : MessageComposer
{
public bool CreditError { get; }
public bool DucketError { get; }
public PresentDeliverErrorMessageComposer(bool creditError, bool ducketError)
... |
using System;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace BlockchainAppAPI.Logic.Utility
{
public class SearchHash
{
public static string HashSearch(string queryString)
{
using (SHA1Managed sha1 = new SHA1Managed())
{
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
public class OnTriggerWIthPLayerEvent : MonoBehaviour
{
public UnityEvent EnterEvent, ExitEvent, StayEvent;
private void OnTriggerEnter(Collider other)
{
if (other.CompareTag("Player"))
... |
using System;
using System.Text;
namespace Takistid {
class Takisti {
/// <summary>
/// Takistus
/// </summary>
protected double R;
/// <summary>
/// Maksimumvõimsus
/// </summary>
protected double MaxN;
public Takisti(double Taki... |
using PointOfSalesV2.Entities;
using System;
using System.Collections.Generic;
using System.Text;
namespace PointOfSalesV2.Repository.Helpers.BillServices
{
public interface IBillProductsServices
{
Result<InvoiceDetail> ProcessProductService(long branchOfficeId, InvoiceDetail details, IDataRepositoryF... |
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.AspNetCore.Identity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Practice1.Models
{
public class User : IdentityUser
{
public List<Message> Messages { get; set; }
public User()
... |
using CarRental.Models;
using CarRental.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace CarRental.Controllers
{
public class BrandController : Controller
{
private BrandService _brandService;
// GET: Brand
p... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
namespace LePapeoGenNHibernate.Exceptions
{
public class DataLayerException : SystemException, ISerializable
{
public DataLayerException()
: base ()
{
// Add implementation (if required)
}
public Dat... |
using System;
namespace Exercicio02 {
class Program {
static void Main(string[] args) {
Funcionario f1 = new Funcionario();
Funcionario f2 = new Funcionario();
Console.WriteLine("Dados do primeiro funcionário: ");
f1.nome = Console.ReadLine();
f... |
using LockStepBlazor.Data;
using LockStepBlazor.Data.Models;
using Microsoft.AspNetCore.Components;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UWPLockStep.Domain.Common;
using System.Diagnostics;
namespace LockStepBlazor.Pages
{
publ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Guiet.kQuatre.Business
{
public enum EtatArtifice
{
StandBy,
ImminentLaunch,
LaunchFailed,
InProgress,
Finished
}
}
|
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;
namespace Connect_Four
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent(... |
using System;
using System.Collections.Generic;
using log4net;
namespace ICOMSProvisioningService
{
public class ServiceRunTimeManager
{
private static readonly ILog logger = LogManager.GetLogger(typeof(ServiceRunTimeManager));
/// <summary>
/// Process ICOMS input messages based on type CUI/CCI... |
using System;
using System.Data.SqlClient;
using System.IO;
using NUnit.Framework;
using URISUtil.DataAccess;
using WallCommentMicroService.DataAccess;
using WallCommentMicroService.Models;
namespace WallCommentMicroService.Tests.UnitTests
{
public class CommentUnitTest
{
ActiveStatusEnum active = Act... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
public class ShowBulletPath : MonoBehaviour
{
public GameObject cannonPathPrefab;
private int numOfTrajectoryPoints;
private float ptsPerSecond = 5.0f;
private float flightTime;
private float timeStep;
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyStats : MonoBehaviour {
[SerializeField]
public int HEALTH;
public int MELEE_DAMAGE;
public int RANGED_DAMAGE;
public int COST;
public int EXP;
public bool ranged;
public float HITRATE;
... |
using Microsoft.SharePoint.Client;
using Microsoft.SharePoint.Client.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Microsoft.SharePoint.Client.Taxonomy;
namespace GED
{
class SPFunctions
{
pu... |
using System;
using System.Collections;
using System.Collections.Generic;
namespace Arch.Data.Common.Util
{
class HintsUtil
{
public static IDictionary CloneHints(IDictionary hints)
{
var temp = hints as Dictionary<String, Object>;
var dict = new Dictionary<S... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Store.Books.Localization.Controllers
{
public class TranlationController
{
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace Wave.Views
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class TakeTestPage : ContentPage
{
public Take... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class UIscript : MonoBehaviour
{
public GameObject healthBar;
public PlayerHealth pHealth;
public float scaleX;
public int currentHealth;
public int startHealth;
public bool isDeadLast = false;
... |
using EasyNetQ;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MailerQ
{
/// <summary>
/// A result generate by MailerQ when attempt delivery the message
/// </summary>
[Queue(Conventions.QueueName.Results)]
[JsonObject(
NamingStrategyType = typeof(LowercaseNamingStrate... |
using System;
using umbraco.uicontrols;
using umbraco.BasePages;
namespace tswe.pat
{
public partial class manager : UmbracoEnsuredPage
{
# region members
public TabPage tabTestPackageActions;
# endregion members
protected void Page_Load(object sender, EventArgs e)
... |
using System;
using System.Collections.Generic;
using System.Web;
/// <summary>
/// Summary description for Resim
/// </summary>
public class Resim
{
public Resim()
{
//
// TODO: Add constructor logic here
//
}
public void Boyutlandir(System.Drawing.Image orjinalFoto, int Genislik, int Yukseklik, string ... |
// Copyright 2020 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 APIChallenge;
using System.Collections.Generic;
namespace DependencyInjectionSample.Data
{
public interface IDataBase
{
List<Cliente> obterListaClientes();
List<Estabelecimento> obterListaEstabelecimentos();
List<Pagamento> obterListaPagamentos();
void apagarCliente(long ... |
/* ***************************************************************
* 프로그램 명 : Round3Real.cs
* 작성자 : 최은정 (이송이, 류서현, 신은지, 최세화, 홍예지)
* 최조 작성일 : 2019년 12월 10일
* 최종 작성일 : 2019년 12월 10일
* 프로그램 설명 : FinalRound에 알맞게 창을 구성한다.
* *************************************************************** */
using System.Collections;
u... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAL.Repository;
namespace _24th_Sep2018
{
public partial class ProductDetail : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
... |
using PlatformRacing3.Common.Level;
using PlatformRacing3.Web.Controllers.DataAccess2.Procedures.Exceptions;
using PlatformRacing3.Web.Extensions;
using PlatformRacing3.Web.Responses;
using PlatformRacing3.Web.Responses.Procedures;
using System.Xml.Linq;
using PlatformRacing3.Common.User;
namespace PlatformRacing3.We... |
using MKService.Messages;
using MKService.ModelUpdaters;
using MKService.Queries;
using MKService.Updates;
namespace MKService.MessageHandlers
{
internal class UserSignUpHandler : ServerMessageHandlerBase<UserSignUp, UserCollectionQuery, IUpdatableUserCollection>
{
public UserSignUpHandler(IModelUpdat... |
// <copyright file="CompareTest.cs"></copyright>
using System;
using System.Collections.Generic;
using Dsa.Utility;
using Microsoft.Pex.Framework;
using Microsoft.Pex.Framework.Validation;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Dsa.Utility
{
/// <summary>This class contains parameterized uni... |
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
namespace litecart_tests
{
[TestFixture]
public class AdminPageTests : AdminAuthorizationTestBase
{
[Test]
public void LeftMenuVerificationTest()
{
string[] args = new string[1];
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace EpicenterV2.Data.Dtos
{
public class ShowDto
{
public int ShowId { get; set; }
public string ShowName { get; set; }
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Entidades
{
public class Producto
{
string codigo;
string nombreDeProducto;
float precio;
int cantidadDeUnidades;
public Producto(string p_codi... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
namespace BPiaoBao.Client.UIExt.Converter
{
public class ForegroundConverter : IValueConverter
{
/// <summary>
/// 转换值。
/// </summary>
/// <param name="value">绑定源生... |
// Copyright 2021 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 System.Web;
using System.Web.Mvc;
using FileManager.Models;
using System.Threading.Tasks;
namespace FileManager.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
return Vie... |
// Copyright (C) 2018 Kazuhiro Fujieda <fujieda@users.osdn.me>
//
// 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 re... |
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.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.... |
using Ninject;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reactive;
using System.Reactive.Disposables;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
using System.Runtime.CompilerServices;
namespace... |
using System;
using System.Collections.Generic;
using System.Text;
namespace DemoReflection.Attributes
{
[AttributeUsage(AttributeTargets.Property)]
public class DataPropertyInfoAttribute : Attribute
{
public bool isRequierd { get; set; }
public int length { get; set; } = -1;
//r... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AoEBase : MonoBehaviour
{
SphereCollider col;
public List<GameObject> entities = new List<GameObject>();
public float duration, pulses;
[HideInInspector]
public float lastPulse = 0;
// Should be set by ... |
namespace Boilerplate_vNext.Constants
{
public static class CacheProfileName
{
public const string Error = "Error";
public const string OpenSearchXml = "OpenSearchXml";
public const string RobotsText = "RobotsText";
public const string SitemapNodes = "SitemapNodes";
}
}
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using Shop.BusinnesLogic.Services;
using Shop.Data;
using Shop.Data.Repozitory;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Shop.Tests
{
[TestClass]
public class Cli... |
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using AutoFixture;
using FluentAssertions;
using NUnit.Framework;
using Utilities.NET.Extensions;
namespace Utilities.NET.Tests.Extensions
{
public class EnumerableExtensionsTests : UnitTestBase
{
private void A... |
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DDDSouthWest.Domain.Features.Public.ProposedTalkDetail;
using DDDSouthWest.Domain.Features.Public.ProposedTalks;
using DDDSouthWest.Website.Framework;
using DDDSouthWest.Website.ImageHandlers;
using MediatR;
using Microsoft.AspNet... |
using System;
using Windows.UI.Xaml.Data;
namespace Nitro_Smart_Viewer.WinPhone
{
public class ConcatImageExtensionConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, string language)
{
var isFile = value as bool? ?? false;
... |
using System;
namespace yocto
{
public interface IRegistration
{
IContainer Container { get; }
Type InterfaceType { get; }
Type ImplementationType { get; }
void Remove();
object ResolveImplementation();
IRegistration RegisterImplementation();
IRegistrati... |
using Alword.Algoexpert.Tier0;
using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
namespace Alword.Algoexpert.Tests
{
public class BubbleSortTest
{
[Fact]
public static void SwapTest()
{
int[] array = new int[] { 1, 2, 3, 4 };
(arra... |
using UnityEngine;
using System.Runtime.InteropServices;
using System.Collections.Generic;
namespace CognitiveVR
{
public delegate void Callback(Error error);
/// <summary>
/// The most central pieces of the CognitiveVR Framework.
/// </summary>
public static class Core
{
//!!importa... |
using System.Collections.Generic;
using UnityEngine;
using SanAndreasUnity.Utilities;
using SanAndreasUnity.Net;
namespace SanAndreasUnity.UI
{
public class JoinGameWindow : PauseMenuWindow
{
string m_ipStr = "127.0.0.1";
string m_portStr = NetManager.defaultListenPortNumber.ToString();
Jo... |
using System;
using Acr.UserDialogs;
using Microsoft.Practices.Unity;
using Xamarin.Forms;
using MenuItem = AnimeViewer.Views.Partials.MenuItem;
// ReSharper disable SwitchStatementMissingSomeCases
namespace AnimeViewer.Views
{
public partial class MasterPage
{
private INavigation _globalNavigation;
... |
//using System;
namespace Field
{
public class Armor
{
//변수(Variable)
public string name;
//상수(constant) : 정적 접근
public const int m_defence = 1000;
//읽기 전용 필드(ReadOnly)
public static readonly string _Color = "Black";
}
public class Man
{
/... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace more_File_io
{
class Program
{
static void Main(string[] args)
{
string lineIn;
string[] fields = new string[6];
... |
using RateAndShare.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
namespace RateAndShare.Controllers
{
public class RatesController : Controller
{
private RateAndShareContext db = new Ra... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CXO.ProgrammingAssignments.ORM.Models
{
public abstract class DbObject : IDbObject
{
private const string guidName = "Id";
private string GuidName
{
... |
using NavigationFinal.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace NavigationFinal
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class MasterPage : ContentPage... |
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Comp229_Assign03
{
public partial class Update : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
... |
namespace SimpleCryptography.Ciphers.Monoalphabetic_Substitution_Cipher
{
public interface IMonoalphabeticSubstitutionCipher
{
/// <summary>
/// Encrypts a plaintext message using the specified key.
/// </summary>
/// <param name="plainText">Text to be encrypted.</param>
... |
using Fiap.Microservices.Produtos.Api.Models;
using Fiap.Microservices.Produtos.Api.Persistence.Repository;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Fi... |
using AutoMapper;
using Lfs.Persistense.Infrastructure;
using System.Threading;
using System.Threading.Tasks;
namespace Lfs.Web.Api.Services.Common
{
public interface IValidatableCrudServiceBase<TKey, TCreate, TUpdate, TRet>
: IReadonlyServiceBase<TKey, TRet>
{
Task<TRet> CreateAsync(TCreate d... |
using OC.Files.Cache;
using OCP;
namespace OC
{
/**
* Class to combine all the configuration options ownCloud offers
*/
public class AllConfig : OCP.IConfig
{
/** @var SystemConfig */
private SystemConfig systemConfig;
/** @var IDBConnection */
private IDBConnection connection;
/**
* 3 di... |
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;
using System.Collections.Generic;
using UnityEngine;
public class CreditsActor : MonoBehaviour {
void Update() {
if (Input.GetButtonDown("Submit") || Input.GetButtonDown("Cancel") || Input.GetButtonDown("Jump") || Input.GetButtonDown("Fire1")) {
// load next scene
SceneM... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Data.Objects;
using Ef4Poco.Domain;
namespace Ef4Poco.DataAccess
{
public class DemoDatabaseBuilder
{
private IContextManager _contextManager;
public DemoDatabaseBuilder(IContextManager contextManager)
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.