text stringlengths 13 6.01M |
|---|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : MonoBehaviour
{
[SerializeField] Transform playerCamera = null;
[SerializeField] float mouseSensitivity = 3.5f;
[SerializeField] float walkSpeed = 15.0f;
[SerializeField] float sprintSpeed = ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TestNameSpace
{
class StructTest
{
}
struct point1
{
public double x;
public double y;
public point1(int x, int y)
{
this.x = x;
this.y = y;
... |
namespace SFA.DAS.ProviderCommitments.Infrastructure.OuterApi.Requests.Apprentices.ChangeEmployer
{
public class GetInformRequest : IGetApiRequest
{
public long ProviderId { get; }
public long ApprenticeshipId { get; set; }
public GetInformRequest(long providerId, long apprenticeshipId... |
using Game.World;
using UnityEngine;
public class CharacterShoot : CharacterAbility {
[SerializeField] protected Bullet _bulletPrefab;
[SerializeField] protected float _cooldown = 1;
[SerializeField] protected Transform _spawnPositionLeft;
[SerializeField] protected Transform _spawnPositionRight;
[Seriali... |
using System;
using Evernote.EDAM.Type;
using EvernoteSDK;
using EvernoteSDK.Advanced;
namespace En
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
ENSessionAdvanced.SetSharedSessionConsumerKey("your key", "your secret");
... |
using System;
using System.Collections;
using Sce.PlayStation.Core;
using Sce.PlayStation.Core.Imaging;
using Sce.PlayStation.Core.Graphics;
using Sce.PlayStation.HighLevel.GameEngine2D;
using Sce.PlayStation.HighLevel.GameEngine2D.Base;
namespace ShootingApp
{
public enum BulletType
{ Single, Line, Circle, Spiral,... |
namespace Shouter.Web.Views.Users
{
using System.IO;
using SimpleMVC.Interfaces;
public class Register : IRenderable
{
public string Render()
{
return File.ReadAllText(Constants.ContantPath + "register.html");
}
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EBS.Domain.ValueObject;
using EBS.Infrastructure.Extension;
namespace EBS.Query.DTO
{
public class SaleOrderDto
{
public int Id { get; set; }
public string Code { get; set; }... |
using MongoDb.CarPark.Entities.Concrete;
namespace MongoDb.CarPark.DataAccess.Abstract
{
public interface ISerieRepository : IRepository<Serie, string>
{
}
}
|
using System;
using System.ComponentModel;
using System.Globalization;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
namespace CODE.Framework.Wpf.Mvvm
{
/// <summary>
/// Grid UI element that is automatically made visible and invisible depending on whether the current model i... |
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;
namespace DatingApp.API.Model
{
public partial class DatingAppContext : DbContext
{
public DatingAppContext()
{
}
public DatingAppContext(DbContextOptions<DatingAppContext> options... |
using DataAccess;
using Microsoft.Extensions.DependencyInjection;
using Models;
using System;
using System.Linq;
using System.Threading.Tasks;
namespace Services.Users
{
public interface IUserService
{
Task<User> Authenticate(string username, string password);
}
public class UserService : IUserService
{
pri... |
using Microsoft.AspNet.SignalR;
namespace Uintra.Features.Notification
{
[Authorize]
public class UintraHub : Hub
{
}
} |
using System;
using System.Collections.Generic;
using System.Text;
namespace Products
{
public abstract class Product
{
public int ProductID { get; set; }
public string BrandName { get; set; }
public string ProductName { get; set; }
public string Department { get; set; }
p... |
using System;
using HandlingException.HelperClass;
namespace HandlingException
{
public static class Demo3
{
public static void Run()
{
/*
MESSAGE:
Attempted to divide by zero.
STACK TRACE:
at HandlingException.HelperCl... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.ServiceModel;
using System.Threading;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using Microsoft.Win32;
using Appnotics.PCBackupLib;
using Appnot... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace UKPR.Hermes.Asp.NetCoreApi.Dtos
{
public class AvailibilityWithWindowsForCreation : AvailibilityDeclarationForCreation
{
public ICollection<NGWindowForCreation> windows { get; set; }
= new ... |
using System;
namespace RBush
{
public class Envelope
{
public double MinX;
public double MinY;
public double MaxX;
public double MaxY;
public double Area => Math.Max(this.MaxX - this.MinX, 0) * Math.Max(this.MaxY - this.MinY, 0);
public double Margin => Math.Max(this.MaxX - this.MinX, 0) + Math.Max(th... |
using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// Causes a Popup to open when a Button is clicked or a hotkey is
/// pressed.
/// When attached to GameObjects with a Button, this will add a
/// callback to the Button's onClick listener that opens a Popup.
/// </summary>
[RequireComponent(typeof(Button)), Dis... |
using Cottle.Functions;
using Cottle.Values;
using EddiSpeechResponder.Service;
using EddiSpeechService;
using System;
using System.Linq;
namespace EddiSpeechResponder.CustomFunctions
{
[JetBrains.Annotations.UsedImplicitly]
public class VoiceDetails : ICustomFunction
{
public string name => "Voic... |
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Extensions.Configuration;
namespace Org.Common.Web.Configuration
{
public class ServiceDiscoveryConfigurationSource : IConfigurationSource
{
public IConfigurationProvider Build(IConfigurationBuilder builder)
{
... |
using System;
using System.Collections.Generic;
using System.Collections;
using System.Collections.Specialized;
namespace LeetCodeTests
{
public abstract class Problem_0009
{
/*
Determine whether an integer is a palindrome.Do this without extra space.
Some hints:
Could negative integers be palindromes? ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Genesys.WebServicesClient
{
public interface IEventSubscription : IDisposable
{
}
}
|
using UnityEngine;
namespace UnityAtoms.BaseAtoms
{
/// <summary>
/// Event Instancer of type `int`. Inherits from `AtomEventInstancer<int, IntEvent>`.
/// </summary>
[EditorIcon("atom-icon-sign-blue")]
[AddComponentMenu("Unity Atoms/Event Instancers/Int Event Instancer")]
public class In... |
using Cs_Gerencial.Dominio.Entities;
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 Microsoft.AspNetCore.Hosting;
namespace IDI.Digiccy.Transaction.Service
{
internal abstract class HostService
{
public HostService(IWebHost host) { }
protected virtual void OnStarting(string[] args) { }
protected virtual void OnStarted() { }
protected virtual void OnSt... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TubeController : MonoBehaviour
{
private float speed = 1;
private GameController gameController;
private void Awake()
{
gameController = FindObjectOfType<GameController>();
speed = gameContro... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EBS.Application;
using Dapper.DBContext;
using EBS.Domain.Service;
using EBS.Domain.Entity;
using EBS.Domain.ValueObject;
using EBS.Application.DTO;
using Newtonsoft.Json;
using EBS.Application.Fac... |
namespace TripDestination.Data.Models
{
public enum TripStatus
{
Open = 1,
Closed = 2,
InProgress = 3,
Finished = 4
}
}
|
namespace Properties.Models
{
public class Photo
{
public string PhotoReference { get; set; }
public string PhotoUrl { get; set; }
public int Index { get; set; }
}
} |
using System.Windows;
using System.Windows.Documents;
using System.Windows.Markup;
namespace CODE.Framework.Wpf.Documents
{
/// <summary>Paragraph object capable of displaying simple HTML fragments as part of Flow Documents</summary>
[ContentProperty("Html")]
public class HtmlParagraph : Paragraph
{
... |
using UnityEngine;
using UnityEngine.SceneManagement;
public class GameManager : MonoBehaviour
{
[SerializeField] private GameObject player_prefab;
[SerializeField] private Vector3 spawn_location;
private GameObject player;
public static GameManager instance = null;
private void Awake()
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.Net.Mail;
using System.Net;
using System.IO;
using System.Data;
namespace TestTutorial101
{
public partial class ForgotPasswaord : System.Web.U... |
namespace StackTask
{
/// <summary>
/// Main class of program of realization stack
/// contains creating a stack adding and removing elements and it clearing.
/// </summary>
class EntryPoint
{
static void Main(string[] args)
{
Stack<int> stack = new Stack<int>();
... |
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.Configuration;
using Xunit;
namespace Westerhoff.Configuration.EnvironmentAliases.Test
{
public class IntegrationTests
{
[Fact]
public void VariablesAreMapped()
{
Envir... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MerchantRPG.Data
{
public class ItemTemplate
{
public readonly string Name;
public readonly int Level;
public readonly ItemSlot Slot;
public readonly ItemStereotype Stereotype;
public readonly double Attack;
... |
using System;
using Xunit;
namespace NStandard.Test
{
public class EnumOptionTests
{
private enum ETest { Default = 16 }
[Fact]
public void Test1()
{
var a0 = new EnumOption(typeof(ETest), nameof(ETest.Default));
var a1 = new EnumOption(typeof(ETest), n... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LINQJoinFile
{
class Program
{
static void Main(string[] args)
{
string[] names = System.IO.File.ReadAllLines(@"names.csv");
string[] scores = S... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using AutoMapper;
using Conditions;
using Conditions.Guards;
using Properties.Core.Interfaces;
using Properties.Core.Objects;
using Swashbuckle.Swagger.Annotations;
namespace Properties.C... |
using System.Collections.Generic;
using System.Threading;
using Framework.Core.Common;
using Framework.Core.Config;
using OpenQA.Selenium;
using OpenQA.Selenium.Support.PageObjects;
namespace Tests.Pages.Oberon.Event
{
public class EventUpdate : EventBasePage
{
public EventUpdate(Driver d... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// Author: Corwin Belser
/// Allows active states to be stored for wall types in tile prefabs,
/// preventing them from being overriden when the base prefab is updated
[ExecuteInEditMode]
public class PrefabActiveTogglePropertyLock : Mo... |
using System;
using LinkedListExample.Lib;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace LinkedListExample.Tests
{
[TestClass]
public class BasicLinkedListTests
{
// Unit test work just make sure you are debugging in the right folder
[TestMethod]
public ... |
using System.IO;
namespace AxiEndPoint.EndPointClient.Crypt
{
public interface ICryptor
{
byte[] EncryptData(byte[] bytes, byte[] cryptKey);
byte[] DecryptData(byte[] bytes, byte[] cryptKey);
Stream EncryptData(Stream data, byte[] cryptKey);
Stream DecryptData(Stream data, byte[] cryptKey);
}
} |
using ClientDependency.Core;
using Umbraco.Core.PropertyEditors;
using Umbraco.Web.PropertyEditors;
namespace Our.Umbraco.Tuple.PropertyEditors
{
[PropertyEditor(PropertyEditorAlias, PropertyEditorName, "JSON", PropertyEditorViewPath, Group = "Common", Icon = "icon-sience", IsParameterEditor = false)]
[Proper... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Aeropuerto
{
class Validation
{
public static void SoloLetras(KeyPressEventArgs V)
{
if (Char.IsLetter(V.KeyChar))
{
... |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class RandomUtils {
public static T RandomItem<T>(System.Random r, List<T> items) {
int index = (int) Mathf.Floor((float)r.NextDouble() * items.Count);
return items[index];
}
}
|
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#pragma warning disable 0649 // For serialized fields
using UnityEngine;
using Random = UnityEngine.Random;
public class Flock : FingerSurface
{
[System.Serial... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Robotiv2
{
public class Weapon : Items
{
public int combatpower;
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace ShopMVC.Models
{
public class TovarCategory
{
public IEnumerable<TovarModels> Tovars { get; set; }
public SelectList Categories { get; set; }
}
} |
using Acr.UserDialogs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UIMAYE.businesslayer;
using UIMAYE.classes;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace UIMAYE.Views
{
[XamlCompilation(XamlCompilationOptions.Compile)]
... |
using SimpleRESTChat.Entities;
using SimpleRESTChat.Services.Enumerations;
namespace SimpleRESTChat.Services.BusinessObjects
{
public class UserBo
{
public UserBo(string id, UserAction userAction)
{
Id = id;
UserAction = userAction;
}
public UserBo(User... |
using CPClient.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Text;
namespace CPClient.Data.Interfaces
{
public interface IEnderecoTipoRepository : IRepository<EnderecoTipo>
{
}
}
|
using System;
namespace DemoApplication.Pattern2_Prototype
{
public abstract class BasicCar
{
public string Brand { get; set; }
public string Engine { get; set; }
public string Transmission { get; set; }
public int Price { get; set; }
public static int SetPrice()
... |
//-----------------------------------------------------------------------
// <copyright file="CameraPoseFinder.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace Micr... |
using System.Collections.Generic;
using Newtonsoft.Json;
namespace TwitterAnalytics.Domain.Models.SentimentAnalysis
{
public class ResponseRootObject
{
[JsonProperty("documents")] public List<ResponseDocument> Documents { get; set; }
[JsonProperty("errors")] public List<Error> Errors { get; se... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace ApartmentApps.Data
{
public interface IBaseEntity
{
int Id { get; }
DateTime? CreateDate { get; set; }
//DateTime? UpdateDate { ge... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Http;
using wsApiEPayment.Models;
using wsApiEPayment.Models.Openpay;
using wsApiEPayment.Services.Openpay;
namespace wsApiEPayment.Controllers
{
public class... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Ball : MonoBehaviour
{
private Rigidbody rbball;
private Vector3 direction = Vector3.one;
[SerializeField] private float force;
// Start is called before the first frame update
private int points1;
pri... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VnStyle.Services.Business.Models;
namespace VnStyle.Services.Business
{
public interface IArtistsService
{
IList<ArtistListingModel> GetAllArtists();
IEnumerable<ImagesByA... |
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 JustRipeFarm.ClassEntity;
using MySql.Data.MySqlClient;
namespace JustRipeFarm
{
public partia... |
using System;
namespace ConsoleApplication1
{
class StudentListHandlerEventArgs : EventArgs
{
public string Name { get; set; }
public string Type { get; set; }
public Student Stud { get; set; }
public StudentListHandlerEventArgs()
{
Name = "[emp... |
using System;
using System.Net.Http;
using System.Threading.Tasks;
using BerdziskoBot.Models;
using BerdziskoBot.Modules;
using BerdziskoBot.Services;
using Discord;
using Discord.Commands;
using Discord.WebSocket;
using Microsoft.Extensions.DependencyInjection;
namespace BerdziskoBot
{
class Program
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataAccess.Concrete.EntityFramework.Abstract;
using Entities.Concrete;
namespace DataAccess.Concrete.EntityFramework.Concrete
{
public class EfBrandDal : EfEntityRepository<Brand,ReCapContext>... |
using CarRental.API.DAL.Entities;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace CarRental.API.DAL.DataServices.Car
{
public interface ICarDataService
{
Task<CarItem> GetAsync(Guid id);
Task<IEnumerable<CarItem>> GetAllAsync(... |
using BradescoPGP.Common;
using BradescoPGP.Repositorio;
using BradescoPGP.Web.Areas.Portabilidade.Enums;
using BradescoPGP.Web.Areas.Portabilidade.Interfaces;
using BradescoPGP.Web.Areas.Portabilidade.Models;
using BradescoPGP.Web.Controllers;
using System;
using System.Collections.Generic;
using System.Data.Entity;
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sparda.SettingProviderContext.DAL.V6.y2017_m9_d22_h13_m25_s45_ms528;
using System.Data.Services;
using System.Web;
using Sparda.Contracts;
using Sparda.Core.Helpers;
namespace Sparda.Core.Services... |
using System;
using System.Windows.Forms;
using TY.SPIMS.Client.Helper;
using TY.SPIMS.Controllers;
using TY.SPIMS.Entities;
using TY.SPIMS.POCOs;
using TY.SPIMS.Utilities;
using ComponentFactory.Krypton.Toolkit;
using System.Collections.Generic;
using TY.SPIMS.Controllers.Interfaces;
namespace TY.SPIMS.Client.Payment... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityStandardAssets.CrossPlatformInput;
public class PlayerControllerAndroid : MonoBehaviour
{
Rigidbody2D rb;
//Some var for run and animation
public float speed;
bool facingRight=true;
public Animator anim;
//public GameO... |
using System;
using Excel = Microsoft.Office.Interop.Excel;
namespace My_News
{
class Excel_Helper
{
Excel.Application xlApp;
Excel.Workbook xlWorkBook;
Excel.Worksheet xlWorkSheet;
object misValue = System.Reflection.Missing.Value;
public void Create()
{
... |
// Utility.cs
//
using System;
using System.Collections;
using System.Html;
using System.Runtime.CompilerServices;
using System.Serialization;
using jQueryApi;
namespace SportsLinkScript.Shared.Facebook
{
public delegate void FBUiHandler(object response);
[IgnoreNamespace]
[Imported]
public static cl... |
using System;
namespace ClassRoom
{
public class Studerende
{
public string Name { get; }
public int BirthMonth { get; }
public int BirthDay { get; }
public Studerende()
{
}
public Studerende(string name, int birthMonth, int birthDay)
{
... |
using IAPharmacySystemService.Settings;
using Microsoft.Extensions.Options;
using Newtonsoft.Json;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace IntegrationAdaptersPharmacySystemService.MicroserviceComunicator
{
public class ActionBenefitService : IActionBenefitService
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Newtonsoft.Json;
namespace DATN_Hoa_Yambi.Controllers
{
public class PVLController : Controller
{
// GET: PVL
public ActionResult Index()
{
if (Session["User"] !=... |
using HarmonyLib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using RimWorld;
using Verse;
using UnityEngine;
namespace SyrThrumkin
{
public class Frostleaf : Plant
{
public override float GrowthRate
{
... |
// Copyright (c) Christopher Clayton. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace praxicloud.core.metrics
{
#region Using Clauses
using System;
#endregion
/// <summary>
/// A metric that indicates an known ev... |
/*
* Company:
* Motto: Talk more to loved ones!
* Assignment: A book shelf application
* Deadline: 2012-01-02
* Programmer: Baran Topal
* Solution name: .BookShelfWeb
* Folder name: .DataAccess
* Project name: .BookShelfWeb.DAL
* File name: BookShelfUserDAL.cs
* Status: Finished
*/
using System;
using S... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace RiskEngine
{
public class CommonFunctions
{
/// This is a library of common functions not necessarily tied to any individual object,
/// such as the board, a player, etc.
public static int RES... |
using Microsoft.EntityFrameworkCore.Migrations;
namespace SimpleRESTChat.DAL.Migrations
{
public partial class ExtendChatTable : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "User",
k... |
using Alabo.Domains.Query.Dto;
using Alabo.Domains.Repositories.Mongo.Extension;
using Alabo.Industry.Shop.Orders.Domain.Enums;
using MongoDB.Bson;
using Newtonsoft.Json;
namespace Alabo.Industry.Shop.Orders.Dtos
{
/// <summary>
/// 订单
/// </summary>
public class OrderListInput : ApiInputDto
{... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Serilog;
using Witsml.ServiceReference;
using WitsmlExplorer.Api.Models;
using WitsmlExplorer.Api.Query;
namespace WitsmlExplorer.Api.Services
{
public interface IMessageObjectService
{
Task<MessageOb... |
using Tomelt.Localization;
using Tomelt.UI.Navigation;
namespace Tomelt.MediaLibrary {
public class AdminMenu : INavigationProvider {
public Localizer T { get; set; }
public AdminMenu() {
T = NullLocalizer.Instance;
}
public string MenuName { get { return "admin"; } }... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using OPCAutomation;
namespace OPCClient.UserContols
{
public partial class ucOPCServer : OPCClient.UserContols... |
using NUnit.Framework;
using SFA.DAS.ProviderCommitments.Web.Models.OveralppingTrainingDate;
using System.Threading.Tasks;
namespace SFA.DAS.ProviderCommitments.Web.UnitTests.Controllers.OverlappingTrainingDateRequestControllerTests
{
[TestFixture]
public class WhenIGetEmployerNotified
{
private O... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AlgorithmProblems.Dynamic_Programming
{
/// <summary>
/// Given a path of Size 4*width.
/// And an infinite supply of brick of size 1x4.
/// The brick can be layed horizontally... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Battle_city
{
public class Boom : Object_of_map
{
}
}
|
using System.Xml;
using NUnit;
namespace Ghpr.NUnit.Extensions
{
public static class XmlNodeExtensions
{
public static string Val(this XmlNode node) => node.GetAttribute("value");
}
} |
using Sentry.Extensibility;
using Sentry.Internal.Extensions;
using Sentry.Reflection;
namespace Sentry.Internal;
internal class MainSentryEventProcessor : ISentryEventProcessor
{
internal const string CultureInfoKey = "Current Culture";
internal const string CurrentUiCultureKey = "Current UI Culture";
in... |
#if NETCOREAPP3_1_OR_GREATER
using Sentry.Testing;
namespace Sentry.Tests.Internals;
[UsesVerify]
public class MemoryInfoTests
{
private readonly IDiagnosticLogger _testOutputLogger;
public MemoryInfoTests(ITestOutputHelper output)
{
_testOutputLogger = new TestOutputDiagnosticLogger(output);
... |
using System;
using System.Collections.Generic;
using System.Text;
using MongoDB.Entities;
using MongoDB.Entities.Core;
namespace ProductService.Persistance.Entities
{
[Name("Products")]
public class Product : Entity
{
public string Name { get; set; }
public double Price { get; set; }
... |
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Euler_Logic.Problems.AdventOfCode.Y2018 {
public class Problem05 : AdventOfCodeBase {
public override string ProblemName {
get { return "Advent of Code 2018: 5"; }
}
public override string GetAns... |
using System;
using System.Drawing;
using UIKit;
using Welic.App.Services.ResizePcture;
using Xamarin.Forms;
[assembly: Dependency(typeof(Welic.App.iOS.Implements.ResizePicture))]
namespace Welic.App.iOS.Implements
{
class ResizePicture : IResizePicture
{
public byte[] ResizeImage(byte[] imageData, fl... |
namespace Sentry;
/// <summary>
/// Models members common between types that represent event-like data.
/// </summary>
public interface IEventLike : IHasBreadcrumbs, IHasTags, IHasExtra
{
/// <summary>
/// Sentry level.
/// </summary>
SentryLevel? Level { get; set; }
/// <summary>
/// Gets or ... |
using System;
using System.Collections.Generic;
using Jypeli;
using Jypeli.Assets;
using Jypeli.Controls;
using Jypeli.Widgets;
namespace Tasohyppelypeli;
/// @author Omanimi
/// @version Päivämäärä
/// <summary>
///
/// </summary>
public class Tasohyppelypeli : PhysicsGame
{
private const double NOPEUS = 200;
... |
using EAN.GPD.Domain.Entities;
namespace EAN.GPD.Domain.Repositories
{
public interface IUnidadeMedidaRepository : IBaseRepository<UnidadeMedidaEntity>
{
}
internal class UnidadeMedidaRepository : BaseRepository<UnidadeMedidaEntity>, IUnidadeMedidaRepository
{
}
}
|
using Tools;
namespace _072
{
class Program
{
private static long TotientFunc(int num)
{
var primeFactors = NumUtils.ComputePrimeFactorization_Cached(num);
long res = num;
foreach (var primeFactor in primeFactors)
{
res *= primeF... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMove : MonoBehaviour
{
#region 변수 목록
private GameManager gameManager = null;
private Animator animator = null;
private AudioSource audioSource = null;
private bool isDamaged = false;
private Spri... |
using System.Windows;
using System.Windows.Controls;
namespace Watch
{
public partial class Analog : UserControl
{
public Analog()
{
// Required to initialize variables
InitializeComponent();
//Loaded += AnalogLoaded;
}
//void AnalogLoaded(object sender, RoutedEventArgs e)
/... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CRL.Person
{
public class IPerson : Person
{
}
/// <summary>
/// 会员/人
/// </summary>
[Attribute.Table(TableName = "Person")]
public class Person : IModelBase,CoreHelper.FormAuthentication.IU... |
using System.Data.Entity;
namespace VesApp.Domain
{
public class DataContext : DbContext
{
public DataContext() : base("DefaultConnection")
{
}
public System.Data.Entity.DbSet<VesApp.Domain.Reflexion> Reflexions { get; set; }
public System.Data.Entity.DbSet<VesApp.Do... |
using System;
namespace Coding
{
class Program
{
static void Main(string[] args)
{
int number = int.Parse(Console.ReadLine());
string numberInString = number.ToString();
for (int rows = 0; rows < numberInString.Length; rows++)
{ ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.