text stringlengths 13 6.01M |
|---|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Enemy : MonoBehaviour
{
public float startHealth = 100;
private float health;
public float amount;
public GameObject deathEffect;
public Image healthBar;
// Start is called befo... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace ChatBot.Models
{
public class Courses
{
public int id { get; set; }
[Display(Name = "Course Id")]
public string number { get; set; }
[Di... |
public static class PvpHandle
{
public static bool ParseUserList(byte[] msg_, int msgLen_)
{
return true;
}
public static bool ParseCreateUserRet(byte[] msg_, int msgLen_)
{
return true;
}
public static bool ParseUserBaseData(byte[] msg_, int msgLen_)
{
return... |
using System.Collections.Generic;
using Merchello.UkFest.Web.Ditto.ValueResolvers;
using Our.Umbraco.Ditto;
namespace Merchello.UkFest.Web.Models.Category
{
public class CategoryTree
{
/// <summary>
/// Gets or sets the items.
/// </summary>
[DittoValueResolver(typeof(CategoryT... |
using System;
/*
编写一个抽象排序类,定义排序方法,接收一个数组,返回排序后的数组并输出:
定义两个对抽象类的继承类,实现两种不同的排序方法;
在主函数中分别调用两个类的方法对数组进行排序;
*/
namespace Ex3
{
class Program
{
static void Main(string[] args)
{
int[] arrNum = Init();
// 调用第一个排序类
ArraySort1 arrSort1 = new ArraySort1();
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BonusAreaInfo : MonoBehaviour
{
const bool IsBonus = true;
public int AreaNumber;
public List<StageInfo> StageInfos = new List<StageInfo>();
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DSSCriterias.Logic
{
public class ReportExcel : Report
{
public ReportExcel(IStatGame matrix) : base(matrix)
{
}
public override void Create()
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class InteractionScript
{
public InputActionScript inputAction;
[TextArea]
public string textResponse;
public ActionResponseScript actionResponse;
}
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour
{
private float _speed = 15;
private Vector3 _direction = Vector3.zero;
private void Update()
{
_direction.x = -Input.GetAxis("Horizontal");
_direction.z = -In... |
using Foundation;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using CoreGraphics;
using UIKit;
namespace ResidentAppCross.iOS
{
public partial class VerticalCollectionSection : SectionViewBase
{
public VerticalCollectionSection (IntPtr handle) : base (handle)
{
}
public Vertica... |
/*
******************************************************************************
* @file : Program.cs
* @Copyright: ViewTool
* @Revision : ver 1.0
* @Date : 2015/02/13 10:57
* @brief : Program demo
******************************************************************************
* @attentio... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Terraria.ModLoader;
namespace StarlightRiver.Codex.Entries
{
class StaminaEntry : CodexEntry
{
public StaminaEntry()
{
Category = (int)Categories.Misc;
... |
using System.Collections.Generic;
using System.Linq;
using Uintra.Features.Permissions.Interfaces;
using Uintra.Features.Permissions.Models;
using Uintra.Infrastructure.Caching;
using Uintra.Infrastructure.Extensions;
using Umbraco.Core.Logging;
using Umbraco.Core.Models;
using Umbraco.Core.Services;
namespace Uintra... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WritingPlatformCore.Entities
{
public class CatalogLanguage
{
public string Language { get; private set; }
public CatalogLanguage(string language)
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
namespace AracKiralama
{
public partial class Yonetici : System.Web.UI.Page
{
database bgl = new database();
string id = "";
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class MainMenu : MonoBehaviour {
GameObject previousPage;
GameObject currentPage;
public void StartGame()
{
GameObject levelPicker = GameObject.Find ("Canvas").t... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RoutingControllerBeta
{
class AddressBook
{
List<Address> addresses;
public AddressBook()
{
addresses = new List<Address>();
... |
using System;
using System.Collections.Generic;
using System.Text;
namespace _03.Mankind
{
public class Worker : Person
{
private double weekSalary;
private double workHoursPerDay;
public Worker(string firstName, string secondName, double weekSalary, double workHoursPerDay)
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace TestProject.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
ViewBag.Message = "Modify this template to jump-start your A S P.... |
using BaseLib.IO;
using BaseLib.Threading;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
namespace BaseLib.Media.Audio
{
public class Mixer : IMixer
{
class streaminf
{
public int channels;
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Lazer : MonoBehaviour
{
static public Lazer instance;
public GameObject LinePrefab;
float maxStepDistance = 20;
List<WhiteBall> lasers = new List<WhiteBall>();
List<GameObject> lines = new List<GameObjec... |
using UnityEngine;
public abstract class UnitySingleton<T> : MonoBehaviour
where T : UnitySingleton<T>
{
static T m_instance;
public static T Instance
{
get
{
return m_instance;
}
}
void Awake()
{
m_instance = (T)this;
}
} |
using System;
using System.Collections.Generic;
namespace DemoApp.Entities
{
public partial class SchoolStaffSubjects
{
public Guid Id { get; set; }
public Guid? StaffId { get; set; }
public Guid? SubjectId { get; set; }
public Guid? ClassId { get; set; }
public DateTim... |
using Alabo.Data.People.BranchCompanies.Domain.Entities;
using Alabo.Data.People.BranchCompanies.Domain.Services;
using Alabo.Framework.Core.WebApis.Controller;
using Alabo.Framework.Core.WebApis.Filter;
using Microsoft.AspNetCore.Mvc;
using MongoDB.Bson;
namespace Alabo.Data.People.BranchCompanies.Controllers
{
[... |
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace StarlightRiver.Projectiles.WeaponProjectiles
{
public class PHImplosion : ModProjectile
{
public override void SetDefaults()
{
projectile.width = 2;
proje... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
using Otiport.API.Contract.Request.Medicines;
using Otiport.API.Helpers;
using Otiport.API.Services;
namespace Otiport.API.Controllers
... |
// Copyright © 2020 Void-Intelligence All Rights Reserved.
using Nomad.Core;
namespace Vortex.Normalization.Utility
{
public abstract class BaseNormalization : INormalization
{
public abstract Matrix Normalize(Matrix input);
public abstract ENormalizationType Type();
}
}
|
using UnityEngine;
public class vButton : MonoBehaviour
{
public int btnIndex;
} |
namespace Sentry;
public readonly partial struct MeasurementUnit
{
/// <summary>
/// A fraction unit
/// </summary>
/// <seealso href="https://getsentry.github.io/relay/relay_metrics/enum.FractionUnit.html"/>
public enum Fraction
{
/// <summary>
/// Floating point fraction of 1.... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RTreeCodeApproach
{
public class Search
{
private int distanceCalculated = 0;
//Calculates the minimum distance from a point... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp7
{
class Program
{
static void Main(string[] args)
{
double salario, aumento, resultado;
Console.Write("salario: ");
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// Clase se encarga de la camara en la escena de juego.
/// Fue creada a partir de una clase tomada como referencia.
/// Brackeys,"MULTIPLE TARGET CAMERA in Unity", Youtube, 17-Dec-2017.[Online].Available: https://www.youtu... |
using Newtonsoft.Json;
using System.Collections.Generic;
namespace Intelecom.SmsGateway.Client.Models
{
/// <summary>
/// Settings.
/// </summary>
public class Settings
{
/// <summary>
/// Uses service value unless specified.
/// Used to prioritize between messages sent fr... |
using System.Collections.Generic;
namespace Restaurants.Domain
{
public interface IMenuService : IServiceBase<Menu>
{
List<Menu> GetMenuByRestaurant(int idRestaurant);
}
}
|
using System;
using System.Collections.Generic;
using Hl7.Fhir.Support;
using System.Xml.Linq;
/*
Copyright (c) 2011-2012, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Re... |
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace NumbersToWords.Tests
{
[TestClass]
public class UnitsConverter_Tests
{
[TestMethod]
public void Given_I_Have_A_Value_Of_1_The_Value_Returned_Should_Be_One()
{
// Given I have a value of 1
... |
using Framework.Core.Common;
using Tests.Data.Van.Input;
using OpenQA.Selenium;
using Tests.Pages.Van.Main.Common;
using Tests.Pages.Van.Main.LiveCallsCampaign;
namespace Tests.Pages.Van.Main.LiveCallsCampaign
{
public class LiveCallsWizard :VanBasePage
{
#region Element Declarations
... |
using AddressBook.Infrastructure.Domain;
using Microsoft.EntityFrameworkCore;
using System;
using System.Linq;
using System.Threading.Tasks;
namespace AddressBook.Repository.Extensions
{
public static class QueryableExtensions
{
public static async Task<PaginationResult<T>> GetPagedResultAsync<T>(
... |
using System;
using System.Collections.Generic;
using System.Text;
using DBDiff.Schema.Model;
namespace DBDiff.Schema.SQLServer2000.Model
{
/// <summary>
/// Clase de constraints de Columnas (Default Constraint y Check Constraint)
/// </summary>
public class ColumnConstraint:SchemaBase
{
pr... |
using System.ComponentModel;
using Android.Graphics;
using Android.Text;
using Android.Views;
using Android.App;
using Android.Content;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
using CustomXamarinControls;
using CustomXamarinControls.Droid;
[assembly: ExportRenderer(typeof(LabelStrike... |
using Microsoft.VisualBasic;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataLayer;
using Wpro.GSM.TelerikUI;
using Busines... |
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 NsWF
{
public partial class Form1 : Form
{
public Form1()
{
... |
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Crawler
{
public interface ISimpleWebCrawler
{
Task<CrawlResult> PerformCrawlingAsync(IEnumerable<string> rootUrls);
}
}
|
using Sentry.Extensibility;
using Sentry.Internal;
namespace Sentry;
/// <summary>
/// Special HTTP message handler that can be used to propagate Sentry headers and other contextual information.
/// </summary>
public class SentryGraphQLHttpMessageHandler : SentryMessageHandler
{
private readonly IHub _hub;
pr... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FloaterController : Projectile {
protected bool hasPerched;
protected bool isSlowing;
protected float correctingForce = 5f;
protected float speedBeforePerch;
protected Vector2 velocityBeforeP... |
/*
* ClassName: tblAktenIntPosSet
* Author: Blade
* Date Created: 02/22/2011
* Description: Contains a list of tblAktenIntPos records
*/
using System.Data.SqlClient;
using System.Data;
using System.Collections;
using System.Text;
using MySql.Data.MySqlClient;
using System;
using System.Refl... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace tools
{
public class log
{
public static object locker = new object();
static System.IO.FileInfo file; static StreamWriter sw;static FileStream stream;
static string Appl... |
using System;
using System.Collections.Generic;
namespace Euler_Logic.Problems.AdventOfCode.Y2018 {
public class Problem11 : AdventOfCodeBase {
public override string ProblemName {
get { return "Advent of Code 2018: 11"; }
}
public override string GetAnswer() {
ret... |
using System;
using SharpArch.Domain.DomainModel;
namespace Profiling2.Domain.Prf.Events
{
/// <summary>
/// A record of when an Event has been looked over and approved by a user.
/// </summary>
public class EventApproval : Entity
{
public virtual Event Event { get; set; }
public v... |
using Microsoft.Office.Interop;
using Microsoft.Office.Interop.Excel;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Data.OleDb;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
using System... |
using System;
using Uintra.Core.Member.Models;
using Uintra.Features.Links.Models;
namespace Uintra.Features.Groups.Models
{
public class GroupViewModel
{
public Guid Id { get; set; }
public bool HasImage { get; set; }
public UintraLinkModel GroupUrl { get; set; }
public string... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.Data;
using System.Collections;
namespace CRL.Order
{
/// <summary>
/// 订单维护
/// </summary>
public class OrderAction<TType> : BaseAction<TType, IOrder> where TType:class
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UseFul.ClientApi.Dtos
{
public class SolicitacoesVagasDto
{
public int IdSolicitacao { get; set; }
public int IdPessoa { get; set; }
public int IdVeiculo { get;... |
using System.Collections.Generic;
namespace Titan.Util
{
public class Cooldown
{
public static Dictionary<uint, Cooldown> Cooldowns = new Dictionary<uint, Cooldown>();
public string Reason;
public bool Permanent;
public Cooldown(uint penalty, string reason, bool perm... |
public class Solution {
public bool SearchMatrix(int[][] matrix, int target) {
int m = matrix.Length, n = matrix[0].Length;
int left = 0, right = m - 1, rowIdx;
while (left + 1 < right) {
int mid = (right - left) / 2 + left;
if (matrix[m... |
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
/*
*
[23:43] Riccardoric: Bem vindo ao
reverse the plague
Obrigado testar nosso jogo!
[23:44] Riccardoric: Nesse jogo é necessário ter cautela
você é o governador de uma grande região
que foi infectada por um vírus...
[... |
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 Kingdee.CAPP.Model;
using Kingdee.CAPP.BLL;
namespace Kingdee.CAPP.UI.ProcessDesign
{
public partial class AddProcessPlannin... |
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
// ReSharper disable ForeachCanBeConvertedToQueryUsingAnotherGetEnumerator
// ReSharper disable InvertIf
// ReSharper disable LoopCanBeConvertedToQuery
// ReSharper disable MemberCanBePrivate.Global
// ReSharper d... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using Predictr.Data;
using Predictr.Mod... |
using System;
using System.Drawing;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using System.Linq;
using MonoTouch.CoreGraphics;
namespace Screenmedia.IFTTT.JazzHands
{
public class FrameAnimation : Animation
{
public FrameAnimation(UIView view) : base(view)
{
}
public overri... |
using Sudoku.Services.Business;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Sudoku.Models
{
public class FullBoard
{
public List<Cell> GameBoard{ get; set; }
public int BoardNumber { get; set; }
public PuzzleStatus Status { get; set; }... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml;
using AlphaSolutions.SitecoreCms.ExtendedCRMProvider.Common;
using CRMSecurityProvider.Caching;
using CRMSecurityProvider.Configuration;
using CRMSecurityProvider.Repository;
using CRMSecurityProvid... |
using EddiCompanionAppService.Exceptions;
using Newtonsoft.Json.Linq;
using System;
using Utilities;
namespace EddiCompanionAppService.Endpoints
{
public class ProfileEndpoint : Endpoint
{
private const string PROFILE_URL = "/profile";
// We cache the profile to avoid spamming the service
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace BearerTokenAuthenticationSample.Models
{
public class InstanceModel
{
public int Version { get; set; }
public bool ShareSettings { get; set; }
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Euler_Logic.Problems.AdventOfCode.Y2022 {
public class Problem21 : AdventOfCodeBase {
public override string ProblemName => "Advent of Code 2022: 21";
public override string GetAnswer() {
return GetAnswer(Inp... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(Camera))]
public class expendableCamControl : MonoBehaviour
{
private Camera m_cam;
[SerializeField] private GameObject m_player;
[SerializeField] private Vector3 m_offset;
void Awake() {
m... |
using University.Data;
using University.Service.Interface;
using University.UI.Areas.Admin.Models;
using University.UI.Controllers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace IPSU.Web.Areas.Admin.Controllers
{
public class VideoController :... |
using System.Collections.Generic;
using Tails_Of_Joy.Models;
namespace Tails_Of_Joy.Repositories
{
public interface IAdoptionRepository
{
void Add(Adoption adoption);
void Delete(int id);
Adoption GetById(int id);
List<Adoption> GetAllAdoptionsByUserProfileId(int id);
L... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Task2_ConvertToBinary
{
/// <summary>
/// Class for work with user
/// </summary>
class Input
{
public uint UserInput { get; set; }
/// <summary>
//... |
using BattleEngine.Actors;
using BattleEngine.Utils;
namespace BattleEngine.Engine
{
public class BattleTransform
{
private BattleObject _battleObject;
private double _x;
private double _y;
private double _z;
public BattleTransform(BattleObject battleObject)
{
... |
using System;
using System.Linq;
namespace calc {
public static class Input {
public static bool CheckInput(string[] args) {
var equalsCount = 0; // only one equal sign
var variableCount = 0; // needs at least one variable
var wasNumber = false; // checks if the previou... |
/*
* Создано в SharpDevelop.
* Пользователь: vlunev
* Дата: 03.06.2016
* Время: 15:29
*/
using System;
using System.Text.RegularExpressions;
using System.IO;
namespace Worker
{
/// <summary>
/// Класс содержит настройки переименования для ListItemClass
/// </summary>
public class CRename
{
public int iOpt... |
/*
* Factory that builds roles based on raw manual string.
* What a horrible way to do this!
* Copyright (c) Yulo Leake 2016
*/
using System;
namespace Deadwood.Model.Factories
{
class RawRoleFactory : IRoleFactory
{
// Singleton Constructor
private static IRoleFactory instance = null... |
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Piovra.Data;
public interface IUnitOfWork : IDisposable, IAsyncDisposable {
Task<int> Commit(CancellationToken cancellationToken = default);
}
|
using Database;
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Configuration;
namespace TestDBCalls
{
class Program
{
static void Main(string[] args)
{
}
}
}
|
using UnityEngine;
[CreateAssetMenu(fileName = "Buildable", menuName = "MS49/Buildable/Buildable Fog", order = 1)]
public class BuildableFog : BuildableBase {
public override bool isValidLocation(World world, Position pos, Rotation rotation) {
return !world.isCoveredByFog(pos);
}
public override... |
// Dynamic Programming
/**
* Definition for a binary tree node.
* public class TreeNode {
* public int val;
* public TreeNode left;
* public TreeNode right;
* public TreeNode(int x) { val = x; }
* }
*/
public class Solution {
public IList<TreeNode> GenerateTrees(int n) {
List<List<T... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ZY.OA.IBLL;
using ZY.OA.Model;
using ZY.OA.Model.Enum;
using ZY.OA.Model.SearchModel;
namespace ZY.OA.UI.PortalNew.Controllers
{
public class RoleInfoController : BaseController
{
public IR... |
using System.Threading.Tasks;
using System.Web.Http;
using Appmon.Dashboard.Models;
using Newtonsoft.Json;
namespace Appmon.Dashboard.Controllers
{
public class HealthCheckController : ApiController
{
public HealthCheckResults Get()
{
return (HealthCheckResults)JsonConvert.Deserial... |
using System;
using System.Xml.Serialization;
using Newtonsoft.Json;
namespace NeuroLinker.Models
{
/// <summary>
/// Anime information entry for the user`s anime list
/// </summary>
[Serializable]
[XmlRoot("anime")]
public class UserListAnime
{
#region Properties
/// <sum... |
using System;
using System.Windows.Input;
using TripLog.Models;
using TripLog.Services;
using Xamarin.Forms;
namespace TripLog.ViewModels
{
public class DetailPageViewModel : ViewModelBase
{
private TripLogEntry entry;
public TripLogEntry Entry
{
get
{
... |
using UnityEngine;
using System.Collections;
public class Layers
{
public const int Block = 10;
public const int Missile = 11;
public const int BluTeam = 9;
public const int RedTeam = 8;
}
|
using UnityEngine;
using System.Collections;
public class CheckPoint : MonoBehaviour {
//Variables
private PlayerStates playerStates;
private SaveSystem saveManager;
//private PlayerPrefs save;
void Awake() {
playerStates = GameObject.FindWithTag("Player").GetComponent<PlayerStates>();
saveManager = GameObje... |
using System;
using System.Diagnostics;
using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using ZipLib.Enums;
using ZipLib.Ext;
namespace MSNetZipTests
{
[TestClass]
public class BasicTests
{
[TestMethod]
public void CanRun_MSNetTest_True()
{
Assert.IsTrue(true); /* Sanity c... |
using System;
using System.ComponentModel.DataAnnotations;
namespace com.Sconit.Entity.CUST
{
[Serializable]
public partial class ProductLineMap : EntityBase
{
#region O/R Mapping Properties
[Required(AllowEmptyStrings = false, ErrorMessageResourceName = "Errors_Common_FieldRequired", Error... |
// Copyright (c) 2020, mParticle, Inc
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace SoftwareAuthKeyLoader
{
internal static class Network
{
public static IPAddress ParseIpAddress(string ipAddress)
... |
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 Flipcards.DataAccess;
using FlipCards.Models;
namespace Flipcards
{
public partial class EditC... |
namespace BDTest.Attributes;
internal class EnumOrderAttribute : Attribute
{
internal readonly int Order;
internal EnumOrderAttribute(int order)
{
Order = order;
}
} |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public abstract class ActorState<Data> : BaseState where Data : ActorStateData
{
protected Data data;
public ActorState(Data characterData) : base(characterData.StateM)
{
data = characterData;
}
... |
namespace DesignPatterns.Creational.Builder
{
public class CoffeeAssembly
{
public void Assemble(CoffeeBuilder coffeeBuilder)
{
coffeeBuilder.Flavor();
coffeeBuilder.Milk();
coffeeBuilder.Size();
coffeeBuilder.Sweetener();
}
... |
using Mono.Options;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VerbiLib.ParserV1;
using VerbiLib.Phraser;
namespace VerbiConsole
{
class Program
{
static void Main(s... |
using System;
using System.Drawing;
using System.Windows.Forms;
using System.IO;
namespace FileBackupper
{
public partial class frmPreferences : Form
{
public frmPreferences()
{
InitializeComponent();
rbYes.CheckedChanged += new EventHandler(RadioButtonsOverwr_CheckedCh... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using lsc.Dal;
using lsc.Model;
namespace lsc.Bll
{
public class UserAnswerBll
{
public async Task<int> AddAsync(UserAnswer userAnswer)
{
return await UserAnswerDal.Ins.AddAsync(userAns... |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;
using System.IO;
using System.Text;
using LitJson;
public class JsonData
{
public eMsgID MsgID;
public virtual byte[] Pack()
{
return new []{(byte)MsgID};
}
public JsonData(eMsgID id)
{
... |
using HomeAutomation.Model.DoorSwitchReading;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HomeAutomation.DAL;
namespace HomeAutomation.DAL.DoorSwitch
{
public class DoorSwitch
{
static List<DoorSwitchDTO> _doorSwitchItems;
... |
using FifthBot.Resources.Datatypes;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace FifthBot.Resources.Helpers
{
public static class HelperMethods
{
public static void LoadSettings()
{
string JSON = "";
... |
using Alabo.Data.Things.Orders.Domain.Entities;
using Alabo.Data.Things.Orders.ResultModel;
using Alabo.Domains.Repositories;
using System.Collections.Generic;
namespace Alabo.Data.Things.Orders.Domain.Repositories
{
/// <summary>
/// 分润订单
/// </summary>
public interface IShareOrderRepository : IR... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Threading;
using System.Timers;
using System.IO;
using RakNet;
namespace SwigTestApp
{
class TestMain
{
static void Main(string[] args)
{
if (!File.Exists("R... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.IO;
namespace Pair_Programming_Exercises
{
class Program
{
struct ValuePair
{
public string Title;
public string Contents;
public Value... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.