text stringlengths 13 6.01M |
|---|
using UnityEngine;
using System.Collections;
using System.Linq;
public class SortingButton : MonoBehaviour
{
Button button = new Button();
void Update ()
{
if (Camera.main.GetComponent<StateKeeper>().inHeroCollection)
{
if (button.ButtonClicked(gameObject))
{
... |
using System;
namespace Christmas
{
class Program
{
static void Main(string[] args)
{
Random random = new Random();
string[] presents = {"lod", "auto", "mobil", "pocitac", "letadlo", "pc hru"};
string[] names = {"Marek", "Filip", "Michal"};
for... |
using System;
namespace CourseHunter_26_Array
{
class Program
{
static void Main(string[] args)
{
int[] array1; //задекларировали переменную
array1 = new int [10]; //инициализировали массив
int[] array2 = new int[5];
int[] array3 = new int[5] {... |
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
namespace MageTwinstick
{
/// <summary>
/// Stores information on all GameObjects, adds and removes Gameobjects
/// </summary>
internal class GameWorld
{
//Fields
private Graphics dc; ... |
using Cs_Gerencial.Dominio.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cs_Gerencial.Infra.Data.EntityConfig
{
public class Se... |
using System;
using System.Linq;
using Microsoft.EntityFrameworkCore;
namespace Shared.DbInit
{
public class DataContext : DbContext
{
public DataContext() { }
public DataContext(DbContextOptions<DataContext> options)
: base(options) { }
protected override void OnConfigur... |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Search_for_a_number
{
class Program
{
static void Main(string[] args)
{
var numbers = Console.ReadLine().Split().Select(int.Parse).ToList();
int[] controlNums = Console.ReadLine().Split().Selec... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using ParrisConnection.DataLayer.DataAccess;
using ParrisConnection.DataLayer.Entities.Wall;
using ParrisConnection.DataLayer.Repositories;
using ParrisConnection.ServiceLayer.Data;
using ParrisConnection.ServiceLayer.Services.Status.Queries;
using System.... |
namespace DFC.ServiceTaxonomy.CustomFields.Settings
{
public class AccordionFieldSettings
{}
}
|
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using System.Windows.Data;
namespace EmberCore.KernelServices.UI.View.Configuration.Converts
{
public class IntValueConverter : CastToConverter<int>
{
public override int Cast(object value) => int.Parse(valu... |
using Sentry.Extensibility;
namespace Sentry.Protocol.Envelopes;
/// <summary>
/// Represents an object serializable in JSON format.
/// </summary>
internal sealed class JsonSerializable : ISerializable
{
/// <summary>
/// Source object.
/// </summary>
public IJsonSerializable Source { get; }
///... |
using System;
using System.Threading;
using System.Threading.Tasks;
using AgentR.Server;
using FakeItEasy;
using MediatR;
using Microsoft.AspNetCore.SignalR;
using NUnit.Framework;
namespace UnitTests
{
public class ServerTests
{
IHubContext<AgentHub> hub;
IRequestCallbackCordinator storage;
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace UIFrameWork
{
public abstract class UIModule : MonoBehaviour
{
protected Dictionary<UIType, BaseUI> baseUIDic = new Dictionary<UIType, BaseUI>();
protected Dictionary<string, BaseItem> baseItemDic = new Di... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navig... |
namespace Uintra.Features.Notification.Settings
{
public class NotificationSettings
{
public int ItemsPerPage { get; set; }
}
} |
using UnityEngine;
using System.Collections;
public class FourWD : MonoBehaviour
{
//reference to the wheel joints
WheelJoint2D[] wheelJoints;
//center of mass of the car
public Transform centerOfMass;
//reference tot he motor joint
JointMotor2D motorBack;
JointMotor2D motorFront;
//horizontal movement key... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Calculator;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace Calculator.Tests
{
[TestClass()]
public class CalculatorTests
{
[TestMethod()]
... |
using P1.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
namespace ObjectWCF
{
[ServiceContract]
public interface InterfaceMedia
{
[OperationContract]
Media G... |
using Newtonsoft.Json;
using NoticiasWeb.Models;
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Windows;
namespace NoticiasWeb
{
/// <summary>
/// Interação lógica para MainWindow.xam
/// </summary>
public partial class MainWindow : Window
{
... |
using Seguim.Netcore.Store.Domain.StoreContext.ValueObjects;
using Xunit;
using System.Linq;
using System;
namespace Seguim.Netcore.Store.Tests.ValueObjects
{
public class DocumentTests
{
[Fact(DisplayName="Should return notification when document is invalid")]
public void DocumentIsInvalid()
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ajuda
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("############## MENU AJUDA (?) #################");
... |
using gView.Framework.Carto;
using gView.Framework.Data;
using gView.Framework.UI;
using System;
using System.Collections.Generic;
namespace gView.Framework.Snapping.Core
{
public class Globals
{
public const string ModuleGuidString = "2E50D579-766B-4ed9-A6F9-A4F3472F77AC";
static public Guid M... |
using Alabo.Web.Mvc.Attributes;
using System.ComponentModel.DataAnnotations;
namespace Alabo.Framework.Core.Enums.Enum {
/// <summary>
/// 国家
/// </summary>
[ClassProperty(Name = "国家")]
public enum Country : long {
/// <summary>
/// 默认
/// </summary>
[Labe... |
using Microsoft.AspNetCore.Http;
using WebSim.Persistence.Core;
namespace WebSim.Persistence
{
public class HttpUnitOfWork : UnitOfWork
{
public HttpUnitOfWork(DatabaseService context, IHttpContextAccessor httpAccessor) : base(context)
{
context.CurrentUserId = httpAccessor.HttpCon... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using OpenTK;
using OpenTK.Graphics.OpenGL;
namespace _3D_Tree_Generator
{
/// <summary>
/// OUTDATED, USE MESH INSTEAD
/// </summary>
class Object
{
private... |
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 Auction_Kostishin
{
public partial class Form1 : Form
{
public CustomerModel ... |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using System.Linq;
using System.IO;
public class BuildVersion
{
public static bool bLoadAB = false;
[MenuItem("BuildAB/DeleteAllPref ")]
public static void cleanPlayerPref()
{
PlayerPrefs.DeleteAll();
}
[MenuI... |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Soomla;
using Soomla.Store;
public class SoomlaStoreAssets: IStoreAssets {
public static string BASIC_UPGRADE_ID = "soomla_basic_upgrade_id";
public SoomlaStoreAssets ()
{
}
public int GetVersion() {
return 0;
}
// N... |
using System;
using System.Collections.Generic;
namespace DemoApp.Entities
{
public partial class FacilityItemSetting
{
public FacilityItemSetting()
{
FacilitySettings = new HashSet<FacilitySettings>();
}
public Guid Id { get; set; }
public string Descripti... |
using System;
using WildFarm.Models;
namespace WildFarm.Animals
{
public class Mouse : Mammal
{
public Mouse(string animalType, string animalName, double animalWeight, string livingRegion)
: base(animalType, animalName, animalWeight, livingRegion)
{
}
public overri... |
using System;
using System.Collections.Generic;
using System.Text;
namespace SFA.DAS.Tools.Support.Core.Models
{
public abstract class ResultBase
{
public bool HasError => !string.IsNullOrWhiteSpace(ErrorMessage);
public string ErrorMessage { get; set; }
}
}
|
using UnityEngine;
public class FoodGeneration : MonoBehaviour
{
private float xSize = 9f;
private float zSize = 9f;
public GameObject foodPrefab;
public GameObject curFood;
private Vector3 curPos;
void RandomPos()
{
curPos = new Vector3(Random.Range(xSize*-1, xSize),0.25f, Rand... |
using LHRLA.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace LHRLA.LHRLA.DAL
{
public class CaseHistoryLogDataAccess
{
#region Insert
public int AddCaseHistoryLog(tbl_Case_History_Log row)
{
try
{
... |
using ISE.Framework.Common.CommonBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ISE.SM.Common.DTO
{
public partial class RoleToRoleDto:BaseDto
{
public RoleToRoleDto()
{
this.PrimaryKeyName = "RrId";
}
}
}
|
using System;
using UnityEngine;
using UnityEditor;
using Unity.Mathematics;
using static Unity.Mathematics.math;
using System.Linq;
namespace IzBone.PhysCloth.Authoring {
using Common;
[CustomEditor(typeof(PlaneAuthoring))]
[CanEditMultipleObjects]
sealed class PlaneAuthoringInspector : BaseAuthoringInspector
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.ObjectModel;
using System.Windows;
namespace mvvm.Utils
{
public abstract class TreeViewBase : PropertyNotifier
{
protected ObservableCollection<TreeViewBase> ch... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Client.Features.Folders
{
public class FolderRepository : IFolderRepository
{
private readonly Internal.ILogger _logger;
private readonly DAL.IDBContext _dBContext;
... |
using System.Collections;
using System.Collections.Generic;
using System.Data;
using BP12;
using Mono.Data.Sqlite;
using UnityEngine;
public static class SQLConnection
{
private static IDbConnection m_dbConnection;
private static string path => "URI=file:" + Application.streamingAssetsPath + "/Database/DChild... |
using System.ComponentModel.DataAnnotations;
using AutoMapper;
using Profiling2.Domain.Prf;
namespace Profiling2.Web.Mvc.Areas.Profiling.Controllers.ViewModels
{
public class PhotoViewModel
{
public int Id { get; set; }
[Required(ErrorMessage = "A photo name is required.")]
[StringLen... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BPMInterfaceModel;
using Newtonsoft.Json;
using System.IO;
using Newtonsoft.Json.Linq;
namespace BPMInterfaceToolkit
{
public class JsonAnalysis
{
public static object JsonAnalysisFunction(string json,... |
using ServiceQuotes.Domain.Entities.Enums;
using System.ComponentModel.DataAnnotations;
namespace ServiceQuotes.Application.DTOs.Quote
{
public class UpdateQuoteStatusRequest
{
[Required(ErrorMessage = "Status is required")]
public Status Status { get; set; }
}
}
|
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using TestApp.Models;
namespace TestApp.Services
{
public class CategoriesService
{
TestDBContext testDBContext;
public CategoriesService()
{
testDBContext = n... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace ConsoleApplication
{
internal class PathHelper
{
internal static IEnumerable<string> GetConfigPaths(IEnumerable<string> args)
{
IEnumerable<string> paths = P... |
using System.Windows.Controls;
namespace Crystal.Plot2D
{
/// <summary>
/// <see cref="LegendItem"/> is a base class for item in legend, that represents some chart.
/// </summary>
public abstract class LegendItem : ContentControl
{
/// <summary>
/// Initializes a new instance of the <see cref="... |
using System;
using System.Collections.Generic;
using System.Linq;
namespace _09._Pokemon_Don_t_Go
{
class Program
{
static void Main(string[] args)
{
List<int> pokemonDistances = Console.ReadLine()
.Split()
.Select(int.Parse)
.ToList();
int sumO... |
using System.Linq;
using iSukces.Code.Interfaces;
namespace iSukces.Code
{
public sealed class IfCollector
{
public IfCollector(string condition, string inversed = null)
: this(new ConditionsPair(condition, inversed))
{
}
public IfCollector(ConditionsPair conditio... |
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using Pe.Stracon.Politicas.Aplicacion.Core.Factory;
namespace Pe.Stracon.Politicas.Aplicacion.Core.Installers
{
/// <summary>
/// Instalador persistencia
/// </summary>
/// <remarks>
/// ... |
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using System;
using System.Collections.Generic;
namespace lsc.Dal.Migrations
{
public partial class createAlltable : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
... |
using System;
using System.Collections.Generic;
using AGCompressedAir.Domain.Domains.Base;
namespace AGCompressedAir.Domain.Domains
{
public class ClientDomain : Entity<Guid>
{
public string Name { get; set; }
public string ContactName { get; set; }
public string AddressLine1 { get; se... |
using System;
using System.Linq;
using System.Threading.Tasks;
using Airelax.Application.Account;
using Airelax.Application.Houses.Dtos.Response;
using Airelax.Domain.RepositoryInterface;
using Lazcat.Infrastructure.DependencyInjection;
namespace Airelax.Application.Trips
{
[DependencyInjection(typeof(ITripServic... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SubtitlesParser
{
class StartTimeComparer : IComparer<SubtitleItem>
{
public int Compare(SubtitleItem x, SubtitleItem y)
{
return x.StartTime - y.StartTime;... |
// Copyright 2012 Mike Caldwell (Casascius)
// This file is part of Bitcoin Address Utility.
// Bitcoin Address Utility is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
/... |
using NUnit.Framework;
using System.Linq;
using SFA.DAS.ProviderCommitments.Web.Models.Cohort;
using SFA.DAS.ProviderCommitments.Web.Validators.Cohort;
namespace SFA.DAS.ProviderCommitments.Web.UnitTests.Validators.Cohort
{
public class SelectCourseViewModelValidatorTests
{
[TestCase("", false)]
... |
using System;
using System.Windows;
using System.Windows.Input;
using System.Windows.Threading;
using GymWorkout.Views;
namespace GymWorkout
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
... |
using Harmony;
using Microsoft.Xna.Framework;
using Netcode;
using StardewModdingAPI;
using StardewValley;
using StardewValley.TerrainFeatures;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace BetterRarecrows
{
c... |
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Net.Http;
using Newtonsoft.Json.Linq;
using Xamarin.Forms;
namespace Wonderland
{
public class productItem
{
public string productTitle { get; set; }
public string productPrice { get; set; }
pub... |
using System;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Formatting;
using System.Net.Http.Headers;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using ApiTemplate.Common.Markers.DependencyRegistrar;
using ApiTemplate.Common.Resources;
using ApiTemplate... |
using Alabo.Domains.Entities;
namespace Alabo.Domains.Services.Random {
public interface IRandom<TEntity, in TKey> where TEntity : class, IAggregateRoot<TEntity, TKey> {
/// <summary>
/// 从数据库中随机读取一条记录
/// 一般用于单元测试
/// 1:表示第一条记录
/// -1:表示最后一条记录
///... |
namespace Sales.Helpers
{
using Xamarin.Forms;
using Interfaces;
using Resources;
public static class Languages
{
static Languages()
{
var ci = DependencyService.Get<ILocalize>().GetCurrentCultureInfo();
Resource.Culture = ci;
DependencyService.G... |
using CoreLib.Commons;
using CoreLib.Models;
using CoreLib.Utils;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DatabaseDAL.DataAccess
{
public static class DatabaseGroup
{
p... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Shooting : MonoBehaviour
{
public GameObject bullet;
public GameObject pew;
public GameObject rocket;
public Vector3 firingOffset;
public float bulletSpeed;
public float rocketSpeed;
public float ti... |
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class UnitManager : MonoBehaviour
{
public Unit[] units;
public int Rent {
get { return units.Sum(u => u.Rent); }
}
public bool RepairNeeded {
get {
for (int i = ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MentorAlgorithm.Helpers
{
public static class Helper
{
public static int Evaluate(string expression)
{
System.Data.DataTable table = new System.Data.DataTab... |
namespace CS.EntityFramework.Models
{
public class Order
{
public Order ()
{
}
}
}
|
using OpHomeSecurity.Web.Amazon;
using OpHomeSecurity.Web.Models;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Web;
namespace OpHomeSecurity.Web.Database
{
public class DatabaseService
{
private dboOpHomeSecurit... |
using System;
using System.Collections.Generic;
using System.Linq;
namespace More_Ex_1
{
class Program
{
static void Main(string[] args)
{
Dictionary<string, string> contests = new Dictionary<string, string>();
Dictionary<string, Dictionary<string, int>> submissions = n... |
using UnityEngine;
using System.Collections;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class TouchInventory : MonoBehaviour {
EventSystem eventSystem;
PlayerInventory playerInventory;
float touchBeganTime;
float touchHoldTime = 1.0f;
bool dragging = false;
GameObject floatImage;
// Use... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// Plays animation, and sound with a delay
public class JumpTrigger : MonoBehaviour {
public AudioSource DoorBang;
public AudioSource JumpTune;
public GameObject Zombie;
public GameObject Door;
void OnTriggerEnter()
... |
using System;
using System.Collections;
using System.Text;
using HTB.Database;
using HTBPdf;
using HTBUtilities;
using iTextSharp.text;
using System.IO;
using HTB.Database.Views;
using HTBExtras;
namespace HTBReports
{
public class TransferToClient : IReport
{
private int _col;
private int _co... |
using System;
using System.Collections.Generic;
using System.Composition;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Npgsql;
using pract.Models;
namespace pract.Controllers
{
[Route("api/Comp")]
[... |
namespace TellStoryTogether.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class LanguageTableRightToLeftRemoved : DbMigration
{
public override void Up()
{
DropColumn("dbo.Language", "RightToLeft");
}
public overr... |
using System;
using Vanara.PInvoke;
using static Vanara.PInvoke.Kernel32;
using static Vanara.PInvoke.User32_Gdi;
namespace Vanara.Windows.Shell
{
/// <summary>Wraps the icon location string used by some Shell classes.</summary>
public class IndirectString
{
/// <summary>Initializes a new instance of the <see cr... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WinterIsComing.Contracts;
using WinterIsComing.Models.CombatHandlers;
using WinterIsComing.Models.Spells;
namespace WinterIsComing.Models.Units
{
// Default stats: 150 attack points, 300 healt... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Menu
{
public class ControlCamera : MonoBehaviour
{
public float distanceMinToMovingNext = 25;
public float speedMoving = 10;
public float speedMovingToCar = 3;
private Control... |
using System;
using System.Collections.Generic;
using System.Text;
using ToDo.Entities.Concrete;
namespace ToDo.DataAccess.Interfaces
{
public interface IReportDal : IGenericDal<Report>
{
}
}
|
using Galeri.Entities.Concrete;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Galeri.DataAccess.Abstract
{
public interface IMarkaDal:IEntityRepository<Marka>,IFilterMethods<Marka>
{
}
}
|
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 HotelManagement.Controller;
namespace HotelManagement.UserInterface
{
public partial class DatTiec : Form
{... |
using Newtonsoft.Json;
using System;
namespace EthereumChain
{
[Serializable]
public sealed class EtherAddressTransactions
{
[JsonProperty]
private readonly string status;
[JsonProperty]
private readonly string message;
[JsonProperty]
private readonly Ethe... |
namespace TomKlonowski.DB.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class Blogs_Description : DbMigration
{
public override void Up()
{
AddColumn("dbo.Blogs", "Description", c => c.String(maxLength: 256));
AlterColumn("dbo... |
using AsyncRAT_Sharp.MessagePack;
using AsyncRAT_Sharp.Sockets;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace AsyncRAT_Sharp.Handle_Packet
{
public class HandleRecover... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cards;
namespace Blackjack
{
public class EventMessageArgs : EventArgs
{
public string Message { get; }
public EventMessageArgs(string message)
{
... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Web;
using System.Web.Services.Protocols;
namespace asmxTraceExtensionLog4Net
{
/// <summary>
/// 在所有的SOAP接口上面增加这个属性就可以了 [TraceLog]
/// Define a SOAP Extension that traces the SOAP re... |
namespace AzureAI.CallCenterTalksAnalysis.Infrastructure.Configuration.Interfaces
{
public interface IVideoIndexerServiceConfiguration : ICognitiveServiceConfiguration
{
string AccountId { get; set; }
string Location { get; set; }
}
}
|
using Backend.Model.Manager;
using Model.Manager;
namespace GraphicalEditorServerTests.DataFactory
{
public class CreateEquipment
{
public Equipment CreateInvalidTestObject()
{
return new Equipment(-1, null);
}
public Equipment CreateValidTestObject(int equipmentQua... |
using UnityEngine;
public class LevelManager
{
private Level[] levels;
private const int levelQtty = 10;
private int starCounter;
private static LevelManager instance;
public static LevelManager Instance
{
get
{
if (instance == null)
{
... |
// Bedingungen
// https://www.tutorialspoint.com/csharp/csharp_decision_making.htm
bool duHast2Franken = true;
duHast2Franken = !duHast2Franken;
Console.WriteLine("Wenn du mir 2 Franken gibst, dann gib ich dir ein Weggli");
if (duHast2Franken) {
Console.WriteLine("Ich gib dir ein Weggli!");
} else {
Console.WriteLi... |
namespace Allyn.Infrastructure.EfRepositories.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class _2017822011626 : DbMigration
{
public override void Up()
{
AddColumn("dbo.FProduct", "ShopKey", c => c.Guid());
CreateIndex("dbo... |
using System;
using System.Collections.Generic;
using System.Text;
namespace OsuSqliteDatabase.Model
{
public class OsuDatabaseBeatmap
{
public int Id { get; set; }
public int OsuDatabaseId { get; set; }
public OsuDatabase OsuDatabase { get; set; }
public int BytesOfBeatmapEntr... |
using LeaveApplication.Dal.Models;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Text;
namespace LeaveApplication.Dal.Configuration
{
public class UserConfiguration : BaseEntityConfiguration<User>
{
public override void Configure(En... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
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.Medi... |
namespace Sentry.NLog.Tests;
public class ConfigurationExtensionsTest
{
[Fact]
public void AddSentry_Parameterless_DefaultTargetName()
{
var actual = new LoggingConfiguration().AddSentry();
Assert.Equal(ConfigurationExtensions.DefaultTargetName, actual.AllTargets[0].Name);
}
[Fact]... |
using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TransferData.DataAccess.Entity.Mapping
{
public class MappingTitle : MappingBase
{
}
public class MappingTitleConfig : EntityTypeCo... |
namespace _04._AcademyGraduation
{
using System;
using System.Collections.Generic;
using System.Linq;
public class Startup
{
public static void Main()
{
int numberOfStudents = int.Parse(Console.ReadLine());
SortedDictionary<string, List<double>> students = n... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.IO;
using System.IO.Compression;
namespace 档案汇总
{
class QzTcpClinet
{
TcpClient m_tcpClient;
byte[] m_Buffer = new byte[8192];
MemoryStream m_memSt... |
using System;
using System.Collections;
using System.Collections.Generic;
using Castle.Facilities.NHibernateIntegration.Util;
using NHibernate;
using NHibernate.Collection;
using NHibernate.Exceptions;
using NHibernate.Proxy;
using NHibernate.Type;
namespace com.Sconit.Persistence
{
public class NHDao : NHQueryDa... |
using UnityEngine;
using System.Collections;
public class PausedCanvasController : MonoBehaviour {
public Canvas pausedCanvas;
void Awake() {
if (pausedCanvas != null &&
!pausedCanvas.isActiveAndEnabled) {
pausedCanvas.gameObject.SetActive (true);
}
}
// Use this for initialization
void Start () {
... |
//-----------------------------------------------------------------------
// <copyright file="ApiPaginationNavigationModel.cs" company="<%= company %>">
// <%= copyrigthDate %>. All rights reserved.
// </copyright>
// <author>Adventiel</author>
//--------------------------------------------------------------------... |
using System;
using System.Collections.Specialized;
using System.Configuration;
using System.Linq;
namespace StarBastardCore.Website.Code
{
public interface IAppSettings
{
string this[string key] { get; set; }
T Get<T>(string key, Func<T> defaultValue = null);
}
public class AppSettin... |
using System.Collections;
using System.Collections.Generic;
using System;
using UnityEngine;
public interface IState
{
BaseEnemy Parent { get;}
void Enter();
void Execute();
void Leave();
void SetParent(BaseEnemy obj);
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
/*
* Name: Abubakir Myrzaly
* Date: 8/15/2017
* Description: BMI Calculator
* Version 0.2 - Stated SplashFormFirst
*/
namespace Assignment_5_1_
{
static class Program
{
//... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.