content stringlengths 23 1.05M |
|---|
using Microsoft.AspNet.Mvc;
using System.Collections.Generic;
namespace MvcSample.Web
{
[Route("api/[controller]")]
public class TestController : Controller
{
[HttpGet]
public IEnumerable<string> GetAll()
{
return new string[] {"1", "two", "III"};
}
}
} |
using System;
using System.ComponentModel.DataAnnotations;
using BillChopBE.DataAccessLayer.Models;
using BillChopBE.Validation;
namespace BillChopBE.Services.Models
{
public class CreateNewPayment : ValidatableModel
{
[Required]
public decimal Amount { get; set; }
[Required]
... |
using DemoWebApp.Models;
using Microsoft.EntityFrameworkCore;
namespace DemoWebApp.Data
{
public class DataContext : DbContext
{
public DataContext(DbContextOptions<DataContext> options) : base(options)
{
Database.SetCommandTimeout(9000);
Console.WriteLine("Database Instance Initialized.");
//t... |
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Logging;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Screens.LLin.Plugins;
namespace Mvis.Plugin.Example
{
public class AnotherPlugin : LLinPlugin
{
private OsuSpriteText t... |
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. 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
*
... |
using Microsoft.EntityFrameworkCore;
using NextCourses.Models;
using System.Collections.Generic;
namespace NextCourses.Context
{
/// <summary>
/// DbContext used for storing course related information
/// </summary>
public class CourseContext : DbContext
{
/// <summary>
/// Database... |
using System.Windows.Media;
using Balder.Core;
using Balder.Core.Geometries;
using Balder.Core.Math;
using Matrix=Balder.Core.Math.Matrix;
namespace GettingStarted
{
public class MyGame : Game
{
private Mesh _audi;
private float _audiRotation;
public override void Initialize()
{
// We set... |
using UnityEngine;
namespace OsmVisualizer.Data.Utils
{
public static class FloatExtensions
{
public static float Round(this float f, int precision = 100)
{
return float.IsNaN(f) ? f : Mathf.Round(f * precision) / precision;
}
}
}
|
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ShiftCaptain.Models;
using ShiftCaptain.Filters;
namespace ShiftCaptain.Controllers
{
public class ErrorController : BaseController
{
public Err... |
using HL7Data.Contracts.Base;
namespace HL7Data.Contracts.Fields
{
public interface IDate : IBaseField
{
//TODO: this may not be a simple Date/DateTime
//Specifies the century and year with optional precision to month and day.
}
} |
using Contas.Queries.Abstractions;
using MediatR;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
namespace Contas.API.Controllers
{
[Route("relatorios")]
public class RelatorioController : ControllerBase
{
private readonly IMediator _mediator;
public RelatorioController(IMed... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Security;
using TcOpen.Inxton.Data;
using TcOpen.Inxton.Security;
namespace TcOpen.Inxton.Local.Security
{
///<summary>
/// Provides management of user access.
/// To setup security... |
namespace Localwire.Graphinder.Core.Algorithms.GeneticAlgorithm.MutationStrategies
{
public interface IMutationStrategy
{
/// <summary>
/// Mutate given encoded individual.
/// </summary>
/// <param name="individual">Individual to mutate.</param>
void Mutate(Individual i... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace WcfClientTest
{
[TestClass]
public class ClientCreateTest
{
[TestMethod]
public void ServiceClient_Should_Not_Be_Null()
{
MyServiceClientWrapper myServiceClientWrapper = new MyServiceClientWrappe... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Microsoft.VisualStudio.Services.Agent.Util;
using Microsoft.VisualStudio.Services.Agent.Worker;
using Microsoft.VisualStudio.Services.Agent.Worker.Build;
... |
using System;
namespace ReMi.DataAccess.Exceptions
{
public class AccountAlreadyExistsException : EntityAlreadyExistsException
{
public AccountAlreadyExistsException(Guid accountId)
: base("Account", accountId)
{
}
public AccountAlreadyExistsException(string accountE... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _3rd
{
class Program
{
static void Main(string[] args)
{
var hrizantemi = int.Parse(Console.ReadLine());
var roses = int.Parse(Console.ReadLine(... |
using VA = VisioAutomation;
using System.Collections.Generic;
using System.Linq;
using IVisio = Microsoft.Office.Interop.Visio;
namespace VisioAutomation.ShapeSheet.Query
{
public partial class CellQuery
{
public class SectionQueryList : IEnumerable<SectionQuery>
{
private IList<Sectio... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ST.Library.UI.NodeEditor;
using System.Drawing;
using System.Windows.Forms;
using System.Reflection;
namespace WinNodeEditorDemo.ImageNode
{
[STNode("Image", "Crystal_lz", "2212233137@qq.com", "st233.com", "Image Node")]
... |
using System;
using Android.Content;
using Android.Hardware;
using Android.Provider;
using CustomRenderer.Droid;
using formsapp2;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
[assembly: ExportRenderer(typeof(formsapp2.CameraPreview), typeof(CameraPreviewRenderer))]
namespace CustomRenderer.Droid
{
publ... |
using System;
using System.Collections.Generic;
using System.CommandLine;
using System.CommandLine.Builder;
using System.CommandLine.Hosting;
using System.CommandLine.Parsing;
using System.Linq;
using System.Net.Http;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
usin... |
namespace RatioMaster_source
{
public class TorrentClient
{
internal TorrentClient(string name)
{
this.DefNumWant = 200;
this.StartOffset = 10000000;
this.SearchString = string.Empty;
this.Parse = false;
this.MaxOffset = 25000000;
... |
using Bellatrix.Mobile.Android;
////using Microsoft.VisualStudio.TestTools.UnitTesting;
using NUnit.Framework;
namespace Bellatrix.Mobile.Tests
{
[SetUpFixture]
public class TestsInitialize
{
[OneTimeSetUp]
public void AssemblyInitialize()
{
AndroidApp.StartAppiumLocalS... |
using Dto.Registration;
namespace Messages
{
public class EventMessageBody
{
public List<UseCasesSendEventDto>? EventMessages { get; set; }
}
}
|
using Autofac;
using Autofac.Extensions.DependencyInjection;
using AzureStorage.Blob;
using AzureStorage.Tables;
using AzureStorage.Tables.Templates.Index;
using Common.Log;
using Lykke.Service.ClientDictionaries.AzureRepositories.ClientDictionaryBlob;
using Lykke.Service.ClientDictionaries.AzureRepositories.ClientKeys... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;
using WMIT.DataServices.Controllers;
using WMIT.DataServices.Services;
namespace WMIT.DataServices.Tests.Fixtures
{
class ContactsRESTController : RESTController<TestDB, Conta... |
using ShineEngine;
using System;
/// <summary>
/// (generated by shine)
/// </summary>
public class SceneRequestMaker:DataMaker
{
public SceneRequestMaker()
{
offSet=SceneRequestType.off;
list=new Func<BaseData>[SceneRequestType.count-offSet];
list[SceneRequestType.PlayerSwitchScene-offSet]=createP... |
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Burcin.Models.BurcinDatabase
{
[Table(nameof(Recipe), Schema = Constants.DefaultSchema)]
public partial class Recipe : BaseModel
{
public long ChefId { get; set; }
... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics.ContractsLight;
using System.Linq;
using BuildXL.Pips.DirectedGraph;
using BuildXL.Pips.Operations;
using BuildXL.Scheduler;... |
using System;
using System.Linq;
using Lamar.Util;
namespace Lamar.Codegen.Variables
{
public class ValueTypeReturnVariable : Variable
{
private readonly Variable[] _inner;
public ValueTypeReturnVariable(Type returnType, Variable[] inner) : base(returnType)
{
_inner = inne... |
using System;
using System.Collections.Concurrent;
using System.IO;
using System.Linq;
using AdventOfCode.IntCodeComputer;
namespace AdventOfCode._5
{
public class Five : BaseRunnable
{
private readonly int _input;
public Five(int input)
{
_input = input;
}
... |
using AutoMapper;
using Hmcr.Api.Authentication;
using Hmcr.Api.Authorization;
using Hmcr.Data.Database;
using Hmcr.Data.Database.Entities;
using Hmcr.Data.Mappings;
using Hmcr.Model;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCor... |
/* Copyright (c) 1996-2019 The OPC Foundation. All rights reserved.
The source code in this file is covered under a dual-license scenario:
- RCL: for OPC Foundation members in good-standing
- GPL V2: everybody else
RCL license terms accompanied with this source code. See http://opcfoundation.org/Licen... |
using Coldairarrow.Util;
using System;
namespace Coldairarrow.DataRepository
{
/// <summary>
/// 基于雪花Id的mod分片,具体的规则请参考此本写法
/// 优点:数据扩容无需数据迁移,以时间轴进行扩容
/// 缺点:可能会存在数据热点问题
/// 建议:推荐使用此分片规则,易于使用
/// </summary>
/// <seealso cref="Coldairarrow.DataRepository.IShardingRule" />
public class Sn... |
using Base.Contracts.Persistence;
using Core.DataTransferObjects;
using Core.Entities;
using System;
using System.Threading.Tasks;
namespace Core.Contracts
{
public interface IMeasurementRepository : IGenericRepository<Measurement>
{
Task<Measurement[]> GetLast100(int sensorId);
Task<Measure... |
// WARNING
//
// This file has been generated automatically by Visual Studio from the outlets and
// actions declared in your storyboard file.
// Manual changes to this file will not be maintained.
//
using Foundation;
using System;
using System.CodeDom.Compiler;
using UIKit;
namespace MyDriving.iOS
{
[Register ("... |
using System;
using System.Collections.Generic;
using _4DMonoEngine.Core.Blocks;
using _4DMonoEngine.Core.Utils;
using _4DMonoEngine.Core.Utils.Vector;
namespace _4DMonoEngine.Core.Universe.Fluids
{
internal class FluidContainer
{
private Vector3Int m_min;
private Vector3Int m_max;
publ... |
using System;
using Microsoft.SPOT;
namespace netduino.helpers.Imaging {
// Based on MicroBuilder's code: http://www.microbuilder.eu/Projects/LPC1343ReferenceDesign/TFTLCDAPI.aspx
// Basic Color definitions
public enum BasicColor {
Black = 0x0000,
Blue = 0x001F,
Red = 0xF800,
... |
using System;
using System.Threading.Tasks;
namespace DatabaseInteraction.Interface
{
public interface IDataBaseUpdater
{
Task Update<T>(IRepository<T> repository, T toUpdate, Func<T, bool> predicate) where T : Entity, new();
}
}
|
using Microsoft.EntityFrameworkCore;
using Tzkt.Data.Models;
namespace Tzkt.Data
{
public class TzktContext : DbContext
{
#region app state
public DbSet<AppState> AppState { get; set; }
#endregion
#region accounts
public DbSet<Commitment> Commitments { get; set; }
... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Ammo : MonoBehaviour
{
public float Damage = 100f;
public float LifeTime = 2f;
public Rigidbody2D rb;
void OnEnable(){
CancelInvoke();
Invoke("Die", LifeTime);
//Debug.... |
// <copyright file="DrasticMauiWindow.MacCatalyst.cs" company="Drastic Actions">
// Copyright (c) Drastic Actions. All rights reserved.
// </copyright>
#pragma warning disable SA1210 // Using directives need to be in a specific order for MAUI
using System;
using System.Collections.Generic;
using System.Linq;
using Sy... |
using FluentValidation;
using JetBrains.Annotations;
using Lykke.Service.EthereumApi.Models;
namespace Lykke.Service.EthereumApi.Validation
{
[UsedImplicitly]
public class BlacklistAddressRequestValidator : AbstractValidator<BlacklistAddressRequest>
{
public BlacklistAddressRequestValidator()
... |
using System;
using System.Collections.Generic;
using System.Text;
namespace DoAnFramework
{
public class SingleCodeRunResult: ISingleCodeRunResult
{
public int TimeUsed { get; set; }
public int MemoryUsed { get; set; }
}
}
|
using Coldairarrow.Util;
using System;
using System.Collections.Generic;
namespace Coldairarrow.DataRepository
{
/// <summary>
/// 分库分表配置生成器
/// </summary>
public class ShardingConfigBootstrapper : IShardingConfigBuilder, IAddDataSource, IAddAbstractTable, IAddAbstractDatabse, IAddPhysicDb, IAddPhysic... |
using System;
namespace Rant.Engine.Compiler
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
internal sealed class TokenParserAttribute : Attribute
{
public string Name { get; set; }
public R? TokenType => tokenType;
private readonly R? tokenT... |
using Assets.Scripts.Core.Spaceship;
using Assets.Scripts.Gameplay.Fuel;
using UnityEngine;
namespace Assets.Scripts.Gameplay.Pickups
{
[CreateAssetMenu(fileName = "FuelPickup", menuName = "Feature/Create Fuel Pickup")]
public class FuelPickupEffect : PickupEffect
{
public float Amount = 1000;
... |
using Refit;
using System.Runtime.Serialization;
namespace BtcMarkets.Core.Api.Contracts
{
[DataContract]
public class MarketParams : BaseObject
{
public bool? Forward { get; set; }
public bool? Sort { get; set; }
[AliasAs("indexForward")]
[DataMember(Name = "indexForwar... |
using System;
using System.Collections.Generic;
namespace Tasky.Portable
{
public interface IXmlStorage
{
List<Task> ReadXml (string filename);
void WriteXml (List<Task> tasks, string filename);
}
}
|
using UnityEngine;
using System.Collections;
public class HoldObject02 : MonoBehaviour {
private float m_maxDistance = 2.0f;
private float m_distFromPlayer = 1.0f;
private float m_throwForce = 1.0f;
private Camera m_mainCamera;
private Transform m_jointTransform;
private Rigidbody m_connect... |
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
using Microsoft.AspNetCore.DataProtection.Repositories;
using Microsoft.EntityFrameworkCore;
using VoteKit.Data;
using VoteKit.Data.Models;
namespace VoteKit.Web.Services
{
public class DataProtectionKeyRepository : IXmlRepository
{
pr... |
namespace Sales.Core
{
using System;
public class Constants
{
public class MessageQueue
{
public const string SalesQueue = "product-sales";
}
}
}
|
using System;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
namespace gvimwrapper {
partial class wrapper {
void tree_init() {
filetree.ImageList = iconlist;
}
void tree_fill(string path) {
filetree.Nodes.Clear();
tree_fill(path, filetree.Nodes, true);
vim_cd(path);
}
void tree_fi... |
namespace Automatonymous.Requests
{
using Activities;
using Contracts;
using GreenPipes;
using MassTransit;
/// <summary>
/// Tracks a request, which was sent to a saga, and the saga deferred until some operation
/// is completed, after which it will produce an event to trigger the respons... |
using System;
using System.Net.Http;
namespace space_browser
{
/// <summary>
/// Connection class
/// </summary>
class Connection
{
private HttpClient httpClient;
/// <summary>
/// Construct connection class
/// </summary>
/// <param name="timeout">Timeout ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace SoonLearning.BlockPuzzle.Data
{
internal class PuzzleAPI
{
/* [DllImport("PuzzleMxN.dll")]
public extern static void PGInit(IntPtr g_c);
[DllImport("Puz... |
namespace Platform.VirtualFileSystem.Providers
{
public class StandardNodeAttributesUpdateContext
: INodeAttributesUpdateContext
{
private readonly IAutoLock syncLock;
private INodeAttributes nodeAttributes;
public StandardNodeAttributesUpdateContext(INodeAttributes nodeAttributes)
{
this.node... |
using System.Collections.Generic;
using System.Linq;
using Monytor.Core.Models;
using Monytor.Core.Repositories;
namespace Monytor.RavenDb.Repositories {
public class DashboardRepository : IDashboardRepository {
private readonly IUnitOfWork _unitOfWork;
public DashboardRepository(IUnitOfWork unit... |
using _004_TreesAndGraphs;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace _004_TreesAndGraphsTest
{
[TestClass]
public class Question_4_12_Test
{
[DataTestMethod]
[DataRow(18, 3)]
[DataRow(11, 2)]
[DataRow(10, 1)]
[DataRow(8, 3)]
[DataRow(7, 2)... |
using System;
using System.Xml.Serialization;
namespace BlogML2Ghost.Core.BlogML.Xml
{
[Serializable]
public sealed class BlogMLAttachment
{
[XmlAttribute("embedded")]
public bool Embedded { get; set; } = false;
[XmlAttribute("url")]
public string Url { get; set; }
... |
using System.Collections.Generic;
using PatentSpoiler.App.Domain.Patents;
namespace PatentSpoiler.App.DTOs
{
public class PatentableEntityViewModel
{
public int Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public IEnumerable<string> ... |
// Copyright (C) 2019 Singapore ETH Centre, Future Cities Laboratory
// All rights reserved.
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
//
// Author: David Neudecker (neudecker@arch.ethz.ch)
// Michael Joos (joos@arch.ethz.ch... |
using kwd.BoxOBlazor.Util;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace kwd.BoxOBlazor.Tests.Util
{
[TestClass]
public class ColorHelperTests
{
[TestMethod]
public void HexConversions()
{
var (r, g, b) = ColorHelper.HexToRgb("#FF03FF ");
Assert.AreEqual((byte)255, r);
Ass... |
namespace DFC.App.JobProfileTasks.ApiModels
{
public class WorkingEnvironmentApiModel
{
public string Location { get; set; }
public string Environment { get; set; }
public string Uniform { get; set; }
}
} |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using Xamarin.Forms;
using System.ComponentModel;
using System.Threading.Tasks;
namespace EFGetStarted
{
public partial class BlogsPage : ContentPage, INotifyPropertyChanged
{
public BlogsPage()
... |
using System;
using System.Collections.Generic;
using System.Linq;
using Devtist.Image.Exceptions;
using Devtist.Io;
namespace Devtist.Image.Exif.Parsers.Jpeg
{
internal class JpegParser : IExifInfoParser
{
private BitConvert _bit = new BitConvert(false);
private uint _tiffOffset;
priv... |
using Discord.WebSocket;
using JirumBot.ChromeManagers;
namespace JirumBot
{
public class Constants
{
public static QuasarManager QuasarJirumManager { get; } = new();
public static QuasarManager QuasarJirumManager2 { get; } = new(); //장터
public static CoolManager CoolJirumManager { get... |
using Minduca.Domain.Orders;
using Minduca.Domain.Payments;
using Minduca.Infrastructure;
using System;
namespace Minduca.ConsoleDemo
{
class Program
{
static void Main(string[] args)
{
IScopeFactory scopeFactory = InfraConfig.Initialize();
using (IAppLayer app = scope... |
using System;
using System.IO;
using Pixelator.Api.Codec.Streams;
namespace Pixelator.Api.Codec.Compression
{
abstract class CompressionAlgorithm
{
public abstract Compression CreateCompressor(CompressionOptions options);
public abstract Decompression CreateDecompressor();
public abst... |
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Util;
using Android.Views;
using Android.Widget;
using Plugin.CurrentActivity;
using SuchByte.MacroDeck;
using SuchByte.MacroDeck.Droid;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;... |
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using tictactoe.GameMode.TurnOrder;
namespace TicTacToeTests.GameMode.TurnOrder {
[TestClass]
public class HumanFirstOrderTests
{
[TestMethod, TestCategory("unit")]
public void ShouldReturnTrue()
{
... |
using HeartDisease.Constants;
using HeartDisease.Data;
using HeartDisease.Models;
using HeartDisease.Predictors;
using HeartDisease.TestClasses;
using System;
using System.Collections.Generic;
namespace HeartDisease
{
class Program
{
static void Main(string[] args)
{
var projectInf... |
using System.Threading.Tasks;
using AutoMapper;
using DataLoaderWithEFCore.Data.Repositories;
using GraphQL.Conventions;
namespace DataLoaderWithEFCore.GraphApi.Schema
{
public sealed class Mutation
{
public async Task<Movie> UpdateMovieTitle([Inject] IMovieRepository movieRepository, UpdateMovieTitle... |
namespace SharpWildmatch
{
internal static class Extensions
{
public static char? At(this string value, int index)
{
if (index < 0) return null;
return index >= value.Length ? (char?)null : value[index];
}
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Common;
namespace Karkas.Core.DataUtil.BaseClasses
{
public abstract class BaseBsWithoutEntity<ADOTEMPLATE_DB_TYPE, PARAMETER_BUILDER>
where ADOTEMPLATE_DB_TYPE : IAdoTemplate<IPa... |
using Domain.Entities.AirAnalysisContext;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace Infrastructure.Persistence.Configuration
{
public class AirTestHistoryConfiguration : IEntityTypeConfiguration<AirTestHistory>
{
public void Configure(EntityT... |
using RPS;
using System;
using System.Windows.Forms;
namespace RockPaperScissorsWithAI
{
public partial class RockPaperScissors : Form
{
#region Public contructors
public RockPaperScissors()
{
InitializeComponent();
}
#endregion
#region Private va... |
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using NUnit.Framework;
namespace Dynamo.Tests
{
[TestFixture]
[Category("JsonTestExclude")]
class MigrationTestFramework : DynamoModelTestBase
{
protected override void GetLibrariesToPreload(List<string> libraries)
... |
namespace TitaniumAS.Opc.Client.Da.Browsing
{
/// <summary>
/// Represents a single element result of OPC DA server browsing.
/// </summary>
public class OpcDaBrowseElement
{
/// <summary>
/// Initializes a new instance of the <see cref="OpcDaBrowseElement"/> class.
/// </su... |
using System;
using System.Collections.Generic;
namespace Unitinium
{
public class QueryParser : IQueryParser
{
public QueryAstBase[] Parse(object[] tokens)
{
var tokenQueue = new Queue<object>(tokens);
var nodeList = new List<QueryAstBase>();
while (tokenQu... |
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace EJ2MVCSampleBrowser.Controllers.StockChart
{
public partial class StockChartController : Controller
{
// GET: Default
pu... |
using System;
namespace ESIConnectionLibrary.PublicModels
{
public class V1CharactersCorporationHistory
{
public DateTime StartDate { get; set; }
public int CorporationId { get; set; }
public bool? IsDeleted { get; set; }
public int RecordId { get; set; }
}
}
|
using ExitGames.Client.Photon;
using UnityEngine;
public class BTN_choose_titan : MonoBehaviour
{
private FengGameManagerMKII fgmkii;
private void Start()
{
if (!FengGameManagerMKII.Level.PlayerTitans)
{
base.gameObject.GetComponent<UIButton>().isEnabled = false;
}
... |
using MongoDB.Bson;
using MongoDB.Driver;
using PlayFoos.Core.Context;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PlayFoos.Core.Services
{
public class TableHeartbeatService : ITableHeartbeatService
{
private readonly I... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApp.Multithreading
{
public class UseWaitAll
{
public async Task<string> Show(string str)
{
Random random = new Random();
int sleepT... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Agent : MonoBehaviour
{
[SerializeField] private Sight sight;
private float movementSpeed;
private float rotationSpeed;
void Awake()
{
sight.OnEnterVision += EnteredVision;
sight.OnLeaveVis... |
namespace Commons.AppEvents
{
public class AppEventType
{
}
} |
using System;
using System.Collections.Generic;
namespace MVVM_UnitTests
{
public static class HelperMethods
{
public static string GetStringFromCollection(IEnumerable<string> collection)
{
var joinedString = String.Join(", ", collection);
return joinedString;
}
}
}
|
// MonoGame - Copyright (C) The MonoGame Team
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
using System;
using System.IO;
using System.Runtime.InteropServices;
using System.Drawing;
#if MONOMAC
using MonoMac.AppKit;
using MonoMac.Core... |
using System.Collections.Generic;
namespace Xmf2.NavigationGraph.Core.Extensions
{
internal static class CollectionExtensions
{
// todo à mettre dans une lib d'extensions netstandard ?
public static List<T> Sublist<T>(this IList<T> source, int start, int count)
{
var result = new List<T>(count);
var end ... |
using System;
using System.Collections.Generic;
using System.IdentityModel.Services;
using System.IdentityModel.Services.Configuration;
using System.IdentityModel.Tokens;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
u... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Assets.Sources.ViewModels;
using Assets.Sources.Views;
using uMVVM.Sources.ViewModels;
using uMVVM.Sources.Views;
using UnityEngine;
namespace Assets.Sources.Infrastructure
{
public class FaceBoxInstall : MonoBehaviour
... |
using System.Linq;
using Highway.Data;
using TT.Domain.Identity.DTOs;
using TT.Domain.Identity.Entities;
namespace TT.Domain.Identity.Queries
{
public class GetCaptchaEntry : DomainQuerySingle<CaptchaEntryDetail>
{
public string UserId { get; set; }
public override CaptchaEntryDetail Execute... |
using System;
using System.IO;
namespace MultiGitClone
{
class Program
{
static void Main()
{
Action<string> display = Console.WriteLine;
display("Multi GIT Clone");
var urlGitClone = "https://github.com/francoistonic/programmez";
var urlGitCloneEndString = ".git";
var gitClo... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
using Microsoft.SPOT.Emulator.PKCS11;
using System.Reflection;
using System.IO;
using System.Windows.Forms;
namespace Microsoft.SPOT.Emulator.Updat... |
using System;
using System.Threading;
using JsonRpc.Messages;
namespace JsonRpc.Server
{
/// <summary>
/// Provides the context per JSON RPC request.
/// </summary>
public class RequestContext
{
public RequestContext(IJsonRpcServiceHost serviceHost, IServiceFactory serviceFactory,
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EncompassREST.Data
{
public class VaLoanData
{
public bool? rangeOvenIndicator { get; set; }
public bool? refrigeratorIndicator { get; set; }
public bool? dishw... |
// Copyright 2021 Niantic, Inc. All Rights Reserved.
using Niantic.ARDK.Utilities;
namespace Niantic.ARDK.AR.ARSessionEventArgs
{
public struct AnyARSessionInitializedArgs:
IArdkEventArgs
{
public AnyARSessionInitializedArgs(IARSession session, bool isLocal):
this()
{
Session = session;
... |
//
// TwitterSignInPageRenderer.cs
// TrackMyWalks Twitter SignIn Page (iOS)
//
// Created by Steven F. Daniel on 10/08/2018.
// Copyright © 2018 GENIESOFT STUDIOS. All rights reserved.
//
using System;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
using Xamarin.Auth;
using TrackMyWalks.iOS;
using TrackMy... |
using Micky5991.Samp.Net.Framework.Elements.TextDraws;
namespace Micky5991.Samp.Net.Framework.Constants
{
/// <summary>
/// Defines useful constants for screen related calculations.
/// </summary>
public class ScreenConstants
{
/// <summary>
/// Maximum screen width used for UI elem... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.