content stringlengths 23 1.05M |
|---|
using SpeckleGSAInterfaces;
using SpeckleGSAProxy;
using SpeckleUtil;
namespace SpeckleGSA
{
public class GsaAppResources : IGSAAppResources, IGSALocalAppResources
{
//For the kit(s) use only
public IGSACacheForKit Cache { get => gsaCache; }
public IGSAProxy Proxy { get => LocalProxy; }
public IGS... |
using System;
using Windows.System;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Input;
namespace IzmirEshot.Views
{
public sealed partial class MoreView : Page
{
public MoreView()
{
this.InitializeComponent();
}
private async void button_Tapped(object s... |
namespace EncompassApi.Company
{
/// <summary>
/// Global Custom Data Objects Apis
/// </summary>
public interface IGlobalCustomDataObjects : CustomDataObjects.ICustomDataObjects
{
}
/// <summary>
/// Global Custom Data Objects Apis
/// </summary>
public sealed class GlobalCust... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ShatterSound : MonoBehaviour {
AudioSource audioSource;
[SerializeField] AudioClip[] shatterClips;
void Start ()
{
audioSource = GetComponent<AudioSource>();
audioSource.pitch = Random.Range(0.8f... |
using DotNetty.Common.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NetCore
{
public abstract class FABChannelInboundHandler<I> : FABChannelAdapter
{
private readonly bool autoRelease;
protected FABChann... |
using System.Collections;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
using Photon.Pun;
using System;
public class GameManager : MonoBehaviour
{
#region Variables
static public bool canMove = false;
static public bool _canMove;
static public float gameSpeed = 10;
static public ... |
using System.Collections;
using System.Collections.Generic;
/// <summary>
/// Contains all scene names required
/// By: Neil DG
/// </summary>
public class SceneNames {
public const string MAIN_SCENE = "MainScene";
public const string UI_DEMO_SCENE = "UIDemoScene";
public const string OBJECT_POOL_SCENE = "ObjectPo... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ProfilePanel : MonoBehaviour
{
private static ProfilePanel instance;
public static ProfilePanel Instance { get { return instance; } }
private void Awake()
{
if (instance != null &&... |
// CivOne
//
// To the extent possible under law, the person who associated CC0 with
// CivOne has waived all copyright and related or neighboring rights
// to CivOne.
//
// You should have received a copy of the CC0 legalcode along with this
// work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
us... |
using Unity.Entities;
// ReSharper disable once InconsistentNaming
public struct Spawner_FromEntity : IComponentData
{
public int CountX;
public int CountY;
public Entity Prefab;
} |
namespace MilanWebStore.Services.Data.Contracts
{
using System.Collections.Generic;
using System.Threading.Tasks;
public interface ICommentsService
{
Task CreateAsync(int productId, string userId, string content);
Task RemoveAsync(int id);
IEnumerable<T> GetAll<T>(int product... |
//-----------------------------------------------------------------------
// <copyright file="SearchView.xaml.cs" company="James Chaldecott">
// Copyright (c) 2012-2013 James Chaldecott. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
using System;
... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the License.txt file in the project root for more information.
using Microsoft.HttpRepl.Telemetry.Events;
namespace Microsoft.HttpRepl.Telemetry
{
internal static class T... |
using System.IO;
using System.Linq;
namespace ProjectLauncher.Launcher
{
static class ProjectUtilities
{
public static bool IsValidRootPath(string location)
{
return Directory.GetDirectories(location).Any(ProjectUtilities.IsValidProjectPath);
}
public static bool ... |
namespace ElevatorDemo
{
partial class FormMain
{
/// <summary>
/// Variable nécessaire au concepteur.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Nettoyage des ressources utilisées.
/// </summary>
/// <param name="disposing">true si... |
namespace Aviant.DDD.Core.DomainEvents
{
using EventBus;
using MediatR;
using Services;
internal interface IDomainEventHandler<TDomainEvent>
: INotificationHandler<EventReceived<TDomainEvent>>,
IRetry
{ }
}
|
using EnvCrypt.Core.EncrypedData.XmlPoco;
using EnvCrypt.Core.Utils;
using FluentAssertions;
using NUnit.Framework;
namespace EnvCrypt.Core.UnitTest.EncryptedData.XmlPoco
{
[TestFixture]
public class EcDatXmlTest
{
[Test]
public void Given_ValidDatXML_When_Parsed_Then_CountsCorrect()
... |
#region License
// Copyright (c) 2018, Fluent Migrator Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... |
using System;
namespace Webhooks.Common.Extensions
{
public static class MassTransitExtensions
{
public static Uri GetQueueAddress(this Type type)
{
return new Uri($"queue:{type.FullName}");
}
public static Uri GetExchangeAddress(this Type type)
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TeachMeSkills.Shchypakin.Homework_5.Data
{
public abstract class AnimalBase
{
private static List<AnimalBase> allAnimals = new List<AnimalBase>();
/// <summary>
... |
using MiddlewareLogic.Enums;
using System;
using System.Diagnostics.Contracts;
namespace MiddlewareLogic.MessageTypeWrappers
{
public static class MessengerTypeCreator
{
public static Type CreateMessengerType(MessengerType messenger, Type[] types)
{
if ((types?.Length ?? 0) != (Int... |
using System;
using System.Net;
using TNT;
namespace EX_2.Stage1_EasyStart
{
public class Stage1_EasyStartExample
{
public void Run()
{
Console.WriteLine("TNT easy start example.");
Console.WriteLine("In this example, client sending messages to the server in stateless m... |
using System.Net;
using AddonCraft.Application.Common.Abstractions;
namespace AddonCraft.Infrastructure.Abstractions
{
/// <inheritdoc cref="WebClient"/>
/// <summary>
/// An abstraction from <see cref="WebClient"/>.
/// </summary>
public class SystemWebClient : WebClient, IWebClient
{
}
} |
using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.Presenters;
using Avalonia.Input;
using Avalonia.Markup.Xaml;
using Avalonia.Media.Imaging;
using Avalonia.VisualTree;
using sbid._M;
using sbid._VM;
using SharpDX.WIC;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.... |
@using JabbR;
@{
Layout = "_layout.cshtml";
}
<div class="user-reset-password">
@Html.Raw(String.Format(LanguageResources.Account_ResetSuccessMessage, Url.Content("~/account/login")))
</div>
|
using ConsultaCep.Models;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ConsultaCep.DAL
{
public class ConsultaDAO
{
private readonly Context _context;
public ConsultaDAO(Context context)
... |
using System;
class Pelicula{
private string titulo;
private Int16 año;
private string pais;
private string director;
public Pelicula(){
}
public Pelicula(string titulo,Int16 año){
this.titulo=titulo;
this.año=año;
}... |
@model UniversitySystem.Models.Lecturer
@{
ViewBag.Title = "Profile";
}
<h2>Profile</h2>
<ul class="list-group">
<li class="list-group-item">
<span class="badge">@Model.FirstName</span>
First name
</li>
<li class="list-group-item">
<span class="badge">@Model.LastName</span>
... |
namespace ComicBookGalleryModel.Models
{
/// <summary>
/// Represents a comic book artist.
/// </summary>
public class ComicBookArtist
{
public int Id { get; set; }
public int ComicBookId { get; set; }
public int ArtistId { get; set; }
public int RoleId { get; set; ... |
using Indieteur.VDFAPI;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SteamAppsTagger
{
public static class Extensions
{
public static void AddRange<T>(this ObservableCollection<T> col... |
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using StructureMap;
using System;
using System.Threading.Tasks;
namespace AspNetStructureMapSample
{
public class ... |
//------------------------------------------------------------------------------
// <copyright company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
using Microsoft.AspNetCore.H... |
using System;
using System.Collections.Immutable;
using System.Linq;
using System.Reflection;
namespace Valuable
{
public static class SymbolServices
{
private static readonly Type SymbolType = typeof(Symbol);
public static IImmutableList<Symbol> GetSymbols(Type type)
{
return AddSymb... |
// Copyright © 2014 Rick Beerendonk. All Rights Reserved.
//
// This code is a C# port of the Java version created and maintained by Cognitect, therefore
//
// Copyright © 2014 Cognitect. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in c... |
using System.Threading.Tasks;
using Prism.Commands;
using Prism.Mvvm;
using Prism.Navigation;
using PS.Web.Api.Client;
using PS.Web.Api.Model.Input;
namespace ParkingSpace.ViewModels
{
public class ParkingGroupViewModel : BindableBase, IInitializeAsync
{
public ParkingGroupViewModel(
IParkingSpaceWebApiC... |
using App.Models.ViewModels.Lezioni;
using App.Models.InputModels.Lezioni;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace App.Models.ViewModels.Lezioni
{
public class LezioneListViewModel
{
public ListViewModel<LezioneViewModel> Lezione { get... |
using Rocket.Interfaces;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Rocket.Tests.Stubs
{
public class PlayerManagerStub : IPlayerManager
{
public List<Player> UpdatedPlayers { get; private set; }
public PlayerManagerStub()
{
UpdatedPlayers = ... |
using Core.Elements.Searchers;
using OpenQA.Selenium;
namespace Core.Elements
{
public class Component : Element, IComponent
{
private readonly ElementSearcher elementSearcher;
public Component(IWebElement element, IWebDriver webDriver) : base(element, webDriver)
{
element... |
using System.Collections.Generic;
using System.IO;
using System.Text;
using Xunit;
public class SpyRunnerLogger : IRunnerLogger
{
static readonly string currentDirectory = Directory.GetCurrentDirectory();
public List<string> Messages = new List<string>();
public SpyRunnerLogger()
{
LockObjec... |
using System.Collections.Generic;
namespace Perpetuum.Zones.NpcSystem.Presences
{
public interface IPresenceConfigurationReader
{
[CanBeNull]
IPresenceConfiguration Get(int presenceID);
IEnumerable<IPresenceConfiguration> GetAll(int zoneID);
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ProductManagement.UI
{
public class AppSettings
{
public DataStorageOption CurrentDataStorage { get; set; }
}
public enum DataStorageOption
{
Sql = 0,
InMemory = 1
... |
using System;
using System.Xml.Serialization;
namespace NPOI.OpenXmlFormats.Dml
{
[Serializable]
[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]
public enum ST_TextAutonumberScheme
{
alphaLcParenBoth,
alphaUcParenBoth,
alphaLcParenR,
alphaUcParenR,
alphaLcPeriod,
alphaUcP... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
namespace Evento.Core.Domain
{
public class Event : Entity
{
private ISet<Ticket> _tickets = new HashSet<Ticket>();
[Required] [C... |
//
// Copyright 2020 Google LLC
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Ver... |
using DarkTonic.MasterAudio;
using UnityEngine;
using HutongGames.PlayMaker;
using TooltipAttribute = HutongGames.PlayMaker.TooltipAttribute;
[ActionCategory(ActionCategory.Audio)]
[Tooltip("Set a single bus volume level in Master Audio")]
public class MasterAudioBusSetVolume : FsmStateAction {
[Tooltip("Check this t... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using IFSBuilder.Models;
namespace IFSBuilder.IO
{
class SVMModelReader
{
private String _path;
public SVMModelReader(String path)
{
_path = path;
}
public void ReadTo(FIModel model)
{
String c... |
namespace ICSharpCode.SharpZipLib.Zip
{
using System;
using System.IO;
public interface IDynamicDataSource
{
Stream GetSource(ZipEntry entry, string name);
}
}
|
using System.Collections.Generic;
using Content.Server.GameTicking.Rules;
using Robust.Server.Player;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
namespace Content.Server.GameTicking.Presets
{
[GamePreset("deathmatch")]
public sealed class PresetDeathMatch : GamePreset
{
public overr... |
using Microsoft.AspNet.Identity;
using StudentRegistration.Models;
using StudentRegistration.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
namespace StudentRegistration.WebAPI.Controllers
{
public class ClassController:ApiController
{
... |
using System;
using UnityEngine;
namespace Splatter.TerrainTools.AutoPainter {
[Serializable]
public abstract class LayerBase {
public Texture2D Texture;
public Texture2D Normal;
public Texture2D Mask;
public Vector2 TileSize = Vector2.one;
public abstract string Name {... |
using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
using UWaterlooAPIDotNet.Models;
using UWaterlooAPIDotNet.Models.Transit;
namespace UWaterlooAPIDotNet.Modules
{
public class Transit : GenericModule
{
public Transit(string apikey, HttpClient client) : base(apikey,... |
#nullable enable
using Microsoft.Maui.Hosting;
namespace Microsoft.Maui.HotReload
{
public interface IHotReloadableHandlersServiceProvider : IMauiHandlersServiceProvider
{
IMauiHandlersCollection GetCollection();
}
} |
using FlowScriptEngine;
using PPDEditorCommon;
namespace FlowScriptEnginePPDEditor.FlowSourceObjects.Layer
{
[ToolTipText("Layer_All_Summary")]
public partial class AllFlowSourceObject : FlowSourceObjectBase
{
private ILayer[] all;
public override string Name
{
get { r... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Convenience.Tests
{
[TestClass]
public class CachingFactoryTests
{
[TestMethod]
public void result_is_created_on... |
using System.Collections.Generic;
using DnaFragment.Services.LrProducts.Models;
namespace DnaFragment
{
public class WebConstants
{
public const string RedirectToRegister = "/Identity/Account/Register";
public const string RedirectToLogin = "/Identity/Account/Login";
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WPFTabTipMixedHardware.Models
{
public enum HardwareKeyboardIgnoreOptions
{
/// <summary>
/// Do not ignore any keyboard.
/// </summary>
DoNotIgnore,
... |
// <copyright file="FirefoxBasicTest.cs" company="TestProject">
// Copyright 2020 TestProject (https://testproject.io)
//
// 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://ww... |
// Copyright 2015 Esri
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writin... |
namespace System.Windows.Forms
{
public delegate void DataGridViewCellMouseEventHandler(object sender, DataGridViewCellMouseEventArgs e);
}
|
using U_MonoBehaviour = UnityEngine.MonoBehaviour;
using U_SerializeField = UnityEngine.SerializeField;
using U_Vector3 = UnityEngine.Vector3;
using U_Quaternion = UnityEngine.Quaternion;
using U_Gizmos = UnityEngine.Gizmos;
using U_Debug = UnityEngine.Debug;
using U_GameObject = UnityEngine.GameObject;
using U_Transf... |
using System;
using System.IO;
using System.Linq;
using Pulse.Core;
namespace Pulse.FS
{
public sealed class YkdBlock : IStreamingContent
{
public const int TransformationMatrixSize = 0x50;
public bool IsFirstBlock;
public uint Type, Index, AssociatedIndex, Unknown;
public rea... |
using System.Windows.Forms;
namespace ProSuite.Commons.UI.Persistence.WinForms
{
/// <summary>
/// Stores form state for xml serialization
/// </summary>
public class FormState : IFormState
{
private int _width = _undefined;
private int _height = _undefined;
private int _left = _undefined;
private int _to... |
using System.Xml.Linq;
using SwfLib.Shapes.FillStyles;
using SwfLib.SwfMill.Data;
using SwfLib.SwfMill.Utils;
namespace SwfLib.SwfMill.Shapes {
public static class XSolidFillStyle {
public const string SOLID = "Solid";
public static XElement ToXml(SolidFillStyleRGB fillStyle) {
... |
// <copyright file="Constructor_Should.cs" company="YAGNI">
// All rights reserved.
// </copyright>
// <summary>Holds unit tests of JsonWriter object constructor.</summary>
using System;
using LibrarySystem.FileExporters.Utils.Contracts;
using Moq;
using NUnit.Framework;
namespace LibrarySystem.FileExporters.UnitTes... |
using System;
using System.Threading.Tasks;
using Apollo.CommandSystem;
using Moq;
using Xunit;
namespace Apollo.Tests.CommandSystem
{
public class CommandProcessorTests : BaseUnitTest<CommandProcessor>
{
private ICommand command;
private object parameters;
public CommandProcessorTest... |
// This code was generated by a tool: InfrastructureTemplates\EntityViewNamesTemplate.tt
namespace Admin.ExchangeModule.Views
{
public static class ExchangeViewNames
{
public static string ExchangeAddView = "ExchangeAddView";
public static string ExchangeEditView = "ExchangeEditView";
... |
// Copyright 2020 The Tilt Brush Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... |
using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
using Carbonate.Standard;
using static Carbonate.Standard.ScreenIO;
namespace Carbonate.Server
{
public partial class Server
{
void ProcessPingRequest(TcpClient client, Packet request, byte[... |
using VstsNotifications.Models.Payloads.PullRequest;
using VstsNotifications.Services.Models;
using VstsNotifications.Webhooks.Properties;
namespace VstsNotifications.Webhooks.Interfaces
{
public interface IMessageMapper
{
Message MapMessage(PullRequestPayload pullRequestPayload, Settings setti... |
//---------------------------------------------------------------------
// <copyright file="RemoveAtomMetadataFromPayloadElementVisitor.cs" company="Microsoft">
// Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
// </copyright>
//---------... |
namespace Google_Exercise
{
public class Company
{
public string companyName;
public string department;
public decimal salary;
public Company()
{
this.companyName = companyName;
this.department = department;
this.salary = salary;
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Torch;
namespace ALE_Rotorgun_Detection {
public class RotorgunDetectorConfig : ViewModel {
private int _detachCooldown = 60 * 5; //5 Minutes
private int _loggingCooldown = 10... |
using System;
using UnityEngine;
using Lench.AdvancedControls.Blocks;
using Lench.AdvancedControls.Resources;
// ReSharper disable VirtualMemberCallInConstructor
namespace Lench.AdvancedControls.Controls
{
/// <summary>
/// Angle control that applies angle value to steering blocks and steering hinges.
//... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using PGManager.Models.ViewModels;
using PGManager.Utilities;
namespace PGManager.Controll... |
using System;
using System.Collections.Generic;
using System.Text;
namespace HotelBookingApp.Model
{
public class BED_SETTING_Model : Abstract_Model
{
public Guid SETTING_FK;
public Guid BED_FK;
public string DESCRIPTION;
public int NUM;
public string SETTING_GUID { ge... |
namespace CrystalQuartz.Core.Services.JobResultAnalysing
{
using System;
public class JobResult
{
public static readonly JobResult Success = new JobResult(false, null);
public JobResult(bool faulted, Exception error)
{
Faulted = faulted;
Error = error;
... |
using System;
using System.Collections;
using System.Runtime.InteropServices;
namespace DCSoftDotfuscate
{
[ComVisible(false)]
public class GClass366 : IEnumerator
{
private IEnumerator ienumerator_0;
public object Current => ienumerator_0.Current;
public GClass366(IEnumerator ienumerator_1)
{
int num ... |
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using StardewValley;
namespace Pathoschild.Stardew.DataLayers.Framework
{
/// <summary>Provides metadata to display in the overlay.</summary>
internal interface ILayer
{
/*********
** Accessors
*********/
/// <... |
using AutoMapper;
using TreniniDotNet.Application.Collecting.Shops.GetShopBySlug;
using TreniniDotNet.Web.Infrastructure.UseCases;
namespace TreniniDotNet.Web.Collecting.V1.Shops.GetShopBySlug
{
public class GetShopBySlugHandler : UseCaseHandler<GetShopBySlugUseCase, GetShopBySlugRequest, GetShopBySlugInput>
{... |
namespace Example
{
using OpenTK.Graphics.OpenGL;
using System.Collections.Generic;
using Zenseless.Geometry;
using Zenseless.HLGL;
internal class View
{
public View(IRenderState renderState)
{
renderState.Set(BlendStates.Additive);
}
internal void Render(IEnumerable<Collider> colliders)
{
GL.C... |
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using AdamsLair.WinForms.PropertyEditing;
using AdamsLair.WinForms.PropertyEditing.Editors;
using Duality;
using Duality.Resources;
using Duality.Editor.Controls.PropertyEditors;
namespace Duality.Editor.Plugins.Base.PropertyEd... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FogScript : MonoBehaviour
{
// Start is called before the first frame update
public GameObject fog;
public int fogDelay;
public int fogFrequency;
private Color newColor;
void Start() {
newColor... |
using Designer.Circuit.Logic.Gates;
using Microsoft.VisualStudio.TestTools.UnitTesting;
// ReSharper disable InconsistentNaming
namespace Designer.Circuit.Logic.Tests
{
[TestClass]
public class AndGateTest
{
[TestMethod]
public void AndGateFF()
{
bool?[] input = {false, false};
Gate.Types typeType = G... |
namespace Dsp.Web.Models
{
public class PagerModel
{
public Pager Previous { get; set; }
public Pager Incrementer { get; set; }
public Pager Next { get; set; }
public int TotalPages { get; set; }
public int PageSize { get; set; }
public int ResultCount { get; se... |
using System.Linq;
using WeatherApp.Core.Models.OpenWeatherMap;
namespace WeatherApp.Core.Models
{
public class Weather
{
public string CityName { get; }
public string ConditionIcon { get; }
public string ConditionIconUrl => $"https://openweathermap.org/img/w/{ConditionIcon}.png";
... |
using System;
using System.Net;
using GNB.Infrastructure.Capabilities;
namespace GNB.Api.Helpers
{
public static class ExceptionToHttpStatusCodeMap
{
public static HttpStatusCode Map(Type exType)
{
if (exType != typeof(GNBException))
throw new InvalidOperationExcept... |
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Comformation.IntrinsicFunctions;
namespace Comformation.Batch.JobDefinition
{
/// <summary>
/// AWS::Batch::JobDefinition Ulimit
/// https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition... |
using System;
using System.Collections.Generic;
namespace NrsCl.Consoles
{
public static class CLIConsole
{
public static void WriteSeparator()
{
Console.WriteLine("--------------------------------------------------");
}
public static void WriteLine()
... |
using System;
using NHSD.BuyingCatalogue.Testing.Data.Entities;
namespace NHSD.BuyingCatalogue.Testing.Data.EntityBuilders
{
public sealed class CataloguePriceEntityBuilder
{
private readonly CataloguePriceEntity cataloguePriceEntity;
private CataloguePriceEntityBuilder()
{
... |
using System.Linq;
using System.Collections.Generic;
using System;
namespace ValheimStands {
public static class Utility {
public static IEnumerable<Tuple<T, int>> enumerate<T>(IEnumerable<T> source) {
return source.Select((item, index) => Tuple.Create(item, index));
}
}
} |
using Android.App;
using Android.Runtime;
using System;
namespace AndroidClientChromeCustomTabs
{
[Application]
public class AndroidClientChromeCustomTabsApplication : Application
{
public static ActivityMediator Mediator { get; } = new ActivityMediator();
public AndroidClientChromeCustomTa... |
using System;
using System.Collections;
using System.Reflection;
using System.Runtime.Serialization;
using ILRuntime.CLR.Method;
using ILRuntime.Runtime.Enviorment;
using ILRuntime.Runtime.Intepreter;
using AppDomain = ILRuntime.Runtime.Enviorment.AppDomain;
public class ExceptionAdapter : CrossBindingAdaptor
{
p... |
using FluentValidation;
using Core.Domain.Commands;
namespace Core.Domain.Validators
{
public abstract class CommandValidator<T> : AbstractValidator<T> where T : Command
{
protected CommandValidator() { }
}
}
|
// Jeebs Rapid Application Development
// Copyright (c) bfren.uk - licensed under https://mit.bfren.uk/2013
using System;
namespace F.MvcF
{
/// <summary>
/// Calendar functions
/// </summary>
public static class CalendarF
{
internal static int EventCounter { get; set; }
/// <summary>
/// Generate Event ... |
using Lidgren.Network;
namespace CatsAreOnline.Shared;
public static class DeliveryMethods {
public const NetDeliveryMethod Global = NetDeliveryMethod.UnreliableSequenced;
public const NetDeliveryMethod LessReliable = NetDeliveryMethod.ReliableSequenced;
public const NetDeliveryMethod Reliable = NetDeliv... |
namespace Tetris
{
// QUIZ: What does the type `int` mean in the next line of code? Is it necessary?
// LEARN MORE at https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/enumeration-types
public enum Direction : int
{
Down = 0,
Left = -1,
Right = 1
}
}
|
using System.Configuration;
namespace Hinata.Search
{
public class SearchServiceConfiguration
{
public string ElasticsearchNode { get; set; }
public string ElasticsearchIndex { get; set; }
static SearchServiceConfiguration()
{
Default = new SearchServiceConfigurati... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace BetterTasks
{
public class LearnCancellationTokens
{
private CancellationTokenSource _cancellationSource = new CancellationTokenSource();
public... |
using System;
using System.Collections.Specialized;
using System.Linq;
using System.Windows.Controls;
using System.Windows.Documents;
using Fork.Logic;
using Fork.Logic.Model.ServerConsole;
using Fork.ViewModel;
namespace Fork.View.Xaml2.Pages.Network
{
public partial class ConsolePage : Page
{
privat... |
using UnityEngine;
using System.Collections;
///
/// !!! Machine generated code !!!
/// !!! DO NOT CHANGE Tabs to Spaces !!!
///
[System.Serializable]
public class WavesData
{
[SerializeField]
int _Wave;
public int Wave { get {return _Wave; } set { _Wave = value;} }
[SerializeField]
string[] _GroupIDs = new str... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.