text stringlengths 13 6.01M |
|---|
using System.Collections.Generic;
using Random = UnityEngine.Random;
public class KruskalMazeGenerator : MazeGenerator{
private int rows = 13, cols = 13;
private DisjointSet ds = new DisjointSet();
private bool[,] maze;
private List<((int, int), (int, int))> edges;
public override void se... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
namespace ArchsimLib
{
[DataContract(IsReference = true)]
public class DaySchedule : LibraryComponent
{
[DataMember]
public string Type = "Fraction";
[DataMe... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityStandardAssets.Characters.FirstPerson;
using DG.Tweening;
public class WallRun : MonoBehaviour
{
//public GameObject thePlayer = GameObject.Find("FPSController");
public UnityStandardAssets.Characters.FirstPerson.FirstPe... |
using UnityEngine;
using System.Collections;
public class MiniGameResults : MonoBehaviour
{
/// <summary>
/// Окно с результатами игры
/// </summary>
public UISprite spriteResults;
public UISprite spriteGoldMedal, spriteSilverMedal, spriteBronzeMedal;
public UILabel labelTimeIsOut;
/// <s... |
using System;
using System.Collections.Generic;
using System.Text;
namespace IAI_Robot_Nav
{
/// <summary> Uninform Search which expands each level one by one. </summary>
public class BOT_BreadthFirst : Robot
{
/// <summary> Tree of all nodes including the unsearched frontier. </summary>
p... |
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
using WebStore.Models;
namespace WebStore.Controllers
{
public class ItemsController : Controller
{
private ItemDB... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AcademyPopcorn
{
class GiftBlock : Block
{
private char[,] giftBody = new char[,] { { '%' } };
public GiftBlock(MatrixCoords topLeft)
: base(t... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DiaxeirisiPoiotitas
{
class Ekpaideysi
{
private string trainingObject;
private string possibleDate;
private string possibleDuration;
priva... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ObjectValidator
{
public static class PropertyValidatorExtensions
{
public static IValidator<TProperty> Validator<T, TProperty>(this IPropertyValidator<T, TProperty> @th... |
using LearningEnglishMobile.Core.Extensions;
using LearningEnglishMobile.Core.Models.Vocabulary;
using LearningEnglishMobile.Core.Services.Vocabulary;
using LearningEnglishMobile.Core.ViewModels.Base;
using LearningEnglishMobile.Core.Views;
using System;
using System.Collections.Generic;
using System.Collections.Objec... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/**
* Copyright (c) blueback
* Released under the MIT License
* https://github.com/bluebackblue/fee/blob/master/LICENSE.txt
* http://bbbproject.sakura.ne.jp/wordpress/mitlicense
* @brief テスト。
*/
/** test17
スクロール
... |
using Ghost.Extensions;
using System;
using UnityEngine;
namespace RO
{
[CustomLuaClass]
public class RectObject : MonoBehaviour
{
public Rect rect = default(Rect);
public Vector2 offset
{
get
{
return this.rect.get_center();
}
set
{
this.rect.set_center(value);
}
}
public Vect... |
using UnityEngine;
public class QuestProperty: MonoBehaviour
{
public enum DifficultyLevel {Easy, Medium, Hard}
public DifficultyLevel difficulty;
public enum ZoneLocation {Forest, Lava, Ice}
public ZoneLocation zone;
// Use this for initialization
void Start () {
}
// Update is called once ... |
using System;
using System.Linq;
using System.Web.Mvc;
using JqD.ILogic;
using JqueryDapper.ViewModels;
namespace JqueryDapper.Controllers
{
public class HomeController : Controller
{
private readonly IBlogArticleLogic _blogArticleLogic;
private const string ImagePath = "/images/LoadImages/";
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CSExercises
{
//Write a program that reads the (x,y) coordinates
//of two points. Compute the distance between the
//two points using the formula:
// Distance = Square Roo... |
// Copyright (c) 2019 SceneGate
// 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 use, copy, modify, merge, publish, dist... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Kaca_i_Zoka
{
public class Turnir
{
public enum VrstaTurnira { Grandslam, Masters, Drugi }
int godina;
String naziv;
int maxBrojPoena;
... |
namespace BuilderExample
{
public enum Farbe
{
KeineFarbe,
Rot,
Blau,
Grün,
Weiß
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EMAAR.ECM.Foundation.ORM.Models.sitecore.templates.Foundation.ECM.Base;
using EMAAR.ECM.Foundation.ORM.Models.sitecore.templates.Project.ECM.Common.Content_Types;
namespace EMAAR.ECM.Feature.SEO.I... |
using System;
using System.Linq;
using System.Web;
using AutoMapper;
using Umbraco.Core;
using Umbraco.Core.Models;
using Umbraco.Web.Models.ContentEditing;
namespace Umbraco.Web.Models.Mapping
{
/// <summary>
/// Resolves a <see cref="ContentTypeBasic"/> from the <see cref="IContent"/> item and checks if the... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Data;
using System.Windows.Markup;
namespace Grisaia.SpriteViewer.Converters ... |
using System;
using System.ComponentModel;
using System.Configuration.Install;
using System.ServiceProcess;
namespace Emanate.Service
{
[RunInstaller(true)]
public partial class ProjectInstaller : Installer
{
public ProjectInstaller()
{
AfterInstall += StartService;
... |
using System;
using Minesweeper;
using System.Diagnostics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Windows.Forms;
namespace MinesweeperTests
{
[TestClass]
public class MapBrowserFormTest
{
[TestMethod]
public void ReadLocalFilesTest()
{
MapBrows... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BiTreeTravers
{
class LowestCommonAncestorOfBinaryTree
{
static public BinaryTreeNode<string> LowestCommonAncestor(BinaryTreeNode<string> bFirst, BinaryTreeNode<string> bSecond)
{
int fi... |
using System.Collections.Generic;
using Sesi.WebsiteDaSaude.WebApi.Models;
namespace Sesi.WebsiteDaSaude.WebApi.Interfaces
{
public interface IPermissaoRepository
{
/// <summary>
/// Lista todas as permissões existentes no banco de dados.
/// </summary>
/// <returns>Lista de pem... |
namespace MoneyBack.Enums
{
public enum StockBroker
{
Santander = 0,
Etoro = 1
}
}
|
using System.Collections.Generic;
namespace MooshakPP.Models.ViewModels
{
public class CreateAdminViewModel
{
public List<ApplicationUser> allAdmins { get; set; }
public ApplicationUser currentlySelected { get; set; }
public ApplicationUser newAdmin { get; set; }
}
} |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DialogueObject : MonoBehaviour
{
public Dialogue ObjectDialogue;
public Animator curtain_animation;
public bool dialogue_triggered;
public void OnTriggerEnter(Collider other)
{
if (other.tag == "P... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data;
namespace nguoiduado.Models
{
public class ModelView
{
readonly nguoiduado_dbEntities _nguoiduadodb = new nguoiduado_dbEntities();
public nguoiduado_dbEntities nguoiduadodb
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Rhea.Business;
using Rhea.Data.Entities;
namespace Rhea.UI.Areas.Estate.Controllers
{
/// <summary>
/// 楼层控制器
/// </summary>
public class FloorController : Controller
{
... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Consola;
namespace TestCases
{
[TestClass]
public class StringTests
{
[TestMethod]
public void stringTestSmallNumber()
{
string s = "Wow Example!";
string e = "WwEapeo xml!";
long n = 1;
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public abstract class KeyCodeData : ScriptableObject
{
public abstract bool KeyDown();
public abstract bool KeyHold();
public abstract bool KeyUp();
}
|
// ----------------------------------------------------------------------------------------------------------------------------------------
// <copyright file="MessageBase.cs" company="David Eiwen">
// Copyright (c) David Eiwen. All rights reserved.
// </copyright>
// <author>David Eiwen</author>
// <summary>
// This ... |
using UnityEngine;
public class MovingCube : MonoBehaviour
{
Vector3 target;
bool canMoove = true;
public float mooveClock;
private Vector3 rayPos;
[Header("Parametres Raycast")]
[Range(-1.5f, 1.5f)]
public float OffsetY;
[Range(0f, 10f)]
public float RangeCantMove;
public bo... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Problem03AnimalHierarchy
{
class Kitten : Cat
{
public Kitten() { }
public Kitten(string name, int age):base(name, age, SexType.Female)
{
}
... |
//
// 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.Collections.Generic;
using System.Linq;
using DotNetNuke.Common;
using DotNetNuke.Common.Utilities;
using DotNetNuke.Entitie... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Reflection;
using System.Text;
using System.Windows.Forms;
using System.Speech.Recognition;
using System.Speech.Synthesis ;
namespace MapaPolitico
{
public partial cla... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QuickCollab.Session
{
public interface IConnectionRepository
{
IQueryable<Connection> GetActiveConnectionsInSession(string sessionName);
IQueryable<Connection> GetActiv... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using IES.DataBase;
using Dapper;
using IES.Resource.Model;
namespace IES.G2S.Resource.DAL
{
public class ChapterDAL
{
#region 列表
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CaseReportal.Model;
using CaseReportal.Model.Entities;
using CaseReportal.Model.Mapping;
using FluentNHibernate.Automapping;
using FluentNHibernate.Automapping.Alterations;
using FluentNHibernate.Cfg;
using FluentNHib... |
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace UWCDemo.Tests
{
public class HttpJokesUnitTests
{
public class GetJokesAsync
{
[Fact]
public async Task CanGetASingleJoke()
{
// create useless things
var... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace Umbraco.Web.Models.ContentEditing
{
[DataContract(Name = "control", Namespace = "")]
public class DashboardControl
{
[DataMember(Name = ... |
using UnityEngine;
using System.Collections;
//this script scrolls text from bottom to top of screen like movie credits and fades them in and out via alpha settings
public class ScrollerText : MonoBehaviour
{
public string[] intro;
public float off;
public float speed = 100;
GUIStyle largeFont;
public Font textFo... |
using Learn.IRepository;
using Learn.IService;
using Learn.Repository;
using Learn.Service;
using Learn.Utility._AutoMapper;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configurati... |
using System.ComponentModel.DataAnnotations;
namespace OzzIdentity.Models
{
public class AddPhoneNumberViewModel
{
[Phone]
[Required(ErrorMessageResourceType = typeof(Resources.ErrorStrings), ErrorMessageResourceName = "Required")]
[Display(ResourceType = typeof(Resources.TitleStrings)... |
using LiteDB;
namespace TomDonations.Web {
public class GuildMember {
public ObjectId Id { get; set; }
public string Name { get; set; }
public int Points { get; set; }
public GuildMember() {
}
public GuildMember(string name, int points) {
Name = name;
... |
using System;
using System.Data;
using System.Collections.Generic;
using Maticsoft.Common;
using PDTech.OA.Model;
namespace PDTech.OA.BLL
{
/// <summary>
/// 公告消息接收情况
/// </summary>
public partial class OA_MESSAGE_RECEIVER
{
private readonly PDTech.OA.DAL.OA_MESSAGE_RECEIVER dal = new PDTec... |
using AdvancedBinary;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Threading;
using System.Windows.Forms;
using TLBOT.DataManager;
using TLBOT.Optimizator;
namespace TLBOT {
static class Program {
internal static Font WordwrapFont ... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace _8x8_Bitmap_Image_Builder
{
public partial class LinkViewer : Form
{
public string... |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Xml;
using System.IO;
public class ItemDatabase : MonoBehaviour
{
public TextAsset xmlFile;
private List<Item> items = new List<Item>();
void Start()
{
ReadFile();
}
private void ReadFile()
... |
namespace _4.OpinionPoll
{
using System;
using System.Collections.Generic;
using System.Linq;
public class Startup
{
public static void Main(string[] args)
{
var listOfPerson = new List<Person>();
var numbersOfPersons = int.Parse(Console.ReadLine());
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MakeSeeThrough : MonoBehaviour
{
void Start()
{
if (GetComponent<Renderer>())
{
GetComponent<Renderer>().material.renderQueue = 3002; //set renderQueue to render after our Invisibl... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Whale.Shared.Models.ElasticModels.Statistics
{
public class UpdateStatistics
{
public Guid MeetingId { get; set; }
public string Email { get; set; }
public long SpeechTime { get; set; }
public long Pre... |
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 T22_Patrón_MVC_3
{
public partial class DB_Manager : Form
{
public DB_Manager(... |
using System.Threading.Tasks;
using CurrencySaver.ExternalQueries.Dtos;
using CurrencySaver.Utils;
namespace CurrencySaver.ExternalQueries
{
public class ExternalCurrencyQuery
{
private const string Url = "https://www.cbr-xml-daily.ru/daily_json.js";
public ExternalCurrencies GetAll()
... |
namespace PicoShelter_DesktopApp.Services.AppSettings.Enums
{
public enum LifetimeOptions
{
LIFETIME = 0,
HOUR_1 = 1,
HOUR_24 = 24,
WEEK = 168,
MONTH = 720
}
}
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
public class SetUpLocalPlayer : NetworkBehaviour {
//[SyncVar]
//public string pname = "player";
public GameObject name;
public GameObject Cabeza;
public GameObject Colisioncuchillo;
public GameObject c... |
// *** WARNING: this file was generated by pulumigen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.Kubernetes.Types.Ou... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Library
{
class Library : ILibrary
{
public Library()
{
books = new List<Book>();
books.Add(new Book { BookName = "Bilbo", Author = "Tolkin" })... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.Windows.Input;
namespace alpha
{
/// <summary>
/// View/ViewModel used as a global Indexer for the other Views and ViewModels
/// </summary>
public class IndexViewModel : BaseViewModel
{
/... |
using Application.Common.Extensions;
using Application.Common.Interfaces;
using Application.Common.Models;
using Infrastructure.Auth.Models;
using Infrastructure.Identity.Models;
using Infrastructure.Persistence;
using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Optio... |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
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.Me... |
using Rsx = MyCashFlow.Resources.Localization.Views.Shared._Shared;
using System.ComponentModel.DataAnnotations;
namespace MyCashFlow.Web.ViewModels.Shared
{
public abstract class BaseViewModel
{
public BaseViewModel(string title, string header)
{
Title = title;
Header = header;
Create = Rsx.Label_Crea... |
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft... |
using System.Collections.Generic;
using System.Web.Mvc;
using X.PagedList;
public class Student
{
public int Id { get; set; }
public string Name { get; set; }
public string Email { get; set; }
}
List<Student> students = PrepareStudents();
public ActionResult Index(int?... |
using System;
using System.IO.Ports;
using System.Windows.Forms;
namespace SerialPortRpi
{
public partial class Form1 : Form
{
string selectedCOMPort = "";
public Form1()
{
InitializeComponent();
}
private void panel2_MouseClick(object sender, MouseEventArg... |
using FindSelf.Domain.Entities.UserAggregate;
using FindSelf.Domain.Repositories;
using FindSelf.Infrastructure.Database;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FindSelf.Infrastructure.Repositor... |
using UnityEngine;
namespace Scripts.Inputs
{
public class InputHandler : MonoBehaviour
{
public bool GetMousePress()
{
if (Input.GetMouseButtonDown(0))
return true;
else
return false;
}
}
} |
using System;
using System.Linq;
namespace HoloalphabeticSentence{
public class HoloalphabeticSentence{
public static bool IsHoloalphabeticSentence(string input, string alphabets = "abcdefghijklmnopqrstuvwxyz"){
bool[] check = new bool[26]; // For checking 26 letters
int len... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using WorldHardestGame.Core;
using System.IO;
using System.Diagnostics;
using System.Linq;
namespace WorldHardestGame.Test
{
[TestClass]
public class UnitTest1
{
private Map Map0;
private Map InitializeMap()
{
using va... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using GameFramework;
using System;
public class TestUI : MonoBehaviour {
const string asb = "Tests/UIManagerTest";
private GameUIManager mMgr;
bool hasInit = false;
void Awake()
{
mMgr = GameUIManager.Instance;... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace LearningEnglishMobile.Core.Services.Settings
{
public interface ISettingsService
{
string AuthAccessToken { get; set; }
string AuthIdToken { get; set; }
bool GetValueOrDefault(st... |
using Newtonsoft.Json;
namespace IndependienteStaFe.Models
{
public class TermConds
{
[JsonProperty("status")]
public string Status { get; set; }
[JsonProperty("message")]
public string Message { get; set; }
[JsonProperty("data")]
public Data[] data { get; set; ... |
using OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities;
namespace OmniSharp.Extensions.LanguageServer.Protocol
{
public interface IRegistration<out TOptions, in TCapability>
where TOptions : class
where TCapability : ICapability
{
TOptions GetRegistrationOptions(TCapabil... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PayRoll.BLL
{
public class HoldMethod : PaymentMethod
{
public void Pay(PayCheck payCheck)
{
payCheck.SetField("Disposition", "Hold");
}
}
}
|
using LuaInterface;
using SLua;
using System;
public class Lua_UnityEngine_ProceduralCacheSize : LuaObject
{
public static void reg(IntPtr l)
{
LuaObject.getEnumTable(l, "UnityEngine.ProceduralCacheSize");
LuaObject.addMember(l, 0, "Tiny");
LuaObject.addMember(l, 1, "Medium");
LuaObject.addMember(l, 2, "Heav... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ECSTest : MonoBehaviour
{
void OnFinish(AsyncOperation req)
{
AssetBundleCreateRequest abcreq = req as AssetBundleCreateRequest;
var ab = abcreq.assetBundle;
if (ab == null)
... |
using System.Xml.Linq;
using PlatformRacing3.Common.Level;
using PlatformRacing3.Web.Controllers.DataAccess2.Procedures.Exceptions;
using PlatformRacing3.Web.Extensions;
using PlatformRacing3.Web.Responses;
using PlatformRacing3.Web.Responses.Procedures;
namespace PlatformRacing3.Web.Controllers.DataAccess2.Procedure... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RotationScript_Oliver : MonoBehaviour
{
Rigidbody rb;
float rotateSpeed = 5f;
float pushForce = 100f;
private bool canDrop = true;
string[] canRotateTag = { "Block" };
bool canRotate = false;
//Ar... |
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
/// <summary>
/// Controls the introduction sequence in a new game
/// </summary>
public class IntroController : MonoBehaviour {
/// <summary>
/// The audio source GameObject.
/// </summary>
public AudioSource aud... |
//
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
//
using DotNetNuke.ComponentModel;
using DotNetNuke.Entities.Portals;
using DotNetNuke.Entities.Users;
namespace Dnn.PersonaBar.Library.Security
{
publ... |
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Diagnostics;
using System.Linq;
using System.Security.Policy;
using System.Text;
using BPiaoBao.AppServices.ConsoContracts.SystemSetting.DataObjects;
using BPiaoBao.AppServices.Contracts.DomesticTicket;
using BPiaoBao.AppServices.Da... |
using Student.Model;
using Student.Service;
using Student.Service.interfaces;
namespace Student.Repository.interfaces
{
public class ClassService : EntityService<Classes>, IClassService
{
IUnitOfWork _unitOfWork;
IClassRepository _classRepository;
public ClassService(IUnitOfWork unitOf... |
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Mail;
using System.Threading.Tasks;
using System.Web;
using System.Web.Http;
namespace EmailSMSCommunication.Controllers
{
[RoutePrefix("ApiCont... |
using System.Collections.Generic;
using UnityEngine;
public class RootUI : MonoBehaviour
{
[SerializeField]
Transform dialogsRoot;
Dictionary<string, BaseDialog> dialogs = new Dictionary<string, BaseDialog>();
public T AddDialog<T>(string dialogPath) where T : BaseDialog
{
GameObject prefab = Resources.Load<G... |
using System;
public static class AlgorithmForBubbleSort
{
public static void BubbleSort(float[] s)
{
if (s != null && s.Length > 0)
{
for (int i = 0; i < s.Length - 1; i++)
{
for (int j = 1; j < s.Length - i; j++)
{
if (s[j - 1] > s[j])
{
s[j - 1] = -s[j - 1] + s[j];
s[j] = -... |
using _2C2PAssignment.Business.Dtos;
using _2C2PAssignment.Business.Helper;
using _2C2PAssignment.Business.Validator;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _2C2PAssignment.Tests.Validators
{
[TestFixture... |
namespace Build.Bootstrapping
{
public class GeneratorResult
{
#region Public Properties
public GeneratorResultCode ResultCode { get; set; }
#endregion
}
} |
using Hybrid.Extensions;
using System;
using System.Linq;
namespace Hybrid.Data
{
/// <summary>
/// 业务操作结果信息类,对操作结果进行封装
/// </summary>
public class OperationResult : OperationResult<object>
{
static OperationResult()
{
Success = new OperationResult(OperationResultCode.... |
using UnityEngine;
namespace CanYouCount
{
public class PregameScreen : BaseScreen
{
}
}
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Timer
{
public float currentTime { get; private set; } = 0.0f;
public float limitTime { get; private set; } = 0.0f;
public Timer()
{
limitTime = 1.0f;
Initialize();
}
public Timer(floa... |
using System;
namespace Soduku
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Solving a Sudoku!");
Console.WriteLine("-----------------");
new Sudoku().Solve();
Console.ReadLine();
}
}
}
|
using Autofac;
using IO2.Model;
namespace IO2
{
public static class IoCKernel
{
public static Autofac.IContainer Container { get; set; }
static IoCKernel()
{
var builder = new ContainerBuilder();
builder.RegisterType<JsonNoteRepository>().AsImplementedInterface... |
using Hybrid.EventBus;
using Hybrid.EventBus.Abstractions;
using Hybrid.RabbitMQ;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using RabbitMQ.Client;
namespace Microsoft.Extensions.DependencyInjection
{
/// <summary>
/// 通过IOC创建单例的RabbitMQ的客户端
/// </summary>
public s... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Options : MonoBehaviour {
public UnityEngine.UI.Slider efects;
public UnityEngine.UI.Slider music;
public UnityEngine.UI.Slider voice;
public UnityEngine.UI.Toggle blood;
float efectos;
float musica;
float voz;
flo... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using TicketShopProject.Data.Interfaces;
using TicketShopProject.Data.Models;
namespace TicketShopProject.Data.Mocks
{
public class MockCategoryRepository : ICategoryRepository // maybe small spelling will cause a pro... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
#nullable disable
namespace BillingEnd.Models
{
public partial class Pedido
{
public int Id { get; set; }
public decimal? Medida { get; set; }
public string Marca { get; set; }
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SS.Service
{
public class RouteConfig
{
static Dictionary<string, ChainBuilder> DicBuilder;
public static ChainBuilder FindBuilder(string RouteKey)
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace UnityEngineExtended
{
public static class ComponentExtension
{
public static GameObject GetObjectWithTagInParent(this Component component, string tag)
{
return compone... |
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using MonoGame.Extended.Shapes;
namespace MonoGame.Extended.Collisions
{
public class CollisionWorld : IDisposable, IUpdate
{
public CollisionWorld(Vector2 gravity)
{
_gravity = gravity;
_acto... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.