text stringlengths 13 6.01M |
|---|
using Livraria.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Livraria.Services
{
public class LivrosFullService : ILivrosService
{
ILivrosService _serviceStatic, _serviceSql;
public LivrosFullService(LivrariaStaticService ser... |
using System;
using System.Linq;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
using Plugin.Geolocator;
using Xamarin.Forms.Maps;
namespace App2
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class Page4 : ContentPage
{
Geocoder geocoder;
... |
using System.Collections.Generic;
using System.Threading.Tasks;
using trunk.Core.Models;
namespace trunk.Core
{
public interface IVehicleRepository
{
Task<Vehicle> GetVehicle(int id, bool includeRelated = true);
void Add(Vehicle vehicle);
void Remove(Vehicle vehicle);
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using CoordControl.Forms;
using CoordControl.Models;
using CoordControl.Presenters;
namespace CoordControl
{
static class Program
{
/// <summary>
/// Главная точка вхо... |
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using GameAPI.Controllers;
using Game.Models;
namespace GameClient
{
class Program
{
static void Main(string[] args)
{
GetDraws().Wait();
}
... |
// Copyright 2016 Google Inc. All Rights Reserved.
//
// 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 applica... |
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using HaloHistory.Business.Entities;
using HaloHistory.Business.Entities.Metadata;
using HaloHistory.Business.Entities.Profile;
using HaloHistory.Business.Entities.Stats;
using HaloHistory.Web.Services;
using Microsoft.Data.Entity;
usin... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LazyMode : MonoBehaviour
{
public static LazyMode Instance;
public GameObject JoystickController;
public CharacterController character;
private void Awake()
{
if (Instance == null... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TechTalk.SpecFlow;
using Vantage.Automation.VaultUITest.Context;
namespace Vantage.Automation.VaultUITest.Steps
{
[Binding]
public class ModalDialogsSteps : BaseSteps
{
private readonly UIContext _uiContext;
public ModalDialogsStep... |
using UnityEngine;
using EasyMobile;
using System.Collections;
public class IAPManager : MonoBehaviour
{
private GameManager gm;
private void Awake()
{
gm = Object.FindObjectOfType<GameManager>();
}
void OnEnable()
{
InAppPurchasing.PurchaseCompleted +... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class magazineSpawn : MonoBehaviour
{
//dual magazine
public GameObject dualMagGO;
public Transform joint8;
public GameObject joint8GO;
private bool dualMagSpawned = false;
public GameObject drumMagGo;
... |
using System.Text;
using System.Web;
using Web.Models;
namespace Web.Helpers
{
public static class EmailBuilder
{
public static string Head(string headerText)
{
var head = new StringBuilder();
head.Append("<!DOCTYPE html><html lang='en'><head><title>");
head... |
using UnityEngine;
using System.Collections;
public class Xicara : MonoBehaviour {
public float velocidadeXicara;
public float limitX;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
float directionMouse = Input.GetAxis("Mouse X"); // -1 = esquerdo; ... |
using Microsoft.AspNet.Identity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace GameStore.Domain.Helper
{
public class GameStorePasswordHasher : IPasswordHasher
{
public string HashPasswo... |
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using lianda.Component;
using System.IO;
using System.Data.Sq... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.Globalization;
namespace PnrAnalysis
{
/// <summary>
/// 进制转化显示
/// </summary>
public class JZFormat
{
/// <summary>
/// 普通字符串转换为十六进制字符串
/// </summary>
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DiffBtns : MonoBehaviour
{
private MineField mf;
public string Difficulty = "Easy";
void Start()
{
this.mf = GameObject.FindGameObjectWithTag("MF").GetComponent<MineField>();
this.Easy();
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Project.Service;
using Project.Service.Service;
namespace Project.MVC.Controllers
{
public abstract class VehicleModelController : Controller
{
private IVe... |
using System;
using System.IO;
using System.Linq;
using Microsoft.Extensions.Logging;
using TQVaultAE.Domain.Contracts.Services;
using TQVaultAE.Config.Tags;
using TQVaultAE.Domain.Entities;
using Newtonsoft.Json;
using System.Drawing;
using System.Collections.Generic;
namespace TQVaultAE.Services;
/// <summary>
///... |
using System;
namespace DCL.Maths
{
public struct Angle: IComparable
{
//Данная реализация структуры градусов
//представляет собой как бы "обертку"
//над структурой Fraction
internal Fraction val;
#region Constants
public static readonly Angle PI = new Angle(18... |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Potato.cs" company="Telerik">
// Telerik
// </copyright>
// <summary>
// The potato.
// </summary>
// -------------------------------------------------------------------------... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace GomokuEngine
{
public enum Player { None, BlackPlayer, WhitePlayer }
public enum Direction {left2right, leftdown2rightup, down2up,rightdown2leftup };
public enum OneDirectionEvaluation : byte
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Diagnostics.Runtime;
namespace ClrMdHarness
{
class Timers
{
public class TimerInfo
{
public ulong TimerQueueTimerAddress { get; set; }
p... |
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using JqD.Common.ILogic;
using JqD.Common.IRepository;
using JqD.Common.Logic;
using JqD.Common.Repository;
namespace JqD.Common.WindsorInstaller
{
public class CommonInstaller : IWindsorInstaller
{... |
/*
DotNetMQ - A Complete Message Broker For .NET
Copyright (C) 2011 Halil ibrahim KALKAN
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option)... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
class ABTest:MonoBehaviour
{
private void Start()
{
//依赖包的关键知识点,利用主包获取依赖信息
//加载主包
AssetBundle abMain = AssetBundle.LoadFromFi... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Server
{
public partial class FrmServer : Form
{
Serve... |
using System.Linq;
namespace PizzaLibrary.Validators
{
public class PizzaValidator
{
public static bool PieceValidate(int row, int col, CuttedPizza cuttedPizza)
{
var slice = cuttedPizza.Slices.FirstOrDefault(s =>
{
if (s.Coords.ColumnStart > col &&
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SMSEntities.SMSDBEntities
{
public class Purpose
{
public int purposeid { get; set; }
public string purpose { get; set; }
public int status { get; set; }
}
}
|
using Paint.Model.Models;
using Paint.Service;
using Paint.Service.Interface;
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 PaintDesktopCons... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Zelo.Common.CustomAttributes;
namespace Zelo.DBModel
{
[Table(Name = "tfav")]
public class Tfav
{
[Id(Name = "fav_id", Strategy = GenerationType.INDENTITY)]
public int FavId{ get; set; }
[Column(Name = "fav_G... |
// C# Excel Writer library v2.0
// by Serhiy Perevoznyk, 2008-2018
// .NET Core
namespace Export.XLS
{
internal sealed class BIFF
{
public const ushort DefaultColor = 0x7fff;
public const ushort BOFRecord = 0x0209;
public const ushort EOFRecord = 0x0A;
public const ushort Fo... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
/// <summary>
/// http://ejudge.1gb.ru/cgi-bin/new-register?contest_id=9
/// B-String Series
/// На вход программе подаются сведения о сдаче экзаменов учениками 9-х классов некоторой средней школы.
/// ... |
using iTextSharp.text;
using iTextSharp.text.pdf;
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleAppGeneratePDFFile
{
public class PDFHelper
{
public static void CreatePDF(DataTab... |
namespace NWERC.DigitalClock
{
public enum ClockDigit
{
TenHours = 0,
Hours = 1,
TenMinutes = 3,
Minutes =4
}
} |
using System;
namespace Microsoft.DataStudio.WebExtensions
{
public static class WebConstants
{
public const string HeaderServerRequestId = "x-ms-request-id";
}
} |
using Amazon.Runtime;
using Amazon.S3.Model;
using OpenTracing;
namespace Epsagon.Dotnet.Instrumentation.Handlers.S3.Operations {
public class HeadObjectRequestHandler : IOperationHandler {
public void HandleOperationAfter(IExecutionContext context, IScope scope) {
var response = context.Respo... |
using System;
namespace KRF.Core.Entities.Master
{
public class Equipment
{
public int ID { get; set; }
public string SNNo { get; set; }
public string ModelNumber { get; set; }
public string EquipmentName { get; set; }
public int EquipmentID { get; set; }
//publ... |
using TestApplicationDomain.Entities;
using TestApplicationInterface.Repository;
namespace TestApplicationDB.Repository
{
public class PricingDiscountRepository : Repository<PricingDiscount>, IPricingDiscountRepository
{
public PricingDiscountRepository(DbFactory dbFactory) : base(dbFactory)
{... |
using System;
using System.Collections.Generic;
using System.Text;
namespace homeworkCSharp2020
{
class nal14
{
//DECLARE MULTI ARRAY
static int[,] multiArr = new int[14, 9];
public static void func()
{
//FILL ARRAY WITH RDM NUMS (1-70)
for (int i = 0;... |
namespace SolidabisChallenge
{
static class Alphabet
{
public static char[] Vowels = { 'a', 'e', 'i', 'o', 'u', 'y', 'å', 'ä', 'ö' };
public static char[] Consonants = { 'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'z' };
}
}
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class PlayerMovement : MonoBehaviour {
public CharacterController2D controller;
public Animator animator;
private Rigidbody2D rb;
private int jump_force;
public float runSpeed = 40f;
public A... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using core_api.Model;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Azure.Storage.Blobs;
using Azure.Storage.Blobs.Models;
using Azure.Storage.Sas;
namespace core_api.Controllers
{
[ApiCont... |
using System;
using System.Collections.Generic;
using System.Text;
namespace VSchool.Data.Entities
{
public class Employee : BaseEntity
{
public string FirstName { get; set; }
public string LastName { get; set; }
public int Age { get; set; }
public Teacher Teacher { get; set; ... |
using System;
using System.Windows.Forms;
using Pomodoro_Zamanlayici.Siniflar;
namespace Pomodoro_Zamanlayici
{
public partial class FrmAyarlar : Form
{
public FrmAyarlar()
{
InitializeComponent();
}
readonly Ayarlar _ayarlar = new Ayarlar(... |
using System;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using W3ChampionsStatisticService.CommonValueObjects;
using W3ChampionsStatisticService.Ports;
using W3ChampionsStatisticService.Services;
namespace W3ChampionsStatisticService.Ladder
{
[ApiController]
[Route("api/l... |
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;
namespace ReactCrudDemo.Models
{
public partial class CoreReactContext : DbContext
{
public CoreReactContext()
{
}
public CoreReactContext(DbContextOptions<CoreReactContext> option... |
using System.Collections.Generic;
namespace ContactManager.Business
{
public class Contact
{
public int Id { get; set; }
public string Naam { get; set; }
public Adres Adres { get; protected set; } = new Adres();
public ICollection<Telefoon> Telefoons { get; set; } = new List<Te... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Smart.Distribution.Station.Controls
{
public class ControlButtonClickEventArgs : EventArgs
{
private ControlButtonType _controlButtonType;
public ControlButtonClickEve... |
using SharpPcap.Containers;
using System.Net.NetworkInformation;
using System.Windows.Forms;
namespace TrafficDissector.UI
{
public partial class BaseForm : Form
{
#region Constructor
public BaseForm()
{
InitializeComponent();
}
#endregion
#region... |
using System;
using Service;
using MKModel;
using System.Collections.ObjectModel;
using ReDefNet;
using MKService.Updates;
namespace MKService.Updates
{
internal interface IUpdatableUserCollection : IUpdatable, IUserCollection, IQueryResponse
{
new IObservableCollection<IUpdatableUser> Users { get; }
... |
namespace OverCR.StatX.Hooks.WinAPI.WindowsEvents
{
internal enum Generic
{
Minimum = 0x00000001,
Maximum = 0x7FFFFFFF
}
}
|
using System;
using System.Reflection;
using Microsoft.Win32;
using EA;
using de.proskor.automation;
namespace de.proskor.integration {
/**
* AddInAdapter. Delegates the EA events to the addin implementation.
*/
public class AddInAdapter {
/** AddIn implementation */
private AddIn addin;
/** Windows regi... |
using CallOfDutyApiWrapper.Enums;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Web;
namespac... |
using NetFabric.Assertive;
using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
namespace NetFabric.Hyperlinq.UnitTests.Filtering.WhereAt
{
public class AsyncValueEnumerableTests
{
[Theory]
[MemberData(nameof(TestData.PredicateAtEmpty), MemberType ... |
using System;
using Whale.Shared.Models.User;
namespace Whale.Shared.Models.Meeting.MeetingMessage
{
public class MeetingMessageDTO
{
public string Id { get; set; }
public UserDTO Author { get; set; }
public UserDTO Receiver { get; set; }
public string MeetingId { get; set; }
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NADD
{
class Area
{
private int idArea;
private string nomeArea;
public Area(int idArea, string nomeArea)
{
this.IdArea = idArea;
... |
using FastSQL.Core;
using FastSQL.Sync.Core.Indexer;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FastSQL.Magento2.Integration.Indexers
{
public class CustomerIndexerOptionManager : EntityIndexerOptionManager
{
public override IEnumerable<O... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TwinkleStar.Common
{
/// <summary>
/// 全局配置接口
/// </summary>
public interface IGlobalConfig<T> where T: ConfigBase, new()
{
/// <summary>
/// 获取配置
/... |
using System;
using System.Collections.Generic;
using System.Text;
namespace AdvancedConcepts
{
class AssociationDemo
{
// This program demo. how to create Association Relationship.
// 1.Dependency:There is no dependencies between objects.
// 2.Relation: There is no relation between... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DataAccess
{
enum ConnectionErrors
{
ConnectionError_BlankConnectionString = 10000001,
ConnectionError_InvalidConnectionString = 10000002
}
}
|
using System;
using System.Collections;
using System.Collections.Generic;
namespace Collection
{
class Program
{
static void Main(string[] args)
{
Console.Title = "Tugas Lab 8 (Pertemuan 11) - Collection";
//membuat objek untuk semua karyawan
... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace testDemo.Models
{
public class Question
{
[Key]
public int QuestionId { get; set; }
[Required]
public string Name { get; set; ... |
using UnityEngine;
public static class LocalizedString
{
public const string CHECK_VERSION = "正在检查版本,请稍候..."; //Checking version...please wait
public const string UPDATE_PACKAGE = "为了更好的游戏体验,请更新到最新版本。";
public const string START_DOWNLOAD = "正在准备下载安装包,请稍候...{0}%";
public const string DOWNLOADING = "正在后台... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ShockwaveScript : MonoBehaviour {
Renderer rend;
float magnitude;
public float shifting_speed = 0.05f;
void Start () {
rend = GetComponent<Renderer>();
// Use the Specular shader on the materi... |
namespace CarSelector.Contracts
{
public interface ICompletionTime
{
double CompletionTime { get; set; }
}
}
|
using System;
using System.IO;
using System.Threading.Tasks;
using Amazon.S3;
using Amazon.S3.Model;
using Newtonsoft.Json;
using Microsoft.Extensions.Logging;
using PdfUploder.Models;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
namespace PdfUploder.Services
{
public class AmazonWe... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using PBingenering.Model;
namespace PBingenering.SQL
{
public static class SqlManager
{
static string connceti... |
using System.Collections;
using System.Reflection;
using UnityEngine;
using UnityEngine.Networking;
public class WaterBehaviour : NetworkBehaviour
{
[SerializeField] private float _tideStrength = 0.01f;
[SerializeField] private float _maxPaddleStrength = 1f;
private float _tideStrengthModifier { get { return _... |
using UnityEngine;
using System;
public class turtorial_3 : MonoBehaviour
{
FirstAgent g_FirstAgent;
SecondAgent g_SecondAgent;
SecondAgent g_ThirdAgent;
private bool InitBehavic()
{
behaviac.Debug.LogWarning("InitBehavic");
behaviac.Workspace.Instance.FilePath = PathConst.FilePat... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace UCMAService
{
public class ConferenceMuteInfo : ConferenceInfo
{
public string UnMuteUserSipAddress { get; set; }
}
} |
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace D_API.Models.Auth
{
public class User
{
public enum Status
{
/// <summary>
/// This user was never active
/// </summary>
Inac... |
using System;
using System.Runtime.CompilerServices;
namespace NetFabric.Hyperlinq
{
public static partial class ArrayExtensions
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool Any<TSource>(this Span<TSource> source, FunctionIn<TSource, bool> predicate)
... |
using DataAccess.Interfaces;
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Unity.Attributes;
using Utilities.Enums;
using Utilities.Implementation.FileManagement.Result;
using Utilities.Interface;
namespace DataAccess.DataAccess... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace VCalendarParser
{
public enum ClassAccess
{
PUBLIC,
PRIVATE,
CONFIDENTIAL
}
}
|
using FatCat.Nes.OpCodes.AddressingModes;
namespace FatCat.Nes.OpCodes.Arithmetic
{
public class IncrementYRegister : OpCode
{
public override string Name => "INY";
public IncrementYRegister(ICpu cpu, IAddressMode addressMode) : base(cpu, addressMode) { }
public override int Execute()
{
cpu.YRegister++;... |
using System;
using Logs.Authentication.Contracts;
using Logs.Services.Contracts;
using Logs.Web.Controllers;
using Moq;
using NUnit.Framework;
namespace Logs.Web.Tests.Controllers.EntriesControllerTests
{
[TestFixture]
public class ConstructorTests
{
[Test]
public void TestConstructor_Pas... |
namespace ns16
{
using Newtonsoft.Json;
using System;
using System.Globalization;
using System.IO;
internal class Class68 : JsonReader, IJsonLineInfo
{
private readonly JsonReader jsonReader_0;
private readonly JsonTextWriter jsonTextWriter_0;
private readonly StringWri... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace AppJobRecruitmentSystem.Entities
{
public class Job
{
[Required]
[Display(Name = "Id")]
public int id { get; set; }
[Requir... |
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Penumbra;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Game1
{
public class GravityFlame
{
Texture2D textureTest;
public Vector2 ... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class GameManager : MonoBehaviour {
public static GameManager gameManager;
public GameType gameType;
public KGameMode gameMode;
public KTeamConfig teamConfig;
void Awake(){
if (gameManage... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FrbaCommerce.Modelo
{
public class Visibilidad
{
public Decimal idVisibilidad { get; set; }
public Decimal codigo { get; set; }
public String descripcion { get; set; }
public Decimal... |
using GlobalDevelopment.Interfaces;
using System;
namespace GlobalDevelopment.Models
{
public class Page : IPage
{
public string Name { get; set; }
public DateTime CreateDate { get; set; }
public DateTime UpdateDate { get; set; }
}
} |
using DAL.Entities;
using System.Data.Entity;
namespace DAL.EF
{
public class ApplicationDbContext : DbContext
{
public DbSet<Category> Categories { get; set; }
public DbSet<Product> Products { get; set; }
public DbSet<Provider> Providers { get; set; }
protected override void ... |
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using LubyClocker.Application.BoundedContexts.Developers.ViewModels;
using LubyClocker.Application.BoundedContexts.Projects.ViewModels;
using LubyClocker.CrossCuting.Shared.Common;
using LubyClocker.Infra.Data.Context;
using LubyClocker.Infra.Data... |
using System;
using CSharpBaseLibrary;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void Additionne_2_Et_3_Doit_Faire_5()
{
int resutatAddition = Fonctions.Additionne(2, 3);
... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Business.Helper;
using eIVOGo.Module.Common;
using eIVOGo.Module.UI;
using Model.DataEn... |
using System;
using System.Collections.Specialized;
using Newtonsoft.Json.Linq;
namespace AtlBot.Models.Slack.Chat
{
/// <summary>
/// Map custom types to/from Slack API types
/// See https://api.slack.com/methods/chat.postMessage
/// </summary>
public static class PostMessageMapper
{
... |
using System;
using System.Linq.Expressions;
namespace ODataQuery.Nodes
{
enum Comparator { None, Eq, Ne, Lt, Le, Gt, Ge }
sealed class ComparisonNode : Node
{
public Node Left { get; }
public Node Right { get; }
public Comparator Comparator { get; }
public ComparisonNode(Comparato... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
public class BaseInventory : MonoBehaviour
{
[SerializeField]
public List<Slot> items = new List<Slot>();
public UnityEvent Updated = new UnityEvent();
public virtual void InitializeSlo... |
namespace vn3xt.Plagiarism.PlagScan
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Http;
using System.Threading.Tasks;
public sealed class PlagScanClient
{
private string username;
private string password;
private... |
namespace Abstraction
{
using System;
using System.Text;
public abstract class Figure : IFigure
{
public Figure()
{
}
public abstract double CalcSurface();
public abstract double CalcPerimeter();
public override string ToString()
{
... |
using System;
using System.Linq;
using NUnit.Framework;
namespace CustomCollection.Tests
{
[TestFixture]
public class CustomCollectionTests
{
#region [ IReadOnlyCollection<TId> Ids ]
[Test]
public void Ids_GetAllIds_AllCollectionIdsReturned()
{
// arrange
... |
using System;
using Newtonsoft.Json;
namespace SnakeEyesGame.Models {
[JsonObject(MemberSerialization.OptIn)]
public class Dice {
#region fields
private Random _r;
#endregion
#region properties
[JsonProperty]
public int Pips { get; set; }
#endregion
#region constructors
public Dice() { }
#end... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
public enum CustomerState
{
Default,
Bathing,
Waiting,
Angery,
}
public class Customer : Character
{
public CustomerManager customerManager;
public float TargetTemperature = 45;... |
using System.Threading.Tasks;
using Meziantou.Analyzer.Rules;
using TestHelper;
using Xunit;
namespace Meziantou.Analyzer.Test.Rules;
public sealed class FixToDoAnalyzerTests
{
private static ProjectBuilder CreateProjectBuilder()
{
return new ProjectBuilder()
.WithAnalyzer<FixToDoAnalyzer... |
using Microsoft.AspNetCore.Mvc;
using PlatformRacing3.Common.Level;
using PlatformRacing3.Web.Extensions;
namespace PlatformRacing3.Web.Controllers;
[ApiController]
[Route("restorelevel")]
public class RestoreLevel : ControllerBase
{
[HttpGet]
[ResponseCache(Location = ResponseCacheLocation.None, NoStore = true)] ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LeetCodes
{
public class _001_PalindromePartitioning
{
/* http://discuss.leetcode.com/questions/1265/palindrome-partitioning
* Given a string s, partition s such that ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Bai05.Models;
using Microsoft.AspNetCore.Mvc;
namespace Bai05.Controllers
{
public class ProductController : Controller
{
Product FindByid(int id)
{
//dùng LINQ để tìm kiếm trên ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using MySql.Data.MySqlClient;
namespace CoffeeMachineProject
{
/*
* The CoffeeMachine class runs the coffee machine simulation, and facilitates communication
* between the UI in C... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.