text stringlengths 13 6.01M |
|---|
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace CleverDomeCommon
{
public static class StreamBuilder
{
private const string separator = "-----------------------------41184676334";
public static Stream Build(Stream data, string ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WordCounterAPI.Helpers;
namespace _5_2_2019.Models.Interfaces
{
public class FileBase : IFile
{
public string FileUrl { get => throw new NotImplementedException(); set => throw new NotImplementedExce... |
/********************************************************************
* FulcrumWeb RAD Framework - Fulcrum of your business *
* Copyright (c) 2002-2010 FulcrumWeb, ALL RIGHTS RESERVED *
* *
* THE SOURCE CODE CONTAINED WITHIN THI... |
/*
* Bungie.Net API
*
* These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality.
*
* OpenAPI spec version: 2.1.1
* Contact: support@bungie.com
* Generated by: https://github.com... |
using FastSQL.Sync.Core.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace FastSQL.App.ViewModels
{
public class DependencyItemView... |
using Paint.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Paint.Data.Interface
{
public interface IPartLogRepository
{
void Save(ref PartLog model);
IEnumerable<PartLog> GetByBarcode(long barcodeId);... |
using FastSQL.Core;
using System;
using System.Collections.Generic;
using System.Text;
namespace FastSQL.Sync.Core.Transformers
{
public abstract class BaseTransformer: ITransformer
{
protected readonly IOptionManager OptionManager;
public BaseTransformer(IOptionManager optionManag... |
public enum GameState
{
Start,
Playing,
Dead
}
|
using System.Collections.Generic;
namespace HaloSharp.Model.Stats.CarnageReport.Common
{
public interface IPlayer : IBasePlayerStat
{
List<OpponentDetails> KilledByOpponentDetails { get; set; }
List<OpponentDetails> KilledOpponentDetails { get; set; }
}
}
|
using System;
using System.Collections.Generic;
using System.Text;
using GrandCloud.CS.Util;
namespace GrandCloud.CS.Model
{
/// <summary>
/// The CompleteMultipartUploadResponse contains all the information about the
/// CompleteMultipartUpload method.
/// </summary>
public class C... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TamagotchiBL.Models
{
public partial class Function
{
public override string ToString()
{
if (this.FunctionOfNavigation == null)
return this.FunctionName;
ret... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace PaganComputers.Controllers
{
public class TutorialsController : Controller
{
public ActionResult Index()
{
ViewBag.Title = "Tutorials";
ViewBag.Message =... |
using gufi.webAPI.Contexts;
using gufi.webAPI.Domains;
using gufi.webAPI.Interfaces;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace gufi.webAPI.Repositories
{
public class EventoRepository : IEventoRepository
{
... |
namespace AvaloniaDemo.Models.Tools
{
public class Tool8
{
}
}
|
using System;
using System.Collections.Generic;
using System.Web;
namespace Ws2008.Common
{
public class JsMsgHelper
{
public static void JsMsg(string msg)
{
HttpContext.Current.Response.Write("<script>alert('" + msg + "')</script>");
}
public static void JsMsg(string ... |
using UnityEditor;
using UnityEngine;
class RenderingPluginOptions
{
[MenuItem("Rendering Plugin/Mesh")]
private static void Apply ()
{
string path = EditorUtility.OpenFilePanel(
"Choose mesh to render",
"/Assets/Meshes",
"obj");
Debug.Log("Path:" + path);
GameObj... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using CallCenter.Client.SqlStorage.Entities;
using CallCenter.Common.DataContracts;
using CallCenter.Common.Entities;
using CallCenterRepository.Controllers;
using NHibernate;
namespace CallCenter.Client.SqlStorage.C... |
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PlankCooking.Models {
public partial class Category {
[Key]
public int CategoryID { get; set; }
[ForeignKey("WebsiteID")]
public Website Website { get; set; }
... |
using System.Collections;
using System.Collections.Generic;
using FMOD.Studio;
using Managers;
using UnityEngine;
using FMODUnity;
using UnityEngine.UI;
public class Music : MonoBehaviour
{
[SerializeField] [EventRef] private string _musicRef;
private EventInstance _musicInstance;
[SerializeField] priva... |
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Mi... |
using System.ComponentModel.DataAnnotations;
namespace Leads.Models
{
public class SaveViewModel
{
[Required]
public int leadhdrid { get; set; }
public string FillLead { get; set; }
public string CustName { get; set; }
public string CustAddress { get; set; }
pu... |
namespace Pirates.Services
{
public interface IService
{
void Configure();
}
}
|
namespace MonoGame.Extended.Gui.Controls
{
public class Label : ContentControl
{
public Label()
{
}
public Label(string text = null)
{
Content = text ?? string.Empty;
}
}
} |
// Copyright 2017-2019 Elringus (Artyom Sovetnikov). All Rights Reserved.
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using UnityCommon;
using UnityEngine;
namespace Naninovel.Commands
{
/// <summary>
/// Modifies a [printer actor](/guide/text-printers.md).
/// </summary>
... |
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Configs;
using System;
using System.Linq;
using System.Threading.Tasks;
namespace NetFabric.Hyperlinq.Benchmarks
{
[GroupBenchmarksBy(BenchmarkLogicalGroupRule.ByCategory)]
[CategoriesColumn]
public class AllBenchmarks : RandomBenchmarksBase
{
... |
namespace Strategy
{
interface IVehicle
{
decimal GetCostPerKilometer();
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SMSBAL;
using SMSEntities.SMSDBEntities;
using System.ComponentModel.DataAnnotations;
namespace SMS.Models
{
public class SMSManagementModel
{
SMSManagement objSMS = new SMSManagement();
#region DEPLoymE... |
using AdoLibrary;
using PickUp.Dal.Interfaces;
using PickUp.Dal.Models;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
namespace PickUp.Dal.Services
{
public class ReservationsServices:IReservationsServices<ReservationsCustomer,ReservationUser>
... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BossSummonerBird : ActionBased
{
private readonly float actionTime;
public GameObject prefab;
private Vector2 position;
public BossSummonerBird( Vector2 position, float actionTime = 1f)
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AttackDragon.Extensions
{
public static class IEnumerableExtensions
{
public static int Multiply<TSource>(this IEnumerable<TSource> source, Func<TSource, decimal> selector)
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using doob.Reflectensions;
using doob.Scripter.Shared;
using Esprima;
using Esprima.Ast;
using Jint;
using Jint.Native;
using Jint.Native.Function;
using Jint.Runtime;
using Jint.Runtime.Debugger;
using Microsoft.Extension... |
using System;
using System.Collections.Generic;
using System.Configuration.Install;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Security.Principal;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
namespace PacketBeatInstaller
{
... |
using JumpAndRun.Content.Blocks;
using Microsoft.Xna.Framework;
using System;
using SkiaSharp;
namespace JumpAndRun.Content.BlockDefinitions
{
public class LogBlockDefinition : BlockDefinition
{
public LogBlockDefinition()
{
_textures = new[] { GameLib.Helper.GetBitmapFromPath("log... |
using AutoMapper;
using ImmedisHCM.Data.Entities;
using ImmedisHCM.Data.Identity.Entities;
using ImmedisHCM.Data.Infrastructure;
using ImmedisHCM.Services.Models.Core;
using ImmedisHCM.Services.Models.Identity;
using Microsoft.AspNetCore.Identity;
using NHibernate.Linq;
using System.Linq;
using System.Security.Claims;... |
using System;
public class Program
{
public static void Main()
{
var input = Console.ReadLine();
Console.WriteLine(Convert.ToInt32(input, 16));
}
} |
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using PromotionEngineApp;
using System.Collections.Generic;
namespace PromoEngineAppTestProject
{
[TestClass]
public class ComputeEngineTest
{
[TestMethod]
public void ComputeTest()
{
ComputePriceEngine o... |
namespace EkwExplorer.Persistence.Entities;
public class PropertyNumberEntity
{
public string Id { get; set; }
public string BookId { get; set; }
public string Number { get; set; }
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class IncorruptEdu_ViewTestOnlineResult : System.Web.UI.Page
{
public string t_rand = "";
string tId = string.Empty;
string aId = string.Empty;
PDTe... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LibraryProjectMvc.Models.Entity;
using LibraryProjectMvc.Models.Classes;
namespace LibraryProjectMvc.Controllers
{
[AllowAnonymous]
public class VitrinController : Controller
{
LibraryP... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Karkas.Web.Helpers.BaseClasses;
using Karkas.Ornek.BsWrapper.Ornekler;
using System.Data;
public partial class Ornekler_OrnekDataTableBind : KarkasBasePage
{
... |
using Leaf.xNet;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Threading;
namespace PornHubChecker
{
internal class CheckerHelper
{
public static int total;
public static int bad = 0;
public static int hits = 0;
... |
using System.Threading.Tasks;
using Meziantou.Analyzer.Rules;
using Microsoft.CodeAnalysis;
using TestHelper;
using Xunit;
namespace Meziantou.Analyzer.Test.Rules;
public class DoNotCompareDateTimeWithDateTimeOffsetAnalyzerTests_MA0133
{
private static ProjectBuilder CreateProjectBuilder()
{
return n... |
/*
* Copyright 2014 Technische Universität Darmstadt
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
#region license
// Copyright (c) 2005 - 2007 Ayende Rahien (ayende@ayende.com)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the abo... |
using System.Xml.Serialization;
using FluentAssertions;
using Xunit;
namespace LeeConlin.ExtensionMethods.Tests.ObjectExtensions
{
public class ToXml_Should
{
[Fact]
public void ProduceXml()
{
var obj = new TestClass
{
TestBool = true,
... |
//------------------------------------------------------------------------------
// The contents of this file are subject to the nopCommerce Public License Version 1.0 ("License"); you may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://www.nopCommerce.com/Lic... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Security.Cryptography;
using System.Text;
namespace HashFitxers
{
class CrearSHA
{
public void Main(string entrada, string fitxer)
{
LlegirHASH lh = new LlegirHASH();
string path = fitxer+".s... |
using System;
using System.Text;
//We are given an array of integers and a number S. Write a program to find if
//there exists a subset of the elements of the array that has a sum S
class Program
{
static void Main()
{
int[] myArray = {2, 1, 2, 4, 3, 5, 2, 6};
int wantedSum = 14;
... |
using DapperEntities;
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
namespace DapperReposotity
{
public class UserRepository : DapperRepository<UserModel>, IUserRepository
{
public UserRepository(IDbConnection connection) : base(connection) { }
}
}
|
using System.Collections.Generic;
using System.Threading.Tasks;
using Discord.Commands;
using Discord.WebSocket;
using DiscordBot.Bot.Model;
namespace DiscordBot.Bot.MessageHandlers
{
public class IssueHandler : IMessageHandler
{
private static readonly ICollection<Issue> issues = new List<Issue>();
... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Aula73Ref
{
class Calculator
{
public static void Triplo(ref int x)
{
x = x * 3;
}
}
}
|
using System;
using ETravel.Coffee.Service;
using ServiceStack.MiniProfiler;
namespace ETravel.Coffee.Site
{
public class Global : System.Web.HttpApplication
{
protected void Application_Start(object sender, EventArgs e)
{
CoffeeAppHost.Start();
}
protected void Application_BeginRequest(object sender, E... |
using SimpleVisioModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SimpleVisioDataAccess
{
public interface ISimpleVisioLoader
{
List<VisioShape> Load(string diagramName);
}
}
|
using System;
using System.Globalization;
namespace EstoqueProduto
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Digite o nome do produto: ");
string nome = Console.ReadLine();
Console.WriteLine("Digite o pr... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mogre;
namespace Tachycardia
{
class GameCamera
{
public Character Character;
public float Distance;
public Degree Angle;
public void Update()
{
Vector3 offset =
... |
using System;
using System.IO;
using System.Net;
namespace CloudFile
{
public class RequestObject
{
private int m_id;
private HttpWebRequest m_request;
private HttpWebResponse m_response;
private Stream m_responseStream;
private byte[] m_buffer;
public int ID
{
get
{
return this.m_id;
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using Music_Game.Resources;
using Nokia.Music;
using Windows.System;
using Nokia.Music.... |
using BPiaoBao.Common.Enums;
using BPiaoBao.DomesticTicket.Domain.Models.Orders.Behaviors;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BPiaoBao.DomesticTicket.Domain.Models.Orders.States
{
[OrderState(EnumOrderStatus.WaitChoosePolicy)]
public class WaitChoos... |
using System.Collections.Generic;
namespace OPAM.Common
{
/// <summary>
/// This is the Class to hold all the Constants
/// </summary>
static public class Constants
{
#region Configurations
public static bool ServiceAvaiablity = false;
public static bool CamaraAvailablity =... |
using UnityEngine;
using RPG.Movement;
using RPG.Core;
using RPG.Saving;
using RPG.Resources;
namespace RPG.Combat
{
public class Fighter : MonoBehaviour, IAction, ISaveable
{
// config params
[SerializeField] float attackSpeed = .5f;
[SerializeField] Transform rightHandTransform = nul... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
using UnityStandardAssets.ImageEffects;
public class CrearCartasNetwork : NetworkBehaviour {
public GameObject naceJugadores;
public GameObject nace;
public GameObject nace2;
public GameObject nace3;
... |
namespace WeatherApp
{
using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
public partial class AccountsContext : DbContext
{
public AccountsContext()
: base("name=AccountsContext")
{
... |
using System;
using System.Collections.Generic;
using System.Text;
namespace HW2
{
class Exeptions
{
}
public class PaymentServiceExeption : System.Exception
{
public PaymentServiceExeption() : base() { }
public PaymentServiceExeption (string message) : base(message) ... |
namespace _02StreingReverserer
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class StreingReverserer
{
static void Main(string[] args)
{
Console.Write("Enter a string:");
... |
using System;
namespace VavilichevGD.GameServices.Purchasing {
public interface IPurchaseHandler {
void Purchase(object sender, Product product, Action<Product, bool> callback);
}
} |
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TravellingSalesman
{
class Map
{
private const double MapSize = 10;
private ImmutableArray<Vector> Cities { ge... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.Windows.Forms;
using System.IO;
using System.Collections;
using Siemens.Simatic.RfReader;
using System.Threading;
namespace Siemens.Simatic.RfReader.ReaderApi
{
/// <summary>
/// ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Description;
using System.ServiceModel.Channels;
using System.ServiceModel.Dispatcher;
namespace ParameterValidationWithSoap
{
public class ValidatingBehavior : IEndpointBehavior
{
public vo... |
namespace K4AdotNet.NativeHandles
{
// Defined in record/types.h:
// K4A_DECLARE_HANDLE(k4a_record_t);
//
/// <summary>Handle to a Kinect for Azure recording opened for playback.</summary>
internal sealed class PlaybackHandle : HandleBase
{
private PlaybackHandle()
{ }
... |
using System;
using System.Collections.Generic;
using System.Text;
namespace DBStore.Models.CMS
{
public class HomeBanner : BaseEntity
{
public string ImgUrl { get; set; }
public string PrimaryText { get; set; }
public string RawHtmlCode { get; set; }
public string OtherText { ... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsServicesController
{
public partial class UserControlS... |
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Cadastro.API.Model
{
public class Produto
{
[BsonId]
public ObjectId InternalId { get; set; }
[BsonElement("Codig... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
public class Stack
{
Interface userInt = new Interface();
public int last { get; set; }
public string lastQ { get; set; }
//Dicti... |
using DebugTools;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace SupercapController
{
partial class FormMain
{
CommandFormerClass com;
/// <summary>
/// Set default values for some controls to reduse agony of... |
using System.Collections.Generic;
using RestSharp;
namespace Musher.EchoNest.Extensions
{
internal static class RestRequestExtensions
{
public static void TryAddQueryParameter(this RestRequest source, string key, string value)
{
if (!string.IsNullOrEmpty(value))
{
... |
namespace DbLocalizationProvider.Core.AspNetSample.Resources
{
[LocalizedResource]
public class SampleResources
{
public static string PageHeader => "This is page header";
public string PageHeader2 => "This is page header 2";
public static string SomeHtmlResource => "<span><b>THIS... |
using System.Collections.Generic;
using ReadyGamerOne.Common;
namespace ReadyGamerOne.Const
{
public class ConstUtil<T>:
Singleton<ConstUtil<T>>
{
protected virtual Dictionary<string, string> nameToPath => null;
public string GetPath(string resName)
{
if (!nameToPat... |
using System;
namespace DayOfWeekServices
{
// NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "DayOfWeek" in code, svc and config file together.
// NOTE: In order to launch WCF Test Client for testing this service, please select DayOfWeek.svc or DayOfWeek.svc.cs at the ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SummativeSums
{
class Program
{
static void Main(string[] args)
{
int[] intArray1 = new int[] { 1, 90, -33, -55, 67, -16, 28, -55, 15 };
int[] i... |
using Core.Internal.Dependency;
using System.Linq;
using LightInject;
using LinqToDB;
using LinqToDB.Data;
using NUnit.Framework;
using System.Reflection;
namespace Core.NUnitTest.Tests.Sequences
{
[TestFixture]
public class EntityServiceBase_CreateEntityTests
{
private Scope _scope;
priva... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace JoveZhao.Framework.Auth
{
/// <summary>
/// 定义登录信息的存放方式
/// </summary>
public interface IAuthInfoStroage
{
void Remove(string token);
void Save<T>(string token,T userInfo, Action<T> exi... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class DisplayGoalXPosition : MonoBehaviour, CannonStateObserver
{
public CannonStateHandler stateHandler;
public void applyChange(CannonState state){
gameObject.GetComponent<Text>().t... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using DataAccess;
using Contract;
using AutoMapper;
namespace ShoppingMe.Controllers
{
public class CustomerController : BaseApiController
{
private CustomerRepository cus... |
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
namespace Arch.Data.Orm.partially
{
public interface IUpdatePartial<TTable>
{
/// <summary>
/// 使用时请注意,IUpdatePartial在传入BaseDao执行后,SetColumns将是空集合
/// </summary>
IEnumerable<String> SetCol... |
using System;
namespace Problem1
{
class Program
{
static void Main(string[] args)
{
double n1 = double.Parse(Console.ReadLine());
double n2 = double.Parse(Console.ReadLine());
double n3 = double.Parse(Console.ReadLine());
double n4 = double.Pars... |
using Autofac;
namespace ZeyrekFramework.Business.DependencyResolvers.Autofac
{
public class IocServiceResolver
{
public static IContainer Container;
public static T Get<T>()
{
using (var scope = Container.BeginLifetimeScope())
return scope.Resolve<T>();
... |
using System.Collections.Generic;
using System.Threading.Tasks;
using DynamoDbDemo.Models;
namespace DynamoDbDemo.Services
{
public interface IProductReviewService
{
Task AddAsync(int userId, ProductReviewRequest request);
Task<IEnumerable<ProductReviewResponse>> GetAllReviewsAsync();
... |
#region
// ===============================================================================
// Project Name : _08观察值_Observer_设计模式
// Project Description :
// ===============================================================================
// Class Name : Alarm
// Class Version : v1.0.0... |
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Dentist.Models.Tags;
namespace Dentist.ViewModels
{
public class VitalSignViewModel : IModelWithId
{
[Editable(false)]
public int Id { get; set; }
[UIHint("Integer")]
[Display(Name = ... |
using Ploeh.AutoFixture.Xunit2;
using Xunit;
namespace DocxTemplate.Tests
{
public class ContentParserTests
{
[Theory, AutoData]
public void Parse_GivenEmptyObject_ReturnsStringWithoutChanges(string testString, object testObject)
{
//arrange
var sut = new Conten... |
using Microsoft.EntityFrameworkCore;
using newPrideMore.Models;
public class newPrideMoreContext : DbContext
{
public newPrideMoreContext (DbContextOptions<newPrideMoreContext> options)
: base(options)
{
}
public DbSet<ProfessionalType> ProfessionalType { get; set;... |
using System;
using System.Collections;
using PITPhysics;
public static class NumericalMethods
{
public static double NewtonForKepler(Func<double, double, double> Function, Func<double, double> DFunction, double x0, double M, out int iterations, double epsilon = PSettings.EpsilonNumMethods)
{
iterati... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace SteelSeriesGameSenseDotNet.Exceptions
{
public class GameSenseException : Exception
{
public GameSenseException(string message, Exception innerException ... |
using System;
using System.Linq;
using System.Collections.Generic;
public interface ISwimming
{
double WaterSpeed { get; set; }
string Mechanism { get; set; }
void Swim();
}
public interface IFlying
{
double AirSpeed { get; set; }
string Mechanism { get; set; }
void Fly();
}... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using NetCode.Payloads;
namespace NetCode.Connection.UDP
{
public class UDPServer : IDisposable
{
public int Port { get; protected set; }
public int IncomingConnection... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class airBubble : MonoBehaviour {
void OnTriggerStay2D(Collider2D col){
if (col.transform.GetComponent<Player> ()) {
col.transform.GetComponent<Player> ().getAir ();
}
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.DataVisualization.Charting;
using System.Drawing;
using HairPeaceWebsite.PeaceReference;
namespace HairPeaceWebsite
{
public partial class Reports : System... |
using System;
namespace RecipeOcr
{
public class TaskId : IEquatable<TaskId>
{
private readonly string _id;
public TaskId(string id)
{
_id = id;
}
public override string ToString()
{
return _id;
}
public override... |
using System;
namespace RO
{
[Serializable]
public class DataVO
{
public int id;
public int typeID;
public string name;
public int priority;
public DataType dataType;
public bool isPercent;
public bool CanbeCalculate
{
get
{
return this.dataType != DataType.Bool;
}
}
public s... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace VocabularyApi.Models
{
public class WordSet
{
public int Id { get; set; }
public string Title { get; set; }
public byte[] Image { get; set; }
public ICollection<WordSe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.