text stringlengths 13 6.01M |
|---|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ITW.Protocol.FromServer
{
[Serializable]
public class Connect : Packet
{
public const string TypeName = "FromServer::Session::Connect";
public Connect()
{
base.Packe... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Human : Vehicle
{
// targets
public GameObject humanTarget;
List<GameObject> zombieChasers;
// reference to agent manager
AgentManager manager;
// weights for seek and flee
public float seekWeight... |
#if CIVIL2021
using System.Collections.Generic;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.Civil.ApplicationServices;
using CivilDB = Autodesk.Civil.DatabaseServices;
using Polycurve = Objects.Geometry.Polycurve;
namespace Objects.Converter.AutocadCivil
{
public partial class ConverterAutocadCivil
... |
using System.Threading.Tasks;
using HaloHistory.Business.Models.Profile;
namespace HaloHistory.Business
{
public interface IProfileBusiness
{
Task<PlayerProfile> GetPlayer(string gamertag);
}
} |
namespace OmniGui.VisualStates
{
using System.Collections.Generic;
using Zafiro.Core;
public class VisualStateManager
{
private static IDictionary<Layout, ICollection<VisualStateGroup>> GroupsByLayout { get; } =
new Dictionary<Layout, ICollection<VisualStateGroup>>();
publ... |
namespace CloneDeploy_Entities.DTOs.ClientPartition
{
public class ExtendedPartitionHelper
{
public ExtendedPartitionHelper()
{
AgreedSizeBlk = 0;
HasLogical = false;
IsOnlySwap = false;
LogicalCount = 0;
MinSizeBlk = 0;
}
... |
using System.Diagnostics;
using Microsoft.AspNetCore.Mvc;
using DotNetCore20Config.Models;
using Microsoft.Extensions.Configuration;
namespace DotNetCore20Config.Controllers
{
public class HomeController : Controller
{
private readonly IConfiguration _configuration;
public HomeController(ICon... |
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace DuaControl.Web.Data.Entities
{
public class Puerto
{
//Relationship between Facturas and Ports
public ICollection<Factura> Facturas { get; set; }
public int Id { ge... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace RoutingSlipWebApp.Services
{
public class NewOrder
{
}
}
|
using System.Management.Automation.Language;
using FluentAssertions;
using NSubstitute;
using NUnit.Framework;
using PSPatcher.Core.AstExtensions.PS.Visitors;
namespace PSPatcher.Tests.AstExtensionsTests.PSTests.VisitorsTests
{
[TestFixture]
public class FindTypeDefinitionVisitor_Tests
{
private F... |
using System;
using System.Text;
namespace Rottytooth.Esolangs.Stasis
{
public abstract class Variable
{
internal double _rawValue = 0.0;
internal virtual double RawValue {
get { return _rawValue; }
set { _rawValue = value; }
}
public virtual int Size
... |
using Pizza_FinalProject.Domain;
using System;
using System.Data.Entity;
using System.IO;
namespace Pizza_FinalProject
{
public class PizzaOrderSystemDbContext : DbContext
{
const string DbName = "pizzaordersystemdb.mdf";
static string DbPath = Path.Combine(Environment.CurrentDirectory, DbName... |
using System.Collections.Generic;
using SwordTestApi.Contracts.Models;
namespace SwordTestApi.Contracts
{
public interface IRiskDataSource
{
List<Risk> GetRisks();
}
}
|
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SpriteController : MonoBehaviour
{
public GameObject busObject;
public Sprite busOne;
public Sprite busTwo;
public GameObject backgroundObject;
public Sprite background1;
public Sprite ba... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
public static class SaveManager
{
public static void SaveTime (string time)
{
BinaryFormatter formatter = new BinaryFormatter();
string path = Ap... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Security.Cryptography;
namespace Salvar_Dados
{
class Program
{
static void Main(string[] args)
{
bool chave = false;
bool ga... |
using ClosedXML.Excel;
using RA_API.Models;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace RA_API.Connection
{
class FileHandling
{
... |
using System;
using System.Linq;
using Microsoft.AspNetCore.Http;
using System.Threading.Tasks;
using Eventures.Data;
using Eventures.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.DependencyInjection;
namespace Eventures.Middleware
{
public class SeedRolesMiddleware
{
private... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BossSpawner : MonoBehaviour {
public GameObject bossPrefab;
void Update() {
GameObject[] enemies = GameObject.FindGameObjectsWithTag("Enemy");
if (enemies.Length.Equals(0)) {
GameObject boss... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class noteScript : MonoBehaviour {
float speed = -6.0f;
Vector2 move;
// Use this for initialization
void Start () {
move = new Vector2(0, 0);
}
// Update is called once per frame
void Update () {
... |
using Foundation;
using System;
using UIKit;
using CoreGraphics;
namespace EsMo.iOS.WeiBo.Entity
{
public partial class TopAlignLabel : UILabel
{
public TopAlignLabel(IntPtr handle) : base(handle)
{
}
public override void DrawText(CGRect rect)
{
if (this.Te... |
using System;
using System.Data.SqlClient;
using Entity;
using System.Data;
namespace DataAccess
{
public class ChiTietPhieuDA
{
public static ListChiTietPhieuEntity SelectAll()
{
SqlCommand command = DUtils.GetCommand();
command.CommandType = System.Data.Co... |
using System.Threading.Tasks;
namespace Zillow.Service.Services.EmailServices
{
public interface IEmailService
{
Task SendEmail(string sendTo, string msgSubject, string msgContent);
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StringCalculator
{
public class Calculator
{
public int Add(string input)
{
int Result = 0;
var delemiters = new List<char>() { ',', '\n', '/',... |
using System.Collections.ObjectModel;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Input;
using Emanate.Extensibility;
namespace Emanate.Delcom.Admin.Devices
{
public class DelcomDeviceManagerViewModel : ViewModel
{
private readonly DelcomConfiguration delcomConfiguration;
... |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using UnityEngine;
namespace UnityLocalization.Data {
[Serializable]
public class Locale : IEquatable<Locale> {
[SerializeField] private string localeCode;
[SerializeField] private string englishName... |
using DevExpress.XtraEditors;
using MetroFramework;
using MetroFramework.Forms;
using PDV.CONTROLER.Funcoes;
using PDV.DAO.Entidades;
using PDV.UTIL;
using PDV.VIEW.App_Context;
using PDV.VIEW.Forms.Cadastro;
using System;
using System.Data;
using System.Windows.Forms;
namespace PDV.VIEW.Forms.Consultas
{
public ... |
namespace WebMarkupMin.Core.Configuration
{
using System.Configuration;
using Constants;
/// <summary>
/// Configuration settings of logging
/// </summary>
public sealed class LoggingConfiguration : ConfigurationElement
{
/// <summary>
/// Gets or sets a name of default logger
/// </summary>
[Configur... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Timers;
namespace CoursIngesup.Projet2
{
class Lecture
{
List<SousTitres> soustitres = new List<SousTitres>();
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ItemPanel : MonoBehaviour
{
public KeyCode targetKey = KeyCode.Escape;
public GameObject itemPanel;
// Start is called before the first frame update
void Start()
{
}
// Upd... |
using System.Collections.Generic;
namespace MeterReadings.Schema
{
public class AddMeterStatusResponse
{
public int SuccessfulCount { get; set; }
public int FailedCount { get; set; }
public IEnumerable<string> Errors { get; set; }
}
} |
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace TrashCollectorApp.Data.Migrations
{
public partial class V27 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "AspNetRoles",
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerShoot : MonoBehaviour
{
[SerializeField] GameObject bulletPrefab;
[SerializeField] float timeBetweenShoots = 0.7f;
float currentTime;
bool shooting;
private void Update()
{
i... |
using System;
using System.Collections.Generic;
using System.Text;
using Football.DAL.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace Football.DAL.Configurations
{
public class PlayerMatchesConfiguration: IEntityTypeConfiguration<PlayerMatch>
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mercury.Shared
{
internal class ZeusSubscriberFactoryBase : IZeusSubscriber
{
public IZeusConnection Connection { get => throw new NotImplementedException(); set => throw new N... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using Webcorp.lib.onedcut;
namespace Webcorp.OneDCut.Models
{
public class CutModel
{
public SolverEventArgs Solve { get; internal set; }
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MapManger : MonoBehaviour {
//Presets
float heightFactor = 0.1f;
//Data
public TileScr[,] map;
private Texture2D mapTexture;
//Prefabs
private GameObject tilePrefab;
//Materials
private ... |
using System.Collections;
using System.Collections.Generic;
using System;
using UnityEngine;
using UnityEditor;
public class Autobuilder : MonoBehaviour{
public static void BuildGame () {
var scenes = new string[] { "Assets/Scene/3D shooting.unity" };
var flags = BuildOptions.Development;
D... |
//-----------------------------------------------------------------------
// <copyright file="ItemSeedDialog.cs" company="None">
// Copyright (c) Brandon Wallace and Jesse Calhoun. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace TQVaultAE.GUI
... |
using Checkout.Payment.Gateway.Application.Interfaces;
using Checkout.Payment.Gateway.Application.Models;
using Checkout.Payment.Gateway.Domain.Models;
using Checkout.Payment.Gateway.Domain.Models.Enums;
using Checkout.Payment.Gateway.MicroServices.HttpClients;
using Checkout.Payment.Gateway.Seedwork.Extensions;
using... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BrainDuelsLib.widgets;
using UnityEngine;
using BrainDuelsLib.web;
public class UnityLoginFormControl : ControlBase
{
BrainDuelsLib.widgets.UnityLoginWidget widget;
public CrazyGoButton loginButton;
public CrazyGo... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Cointext : MonoBehaviour {
public Text Coin;
public int coin;
// Use this for initialization
void Start () {
//coin = PlayerPrefs.GetInt("money");
Coin.text = PlayerPrefs.GetInt("money").ToString... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/**
* Copyright (c) blueback
* Released under the MIT License
* https://github.com/bluebackblue/fee/blob/master/LICENSE.txt
* http://bbbproject.sakura.ne.jp/wordpress/mitlicense
* @brief 入力。インプットマネージャ編集。
*/
/** NInput... |
namespace Assets.Scripts.Enemies.Enums {
public enum CommandType {
Generic,
SingleTarget,
SquadronTarget
}
} |
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using Newtonsoft.Json;
using System.Web.Script.Serialization;
using System.Data;
namespace FilmShow.OMDb
{
public class OMDbAPI :IOMDbAPI
{
public Dictionary<string, string> MovieInfo(string title, string year = "", st... |
using System.Collections.Generic;
using DotNetty.Buffers;
using DotNetty.Codecs;
using DotNetty.Codecs.Http.WebSockets;
using DotNetty.Transport.Channels;
namespace Plus.Network.Codec
{
internal class WebSocketFrameCodec : MessageToMessageCodec<WebSocketFrame, IByteBuffer>
{
protected override void De... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
namespace WirecastWrapper
{
class Late
{
public static void Set(object obj, string sProperty, object oValue)
{
object[] oParam = new object[1];
oParam[0] = oValue;
... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace HealthCareWebsite.Models
{
public class Cart
{
[Key]
public int OrderID { get; set; }
public int MId { get; set; }
public int... |
using System;
using System.Collections.Generic;
using System.Text;
namespace System.Data.Linq.SqlClient {
/// <summary>
/// Associate annotations with SqlNodes.
/// </summary>
internal class SqlNodeAnnotations {
Dictionary<SqlNode, List<SqlNodeAnnotation>> annotationMap = new Dictionary<SqlNod... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace LateOS.Models
{
[MetadataType(typeof(cCategoria))]
public partial class tbCategoria
{
}
public class cCategoria
{
[Display(Name = "ID Categori... |
using System;
using QuantConnect.Algorithm;
using QuantConnect.Algorithm.Framework.Alphas;
using QuantConnect.Algorithm.Framework.Execution;
using QuantConnect.Algorithm.Framework.Portfolio;
using QuantConnect.Algorithm.Framework.Risk;
using QuantConnect.Algorithm.Framework.Selection;
using QuantConnect.Configuration... |
using System;
using System.Windows.Forms;
namespace Demo04AnonimousMethods
{
class Demo04AnonimousMethods
{
void ShowMsg(string msg)
{
MessageBox.Show(msg);
}
void InvokeDelegate()
{
Action<string> action = ShowMsg;
action("I'm calle... |
namespace Sallaries
{
using System;
using System.Collections.Generic;
using System.Linq;
internal class EntryPoint
{
private static readonly HashSet<int> visited = new HashSet<int>();
private const char HasEmployees = 'Y';
private static void Main(string[] args)
{... |
using UnityEngine;
namespace Script {
public class TetrisInputListener : MonoBehaviour {
private TetrisBlockSimulationModel _model;
private void Start() {
_model = gameObject.GetComponent<TetrisBlockSimulationModel>();
}
private void Update() {
// 左回転
... |
using System;
using System.Windows.Forms;
using System.IO;
using System.Collections.Generic;
using NLog.Config;
using NLog;
using NLog.Targets;
namespace SupportBank
{
public partial class Form1 : Form
{
private static readonly ILogger Logger = LogManager.GetCurrentClassLogger();
IDictionary<s... |
using System;
using MMSCAN;
namespace MMSCAN.intrnl
{
public class SynchronizationGroup : Sybase.Persistence.ISynchronizationGroup
{
private string name;
private SISSubscription __sisSubscription;
private string GetRemoteId()
{
foreach (MMSCAN.KeyGenerator ... |
using UnityEngine;
using UnityEngine.UI;
public class UIManager : MonoBehaviour {
public Text _DamageCount = null;
private int _damageCount = 0;
public void DamageCount () {
_damageCount++;
_DamageCount.text = "Damage Count " + _damageCount;
}
}
|
/****************************************************************************
* Copyright (c) 2017 liangxie
*
* http://qframework.io
* https://github.com/liangxiegame/QFramework
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation file... |
using UnityEngine;
using UnityEngine.UI;
public class Interactable : MonoBehaviour
{
#region Fields
#endregion
#region Constructor
#endregion
#region Properties
#endregion
#region Unity Methods
private void Awake()
{
GetComponent<Button>().interactable = true;
}
... |
#region 版本说明
/*****************************************************************************
*
* 项 目 :
* 作 者 : 李金坪
* 创建时间 : 2014/12/29 16:48:01
*
* Copyright (C) 2008 - 鹏业软件公司
*
*****************************************************************************/
#endregion
/*
<daoFactory assembly="Pen... |
using UnityEngine;
using System.Collections;
public class multiatk : MonoBehaviour {
// Use this for initialization
public int multilevel;
void Start () {
//for test
multilevel = 5;
//
towercontrol temptower = this.GetComponent<towercontrol>();
temptower.multisho... |
#region usings
using System;
using System.ComponentModel;
using System.Data.Linq;
using System.Data.Linq.Mapping;
#endregion
namespace Zengo.WP8.FAS.Models
{
[Table]
public class ApiUpdateRecord : INotifyPropertyChanged, INotifyPropertyChanging
{
// Define ID: private field, public property, a... |
//
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
//
#region Usings
using System.Collections;
using Dnn.PersonaBar.Library.Model;
#endregion
namespace Dnn.PersonaBar.Library.Permissions
{
internal cla... |
using System.Collections.Immutable;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Operations;
namespace Meziantou.Analyzer.Rules;
[DiagnosticAnalyzer(LanguageNames.CSharp)]
public sealed class DoNotUseStringGetHashCodeAnalyzer : DiagnosticAnalyzer
{
private ... |
using System;
using System.Collections.Generic;
namespace ISP._2_after
{
public class Library
{
List<Book> _books = new List<Book>(6);
public IReadOnlyList<Book> GetBooks()=> _books.AsReadOnly();
public void Add(Book book)
{
_books.Add(book);
}
... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Xml;
using InvoiceClient.Properties;
using Utility;
using Model.Schema.TXN;
using InvoiceClient.Helper;
using InvoiceClient.TransferManagement;
using System.Threading.Tasks;
usin... |
using UnityEngine;
namespace GFG
{
public class Level : MonoBehaviour
{
public Canvas Canvas;
private void Awake()
{
Canvas.worldCamera = Camera.main;
}
}
}
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Assets.Scripts.Models
{
public class Platform
{
public string Name { get; set; }
public GameObject PlatformGameObject { get; set; }
public Rigidbody2D PlarformRigidbody2D { get; set; }
publ... |
using System.Windows.Media;
using WMagic.Brush.Basic;
namespace WMagic.Brush.Shape
{
public class GText : AShape
{
#region 构造函数
/// <summary>
/// 构造函数
/// </summary>
/// <param name="graph">图元画板</param>
public GText(MagicGraphic graph)
: base(graph,... |
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 BankingWindowsApplication
{
public partial class Home : Form
{
p... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using personal_site.Models;
namespace personal_site.ViewModels
{
public class AdminLoginViewModel
{
[Required]
public string Username { get; set; }
... |
function ImageSlicer::imageslicerprep(%this, %asset)
{
deactivateDirectInput();
$enableDirectInput = false;
$CURRENTASSET = %asset;
$IMGASSETSCENE = %scene = new Scene();
if(!isObject(CleanupAisle6)) new SimSet(CleanupAisle6);
if(!isObject(TMPDATA_OBJ))
{
new ScriptObject(TMPDATA_... |
using Columns.Types;
using DataFrameLibrary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Metrics.Metrics
{
public class CosineSimilarity : IMetric
{
public Matrix<double> GetMetricMatrix(DataFrame vectorData, IEnumerable<string> exclude = ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace LibreriaObjetos
{
[DataContract]
[Serializable]
public class N_HistoriaClinica
{
[DataMember]
public Int32 id { get; set; }... |
/// <summary>
/// Scribble.rs ♯ namespace
/// </summary>
namespace ScribblersSharp
{
/// <summary>
/// An interface that represents a generalized game message parser
/// </summary>
/// <typeparam name="T">Game message type</typeparam>
public interface IGameMessageParser<T> : IBaseGameMessageParser ... |
/**
* Created 04/10/2020
* By: Sharek Khan
* Last Modified 04/10/2020
* By: Sharek Khan
*
* Contributors: Sharek Khan
*/
using UnityEngine;
/*
* VitaCapsule handles all the logic with the VitaCapsule GameObject and how it applies within the game
*/
public class VitaCapsule : MonoBehaviour
{
public Game... |
using Frostbyte.Entities.Audio;
using Frostbyte.Extensions;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Runtime.Serialization.Formatters.Binary;
namespace Frostbyte.Handlers
{
public sealed class CacheHandler
{
priva... |
using System;
using FirstProject.Intefaces;
using FirstProject.Excecoes;
namespace FirstProject.TiposDeConta
{
public class ContaDeInvestimento : Conta, ITributavel
{
public ContaDeInvestimento(double saldo, string nomeProprietario, DateTime dataAbertura) : base(saldo, nomeProprietario, dataAbertura)
... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CoreComponents.Threading
{
public sealed class TemporalReferenceDictionary<TKey, TValue> : BaseTemporalReference<TValue>, IDictionary<TKey, TValue>, ICollection<... |
using BuissnesLayer;
using DataLayer.Entityes;
using PresentationLayer.Models;
using System;
using System.Collections.Generic;
using System.Text;
namespace PresentationLayer.Services
{
public class CodeService
{
private DataManager _dataManager;
public CodeService(DataManager dataManager)
... |
using ChatApp.Lib.Azure.Storage;
using ChatApp.Lib.Users.Model;
using ChatApp.Lib.Users.Persistence;
using Moq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace ChatApp.Lib.Tests.Users
{
public class AzureStorageActiveUserRepositoryTests
{... |
using DotCom.Pages.Util;
using OpenQA.Selenium;
using OpenQA.Selenium.Support.PageObjects;
using System.Collections.Generic;
namespace DotCom.Pages.ProviderSearch
{
/// <summary>
/// Wraps the health plan selector component to allow a user to choose health plans as a search criteria.
/// </summary>
pu... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Kers.Models.Entities.KERScore
{
public partial class LadderPerformanceRating : IEntityBase
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identi... |
using UnityEditor;
using UnityEngine;
using System.Collections;
[CustomPropertyDrawer(typeof(Analysis))]
public class AnalysisDrawer : PropertyDrawer {
public override float GetPropertyHeight (SerializedProperty property, GUIContent label) {
float height = 32+16+16+16;
return height;
}
public override v... |
namespace HelloWorld2.Models
{
// A trivial model for demonstration purposes
// It will be used to communicate text between controller and view
public class MyFirstModel
{
public string SomeValue { get; set; }
}
} |
using EatDrinkApplication.Contracts;
using EatDrinkApplication.Models;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
namespace EatDrinkApplication.Services
{
public class CocktailDescriptionRequest : ICocktailDescript... |
using System;
namespace tweet_analyzer
{
class Program
{
static void analyzer(string tweet)
{
string hashtags = "";
int hashtagsCounter = 0;
string users = "";
int usersCounter = 0;
int i = 0;
while (i < tweet.Lengt... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class affectFrost : MonoBehaviour
{
FrostEffect frost;
private float stdSeeThrough;
public float freezingSeeThrough = 2f;
private bool isFreezing = false;
private float frostFadeDuration = 0.5f;
// Start is ... |
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Text;
namespace CallOfDutyApiWrapper.Models
{
public class Match
{
public decimal utcStartSeconds { get; set; }
public decimal utcEndSeconds { get; set; }
public string map { get; set; }
pu... |
namespace StructureAssertions.Test.TestTypes
{
public class Consumer
{
public static void Use(decimal d)
{
}
}
} |
using Daren.Baker.Bjss.Assignment.Domain.Enums;
using System;
namespace Daren.Baker.Bjss.Assignment.Domain.Entities
{
public class Discount : BaseEntityGuidKey
{
/// <summary>
/// Value of the discount
/// </summary>
public double Value { get; set; }
/// <summary>
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FreshStart : MonoBehaviour
{
public float MasterVolume = 0;
public float MusicVolume = 0;
public float SFXVolume = 0;
public bool FullScreen = true;
public float ResolutionWidth = 0;
public float Resolu... |
using System.Diagnostics.Eventing.Reader;
using System.Drawing;
using System.Runtime.CompilerServices;
namespace Mazes
{
public static class SnakeMazeTask
{
public static void MoveOut(Robot robot, int width, int height)
{
while (!robot.Finished)
{
Direction di... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MFW.LALLib
{
public class WrapperProxy
{
public static ErrorNumberEnum FreeEvent(IntPtr evt)
{
return (ErrorNumberEnum)WrapperInterface.freeEvent(evt);
... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using LSP._3_before;
namespace ATDD
{
[TestClass]
public class FibonacciNumberGeneratorTest
{
[TestMethod]
public void First5FibonacciNumbersShouldMatch()
{
int[] expected = new int[] { 0, 1, 1, 2, 3 };
in... |
// Copyright (C) 2018 Kazuhiro Fujieda <fujieda@users.osdn.me>
//
// 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 re... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LV2
{
//Treči zadatak
class Die2
{
private int numberOfSides;
private RandomGenerator randomGenerator;
public Die2(int numberOfSides)
... |
using System;
using System.Collections.Generic;
namespace Lib
{
public enum Gender{
Male = 0,
Female
}
public partial class Pet:IPet, IOmnivorous // Implementing Interface
{
// public Pet()
// {
// Console.WriteLine("Empty Constructor has been called");... |
// ----------------------------------------------------------------------------
// <copyright file="LabsModule.cs" company="SOGETI Spain">
// Copyright © 2015 SOGETI Spain. All rights reserved.
// Build user interfaces with Prism by Osc@rNET.
// </copyright>
// -------------------------------------------------... |
using System;
using System.Text;
using Microsoft.Pex.Framework;
using Microsoft.Pex.Framework.Settings;
using Microsoft.Pex.Framework.Exceptions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Stack;
using Stack.Utility;
using PexAPIWrapper;
namespace Stack.Test
{
[PexClass,TestClass]
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.