text stringlengths 13 6.01M |
|---|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CardLib
{
public class Deck
{
private Random random = new Random();
private List<Card> cards = new List<Card>();
private Card trumphCard;
p... |
using System.Collections;
using System.Collections.Generic;
using System.Dynamic;
using System.Text;
namespace ZiZhuJY.Helpers
{
public static class ExpandoHelper
{
public static string ToHtmlUnorderedList(this ExpandoObject o, bool format = false, bool lineBreak = false, int level = 0, char tab = ' '... |
using UnityEngine;
using System.Collections;
public class LampGenerator : GridGenerator<Lamp> {
// Use this for initialization
void Start () {
generate();
}
// Update is called once per frame
void Update () {
}
}
|
using System.Linq;
using System.Threading.Tasks;
using FastSQL.Core;
using FastSQL.Sync.Core.Enums;
using FastSQL.Sync.Core.Repositories;
namespace FastSQL.Sync.Core.Reporters
{
public class ErrorReporter : BaseReporter
{
public ErrorReporter(ErrorReporterOptionManager optionManager) : bas... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace CaptiveApiTest
{
class Program
{
static void Main(string[] args)
{
string clientId = ... |
namespace Plus.Communication.Packets.Outgoing.Pets
{
internal class PetBreedingComposer : MessageComposer
{
public PetBreedingComposer()
: base(ServerPacketHeader.PetBreedingMessageComposer)
{
}
public override void Compose(ServerPacket packet)
{
... |
using System;
using System.Collections.Generic;
//Write a program that sorts an array of strings using the quick sort algorithm
class Program
{
static void Main()
{
List<string> myList = new List<string>(new string[] { "f", "a", "b", "h", "m", "q", "c", "i", "l" });
myList = QuickSort(... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using System.Drawing;
using System.Windows.Media;
namespace Aspit.StudentReg.Entities
{
public class Student : User
{
/// <summary>
/// The ... |
using BPiaoBao.AppServices.Contracts.SystemSetting;
using BPiaoBao.AppServices.DataContracts.SystemSetting;
using BPiaoBao.Client.UIExt;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using GalaSoft.MvvmLight.Threading;
using System;
using System.Collections.ObjectModel;
using System.Threading.Tasks;
usin... |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// 스태이지 내에서 아이템 생성하고, 플레이어에게 지급하는 로직 처리.
/// </summary>
public class ItemController : Singleton<ItemController>
{
[SerializeField]
float basicCreateInterval;
[SerializeField]
float nextSte... |
using System;
namespace State
{
class Program
{
static void Main(string[] args)
{
Vehiculo v = new Vehiculo(20);
v.Acelerar();
v.Contacto();
v.Acelerar();
v.Acelerar();
v.Acelerar();
v.Frenar();
v.... |
namespace MFW.LALLib
{
public enum TranscoderResolutionEnum
{
PLCM_MFW_RESOLUTION_CIF4, // 704x576
PLCM_MFW_RESOLUTION_VGA, // 640x480
PLCM_MFW_RESOLUTION_VGA_DIV4, // 320x240
PLCM_MFW_RESOLUTION_SVGA, // 800x600
PLCM... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Newtonsoft.Json;
namespace PlayTennis.WebApi.Controllers
{
public class TestController : ApiController
{
// GET: api/... |
using AutoMapper;
using Ninject.Modules;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Webcorp.Controller;
using Webcorp.Model;
namespace Webcorp.Business
{
public class BusinessIoc : NinjectModule
{
public override void Load(... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Entities;
using ShareTradingModel;
namespace Entities.Test
{
public class AccountTest:EntityTest<Account>
{
}
}
|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace d07_iterator
{
class MonitorCatalog : IEnumerable<Monitor>
{
Dictionary<string, Monitor> ds = new Dictionary<string, Monitor>();
public void ... |
using System;
using System.Collections.Generic;
using CommonCore.State;
namespace CommonCore.Dialogue
{
internal class DialogueScene
{
public Dictionary<string, Frame> Frames { get; private set; }
public string Default;
public string Music;
public DialogueScene(Dictionary<stri... |
namespace SGDE.Domain.Helpers
{
#region Using
using System.Globalization;
#endregion
public static class ExtensionsMethods
{
public static string ToFormatSpain(this double value)
{
var result = value.ToString("N", CultureInfo.CreateSpecificCulture("es-ES"));
... |
using SFML.Graphics;
using SFML.Window;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LD30
{
class MessageLog : GameObject
{
public Vector2f Position;
public int MessageLimit = 6;
public float MessageLifetime = 5f;
public int M... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OefeningGarage
{
class Wagenpark
{
public List<Garage> GraragesInParken { get; set; }
public Wagenpark()
{
GraragesInParken = new List<Garage>();
... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Models
{
public class tb_pertypeinfo
{
public tb_pertypeinfo()
{ }
#region Model
private int _id;
private string _name;
private string _info;
/// <summary>
///
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Assets.Scripts.Core.Scenarios
{
public class MoveToTransformItem : IScenarioItem
{
private readonly Transform follower;
private readonly Transform target;
private readonly float speed;
priv... |
using ETravel.Coffee.DataAccess.Entities;
using FluentNHibernate.Mapping;
namespace ETravel.Coffee.DataAccess.Mappings
{
public sealed class OrderItemMap : ClassMap<OrderItem>
{
public OrderItemMap()
{
Table("OrderItems");
Id(x => x.Id).GeneratedBy.Assigned();
Map(x => x.OrderId);
Map(x => x.Quant... |
//
// 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;
#endregion
namespace DotNetNuke.Collections.Internal
{
internal class MonitorLock : IDisposable, ISharedCollectionLock... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SFP.SIT.SERV.Model.ADM
{
public class SIT_ADM_AREA
{
public DateTime arafeccreacion { set; get; }
public int araclave { set; get; }
public SIT_ADM_AREA () {}
}
}
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Animatiocontrol : MonoBehaviour
{
public Animator playeranime;
private Movecontrol move;
private Collision coll;
[HideInInspector]
public SpriteRenderer sr;
// Start is called before the first frame upd... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class IncreaseMana : MonoBehaviour
{
private void OnTriggerEnter2D(Collider2D c)
{
if (c.GetComponent<Collider2D>().tag == "Player")
{
GameObject.Find("Player").GetComponent<advSpecial>().Special... |
using System;
using BasketTest.Discounts.Items;
using FluentAssertions;
using NUnit.Framework;
namespace BasketTest.Discount.UnitTests.Items
{
[TestFixture]
public class OfferVoucherSpec
{
[Test]
public void GiftVoucher_RejectsNegativeValue()
{
Action act = () =>
... |
using System;
using System.Collections.Concurrent;
using System.Web.Mvc;
using Umbraco.Core;
using Umbraco.Core.Cache;
using Umbraco.Core.Logging;
using Umbraco.Core.Persistence;
using Umbraco.Core.Composing;
using Umbraco.Core.Services;
using Umbraco.Web.Security;
using Umbraco.Web.WebApi;
namespace Umbraco.Web.Mvc
... |
namespace CarDealer.Services.Implementations
{
using Data;
using Data.Models;
using Interfaces;
using Models.Cars;
using Models.Parts;
using System.Collections.Generic;
using System.Linq;
public class CarServices : ICarServices
{
private readonly CarDealerDbContext db;
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace Pitstop
{
public class PlayerControllerIso : MonoBehaviour
{
//GameManager
SceneLoader sceneLoader;
InputManager inputManager;
[Header("My components")]
... |
using RO;
using System;
using System.Collections.Generic;
using UnityEngine;
[CustomLuaClass]
public class DiskFileManager : Singleton<DiskFileManager>
{
private int m_ider;
private string m_filesUsedRecordRootPath;
private Dictionary<int, FilesUsedDetail> m_dictFilesUsedDetail;
private Dictionary<int, LRUSandB... |
using BookShelf.Models;
using BookShelf.Models.AuthorViewModels;
namespace BookShelf.Infrastructure.Factories
{
public class AuthorViewModelFactory
{
public static AuthorViewModel CreateAuthorViewModel(Author author)
{
return new AuthorViewModel
{
Id = a... |
using Microsoft.AspNetCore.Authorization;
namespace DynamicPermission.AspNetCore.Configurations.Identity.PermissionManager
{
public class PermissionRequirement : IAuthorizationRequirement
{
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using frameWork.command.cmdInterface;
namespace frameWork.command
{
class SuperCommand : ICommand
{
public virtual void excute(INotification note)
{
}
public void notify(String typeStr, Object data =... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mojio
{
/// <summary>
///
/// </summary>
public class Address
{
/// <summary>
/// address line ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace VictimApplication.Core.Models
{
public class UserListToReturnDto
{
public int userId { get; set; }
public string UserName { get; set; }
public string Password { get; set; }
... |
using System.Text;
namespace ReadyGamerOne.Utility
{
public static class BitUtil
{
public static string ToString(byte[] data, int length, int start=0)
{
var sb=new StringBuilder();
for(var i=start;i<length;i++)
{
sb.Append(data[i].ToString())... |
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace IBll
{
public interface IUser_CatalogBll
{
List<User_Catalog> GetList(Func<User_Catalog, bool> predicate);
int Create(User_Catalog model);
int Edit(User_Catalog model);
... |
using Ninject;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Webcorp.Controller;
using Webcorp.Model;
using ReactiveUI;
using MongoDB.Driver;
using System.Reactive.Linq;
using Webcorp.Dal;
using System.Linq.Expressions;
using System.Security.P... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(NoteDetector))]
public class NoteLock : MonoBehaviour
{
public NoteDoor[] door;
public bool isSwitch;
public GameObject particleOnHit;
public Material diffuseFlash;
public AudioClip onHit;
... |
using AutoMapper;
using AutoMapper.QueryableExtensions;
using ZooApp.Application.Common.Interfaces;
using ZooApp.Application.Common.Mappings;
using ZooApp.Application.Common.Models;
using MediatR;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace ZooApp.Application.Animal.Queries.GetAn... |
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;... |
// Copyright (C) Microsoft Corporation. All rights reserved.
using System;
using System.Runtime.CompilerServices;
namespace BitConverter
{
/// <summary>
/// A BitConverter with a specific endianness that converts base data types to an array of bytes, and an array of bytes
/// to base data types, ... |
using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
namespace RFI.TimeTracker.WindowsViews
{
[ValueConversion(typeof(DateTime), typeof(String))]
public class DateConverter : IValueConverter
{
public object Convert(object value, Type targetType, object paramet... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace WebsiteBanHang.ViewModels
{
public class AddressListViewModel
{
public int AddressId { get; set; }
public string FullName { get; set; }
public string PhoneNumber { get; set; }
... |
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.Windows.Forms;
namespace BitmapLSB
{
public partial class FormApp : Form
{
String stPath, ndPath, decPath;
p... |
using API.Models;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
namespace API.Banco
{
public class BancoLeitura
{
private Conexao ObjBanco;
public BancoLeitura()
{
ObjBanco = new Conexao... |
using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using liteCMS.Data;
using liteCMS.Entity.Extranet;
namespace liteCMS.Logic
{
/// <summary>
/// Descripción breve de Sistema.
/// </summary>
public class lExtranet : Exceptions
{
#region C... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Task3
{
public class Course
{
public string CourseName { get; set; }
public List<Member> Members{ get; private set; }
public Course(string name)
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InterfaceTutorial.HumanLibrary;
/*
Naming conventions
* Properties, Methods, Classes - PascalCase
* InstanceVariable - Variables declared in a method - camelCase
* Parameters - camelCase
*/
namespace InterfaceTutorial.Hum... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace StackTraceException
{
class Program
{
static void Main(string[] args)
{
try
{
//this one should've been the best way to write as it's the most robust & clean ... |
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CatalogBooks
{
/// <summary>
/// Структура для хранения дополнительной информации
/... |
using System;
using System.Net.Http;
namespace XUnitMoqSampleWeb.Helpers
{
/// <summary>
/// This provides interfaces to the <see cref="HttpClientHelper"/> class.
/// </summary>
public interface IHttpClientHelper : IDisposable
{
/// <summary>
/// Creates the <see cref="HttpClient"/... |
using System;
using Toppler.Core;
namespace Toppler.Api
{
public class RankingOptions
{
/// <summary>
/// Filter TopN result.
/// </summary>
public long TopN { get; set; }
/// <summary>
/// Keep
/// This is not a client cache but a redis cache. Result ... |
using UnityEngine;
using System.Collections;
public class PauseMenu : MonoBehaviour {
private MusicController musicController;
private string buttonText;
private bool isPaused = false;
void Start()
{
buttonText = "PAUSE";
musicController = GameObject.Find("Main Camera").GetComponent<MusicController>();
}
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ClassLibrary;
using ClassLibrary1;
namespace ConsoleApp
{
/// <summary>
///
/// </summary>
class Program
{
/// <summary>
///
/// </summary>
//... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Reflection;
namespace OOP4
{
public class DetailBase
{
private Queue<IDetail> details;
private Type type;
public DetailBase(Type type, int maxnumber)
... |
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 interface IMovement
{
void GetInput(Inputs.Directions dir);
void TurnPlayer(Inputs.Directions dir, float sensitivity);
void LookPlayer(Inputs.Directions dir, float sensitivity);
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BindingOriented.SyncLinq.Debugging.Model.Events;
namespace BindingOriented.SyncLinq.Debugging.Model.Nodes
{
internal interface IQueryNode : IDumpable
{
Type Type { get; }
IEnumerable<IQueryNo... |
using MinimalExtended;
using Sandbox;
namespace AddonLogger
{
[Library( "logger-info" )]
public class AddonInfo : BaseAddonInfo
{
public override string Name => "Logger";
public override string Description => "Addon-designed console logging utility";
public override string Author => "Alex";
pu... |
using FilmShow.Models;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
namespace FilmShow.DAL
{
public class FilmShowContext : IdentityDbContext<ApplicationUser>
{
public FilmShowContex... |
using Microsoft.AspNetCore.Mvc.ModelBinding;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace ShadowAPI.Models
{
public class Info : BaseEntity
{
public string RealName { get; set; }
public List<Alias>... |
using Microsoft.Bot.Builder;
using Microsoft.Bot.Builder.AI.QnA;
using System.Threading;
using System.Threading.Tasks;
namespace JIoffe.BIAD.Bots
{
public class QnAMakerBot : IBot
{
//Step 4) Allow the bot to query QnA Maker on each turn
//TODO - Add a private member of type QnAMaker and init... |
using System;
namespace BIADTemplate.Model
{
[Serializable]
public class RichQnaButton
{
public string Label { get; set; }
public string Url { get; set; }
}
} |
using System.Collections.Immutable;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Operations;
namespace Meziantou.Analyzer;
internal static class ContextExtensions
{
private static Diagnostic Cre... |
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class UserShowInfo : System.Web.UI.Page
{
string uId = "";
PDTech.OA.BLL.USER_INFO ubll = new PDTech.OA.BLL.USER_INFO();
protected void Page_Load(object sender, EventArgs ... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class RenderGameObject : MonoBehaviour {
public Text objectName;
private GameObject c1;
private GameObject c2;
private GameObject c3;
string character = null;
// Use this for initialization
void Star... |
using System;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace App1
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class Splash : ContentPage
{
public Splash()
{
InitializeComponent();
... |
using LuaInterface;
using RO;
using SLua;
using System;
using UnityEngine;
public class Lua_RO_RenderQByUI : LuaObject
{
[MonoPInvokeCallback(typeof(LuaCSFunction))]
public static int TestExcute(IntPtr l)
{
int result;
try
{
RenderQByUI renderQByUI = (RenderQByUI)LuaObject.checkSelf(l);
renderQByUI.Test... |
using Prism.Commands;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
namespace LogUrFace.ReportingModule.ViewModels
{
public class DTRViewModel : BindableBase
{
public DTRViewModel()
{
}
}
}
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DissolveManager : MonoBehaviour
{
public GameObject wall1;
public GameObject wall2;
public GameObject wall3;
public bool banish = false;
public float threshold = 0;
private Renderer mat1;
... |
using BPiaoBao.DomesticTicket.Domain.Models.Orders;
using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
namespace BPiaoBao.DomesticTicket.EFRepository.OrdersMap
{
public class TicketSumMap:EntityTypeConfiguration<TicketSum>
{
... |
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Webcorp.unite;
namespace Webcorp.Model.Quotation
{
public class CalculTranche<T,U> : ICalculTranche<T,U> where T : Unit<T> where U:Unit<U>
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StopLightStrategy.Classes
{
public class RuleBook
{
public string GetTrafficRule(SignalReaction reaction)
{
StringBuilder trafficRule = new StringBuilder();
trafficRule.AppendLine(... |
using Android.Views;
using Kit.Services.Interfaces;
using Plugin.CurrentActivity;
using Kit.Droid.Services;
using Xamarin.Forms;
[assembly: Dependency(typeof(BrightnessService))]
namespace Kit.Droid.Services
{
public class BrightnessService : IBrightnessService
{
public void SetBrightness(f... |
// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ===========================... |
using UnityEngine;
using System.Collections;
public class Salir : MonoBehaviour {
// Update is called once per frame
void Update () {
if(Input.GetKeyDown(KeyCode.Space))
{
Application.LoadLevel("Menu0.1");
}
else if(Input.GetKeyDown(KeyCode.Escape))
{
GameMaster.Cerrar();
}
}
void OnGUI(){
... |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ApplicationSeeder.cs" company="CGI">
// Copyright (c) CGI. All rights reserved.
// </copyright>
// ------------------------------------------------------------------------------... |
using System;
namespace OCP.User.Backend
{
/**
* @since 14.0.0
*/
public interface ISetPasswordBackend
{
/**
* @since 14.0.0
*
* @param string uid The username
* @param string password The new password
* @return bool
*/
bool s... |
using UnityEngine;
public class FollowFlyingState : FollowState
{
public FollowFlyingState(GameObject enemy, StateType state) : base(enemy, state) { }
public override void OnStateEnter()
{
enemyBehavior = enemy.GetComponent<Enemy>();
masks = playerLayer | enemiesLayer | wallsLayer;
... |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
namespace StringMetodos
{
class Program
{
static void Main(string[] args)
{
string primera = "Luz azul";
//Console.WriteLine(primera.palidromo());
//Console.WriteL... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ExitScript : MonoBehaviour
{
public void quitTheGame()
{
//Quits game
if (Application.platform == RuntimePlatform.WebGLPlayer) {
Screen.fullScreen = false;
} else {
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using System... |
using System;
namespace Factorials.Classes
{
public class FactorialMethods
{
public int FactorialAnswer(int inputFromUser)
{
if(inputFromUser == 1 || inputFromUser == 0)
{
return 1;
}
else
{
return input... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Training_Onion
{
class Program
{
public static void Write(string text, ConsoleColor color = ConsoleColor.White, bool backToDefault = false, ConsoleColor backColor = ConsoleColor.Black)
{... |
using eRecruiterRestClient.Deserialize;
using eRecruiterRestClient.Interfaces;
using Newtonsoft.Json;
using RestSharp;
using System;
namespace eRecruiterRestClient
{
class ErecruiterAction : IErecruiterAction
{
private readonly IAuthToken _authToken;
private readonly IRestResponse _response;
... |
using Athena.Data.Series;
using Athena.EventManagers;
using Microsoft.EntityFrameworkCore;
using System;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
namespace Athena.Windows {
/// <summary>
/// Logika interakcji dla klasy AddSeriesWindow.xaml
/// </s... |
using System;
using System.ComponentModel;
using System.Windows.Input;
using System.Windows.Threading;
using Caliburn.Micro;
using Frontend.Core.Model.Interfaces;
using Action = System.Action;
namespace Frontend.Core.Commands
{
/// <summary>
/// Implementation of <c>ICommand</c> that allows for... |
using System;
namespace Logbog.Model
{
public class Chauffør
{
private int _chID;
private string _fNavn;
private string _eNavn;
private DateTime _opretdato;
public int Ch_ID // property
{
get { return _chID; } // get method
set { _c... |
using LuaInterface;
using RO;
using SLua;
using System;
public class Lua_RO_ByteArray : LuaObject
{
[MonoPInvokeCallback(typeof(LuaCSFunction))]
public static int constructor(IntPtr l)
{
int result;
try
{
int num = LuaDLL.lua_gettop(l);
if (num == 1)
{
ByteArray o = new ByteArray();
LuaObject... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _06.TrafficJam
{
class TrafficJam
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
Queue<string> cars = new Queue<stri... |
using System;
using System.Collections.Generic;
using System.Drawing.Imaging;
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... |
using Contoso.Forms.Configuration;
using System.Collections.Generic;
namespace Contoso.XPlatform.Flow.Settings.Screen
{
public abstract class ScreenSettingsBase
{
abstract public ViewType ViewType { get; }
public IEnumerable<CommandButtonDescriptor> CommandButtons { get; set; }
}
}
|
using System;
using System.Collections.Generic;
using System.ServiceModel;
using CallCenter.Common.DataContracts;
using CallCenter.Server.Helper;
namespace CallCenter.ServiceContracts.Services
{
[ServiceContract]
[ServiceKnownType("GetKnownTypes", typeof(KnownTypesHelper))]
public interface ICha... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.InteropServices;
namespace ShellNamespace
{
public static partial class WindowsAPI
{
public const Int32 FILE_ATTRIBUTE_NORMAL = 0x80;
public static Guid IID_... |
/*
* Copyright 2014 Technische Universitšt Darmstadt
*
* 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 appli... |
using AutoMapper;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Whale.DAL;
using Whale.DAL.Models;
using Whale.DAL.Settings;
using Whale.Shared.Exceptions;
using Whale.Shared.Extentions;
using Whale.Shared.Models;
using Whale... |
using System;
namespace filter.framework.core.Db
{
/// <summary>
/// 主键
/// </summary>
[AttributeUsage(AttributeTargets.Property)]
public class PrimaryKeyAttribute : Attribute
{
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.