text stringlengths 13 6.01M |
|---|
using System;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Application.Common.Dtos;
using Application.Common.Exceptions;
using Application.Common.Interface;
using Application.Common.Models;
using AutoMapper;
using Domain.Entities;
using MediatR;
using Microsoft.AspNetC... |
using System.Diagnostics.CodeAnalysis;
using System.Runtime.Serialization;
using MediatR;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol.Client;
usi... |
using LuaInterface;
using RO;
using RO.Net;
using SLua;
using System;
using System.Collections;
using System.Net.Sockets;
public class Lua_RO_Net_NetConnectionManager : LuaObject
{
[MonoPInvokeCallback(typeof(LuaCSFunction))]
public static int constructor(IntPtr l)
{
int result;
try
{
NetConnectionManager ... |
using Infrastructure;
using Models.DDD.TimeSheets.Entries;
using Prism.Commands;
using Prism.Mvvm;
using Prism.Regions;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
usin... |
// 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, distr... |
using Hayalpc.Fatura.Data.Models;
using Hayalpc.Library.Repository;
using Hayalpc.Library.Repository.Interfaces;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.Linq;
namespace Hayalpc.Fatura.Data
{
public class Repository<Tentity> : HpRepository<Tentity, HpDbContext>, IReposit... |
// -----------------------------------------------------------------------
// <copyright file="StringTypes.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root
// for license information.
// </copyright>... |
using UnityEngine;
using UnityEngine.AI;
using BehaviorDesigner.Runtime;
public class MovJugadorMesh : MonoBehaviour
{
// Notificacion pulsar F
[SerializeField]
private GameObject texto;
// Christine
[SerializeField]
private Christine christine;
private NavMeshAgent navMeshAgent;
private... |
using System;
using System.IO.Pipelines;
using System.Reactive.Concurrency;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
namespace OmniSharp.Extensions.JsonRpc
{
public class Connection : IDisposable
{
private readonly InputHandler _inputHandler;
public bool IsOpen { get; p... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.Windows.Forms;
namespace Clipboard_And_Snippet_Manager
{
class TreeNodeExImageItem : TreeNode
{
public Image clipboardImage { get; set; }
publ... |
using System;
namespace ArrayOfNumbers.Two_Demensional_array
{
public static class TD_Array
{
/// <summary>
/// Two-demensional array.
/// </summary>
private static int[,] td_array;
/// <summary>
/// A row of the array.
/// </summary>
private st... |
using Azure.Storage.Blobs;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace PeliculasAPI.Utilidades
{
public class AlmacenadorAzureStorage : IAlmacenadorArchivos
... |
using System;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace CryptobotUi.Models.Cryptodb
{
[Table("market_event", Schema = "public")]
public partial class MarketEvent
{
[NotMapped]
[J... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Prj_PracticeMidterm.BLL;
namespace Prj_PracticeMidterm.GUI
{
public partial class WebFormProjectAssignments : System.Web.UI.Page
{
protected void Page_Load(o... |
using InternDevelopmentProject.BusinessLogic;
using InternDevelopmentProject.DataLogic;
using InternDevelopmentProject.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace InternDevelopmentProject.Controllers
{
public class BusRegistration... |
using System;
using System.Globalization;
using System.Web;
namespace Web.Services
{
public static class TimeDateServices
{
public static double GetUtcOffSet()
{
var iUtcOffSet = -480;
if (HttpContext.Current.Request.Cookies["_timeZoneOffset"] != null)
i... |
using Caliburn.Light;
namespace Demo.HelloSpecialValues
{
public class CharacterViewModel : BindableObject
{
public CharacterViewModel(string name, string image)
{
Name = name;
Image = image;
}
public string Name { get; }
public string Image { ... |
using Microsoft.Extensions.Configuration;
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.Bot.Connector.DirectLine;
using WebSocketSharp;
using Newtonsoft.Json;
using System.Linq;
using System.Diagnostics;
using Activity = Microsoft.Bot.Connector.DirectLine.Activity;
namespace DirectLineS... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
public class OrdenMalo : NetworkBehaviour {
public Animator animator;
public bool preview;
public GameObject circulo;
public GameObject objeto;
public GameObject cursor;
bool pos;
Vector3 lugar;
pu... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FileManager.DataAccess.Data
{
public class FactoryProvider
{
public static IAbstractFactory getFactory(PersitenseTypes PersistenceTypes)
{
switch (Persiste... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace WebApplication1.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
return View();
}
public ActionResult About()
... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
u... |
using System.Collections.Generic;
using Athena.Data.Books;
namespace Athena.Data.Categories {
public class Category {
public CategoryName Name { get; set; }
public ICollection<Book> Books { get; set; }
}
} |
using MVCApplication.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MVCApplication.Data
{
interface IRepository
{
IEnumerable<Project> GetProjects();
IEnumerable<Entry> GetEntries();
void CreateEntri... |
using System;
using System.Threading.Tasks;
using System.Linq;
using Acr.UserDialogs;
using MvvmCross.Core.ViewModels;
using MvvmCross.Platform;
using MvvmCross.Platform.Platform;
using VictimApplication.Core.Models;
using VictimApplication.Core.Services;
namespace VictimApplication.Core.ViewModels
{
public cla... |
using Google.Apis.Auth.OAuth2;
using Google.Apis.Gmail.v1;
using Google.Apis.Gmail.v1.Data;
using Google.Apis.Services;
using Google.Apis.Util.Store;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Utilit... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Upgrade_Panel : MonoBehaviour
{
public Sprite eye;
public Sprite hand;
public Sprite elbow;
public Sprite gut;
public Sprite bone;
public Sprite heart;
public List<Sprite> upSp... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Model
{
public class Battery
{
public Battery()
{
this.Data = new Dictionary<string, string>();
}
public Dictionary<string, string> Data { get; set; }
}
}
|
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
using Microsoft.IdentityModel.Claims;
using Microsoft.IdentityModel.Web;
using RecipeWebRole.ActionFilters;
using RecipeWebRole.DataAccess;
using RecipeWebRole.Models;
using RecipeWebRo... |
using System;
using System.Collections;
using System.Collections.Generic;
using ObjectPooling;
using UnityEngine;
using UnityEngine.PlayerLoop;
public class RoadLayer : MonoBehaviour
{
[SerializeField] private SOPoolableObject _PoolableSO;
[SerializeField] float _StartPoint = 513 + 57;
[Seriali... |
namespace Plus.Communication.Packets.Outgoing.Inventory.Trading
{
internal class TradingClosedComposer : MessageComposer
{
public int UserId { get; }
public TradingClosedComposer(int userId)
: base(ServerPacketHeader.TradingClosedMessageComposer)
{
User... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class BarFillScript : MonoBehaviour {
public float mMaxBar = 255;
public float mMinBar = 10;
public float mMaxTime = 2;
public GameObject mPlayer;
private bool isGrounded;
private float mTimer;
private... |
using System;
using UnityEngine;
public static class BezierCurve
{
private static float[] FactorialLookup;
static BezierCurve()
{
CreateFactorialTable();
}
// just check if n is appropriate, then return the result
private static float factorial(int n)
{
if (... |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="InfoControllerTest.cs" company="CGI">
// Copyright (c) CGI. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------------... |
using Microsoft.Xna.Framework;
using MonoGame.Extended.Shapes;
namespace MonoGame.Extended.Collisions
{
public class CollisionInfo
{
public ICollidable Other { get; internal set; }
public Vector2 PenetrationVector { get; internal set; }
}
} |
using LuizalabsWishesManager.Domains.Repositories;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
namespace LuizalabsWishesManager.Data.Repositories
{
public class RepositoryBase<TEntity> : IDisposable, IRepositoryBase<TEntity... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Console2.recursion
{
public class CheapestPay
{
/*
* Write a function using Recursion to do the following: You are the manager in a small factory.
* You have 7 workers and 7 jobs to be do... |
using System;
using System.Linq.Expressions;
using Azure.CosmosDB.Net.EntityModel;
namespace Azure.CosmosDB.Net.FluentAPI.CRUDOperation.Interface
{
public interface IWhereOperation<T> where T : BaseEntity
{
IOrderBy Orderby(Expression<Func<BaseEntity, bool>> predicate);
IOrderbyDescending Orde... |
using SampleEntityCore.Data;
using SampleEntityCore.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SampleEntityCore.DAL
{
public class CategoryDAL : ICategory
{
private POSDataContext _context;
public CategoryDAL(POSDataConte... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Firebase;
public class Cenario : MonoBehaviour
{
public GameObject TextoAuxiliador;// Texto Auxiliador Numero ---------------------
void Update()
{
if (PlayerPrefs.GetInt("auxilio") == 1)
{
T... |
using UnityEngine;
using System.Collections;
public class e1 : MonoBehaviour {
[HideInInspector]
int _ownerId; // To ensure they have a unique mesh
MeshFilter _mf;
MeshFilter MeshFilter
{ // Tries to find a mesh filter, adds one if it doesn't exist yet
get
{
_mf = _mf ... |
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;
using UnityEngine;
public class Initialization : MonoBehaviour
{
private int max_score_value = 0;
private const int scaler = 20;
public GameObject chicken;
public GameObj... |
using System.Collections.Generic;
using Asset.DataAccess.Library.AssetModelGetways.AssetEntryGetways;
using Asset.Models.Library.EntityModels.AssetsModels.AssetEntrys;
namespace Asset.BisnessLogic.Library.AssetModelManagers.AssetEntryManagers
{
public class AssetEntryManager : IRepositoryManager<AssetEntry>
{... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.... |
using System.Collections.Generic;
using NUnit.Framework;
using SimpleJSON;
namespace Tests.SimpleJSON {
[TestFixture]
public class DecoderTests {
private Dictionary<string, string> _stringTestCases;
[SetUp]
public void SetUp() {
_stringTestCases = new Dictionary... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace bt.Admin
{
public partial class Suadm : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
... |
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using VideoServiceBL.DTOs.MoviesDtos;
using VideoServiceBL.Services.Interfaces;
namespace VideoService.Controllers
{
[Route("api/movies")]
[ApiController]
public class MovieController : Controller
{
... |
using System;
using MonoTouch.CoreLocation;
using System.Net;
using System.Xml;
using System.Xml.Linq;
using System.Linq;
using System.Collections.Generic;
using MonoTouch.Foundation;
using MonoTouch.CoreFoundation;
using MonoTouch.UIKit;
namespace LondonBike
{
public class MapRouting
{
private CLLocationCoo... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cognitive_Metier
{
public class ResultKeyphraseJson
{
public List<DocumentKeyphraseResult> documents { get; set; }
public List<Error> errors { get; set; }
}
}
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Text;
using TableTopCrucible.Domain.Models.Sources;
using TableTopCrucible.Domain.Models.ValueTypes.IDs;
using TableTopCrucible.Domain.Models.ValueTypes;
using System.Text.Json;
using System.IO;
using Table... |
using UnityEngine;
using System.Collections;
public class PlayerMelee : MonoBehaviour {
public float attackTimer;
public float coolDown;
public int damage;
private GameObject target;
private GameObject[] objectList;
private GameObject closest;
private float distance;
private float direction;
pr... |
using apiInovaPP.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace apiInovaPP.AcessoDados
{
public class Parametros
{
public List<Parametro> Params { get; set; }
public Parametros()
{
Params = new List<Parametro>()... |
using System;
using System.Globalization;
namespace MicrosoftGraphApplicationAuth
{
public class GraphConfig : IGraphConfig
{
private const string InstanceTemplate = "https://login.microsoftonline.com/{0}";
public string ApiUri => "https://graph.microsoft.com";
public string Applicati... |
using LuaInterface;
using SLua;
using System;
using UnityEngine;
public class Lua_UnityEngine_LOD : LuaObject
{
[MonoPInvokeCallback(typeof(LuaCSFunction))]
public static int constructor(IntPtr l)
{
int result;
try
{
float num;
LuaObject.checkType(l, 2, out num);
Renderer[] array;
LuaObject.checkA... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ERP_Palmeiras_RH.Models;
using ERP_Palmeiras_RH.Models.Facade;
namespace ERP_Palmeiras_RH.Controllers
{
[HandleERPException]
public class PermissoesController : BaseController
{
private... |
using System.Net;
using Newtonsoft.Json;
using RestSharp;
using TrafficControl.DAL.RestSharp.Types;
namespace TrafficControl.DAL.RestSharp
{
/// <summary>
/// Denne klasse har ansvar for at API kald der omhandler User
/// </summary>
/// <remarks>nedarvet fra TCDATA<list type="User"></list></remarks>
... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using System.Reflection;
namespace Vendo.UcBase
{
public partial class... |
using System;
using System.Collections.Generic;
namespace SheMediaConverterClean.Infra.Data.Models
{
public partial class VwStatistik
{
public int Id { get; set; }
public string Name { get; set; }
public bool? MultiSelect { get; set; }
}
}
|
using System;
namespace exe_16
{
class Program
{
static void Main(string[] args)
{
Console.Clear();
System.Console.WriteLine("======* Calculador IMC *======");
System.Console.WriteLine();
System.Console.Write("Insira seu peso em KG:... |
/*
* 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... |
using Logs.Authentication.Managers;
using Logs.Models;
using Logs.Providers.Contracts;
using Microsoft.AspNet.Identity;
using Microsoft.Owin.Security;
using Moq;
using NUnit.Framework;
namespace Logs.Authentication.Tests.AuthenticationProviderTests
{
[TestFixture]
public class RegisterAndLoginUserTests
{
... |
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 PROJETOBDDEDE
{
public partial class frmAddProf : Form
{
SchoolM... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class InteractableObjectManager : MonoBehaviour
{
// Enums
public enum InteractType
{
Pick = 0,
Read,
Talk
}
[Header("Interaction type")]
// Tipo de interação
// 0 - Pegar, 1 - Ler... |
using DB.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace DB.Interfaces
{
public interface IDbRepository<TEntity> where TEntity:BaseEntity
{
/// <summary>
/// Получениие параметризируемых объектов из бд
/// </summary>
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PHRApp.Classes
{
public class PlayList
{
[SQLite.PrimaryKey]
public string PlName { get; set; }
public string Theme { get; set; }
public DateTime PlayDa... |
using System.Data;
using PDV.CONTROLER.Funcoes;
namespace PDV.REPORTS.Reports.FechamentoCaixaDiarioTermica
{
public partial class FechamentoCaixaDiario_RecebimentosTermica : DevExpress.XtraReports.UI.XtraReport
{
private decimal IDFLUXOCAIXA;
public FechamentoCaixaDiario_RecebimentosTermica(d... |
using HardwareInventoryManager.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace HardwareInventoryManager.Helpers.Messaging
{
public interface IProcessEmail
{
void SendPasswordResetEmail(ApplicationUser recipientUser, string callbackUrl);
vo... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using PnrAnalysis;
namespace BPiaoBao.Common.CommanPnrAnalyzer
{
public class PnrFormattor
{
public string pnrContext;
public string pnrPat;
public PnrFormattor(s... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Casting
{
class Program
{
static void Main(string[] args)
{
// --------------upcasting---------------------
... |
using Pchp.Core;
using System;
using System.Collections.Generic;
using System.Text;
namespace OCP.OCS
{
/**
* Interface IDiscoveryService
*
* Allows you to discover OCS end-points on a remote server
*
* @package OCP\OCS
* @since 12.0.0
*/
public interface IDiscoveryService
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
[CreateAssetMenu(fileName = "Img Scene", menuName = "Img/Scene")]
public class ImgClass : ScriptableObject
{
public int id;
public Sprite img;
public string text, who;
public ImgType type;
... |
using System;
using System.Collections.Generic;
using System.Linq;
using Silas.Forecast.Models;
namespace Silas.Forecast.Strategies
{
public class MovingAverageStrategy : IForecastStrategy
{
public ForecastEntry Forecast(IEnumerable<DataEntry> dataEntries, int period, dynamic strategyParameters)
... |
namespace Adapter
{
class CalculadoraApadatada
{
public double RealizarSumaAdpatada(int[] operandos)
{
double resultado = 0;
foreach (var operando in operandos)
{
resultado += operando;
}
return resultado;
}
... |
using CryptoInvestor.Core.Domain;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace CryptoInvestor.Core.Repositories
{
public interface ITransactionRepository : IRepository
{
Task AddAsync(Transaction transaction);
Task<Transaction> GetAsync(Guid id);
... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace RiversideHealthCare.Models
{
[MetadataType(typeof(ProductValidation))]
//name of database table
public partial clas... |
using System;
namespace palindrome
{
class Program
{
static void Main(string[] args)
{
Console.Write("write an word: ");
var value = Console.ReadLine();
string first = value.Substring(0, value.Length / 2);
char[] arr = value.ToCharArray();
... |
using ServiceDesk.Api.Systems.DirectorySystem.Dtos.License;
namespace ServiceDesk.Api.Systems.DirectorySystem.DtoBuilders.License
{
public class LicenseDtoBuilder : ILicenseDtoBuilder<LicenseDto>
{
public LicenseDto Build(Core.Entities.DirectorySystem.License license)
{
var license... |
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace HardcoreHistoryBlog.Data
{
public class UserStore : UserStore<ApplicationUser>
{
public UserStore(ApplicationDbContext context) : base(con... |
using HCL.Academy.DAL;
using HCL.Academy.Model;
using HCLAcademy.Util;
using System;
using System.Collections.Generic;
using System.Web.Http;
using Microsoft.ApplicationInsights;
using System.Diagnostics;
namespace HCL.Academy.Service.Controllers
{
/// <summary>
/// This service exposes all the methods relate... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Enemy_HP : MonoBehaviour
{
public int health = 200;
public void TakeDamage(int amount)
{
health -= amount;
if(health <= 0)
{
Die();
}
}
private void Die()
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... |
using System;
using System.Linq;
namespace InvoiceObjects
{
class Program
{
static void Main(string[] args)
{
/* (Querying an Array of Invoice Objects) Use the class Invoice provided in the ex09_03 folder
with this chapter’s examples to create an array of Invo... |
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace SkillsGardenDTO
{
/// <summary>
/// The DTO for exercise
/// </summary>
public class ExerciseBody
{
/// <summary>
/// The name of the exercise
/// </summary>
/// <example>Pete</... |
using NETCommunity.FsCheck.Cart;
namespace NETCommunity.FsCheck.Discounts.CustomerCharacteristic
{
// 2% discount to customers who are or were members of a military service.
public class TwoPercentMilitaryDiscount : IOrderDiscountRule
{
public decimal Apply(ICart cart)
{
return cart.GrandTotal *... |
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ArmadaEngine.TileMaps
{
public class TilemapManager
{
List<TileMa... |
using System.ComponentModel.DataAnnotations;
using iCopy.Model.Attributes;
namespace iCopy.Model.Request
{
public class ApplicationUserInsert
{
[Required(AllowEmptyStrings = false, ErrorMessage = "ErrNoEmail")]
[DataType(DataType.EmailAddress, ErrorMessage = "EmailWrongFormat")]
[MaxLe... |
using TreeStore.Model.Base;
namespace TreeStore.Model
{
public class Tag : FacetingEntityBase, Messaging.ITag
{
public Tag()
: base(string.Empty, new Facet(string.Empty))
{ }
public Tag(string name)
: base(name, new Facet(name))
{ }
public Tag(... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(SpriteRenderer))]
public class Blink : MonoBehaviour
{
[SerializeField] private Color _targetColor;
[SerializeField] private float _duration;
[SerializeField] private bool _loop;
private Sprite... |
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using test1;
namespace test1.test
{
[TestClass]
public class TaskTest1
{
[TestMethod]
public void TaxShouldBe5PrecentWhen()
{
// Arange
// Act
decimal rezult = Program... |
using System.Collections.Generic;
using System.Threading.Tasks;
using DemoStandardProject.DTOs;
using DemoStandardProject.Models.ServiceResponse;
namespace DemoStandardProject.Services
{
public interface IProductStockLogService
{
Task<ServiceResponse<List<GetProductStockLogDto>>> GetStockLogAll();
... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace PF2e_Encounter_Builder.Models
{
public class DisplayMonsterModel
{
[Required]
public string MonsterName;
[Required]
[Range(-1,... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// Singleton that manages all UI in the level
/// </summary>
public class LevelUIManager : MonoBehaviour {
private static LevelUIManager _instance;
private void Awake()
{
if(_instance != null)
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HackerrankSolutionConsole
{
class pairs : Challenge
{
static int pairsHelper(int[] a, int k)
{
int pairCount = 0;
//works but times out
... |
using UnityEngine;
public class CameraFlow : MonoBehaviour
{
public Transform target;
public float smoothSpeed = 3f;
private Vector3 currentVelocity;
void LateUpdate()
{
if(target.position.y > transform.position.y)
{
Vector3 newPosition = new Vector3(tran... |
using UnityEngine;
using System.Collections;
public class EquipedItem : MonoBehaviour {
public AudioClip activatePearl;
public AudioClip deactivatePearl;
public AudioClip dropBomb;
public LayerMask lightLayer;
private bool moonMode = false;
private bool sunMode = false;
public float pearlUseTime = 0.4f;
flo... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Spine.Unity;
public class Tutorial : MonoBehaviour {
public GameObject dialogos;
public GameObject window;
//ESCRITURA
// Use this for initialization
void Start ()
{
}
// Update is called once per frame
void Update... |
using Microsoft.EntityFrameworkCore;
namespace HandCloud.Backend.Models
{
public class HandCloudContext : DbContext
{
public HandCloudContext(DbContextOptions<HandCloudContext> options) : base(options)
{
}
public DbSet<Car> Car { get; set; }
protected override void On... |
using System;
using System.Collections.Generic;
public class ABZipMD5Infos
{
private List<MD5Info> _md5Infos = new List<MD5Info>();
public string zipName
{
get;
private set;
}
public List<MD5Info> md5Infos
{
get
{
return this._md5Infos;
}
}
public ABZipMD5Infos(string zipName)
{
this.zipName... |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="HttpRequest.cs" company="">
//
// </copyright>
// <summary>
// The http request.
// </summary>
// ----------------------------------------------------------------------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.