text stringlengths 13 6.01M |
|---|
using System;
using System.Collections.Generic;
using System.Linq;
using Xamarin.Forms;
using SQLite.Net;
namespace Trabalho2.Models
{
class PedidoRepository : IDisposable
{
private SQLiteConnection _conexao;
public PedidoRepository()
{
var config = DependencyService.Get<I... |
using LogicBuilder.Attributes;
namespace Contoso.Forms.Parameters.SearchForm
{
abstract public class SearchFilterParametersBase
{
}
} |
namespace _5.StrategyPattern.Models
{
using System.Collections.Generic;
internal class PersonCampareByAge : IComparer<Person>
{
public int Compare(Person x, Person y)
{
var resul = x.Age.CompareTo(y.Age);
return resul;
}
}
} |
using API.Entities;
using Microsoft.EntityFrameworkCore;
namespace API.Data
{
public class DataContext : DbContext
{
public DataContext(DbContextOptions options) : base(options)
{
}
public DbSet<Order> Order { get; set; }
public DbSet<Product> Product { get; set; }
... |
using System;
using System.Collections.Generic;
using IronPython.Compiler.Ast;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace Py2Cs.Translators
{
public partial class Translator
{
private (SyntaxResult<SyntaxNode[]>, TranslatorSt... |
using OmniGui.Geometry;
namespace OmniGui.Layouts
{
using System;
using System.Windows.Input;
using Zafiro.PropertySystem.Standard;
public class Button : ContentLayout
{
public static readonly ExtendedProperty CommandProperty = OmniGuiPlatform.PropertyEngine.RegisterProperty("Command", ty... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//Task 13
namespace DeckStructure
{
class Program
{
static void Main(string[] args)
{
Deck testDeck = new Deck();
testDeck.AddLeft(25); //bottom
... |
using Microsoft.AspNetCore.Mvc;
using PortalFramework;
using System;
using System.Collections.Generic;
using System.Text;
//using ClTagHelpers;
namespace Module1.Controllers
{
public class HomeController : BaseController
{
private IMyRepository _repository;
public HomeController(IMyRepository... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ScoreManager : MonoBehaviour
{
[SerializeField]
private int score,highScore;
public static ScoreManager inst;
public Text txtscore;
void Awake()
{
if (inst == null)
... |
using System.Collections;
using System.Collections.Generic;
using System;
using UnityEngine;
[ExecuteInEditMode]
public class SplineMesh : MonoBehaviour
{
[Space(10)]
[SerializeField]
protected BezierSpline spline;
[SerializeField]
protected Mesh flatMesh;
[SerializeField]
protected int fr... |
using Codeplex.Reactive;
using MasterDetailApp.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Codeplex.Reactive.Extensions;
namespace MasterDetailApp.ViewModels
{
public class PersonViewModel
{
public Person Person { get; private set; }
pub... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace AnimalDB
{
public partial class PA2 : System.Web.UI.Page
{
public string conString = @"Data Source=localhost;port=3306;Initial catalog=animal;... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ENTITY;
using OpenMiracle.DAL;
using System.Data;
using System.Windows.Forms;
namespace OpenMiracle.BLL
{
public class ProductCreationBll
{
ProductSP spProduct = new ProductSP();
/// <summary>
/... |
/*
* Copyright (c) 2022 Samsung Electronics Co., Ltd. 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 ... |
using System;
using System.Linq;
using System.Data.SQLite;
using System.Data.Linq;
using Diablo3Analyzer.JsonStructs;
using Diablo3Analyzer.DatabaseStructs;
using System.Text.RegularExpressions;
namespace Diablo3Analyzer
{
class DatabaseController
{
private SQLiteConnection diabloDbConnection;
... |
namespace SGDE.DataEFCoreMySQL.Repositories
{
#region Using
using Domain.Entities;
using Domain.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
#endregion
public class TypeClientRepository : ITypeClientRepository, IDisposable
{
private rea... |
using SimpleCrawler;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace CrawlerWeb
{
public partial class Detail : System.Web.UI.Page
{
protected string Html;
protected int DetailId;
prote... |
namespace TrainingPrep.collections
{
public class Genre
{
public static readonly Genre action = new Genre();
public static readonly Genre thriller = new Genre();
public static readonly Genre comedy = new Genre();
public static readonly Genre kids = new Genre();
public... |
using System;
using Newtonsoft.Json;
namespace OmniSharp.Extensions.JsonRpc
{
public interface ISerializer
{
JsonSerializer JsonSerializer { get; }
JsonSerializerSettings Settings { get; }
string SerializeObject(object value);
object DeserializeObject(string json, Type type);
... |
using System;
using System.Collections.Generic;
namespace _4
{
class Program
{
static void Main(string[] args)
{
List<object> stuff = new List<object>();
stuff.Add(7);
stuff.Add(28);
stuff.Add(-1);
stuff.Add(true);
stuff.Add("... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MainClassLibrary;
namespace EmployeeApplication
{
class Program
{
static void Main(string[] args)
{
MasterClass Employee = new MasterClass();
///Invo... |
namespace traceroute_util
{
class Program
{
private static Traceroute traceroute = new Traceroute();
private const string DNS_VIEW_PARAM = "-d";
static void Main(string[] args)
{
if (args.Length == 1)
{
traceroute.Run(args[0], false);
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SFP.SIT.SERV.Model.IMP
{
public class ImportarSolicitudMdl
{
public Int64 solclave { get; set; }
public string solfolio { get; set; }
public DateTime solfecsol ... |
using System;
using System.Collections.Generic;
using System.Linq;
class SortInIncreasingOrder
{
static void Main()
{
List<int> numbersList = new List<int>();
string input = Console.ReadLine();
while (!string.IsNullOrWhiteSpace(input))
{
numbersList.Add(int.Parse(i... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _08观察者_Observer_设计模式
{
///观察者模式:
///Subject:监视对象,它往往包含着其他对象所感兴趣的内容。
///在本范例中,热水器就是一个监视对象,它包含的其他对象所感兴趣的内容,就是temprature字段,当这个字段的值快到100时,会不断把数据发给监视它的对象。
///Observer:监视者,它监视Subject,当Subject中的某件事发生的时候,会告知Observ... |
using System;
class MainClass
{
public static void Main (string[] args)
{
Console.WriteLine ("enter number between 0 and 500");
uint a = uint.Parse (Console.ReadLine ());
while (!(a >=0 && a <=500)) {
Console.WriteLine ("enter number between 0 and 500");
a = uint.Parse (Console.ReadLine ());
}
strin... |
//
// 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;
using System.Collections.Specialized;
using System.Web.UI;
using DotNetNuke.UI.WebControls;
#endregion
namespace DotNetN... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
public partial class BillVerification : System.Web.UI.Page
{
string obj_Authenticated;
PlaceHolder maPlaceHolder;
UserControl obj_Tabs;
UserCo... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using UdemyMurat.Models.Sınıflar;
using PagedList;
using PagedList.Mvc;
namespace UdemyMurat.Controllers
{
public class YapilacakController : Controller
{
Context c = new Context();
// GE... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class PlayerData
{
public int Colleccionable_1;
public int Colleccionable_bool_1;
public PlayerData (Player player)
{
}
}
|
using SprintFour.Utilities;
using System;
namespace SprintFour.Blocks.BlockStates
{
class PipeSideTopLeftBlockState : BlockStateBase
{
public override Tuple<int, int>[] GetFrames()
{
return Utility.PipeSideTopLeftBlockFrames;
}
}
}
|
namespace OmniSharp.Extensions.JsonRpc.Server
{
public class ResponseBase
{
public ResponseBase(object? id) => Id = id;
public object? Id { get; set; }
}
}
|
using UnityEngine;
using System.Collections;
public class GamepadControls : MonoBehaviour {
//Steuerung wenn ein Gamepad verbunden ist und in den Optionen aktiviert ist
GameObject player;
void Start () {
player = GameObject.FindWithTag("Player");
}
// Update is called once per frame
void Update () {
Ch... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Net.Sockets;
using System.Threading.Tasks;
using System.Windows.Input;
using AppProgramming2.Models;
using AppProgramming2.ViewModels;
using Newtonsoft.Json;
using Xamarin.Essentials;
using Xamarin.Forms... |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace VindiniumCore.GameTypes
{
public class Hero
{
#region Core Properties
[JsonProperty("id")]
public byte ID { get; set; }
[JsonProperty("name")]... |
using UnityEngine;
public class ItemOnMap : MonoBehaviour
{
public static void SpawnItemOnMap(Vector3 pos, Item item)
{
if (item != null)
{
Transform itemTransform = Instantiate(ItemsManager.itemsManagerInstance.baseItemPrefab, pos, Quaternion.identity);
ItemOnMap itemO... |
using System;
using System.Threading.Tasks;
using Microsoft.Bot.Connector;
using Microsoft.Bot.Builder.Dialogs;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Reflection;
using System.Linq;
namespace Microsoft.Bot.Sample.SimpleEchoBot
{
[Serializ... |
using Extension;
using Zenject;
namespace Lonely
{
public class PlayerState_Block : State
{
public PlayerState_Block(IStateEnter enter, IStateExit exit, IStateUpdate update)
: base(enter, exit, update)
{
}
public class CustomFactory : IFactory<State>
{
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class UI : MonoBehaviour
{
public enum Name
{
Slider_HP,
}
}
|
using Chapter5.Interface;
using Chapter5.Model;
using Microsoft.ProjectOxford.SpeakerRecognition;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Windows;
using System.Windows.Input;
namespace Chapter5.ViewModel
{
public class MainViewModel : ObservableObject
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Globalization;
public partial class ImportExport_ExportPreShipment : System.Web.UI.Page
{
DataTable dt_PoNo = new DataTable();
DataTable dt... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.PlayerLoop;
public class TimerController : MonoBehaviour
{
[SerializeField] private SOTimer _TimerRef;
[SerializeField] private float _TimerLimit = 1f;
private void Awake()
{
... |
using DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DAL
{
public interface ICardDB
{
Card GetCardByName(string name);
}
}
|
using UnityEngine;
using System.Collections;
using xy3d.tstd.lib.superFunction;
namespace xy3d.tstd.lib.gameObjectFactory{
public class GameObjectControl : MonoBehaviour {
public GameObjectFactoryUnit unit;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void ... |
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text.Json;
using System.Threading.Tasks;
namespace ProConstructionsManagment.Desktop.Services
{
public class RequestProvider : IRequestProvider
{
private readonly IHttpClientFactory _httpClientFactory;
public Req... |
using System.Collections.Generic;
using System.Runtime.Serialization;
using CommHub.wsClasses;
namespace CommHub
{
#region Response
[DataContract]
public class wsResponse
{
[DataMember]
public int ErrCode;
[DataMember]
public string ErrText;
}
[DataContract]
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Dentist.Controllers.Base;
using Microsoft.Owin.Security.Provider;
namespace Dentist.Controllers
{
public class NoteTypeController : BaseController
{
public JsonResult GetAllIdTexts()
... |
/*
* Copyright (c) 2016 Samsung Electronics Co., Ltd
*
* Licensed under the Flora License, Version 1.1 (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 requi... |
using bot_backEnd.BL.Interfaces;
using bot_backEnd.Models.AppModels;
using bot_backEnd.Models.DbModels;
using bot_backEnd.UI.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace bot_backEnd.UI
{
public class PostReportUI : IPostReportUI
{
... |
using System.ServiceModel;
namespace Service.Contract
{
/// <summary>
/// A provider of duplex service channels.
/// </summary>
/// <seealso cref="Service.Contract.IDuplexChannelProvider" />
public class DuplexChannelProvider : IDuplexChannelProvider
{
/// <summary>
/// The ... |
using GetLabourManager.ActionFilters;
using GetLabourManager.Helper;
using GetLabourManager.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace GetLabourManager.Controllers
{
[Authorize]
[RBAC]
public class ManageGangController : Con... |
using System;
using System.Diagnostics;
namespace CompanyArticles
{
public class CompanyArticles
{
private const string Barcode = "1231231asda";
private const string Vendor = "Nestle";
private const string Title = "Nesquik";
private const int MinPrice = 5;
private const... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JoveZhao.Framework.DDD;
namespace BPiaoBao.DomesticTicket.Domain.Models.FrePasser
{
public interface IFrePasserRepository : IRepository<FrePasser>
{
}
}
|
using System;
class MainClass
{
public static void Main (string[] args)
{
//Varialbles
int firstValue = 2;
int factor = 5;
int increment = 2;
int sequenceLength = 10;
int[] storageArray = new int[sequenceLength];
//Main logic
for (int i = 0; i < storageArray.Length; i++) {
storageArray [i] = firs... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerGrounded : MonoBehaviour
{
/*
//========================| Variables |============================================================
[SerializeField] Movement movement;
//========================| On... |
using System;
using System.Collections.Generic;
using System.Text;
namespace PnrAnalysis.Model
{
/// <summary>
/// 航段信息
/// </summary>
///
[Serializable]
public class LegInfo
{
private string _SerialNum = string.Empty;
/// <summary>
/// 序号
/// </summary>
... |
using UnityEngine;
using System.Collections;
public class testpingpong : MonoBehaviour {
Vector3 initialPos;
// Use this for initialization
void Awake () {
initialPos = transform.position;
}
// Update is called once per frame
void Update () {
transform.position = new Vector3 (Mathf.PingPong (Time.time, 1... |
using System.Reflection;
using Swashbuckle.AspNetCore.SwaggerGen;
namespace Peppy.Swagger
{
internal static class OperationFilterContextExtensions
{
internal static bool HasAuthorize(this OperationFilterContext context)
{
var apiDescription = context.ApiDescription;
ret... |
using System;
using System.Collections.Generic;
using System.Linq;
using SubSonic.Extensions;
namespace Pes.Core
{
public partial class VTestResults
{
public static VTestResults GetTestResultByID(int id)
{
return Single(id);
}
public static List<... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Threading.Tasks;
using ModelCantina;
namespace Controller
{
public class ControllerProduto
{
public bool GravarProduto(Produto produto)
{
SqlConnection con... |
using System.Web.Mvc;
using AutoMapper;
using Umbraco.Core.Models;
using Umbraco.Web.Models.ContentEditing;
using Umbraco.Web.Trees;
namespace Umbraco.Web.Models.Mapping
{
/// <summary>
/// Gets the tree node url for the IMember
/// </summary>
internal class MemberTreeNodeUrlResolver : IValueResolver<... |
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Text;
using VSchool.Data;
using VSchool.Data.Entities;
namespace VSchool.Data.Mapping
{
public class CourseMap : EntityConfiguration<Course>
{
public... |
using OpenTK;
using OpenTK.Graphics.OpenGL;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SnakeGame
{
public class Snake : IMovable, IDrawable, ISerializable
{
public ObjectNetID objectNetID;
... |
using System;
using System.Collections.Generic;
namespace RO
{
public class DataConfigs
{
public static string NAME = "DataConfigs";
public List<DataVO> datas;
public SDictionary<int, DataVO> dataMaps = new SDictionary<int, DataVO>();
public static DataConfigs Instance
{
get;
private set;
}
p... |
using Microsoft.Xna.Framework;
using Project_GE.Framework.SceneManagement;
namespace LMPoser {
public class Entry : Game {
private GraphicsDeviceManager graphics;
private SceneManager sceneManager;
public Entry() {
graphics = new GraphicsDeviceManager(this);
Content.RootDirectory = "Content";
Initia... |
using System.Collections;
using System.Collections.Generic;
using System.Security.Cryptography.X509Certificates;
using UnityEngine;
[CreateAssetMenu(menuName = "Single Variables/IntData")]
public class IntData : ScriptableObject
{
public int Value;
public void UpdateValue(int i)
{
Value... |
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Web;
using Hangfire;
using Hangfire.Dashboard;
using Owin;
using StructureMap;
namespace ModernDataServices.App.Config
{
/// <summary>
/// A class to configure the background jobs.
/// </summary>
public static cla... |
//Pixel Studios 2016
//Weapon Customisation v1.2
using UnityEngine;
using System.Collections;
public class Billboard : MonoBehaviour {
void Update()
{
//Makes the UI buttons a billboard type of button
transform.rotation = Camera.main.transform.rotation;
}
} |
using MaterialDesignThemes.Wpf;
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;
usi... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace Zillow.Core.ViewModel
{
public class AddressViewModel
{
public int Id { get; set; }
public string CountryName { get; set; }
public string CityName { get; set; }
... |
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
namespace Alfheim.FuzzyLogic.Variables.Model
{
internal class LinguisticVariableDao
{
#region Members
FuzzyLogicObservableCollection<LinguisticVariable> mInputLinguisticVariables =
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZUS.Zeus.Common;
using ZUS.Zeus.Models;
namespace ZUS.Zeus.Services
{
public class MockStationsService : IStationsService
{
private static IList<Station> _Stations = new List<Stat... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.EntityFrameworkCore.Metadata.Internal;
using DBStore.DataAccess.Data.Repository.IRepository;
using Microsoft.AspNetCore.Hosting;
us... |
using System;
using System.Web;
using DevDevDev.Models;
using Microsoft.WindowsAzure.Storage.Table;
namespace DevDevDev.Services
{
public class SessionSubmissionService : TableStorageServiceBase
{
private const string _sessionsTableName = "Sessions";
public SessionSubmissionService()
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// Reference added to make WCF happen
using System.ServiceModel;
using System.Runtime.Serialization;
namespace DuplexServicesLib.ServiceEntities
{
[DataContract]
public class ClientI... |
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using SFP.Persistencia.Dao;
using SFP.Persistencia.Model;
using SFP.SIT.SERV.Model.ADM;
namespace SFP.SIT.SERV.Dao.ADM
{
public class SIT_ADM_CONFIGURACIONDao : BaseDao
{
public SIT_ADM_CONFIGURACIONDao(DbConnection c... |
using LuaInterface;
using SLua;
using System;
public class Lua_UpYunTaskInfo_E_State : LuaObject
{
public static void reg(IntPtr l)
{
LuaObject.getEnumTable(l, "UpYunTaskInfo.E_State");
LuaObject.addMember(l, 0, "None");
LuaObject.addMember(l, 1, "Ing");
LuaObject.addMember(l, 2, "Pause");
LuaObject.addMem... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using TaskMan.Domains.Data;
namespace TaskMan.Contracts.Providers
{
public interface ITaskManCacheProvider
{
Task<IEnumerable<Status>> GetStatuses(CancellationTok... |
using System;
using System.Collections.Generic;
using System.Linq;
using SubSonic.Extensions;
namespace Pes.Core
{
public partial class VModule
{
//Chu y khi viet kieu nay: Dung SingleOrDefault thay vi Single,
//nham tra ve null khi k tim thay,
//neu k thi se fat sin... |
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
namespace MADSPack.Compression
{
public class MadsPackImage
{
public MadsPackImage()
{
HasPalette = false;
}
public Bitmap GetImage()
{
if (!this.HasPalett... |
using NUnit.Framework;
using DataStructures;
namespace ArrayListTests
{
public class Tests
{
[TestCase(0)]
public void ConstructorTest(int expected)
{
ArrayList Array = new ArrayList();
int actual = Array.Length;
Assert.AreEqual(expected, actual);
... |
using BundleTransformer.Core.Orderers;
using BundleTransformer.Core.Transformers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Optimization;
namespace Webcorp.OneDCut
{
public class BundleConfig
{
public static void RegisterBundles(BundleCollect... |
using System;
using Microsoft.Xna.Framework;
using MonoGame.Extended.Gui.Controls;
namespace MonoGame.Extended.Gui
{
//public class Window : Element<Screen>
//{
// public Window(Screen parent)
// {
// Parent = parent;
// }
// public ControlCollection Controls { get; } =... |
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 AJillAssistant
{
public partial class Form1 : Form
{
public Form1()
{
... |
using System;
public class InPlaceShuffle
{
public void shuffle(int[] theArray) {
// if it's 1 or 0 items, just return
if (theArray.Length <= 1) return;
// walk through from beginning to end
for (int indexWeAreChoosingFor = 0; indexWeAreChoosingFor < theArray.Length; indexWeAreChoosingFor++) {
... |
using Microsoft.Extensions.Logging;
namespace dotBatchLib
{
public class JobInstance
{
private readonly ILogger _logger = LibLogging.CreateLogger<JobInstance>();
public Job Job { get; set; }
public JobExecution CreateExecution()
{
_logger.LogTrace("create executio... |
using System;
using Xunit;
namespace DemoCode.Tests.lesson2
{
public class AssertingExceptions
{
[Fact]
public void ShouldErrorWhenDivideByZero()
{
var sut = new Calculator();
Assert.Throws<DivideByZeroException>(() => sut.Divide2(10, 0));
}
[... |
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using NameSearch.Models.Entities.Abstracts;
namespace NameSearch.Models.Entities
{
/// <summary>
/// Address Entity
/// </summary>
/// <seealso cref="NameSearch.M... |
using UnityEngine;
public class CrazyHorseController : MonoBehaviour
{
public float interval = 2.0f;
private bool headingToTransparent = false;
private Material _horseBodyMaterial;
void Start()
{
_horseBodyMaterial = GameObject.Find("HorseBody").GetComponent<MeshRenderer>().material;
... |
using AutoMapper;
using iCopy.Model.Request;
using iCopy.SERVICES.IServices;
using iCopy.Web.Controllers;
using iCopy.Web.Helper;
using iCopy.Web.Resources;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace iCopy.Web.Areas.Location.Controllers
{
[Area(Strings.Area.Location), Auth... |
using FireSharp.Config;
using FireSharp.Interfaces;
using FireSharp.Response;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mssql_VS_FireBase
{
class DAOFireBaseProvider : IDAOProvider
{
... |
using System;
using System.IO;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Threading;
namespace DeadLockDemoWithSynchronizeContext
{
class Program
{
static int resultNum = 0;
static void Main(string[] args)
{
Console.WriteL... |
using System;
using System.Collections.Generic;
using Lab6.DataBases;
using Lab6.Entities;
namespace Lab6.DAL {
public class AccessBDStaff {
public static void AddNewEmployee(Employee employee)
{
BDStaff.ListOfStaff[employee.Id] = employee;
}
public static void RemoveEm... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Entity
{
public class Test
{
private String testId;
private String examId;
private Int32 time;
private String name;
private String userId;
... |
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
using SIPCA.CLASES.Models;
using SIPCA.CLASES.Context;
using PagedList;
using SIPCA.MVC.CustomFilters;
using System.Diagnostics;
using S... |
namespace E01_ExchangeIfGreater
{
using System;
public class ExchangeIfGreater
{
public static void Main(string[] args)
{
// Write an if-statement that takes two double
// variables a and b and exchanges their values if the
// first one is greater than... |
using System;
using System.Collections.Generic;
using System.Text;
namespace JabberPoint.Domain.Helpers
{
public enum TextDecoration
{
Normal=0,
Underlined=1,
superscript=2,
subscript=3
}
}
|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace RT_OPT
{
public partial class MainForm : Form
{
SqlConnection gConn = new SqlC... |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="PerformanceCounterFactory.cs" company="Naos Project">
// Copyright (c) Naos Project 2019. All rights reserved.
// </copyright>
// ----------------------------------------------... |
/*
* Created By: Evan Combs
* Created On: 9/10/2015
* Modified On: 9/10/2015
* File Name: InAppStore.cs
* Full Namespace: DeadDodo.InAppPurchasing.InAppStore
* Inherites:
* Purpose:
* Fields:
* Delegates:
* Methods:
* ToDo:
* Proposed Changes:
*/
using System;
using System.Collections.Gen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.