text stringlengths 13 6.01M |
|---|
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using TheMapToScrum.Back.DAL;
using TheMapToScrum.Back.DAL.Entities;
using TheMapToScrum.Back.Repositories.Contract;
namespace TheMapToScrum.Back.Repositories.Repo
{
public class UserStoryRepository : IUserStor... |
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Validation;
using Common;
namespace DemoWebApp.Models.Fluent
{
[ExportDemo("insert dad with required birthday (fluent)")]
public class ValidationExampleWithBirthDayRequired : IDemo
{
#regio... |
namespace TripDestination.Web.MVC.Controllers.ChildActionControllers
{
using System.Linq;
using System.Web.Mvc;
using Common.Infrastructure.Constants;
using Services.Data.Contracts;
using TripDestination.Common.Infrastructure.Mapping;
using ViewModels.ChildAction;
using ViewModels.Shared;
... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Tweetinvi.Models;
using Tweetinvi;
using VaderSharp;
using System.Globalization;
namespace Sentim... |
using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using Microsoft.EntityFrameworkCore;
using WorkScheduleManagement.Data.Enums;
using WorkScheduleManagement.Persistence;
namespace WorkScheduleManagement.Application.CQRS.Queries
{
public class GetUserCountOfUnuse... |
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using XH.Domain.Services.Authentication;
using XH.Domain.Services.Authentication.Models;
using con = System.Console;
namespace XH.Console.NH
{
public enum Level
{
[Description("省")]
Province = 0,
[Descri... |
using Microsoft.AspNetCore.Mvc.Filters;
using Polly;
using System;
using System.Threading.Tasks;
namespace WebCore.Aspect
{
/// <summary>
/// 回滚
/// </summary>
public class FallbackAttribute : Attribute, IAsyncActionFilter
{
public async Task OnActionExecutionAsync(ActionExecutingContext c... |
using System.Collections.Generic;
using System.Linq;
namespace Euler_Logic.Problems {
public class Problem127 : ProblemBase {
private Dictionary<ulong, HashSet<ulong>> _primeFactors = new Dictionary<ulong, HashSet<ulong>>();
private List<ulong> _primes = new List<ulong>();
private ulong _s... |
using System;
using Microsoft.AspNetCore.Http;
namespace NetEscapades.AspNetCore.SecurityHeaders.Headers.CrossOriginPolicies.OpenerPolicy
{
/// <summary>
/// This is the default value. Allows the document to be added to its opener's browsing context
/// group unless the opener itself has a COOP of same-or... |
namespace CableMan.Model
{
public class DataAPILogin
{
public string SUCCESS { get; set; }
public string USERID { get; set; }
public string USERNAME { get; set; }
public string FULLNAME { get; set; }
public string PHONE { get; set; }
public string TOKEN { get; se... |
///////////////////////////////////////////////////////////
// MedicineList.cs
// Implementation of the Class MedicineList
// Generated by Enterprise Architect
// Created on: 25-6月-2013 14:19:18
// Original author: Winger
///////////////////////////////////////////////////////////
using System.Coll... |
using System.Linq;
using Xamarin.Forms;
namespace AsNum.XFControls.Binders {
public class EditorBinder {
public static readonly BindableProperty PlaceHolderProperty =
BindableProperty.CreateAttached("PlaceHolder",
typeof(string),
typeof(EditorBinder),
... |
using System.Collections.Generic;
using Microsoft.Data.Entity.Relational.Migrations;
using Microsoft.Data.Entity.Relational.Migrations.Builders;
using Microsoft.Data.Entity.Relational.Migrations.Operations;
namespace KPIDemo.Migrations
{
public partial class CourseResult : Migration
{
public override v... |
using Microsoft.EntityFrameworkCore;
namespace RESTfulAPI.Model.Models
{
public class ModelContext : DbContext
{
public ModelContext(DbContextOptions<ModelContext> options) : base(options)
{ }
public virtual DbSet<User> Users { get; set; }
public virtual DbSet<Role> Roles { ge... |
using System;
using System.Collections.Generic;
using System.Linq;
using ILogging;
using ServiceDeskSVC.DataAccess;
using ServiceDeskSVC.DataAccess.Models;
using ServiceDeskSVC.Domain.Entities.ViewModels.HelpDesk.Tasks;
namespace ServiceDeskSVC.Managers.Managers
{
public class HelpDeskTaskManager:IHelpDeskTas... |
using System;
namespace Task_02
{
class Program
{
static double F(double x, double y)
{
switch (x < y && x > 0)
{
case true:
return x + Math.Sin(y);
case false:
switch (x > y && x < 0)
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using agsXMPP.protocol.component;
using System.Net.Sockets;
using agsXMPP.Xml.Dom;
using System.IO;
using System.Reflection;
using ZK.Model;
namespace ZK.Share
{
/// <summary>
/// 提供消息推送的接口类
/// </summary>... |
namespace HeBoGuoShi.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class addMargin : DbMigration
{
public override void Up()
{
AddColumn("dbo.OwnerProducts", "Margin", c => c.Single(nullable: false));
}
public ove... |
namespace DFC.ServiceTaxonomy.ContentApproval.Models.Enums
{
public enum ReviewStatus
{
NotInReview,
ReadyForReview,
InReview,
RequiresRevision
}
}
|
// Copyright (c) Microsoft Corporation. All rights reserved.
// MIT License
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to us... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using NgNetCore.Data;
using NgNetCore.Models;
using NgNetCore.ViewModels;
namespace NgNetCore.Controllers
{
[Route("api/[controller]")]
[ApiControll... |
using BankApp.Services;
using BankAppCore.Data.EFContext;
using BankAppCore.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using static BankAppCore.Data.EFContext.EFContext;
namespace BankApp.Models
{
public class UserLoggerService
{
ShopContext context;
... |
using API_REST.BL;
using API_REST.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace API_REST.Controllers
{
public class UserController : ApiController
{
[HttpGet]
public UserDTO GetUser(decimal idUs... |
using System;
using System.Collections.Generic;
using Efa.Domain.Entities;
namespace Efa.Domain.Interfaces.Repository
{
public interface IAlunoRepository : IRepositoryBase<Aluno>
{
void AddAlunoTurma(IEnumerable<Aluno> alunos, Guid turmaId);
IEnumerable<Aluno> GetAlunosNaoVinculados();
... |
using System;
namespace Stock_Exchange_Analyzer.DataRepresentation
{
public class ProfitDay : IComparable<ProfitDay>
{
DateTime day;
float profit;
public ProfitDay(DateTime day, float profit)
{
this.Day = day;
this.Profit = profit;
}
pu... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Test2 : MonoBehaviour
{
private void Awake()
{
StartCoroutine(Function2());
}
IEnumerator Function2()
{
for (; ; )
{
yield return new WaitForSeconds(1f);
Deb... |
#region License
/**
* Copyright (c) 2013 Robert Rouhani <robert.rouhani@gmail.com> and other contributors (see CONTRIBUTORS file).
* Licensed under the MIT License - https://raw.github.com/Robmaister/SharpNav/master/LICENSE
*/
#endregion
using System;
using System.Collections.Generic;
using System.Runtime.InteropS... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace task3_Array_Manipulator
{
public class Program
{
public static void Main()
{
var currentList = Console.ReadLine().Split(' ').Select(int.Parse).ToList(); ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Algorithms_and_Structures
{
/// <summary>
/// Связный список
/// </summary>
class Program
{
static void Main(string[] args)
{
LinkedList list = ... |
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Http;
using Models;
using Shared;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
using static Microsoft.AspNetCore.Http.StatusCodes;
using System.Web;
u... |
using System;
using System.Collections;
using System.Collections.Generic;
[System.Serializable]
public class PlayerData : Singleton<PlayerData>
{
public void SetPlatform(string szPlatform) { m_szPlatform = szPlatform; }
public void SetName(string szName) { m_szName = szName; }
public void SetHeadImage(string szHea... |
namespace Data.Services
{
using System.Collections.Generic;
using System.Linq;
using Interfaces;
using Models;
using Models.BindingModels;
using Models.Utilities;
using Models.ViewModels;
public class AdminService : Service
{
public AdminService(IDataProvidable data) : base... |
namespace Jypeli
{
/// <summary>
/// Törmäyskuvion laatuun vaikuttavat parametrit.
/// </summary>
public struct CollisionShapeParameters
{
public double DistanceGridSpacing;
public double MaxVertexDistance;
internal CollisionShapeParameters( double distanceGridSpacing, doub... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace DetailedDifferences_CS
{
public class Program
{
public static string Diff(string a, string b){
string diff = "";
for(int i=0;i<a.Length;i++){
if(a[i] != b[i... |
using OnboardingSIGDB1.Domain.Empresas.Validators;
using OnboardingSIGDB1.Domain.Funcionarios;
using System;
using System.Collections.Generic;
namespace OnboardingSIGDB1.Domain.Empresas
{
public class Empresa : Entity
{
public Empresa()
{
}
public Empresa(string nome, string... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Kulula.com.Models
{
class Flight_Departure
{
public int AirportID { get; set; }
public int AircraftID { get; set; }
public int ArrivalID { get; set; }
public string AirportName { get; set; }
pu... |
#region MIT License
/*
* Copyright (c) 2009 University of Jyväskylä, Department of Mathematical
* Information Technology.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without res... |
using System.Windows.Forms;
namespace Project.Helpers {
class GuiHelper {
public static DialogResult ShowInfo(string message) {
return MessageBox.Show(message, "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
public static DialogResult ShowWarning(string message)... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Core.DAL;
using Core.BIZ;
using System.Globalization;
using PagedList;
namespace WebForm.Areas.Admin.Controllers
{
public class ThanhToanDaiLyController : BaseController
{
#region Private ... |
namespace BettingSystem.Application.Betting.Matches.Consumers
{
using System.Threading.Tasks;
using Domain.Betting.Repositories;
using Domain.Common.Events.Matches;
using MassTransit;
public class MatchStartDateUpdatedEventConsumer : IConsumer<MatchStartDateUpdatedEvent>
{
private read... |
using System;
using System.Threading.Tasks;
using InterestRateApp.Contracts.Requests;
using InterestRateApp.Contracts.Responses;
using InterestRateApp.Domain;
namespace InterestRateApp.Services.Services
{
public interface IAgreementService
{
bool AgreementExists(Guid agreementId);
Task<BaseRat... |
using System.Linq;
namespace SpaceHosting.Index.Benchmarks
{
public static class VectorConversions
{
public static DenseVector ToDenseVector(this double?[] coordinates)
{
if (coordinates.All(c => c == null))
return new DenseVector(new double[coordinates.Length]);
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Client.Features.Duplicates.ViewModels
{
public class DuplicatesResultPath
{
public Guid PathCompareValueId { get; set; }
public string FileName { get; set; }
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ProyectoWebBlog.Models;
using ProyectoWebBlog.Models.ViewModels;
namespace ProyectoWebBlog.Controllers
{
public class CategoriaController : Controller
{
public ActionResult Index()
... |
namespace Records
{
public class PointRecord
{
public int x;
public int y;
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace InheritanceApp
{
class Developer: CompanyEmployee
{
public Developer(string name, string salary, DateTime? date, string Special ) : base(name, salary, date)
... |
using System;
namespace SFA.DAS.ProviderCommitments.Infrastructure.OuterApi.Responses
{
public class GetPriorLearningSummaryQueryResult
{
public long ApprenticeshipId { get; set; }
public long CohortId { get; set; }
public int? TrainingTotalHours { get; set; }
public int? Durat... |
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Aquamonix.Mobile.Lib.Extensions;
namespace Aquamonix.Mobile.Lib.Domain
{
[DataContract]
public class Valve : IDomainObjectWithId, ICloneable<Valve>, IMergeable<Valve>
{
[DataMember(Name = PropertyNames.Id)]
public string ... |
using ShoppingListApi.Models.RequestModels;
namespace ShoppingListApi.Models.ResponseModels
{
public class ShoppingListItem: BaseShoppingListItem
{
}
}
|
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 AspNetCoreGettingStarted.Data;
using AspNetCoreGettingStarted.Model;
using Microsoft.EntityFrameworkCore;
namespace AspNetCoreGettingStarted.IntegrationTests.Data
{
public class MockAspNetCoreGettingStartedContext : DbContext, IAspNetCoreGettingStartedContext
{
public DbSet<Category> Categories ... |
using System;
using System.Text;
using Xunit;
namespace Rwb
{
public class Base32ConverterTests
{
[Fact]
public void ToBase32String_Null_ShouldThrow()
{
Assert.Throws<ArgumentNullException>(() => Base32Converter.ToBase32String(null));
}
[Theory]
[InlineData("", "")]
[InlineData("f", "MY")]
[Inlin... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CS_350_Exam_3
{
class Social_Network
{
public class Person
{
public string UserName { get; set; }
public string P... |
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 Model.Interfaces;
using Utilities;
namespace AccManagerKw.Common
{
public partial class FrmBas... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlatformSpawner : MonoBehaviour
{
public GameObject Despawner;
public GameObject SimplePlatformPrefab;
public float PlatformMoveSpeed;
public int Interval;
private int Count;
private Vector3 Forward;
... |
using System;
using SpatialEye.Framework.Client;
using Lite.Resources.Localization;
namespace Lite
{
/// <summary>
/// The lite print view model that holds the available templates
/// </summary>
public class LitePrintViewModel : PrintViewModel
{
#region Constructor
/// <summary>
/// The default ... |
using UnityEngine;
using UnityEngine.UI;
public class HexCellUiView : MonoBehaviour
{
public Text label;
public void Initialize(HexNode node)
{
label.rectTransform.SetParent(HexMap.instance.canvas.transform, false);
label.rectTransform.anchoredPosition = new Vector2(node.position.x, node... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace XH.Configurations
{
public class ConfigurationValidationResult : Dictionary<string, string>
{
}
}
|
using System.Text;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Utilities;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Microsoft.SharePoint.WebControls;
using System;
using System.Linq;
using System.Collections.Generic;
namespace CustomLook... |
using Microsoft.Web.WebPages.OAuth;
using StarBastardCore.Website.Code;
using StarBastardCore.Website.Filters;
namespace StarBastardCore.Website.App_Start
{
public static class AuthConfig
{
public static void RegisterAuth()
{
var settings = new AppSettingsWrapper();
// ... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public enum WaterState
{
UP,
DOWN,
CHANGING
}
public class Water : MonoBehaviour
{
//[HideInInspector]
public WaterState state = WaterState.DOWN;
public Gate left, right;
public bool canUp, canDown;
/... |
namespace RTSP_IPCam
{
using System;
public delegate void PacketEventHandler(object sender, PacketEventArgs e);
public class PacketEventArgs : EventArgs
{
public PacketEventArgs()
{
}
}
}
|
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace SincroPelis
{
static class KeyController
{
const UInt32 WM_KEYDOWN = 0x0100;
const int VK_F5 = 0x20;
[System.... |
using Microsoft.AspNetCore.Mvc;
using SFA.DAS.CommitmentsV2.Types;
using SFA.DAS.PAS.Account.Api.Types;
using SFA.DAS.ProviderCommitments.Web.Models.Cohort;
using System.Linq;
namespace SFA.DAS.ProviderCommitments.Web.Extensions
{
public static class CohortSummaryExtension
{
public static CohortStatus... |
using gView.Core.Framework.Exceptions;
using gView.Framework.system;
using gView.MapServer;
using gView.Server.AppCode.Extensions;
using gView.Server.Services.MapServer;
using Newtonsoft.Json;
using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace gView.Server.AppCode
{
class Ma... |
using UnityEngine;
using UnityEngine.SceneManagement;
[CreateAssetMenu(fileName = "Scene Manager Asset", menuName = "Managers/Scene")]
public class SceneManagerAsset : ScriptableObject
{
public void ResetScene()
{
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
}
public voi... |
using System;
namespace CourseHunter_32_Self_MaxValue
{
class Program
{
static void Main(string[] args)
{
Console.ForegroundColor = ConsoleColor.Green;
Console.SetWindowSize(Console.WindowWidth, 40);
Console.SetWindowSize(Console.WindowHeight, 30);
... |
using System;
using System.Collections.Generic;
namespace POSServices.Models
{
public partial class Employee
{
public Employee()
{
LoginWeb = new HashSet<LoginWeb>();
UserLogin = new HashSet<UserLogin>();
}
public int Id { get; set; }
public int... |
using System.Collections.Generic;
using Tomelt.ContentManagement;
using Tomelt.ContentManagement.MetaData;
using Tomelt.ContentManagement.MetaData.Builders;
using Tomelt.ContentManagement.MetaData.Models;
using Tomelt.ContentManagement.ViewModels;
using Tomelt.Layouts.Helpers;
namespace Tomelt.Layouts.Settings {
... |
using System.IO.Pipelines;
using SuperSocket.ProtoBase;
namespace SuperSocket.Channel
{
/// <summary>
///
/// </summary>
public interface IPipeChannel
{
Pipe In { get; }
Pipe Out { get; }
IPipelineFilter PipelineFilter { get; }
}
}
|
using Alabo.App.Asset.Withdraws.Domain.Entities;
using Alabo.Domains.Repositories;
namespace Alabo.App.Asset.Withdraws.Domain.Repositories
{
public interface IWithdrawRepository : IRepository<Withdraw, long>
{
}
} |
using System;
using System.ComponentModel.DataAnnotations;
//TODO: Add other using statements here
namespace com.Sconit.Entity.SYS
{
public partial class EntityPreference
{
#region Non O/R Mapping Properties
public enum CodeEnum
{
DefaultPageSize = 10001,
Sessio... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TinyIoC.Tests.Fakes
{
public class FakeLifetimeProvider : TinyIoC.TinyIoCContainer.ITinyIoCObjectLifetimeProvider
{
public object TheObject { get; set; }
public object GetObject()
... |
using System;
using System.Collections.Generic;
namespace KSF_Surf.Models
{
// Classes for Steam API response JSON deserialization --------------------------------
public class SteamProfile
{
public string steamid { get; set; }
public int communityvisibilitystate { get; set; }
pub... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace wsApiEPayment.Models.Openpay
{
public class VentaOP
{
public string Cantidad { get; set; }
public string Descripction { get; set; }
public string OrderId { get; set; }
//public stri... |
using System;
using System.Globalization;
using System.Collections.Generic;
using Kattis.IO;
public class Program {
public static List<edge>[] adj;
public static EdgeComparer edgeComparer;
public struct union_find {
public int[] parent;
public union_find(int n) {
parent = new i... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CSVHandler
{
class Salary : Transaction{
protected String employer = "Real Journeys Ltd";
public Salary(String transDate, String transType, double transValue,
doub... |
using GeoAPI.Geometries;
using SharpMap.UI.Forms;
namespace SharpMap.UI.Tools.Zooming
{
/// <summary>
/// Zoom In / Out using mouse wheel, or rectangle.
/// </summary>
public abstract class ZoomTool : MapTool
{
protected ZoomTool(MapControl mapControl) : base(mapControl)
{
... |
namespace SumIntegers
{
using System;
using System.Collections.Generic;
using System.Linq;
public class Startup
{
public static void Main(string[] args)
{
Console.WriteLine(Execute());
}
private static string Execute()
{
var args = C... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PropertyChanged;
using FuelRadar.Model;
namespace FuelRadar.ViewModel
{
/// <summary>
/// The viewmodel for the search result page
/// </summary>
[Im... |
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Text;
namespace MergeSort
{
public class MinAvgTwoSliceService
{
public void ConsoleRun()
{
////Array
//var array = string.Empty;
//while (array.ToLower() != "exit")
... |
using System;
using System.IO;
using Microsoft.WindowsAPICodePack.Dialogs;
using Prism.Mvvm;
using Prism.Commands;
using Prism.Interactivity.InteractionRequest;
using HabMap.CanvasModule.Models;
using Microsoft.Win32;
namespace HabMap.CanvasModule.ViewModels
{
class CanvasCreationViewModel : BindableBase, IIntera... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class GameManagement : MonoBehaviour
{
public static bool isGamePaused = false;
public Player player;
public GameObject pauseMenu;
public GameObject gameOverMenu;
public void U... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RespawnManager : MonoBehaviour
{
public GameObject[] players;
private List<GameObject> spawnPoints;
// Start is called before the first frame update
void Start()
{
FillSpawnPointsList();
}
... |
using UnityEngine;
using System;
public class AudioEffectsController : MonoBehaviour {
public GameSound[] sounds;
// Use this for initialization
void Start () {
foreach(GameSound s in sounds)
{
s.source = gameObject.AddComponent<AudioSource>();
s.source.clip = s.clip;
s.source.volume = s.volume;
s... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTestProject1
{
[TestClass]
public class Tests
{
const string folderPath = @"C:\SolutionDirectory";
[TestMethod]
public void EatComments_Test()
{
var codeCleaner = new CodeCleaner(fold... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BibleBrowserUWP
{
/// <summary>
/// Constant node names for Zefania XML markup.
/// </summary>
public static class Zefania
{
public static string NDE_BIBLEBOOK = "BIBLEBOO... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class GameManager : MonoBehaviour
{
public int crewmatesFound = 0;
public int crewmatesTotal = 5;
public Text crewmatesFoundText;
public Text... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine.EventSystems;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
using UnityEngine;
public class LoadGameButton : MonoBehaviour, IPointerClickHandler, IPointerEnterHandler, IPointerExitHandler {
public Texture highlight;
publi... |
using System.Linq;
using UcenikShuffle.Common;
using UcenikShuffle.Common.Exceptions;
using Xunit;
namespace UcenikShuffle.UnitTests.CommonTests
{
public class ParserTests
{
[Theory]
//Spaces
[InlineData("1, 2, 3", new[] { 1, 2, 3 })]
//Multiple delimiters in a row
[InlineData("5,20,,1", new[] { 5, 20, 1 ... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace Entities.DTOs.CreationDtos
{
public class RelatedPersonForCreationDto
{
public int RelatedFromId { get; set; }
public int RelatedToId { get; set; }
[MaxLength(8, E... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SocialWorld.Business.DTOs.ApplicantDtos
{
public class AddApplicantDto
{
public int UserId { get; set; }
public int JobId { get; set; }
}
}
|
using System;
using Uintra.Features.LinkPreview.Models;
namespace Uintra.Features.Comments.Models
{
public class CommentEditViewModel
{
public string UpdateElementId { get; set; }
public Guid Id { get; set; }
public string Text { get; set; }
public LinkPreviewModel LinkPreview ... |
using System.Data.Entity;
namespace Uintra.Persistence.Context
{
public abstract class IntranetDbContext : DbContext
{
protected IntranetDbContext() : this("umbracoDbDSN")
{
}
protected IntranetDbContext(string nameOrConnectionString)
: base(nameOrConnectionString)... |
using System;
namespace Crystal.Plot2D.Charts
{
/// <summary>
/// Describes axis as having ticks type.
/// Provides access to some typed properties.
/// </summary>
/// <typeparam name="T">Axis tick's type.</typeparam>
public interface ITypedAxis<T>
{
/// <summary>
/// Gets the ticks provider.
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cracking
{
class Urilify
{
public static string urilify(string str) {
int n = str.Length;
int spaces = 0;
//first pass count the blanks
... |
using System;
using System.Collections.Generic;
using System.Text;
namespace AimaTeam.WebFormLightAPI.httpCore
{
/// <summary>
/// http_service_handler.cs 调用某些函数的参数对象 add by OceanHo 2015-08-25 17:41:15
/// </summary>
public class RunHandlerEvent
{
/// <summary>
/// 获取或者设置一个值,该值表示当前... |
namespace Rhino.Mocks.Tests.FieldsProblem
{
using System;
using System.Globalization;
using System.Threading;
using Xunit;
public class FieldProblem_Henrik
{
[Fact]
public void Trying_to_mock_null_instance_should_fail_with_descriptive_error_message()
{
var culture = Thread.CurrentThread.Cur... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace GoogleMapsComponents.Maps.Data
{
public class SetPropertyEvent
{
}
}
|
using UnityEngine;
using System.Collections;
[RequireComponent(typeof(Collider2D))]
public class Lane : MonoBehaviour
{
public int LaneIndex = 0;
private Collider2D myCollider = null;
// Use this for initialization
void Start ()
{
myCollider = this.GetComponent<Collider2D>();
}
// Update... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.