content stringlengths 23 1.05M |
|---|
using AutoMapper;
using EasyAbp.EzGet.NuGet.Packages;
using EasyAbp.EzGet.NuGet.RegistrationIndexs;
using EasyAbp.EzGet.NuGet.ServiceIndexs;
using EasyAbp.EzGet.PackageRegistrations;
using EasyAbp.EzGet.Public.NuGet.Packages;
using EasyAbp.EzGet.Public.NuGet.RegistrationIndexs;
using EasyAbp.EzGet.Public.NuGet.Service... |
using System;
using System.Collections.Generic;
using System.Text;
namespace MyDownloader.Spider.Web
{
public class WebSpiderResourceFactory: ISpiderResourceFactory
{
#region ISpiderResourceFactory Members
public ISpiderResource CreateSpider(SpiderContext cntx, ISpiderResource parent... |
using System;
using System.Collections.Generic;
using System.Linq;
namespace NSwag.Generation.Collections
{
internal static class CollectionExtensions
{
/// <summary>Returns the only element of a sequence that satisfies a specified condition or a creates a new object and adds it to the collection if n... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Jedi
{
public partial class Contract
{
#region ContractData
/// <summary>
/// Internal field to store a provided id
/// This is used when the id n... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using ParserLib.Grammar;
namespace ParserTest.Grammar
{
[TestClass]
public class ParseTableTest
{
[TestMethod]
public void Initialize_Succeeds()
{
var instance = new ParseTable();
Assert.IsNotNull(instance);... |
@model AllProductsQueryModel
<ul class="pagination justify-content-center">
<li class="page-item @if (!Model.Paging.HasPreviousPage) { <text>disabled</text> }">
<a class="page-link"
asp-action="All"
asp-route-pageNumber="@Model.Paging.PreviousPageNumber"
asp-route-parentCa... |
using Autofac;
using Sembium.ContentStorage.Common.ContentNames;
using Sembium.ContentStorage.Common.ContentNames.Vault;
using Sembium.ContentStorage.Common.MonthHash;
using Sembium.ContentStorage.Utils.Autofac;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System... |
namespace SuperAdventure
{
partial class WorldMap
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <... |
using CSharpFunctionalExtensions;
namespace LinkDotNet.KanbanBoard.Domain
{
public class Subtask
{
public string Title { get; private set; }
public double DurationTime { get; private set; }
public static Result<Subtask> Create(string title)
{
return new Subtask { T... |
// Copyright (C) by Housemarque, Inc.
namespace Hopac.Core {
using Microsoft.FSharp.Core;
using System;
using System.Threading;
using System.Runtime.CompilerServices;
internal class Send<T> {
internal Send<T> Next;
internal T Value;
}
internal sealed class Giver<T> : Send<T> {
internal int ... |
namespace MySkillsServer.Web.Controllers
{
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using MySkillsServer.Common;
using MySkillsServer.Data.Models;
using MySkillsServer.Services.Data;
usi... |
using System;
using System.Linq;
using System.Linq.Expressions;
using AutoMapper;
using DFC.Digital.Data.Interfaces;
using DFC.Digital.Data.Model;
using DFC.Digital.Repository.ONET.DataModel;
namespace DFC.Digital.Repository.ONET
{
public class TranslationQueryRepository: IQueryRepository<FrameworkSkill>
... |
using System.Linq;
using System.Windows.Controls;
namespace Plainion.GraphViz.Modules.CodeInspection.Packaging
{
partial class PackagingGraphBuilderView : UserControl
{
public PackagingGraphBuilderView( PackagingGraphBuilderViewModel model )
{
InitializeComponent();
... |
using System;
using System.IO;
using System.Linq;
using System.Net.NetworkInformation;
using UtiLib.Shared.Generic;
namespace UtiLib.Net.Headers
{
/// <summary>
/// Generates or parses ICMP requests/responses
/// </summary>
public class IcmpPacket : IProtocolHeader
{
private const int Data... |
namespace Nez.UI
{
public class TextTooltip : Tooltip
{
public TextTooltip(string text, Element targetElement, Skin skin, string styleName = null) : this(text,
targetElement, skin.Get<TextTooltipStyle>(styleName))
{
}
public TextTooltip(string text, Element targetElement, TextTooltipStyle style) : base(... |
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using Microsoft.CodeAnalysis;
namespace At
{
public class AtEmitResult
{
bool success = false;
public AtEmitResult(bool success,ImmutableArray<AtDiagnostic> diagnostics,IEnumerable<string> convertedSources)
{
... |
using NUnit.Framework;
using Piglet.Parser;
namespace Piglet.Tests.Parser
{
[TestFixture]
public class ParsingErrorTests
{
[Test]
public void TestBadToken()
{
var c = ParserFactory.Configure<int>();
var a = c.CreateNonTerminal();
c.CreateTerminal... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DojoUnbReceitaRomana.Core
{
public enum Tipo
{
PRATOPRINCIPAL, GUARNICAO, SUCO
}
}
|
// Copyright (c) Daniel Crenna & Contributors. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Linq;
namespace TypeKitchen
{
public static class EnumerableExtensions
{
... |
using Core.settings;
using System;
using System.Drawing;
using System.IO;
using System.Net;
using System.Windows.Media.Imaging;
namespace Core.api.login
{
public class LoginHelper
{
private static LoginHelper instance;
/// <summary>
/// 获取LoginHelper实例
/// </summary>
/... |
/**
* Copyright 2021 The Nakama 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 agree... |
using HEC.MVVMFramework.Base.Enumerations;
using System.Collections.Generic;
namespace HEC.MVVMFramework.Base.Interfaces
{
public interface IValidate : System.ComponentModel.INotifyDataErrorInfo
{
Dictionary<string, IPropertyRule> RuleMap { get; }
ErrorLevel ErrorLevel { get; }
INamedA... |
// Patterns: 2
// Matches: TakesDelegate.cs, TakesDelegate1.cs
// NotMatches: Baz.cs
using LightInject;
using TestApplication.Types;
namespace TestApplication.LightInject
{
public class RegisterGenericLambdaFactory: ICompositionRoot
{
public RegisterGenericLambdaFactory()
{
var con... |
using Plus.Localization;
using Plus.Modularity;
using Plus.Validation;
namespace Plus.ObjectExtending
{
[DependsOn(
typeof(PlusLocalizationAbstractionsModule),
typeof(PlusValidationAbstractionsModule)
)]
public class PlusObjectExtendingModule : PlusModule
{
}
} |
using System.Collections;
using System.Collections.Generic;
using JetBrains.Annotations;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class timerBehavior : MonoBehaviour
{
Image timerBar;
public float maxTimer = 5f;
float timeLeft;
private float halfwa... |
using Crawler.Commands;
using Microsoft.Extensions.Hosting;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Runner.HostedServices
{
public class TriggerCommandService : IHostedService, IDisposable
{
readonly ICommandHandler<CrawlerCommand> crawlerHandler;
readonly ... |
// Copyright (c) Microsoft. All rights reserved.
namespace Microsoft.Azure.Devices.Edge.Agent.Kubernetes.Test
{
using Microsoft.Azure.Devices.Edge.Agent.Kubernetes.EdgeDeployment.Service;
using Microsoft.Azure.Devices.Edge.Util;
using Microsoft.Azure.Devices.Edge.Util.Test.Common;
using Xunit;
[Uni... |
namespace PsybotModule
{
public enum ParameterTypeEnum
{
//Required = 0,
//Optional = 1,
//Multiple = 2,
Unparsed = 3
}
}
|
using System.Collections;
namespace Supido.Core.Proxy
{
/// <summary>
/// Interface for an object creator that allows to create instances or collections.
/// </summary>
public interface IObjectCreator
{
#region - Methods -
/// <summary>
/// Creates a new instance.
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AppArenaWeb.Models;
using Microsoft.AspNetCore.Mvc;
namespace AppArenaWeb.Controllers
{
public class DepartamentoController : Controller
{
[HttpGet]
[HttpPost]
public IActionResult In... |
namespace Hexiron.Azure.ActiveDirectory.Models
{
public class AzureAdB2COptions
{
//public const string POLICY_AUTHENTICATION_PROPERTY = "Policy";
private readonly string _azureAdB2CInstance;
public AzureAdB2COptions()
{
_azureAdB2CInstance = "https://login.microsof... |
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using AutoMapper;
using BookSubscriptions.API.Models;
using BookSubscriptions.Core.Domain.Entities;
using BookSubscriptions.Core.Interfaces.Gateways.Repositories;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Cors;
usi... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
namespace System.Net.BitTorrent.Client.Tasks
{
class DelegateTask : Task
{
public ManualResetEvent Handle;
private object result;
private MainLoopJob task;
public object Result
{
... |
namespace GSoulavy.Csv.Tests.Files
{
public interface ICustomConverter
{
object Parse(string value);
string Compose(object value);
}
} |
using System;
class Program
{
static int CountNumAppears(string[] matrix, int count, string element)
{
for (int i = 0; i < matrix.Length; i++)
{
if (element == matrix[i])
{
count++;
}
}
return count;
}
static v... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using FubuCore;
using FubuCore.Descriptions;
using FubuCore.Logging;
using FubuCore.Util;
using NLog;
using Logger = NLog.Logger;
namespace FubuMVC.NLog
{
public class NLogListener : ILogListener
{
private readonly... |
namespace Xilium.CefGlue
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Xilium.CefGlue.Interop;
/// <summary>
/// Class representing a binary value. Can be used on any process and thread.
/// </summary>
pub... |
namespace Violet.WorkItems.Types;
public record CommandDescriptor(string Name, string Type, string Label);
public record ChangePropertyValueCommandDescriptor(string Name, string Label, string PropertyName, string TargetValue)
: CommandDescriptor(Name, "ChangePropertyValue", Label);
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EmplacementButton : PurchaseButton {
public GameObject menuPrefab;
public Emplacement emplacement;
public EmplacementMenuGUI menu;
public override void UpdateInteractable() {
thisButton.interactable =... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Renko.Data;
namespace Renko.Plugin
{
/// <summary>
/// Object that contains cropping information for the plugin.
/// </summary>
public class CropOption {
/// <summary>
/// The target aspect ratio of your image.
/// </summa... |
namespace Yarn.Data.EntityFrameworkProvider
{
public class RepositoryOptions
{
public bool MergeOnUpdate { get; set; }
public bool CommitOnCrud { get; set; } = true;
}
}
|
using System;
/*
* With this program you can learn the basics of C#
* Producer Lauri Ellonen
* Saimaa Ammattikorkeakoulu Saimia
*/
namespace ReadWriteExample
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("ReadWriteExample"); // Priting message to on ... |
using AvalonStudio.Extensibility;
using AvalonStudio.Commands;
using ReactiveUI;
using AvalonStudio.Shell;
namespace AvalonStudio.Controls.Standard.FindInFiles.Commands
{
internal class FindInFilesCommands
{
[ExportCommandDefinition("Edit.FindInFiles")]
[DefaultKeyGestures("CTRL + SHIFT + F")]... |
//===============================================================================
// TinyMessenger
//
// A simple messenger/event aggregator.
//
// https://github.com/grumpydev/TinyMessenger
//===============================================================================
// Copyright © Steven Robbins. All rights rese... |
using MongoDB.Bson;
namespace Infra.Mongo.Repository
{
public class MongoEntity : IEntity
{
public ObjectId _id { get; set; }
public string ID
{
get => _id.ToString();
set => _id = ObjectId.Parse(value);
}
}
}
|
using Microsoft.AspNetCore.Http;
using System;
using System.Threading.Tasks;
namespace LambdaForums.Data
{
public interface IUpload
{
ValueTask<string> UploadFile(IFormFile file);
}
}
|
using System;
using Agent.Abstract.Models;
namespace ConnectionAnalyzerAgent
{
public class ConnectionState : ConnectionMessage
{
public DateTime LastUpdate { get; set; }
}
} |
using DCL.Interface;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// Contextual menu with different options about an user.
/// </summary>
[RequireComponent(typeof(RectTransform))]
public class UserContextMenu : MonoBehaviour
{
internal const string CURRENT_PLAYER_ID = "CurrentPlayerInfoCard... |
using UnityEngine;
public class TreePopulater : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
var children = this.GetComponentsInChildren<TalentUI>();
var bt = Talent.TalentTreeRoot;
Debug.Log(bt);
int noTalents = 0;
... |
using System;
namespace kwd.RdfSeed.Core.Nodes.Builtin
{
/// <summary>
/// A blank node <see cref="UriOrBlank"/>.
/// </summary>
public class BlankNode : Node<UriOrBlank>
{
/// <summary>Get normalized value string for <see cref="BlankNode"/>.</summary>
public static ReadOnlySpan<ch... |
using System;
namespace Caldast.AlgoLife.DesignPatterns.CommandPattern.Receiver
{
class Garage
{
public void Open()
{
Console.WriteLine("Garage is open");
}
public void Close()
{
Console.WriteLine("Garage is close");
}
}
}
|
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using Microsoft.Research.DataStructures;
using System.Diagnostics.Contracts;
using System;
namespace Microsoft.Research.AbstractDomai... |
using Autofac;
using Lykke.Service.SmartOrderRouter.Client;
using SmartOrderRouter.AdminApi.Settings;
namespace SmartOrderRouter.AdminApi
{
public class AutofacModule : Module
{
private readonly AppSettings _settings;
public AutofacModule(AppSettings settings)
{
_settings =... |
using System.Collections.Generic;
using Tailviewer.Api;
namespace Tailviewer.BusinessLogic.DataSources
{
/// <summary>
/// The interface for a data source which is constructed from one or more <see cref="IDataSource" />s:
/// It provides access to a merged <see cref="ILogSource" /> which contains log entri... |
using System;
using System.Collections.Generic;
using NPoco;
using Umbraco.Core.Persistence.DatabaseAnnotations;
using Umbraco.Core.Persistence.DatabaseModelDefinitions;
namespace Umbraco.Core.Persistence.Dtos
{
[TableName(Constants.DatabaseSchema.Tables.PropertyTypeGroup)]
[PrimaryKey("id", AutoIncrement = t... |
using MvvmBlazor.CodeGenerators.Components;
using Binder = System.Reflection.Binder;
namespace MvvmBlazor.Tests.Generators;
public class MvvmComponentGeneratorTests
{
[Fact]
public void GeneratesError_WhenComponentIsNotPartial()
{
var inputCompilation = CreateCompilation(
@$"
... |
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using API.ServicesConfigurations;
using ApiResponse.Configuration;
namespace API
{
public class Startup
{
public IConf... |
using System;
using Mongo.Migration.Migrations;
using MongoDB.Bson.Serialization;
namespace Mongo.Migration.Services.Interceptors
{
internal class MigrationInterceptorFactory : IMigrationInterceptorFactory
{
private readonly IMigrationRunner _migrationRunner;
private readonly IVersionService _... |
using System;
using SmartQuant;
namespace QuantBox
{
using System.Collections.Generic;
using NLog;
using OrderProxy;
using ProcessorList = System.Collections.Generic.LinkedList<OrderProxy.OrderProcessor>;
using ProcessorListNode = System.Collections.Generic.LinkedListNode<OrderProxy.OrderProcessor... |
using Swisstalk.ORM.Transport;
using System;
namespace Swisstalk.ORM.Client.CSV.Query
{
public static class DataRowConverter
{
private class ReaderGuard : IDisposable
{
private readonly IDataRowReader reader;
public ReaderGuard(IDataRowReader reader)
{
... |
using System;
namespace Skclusive.Core.Component
{
public class ActionDisposable : IDisposable
{
private Action Disposer { get; set; }
public ActionDisposable(Action disposer)
{
_ = disposer ?? throw new ArgumentNullException(nameof(disposer));
Disposer = disp... |
using UnityEngine;
using System.Collections;
using ParadoxNotion.Design;
namespace FlowCanvas{
///FlowScripts are assigned or bound to FlowScriptControllers
[System.Serializable]
public class FlowScript : FlowGraph { }
}
|
using Lockstep.Core.Logic.Systems.Actor;
using Lockstep.Core.Logic.Systems.Debugging;
using Lockstep.Core.Logic.Systems.GameState;
namespace Lockstep.Core.Logic.Systems
{
public sealed class WorldSystems : Feature
{
public WorldSystems(Contexts contexts, params Feature[] features)
... |
using System.Data.Entity.ModelConfiguration;
using DevAchievements.Infrastructure.Web.Security;
namespace DevAchievements.Infrastructure.Repositories.EF.Context.Mapping
{
/// <summary>
/// Mapeador da entidade AuthenticationProviderUser para o EntityFramework.
/// </summary>
internal partial cl... |
namespace Shapes
{
/// <summary>
/// Represents a triangle geometric figure.
/// </summary>
public class Triangle : Shape
{
/// <summary>
/// Initializes new instance of Triangle class to the specified width and height of the triangle.
/// </summary>
/// <param name... |
using JarVerify.Container;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JarVerify.Manifest
{
public class ManifestData
{
/// <summary>
/// The digest stipulated against the main manifest (optional)
/// </s... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Docker.DotNet;
using Docker.DotNet.Models;
using M5x.Docker.Interfaces;
using M5x.Docker.Models;
using Serilog;
namespace M5x.Docker;
public class Dock... |
using System;
using Sitecore.Data;
namespace SitecoreCognitiveServices.Feature.IntelligentSearch {
public interface IIntelligentSearchSettings
{
string CoreDatabase { get; }
string MasterDatabase { get; }
string WebDatabase { get; }
ID SCSDKTemplatesFolderId { get; }
ID... |
// 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 file in the project root for more information.
using System;
using System.Net;
using System.Runtime.CompilerServices;
using System.Threading;
using Microsoft.SqlS... |
namespace Game.Robots.Targeting
{
using System.Numerics;
public class Target
{
public Vector2 Position { get; set; }
}
}
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class MenuController : MonoBehaviour {
[SerializeField]
private Image _transition;
[SerializeField]
private bool _transition_activated;
[SerializeField]
private List... |
// This file is part of YamlDotNet - A .NET library for YAML.
// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Softwa... |
namespace PaketLoadScripts
#load "/home/justin/code/fsharp/GiraffeWebApp/GiraffeWebApp/.paket/load/net403/Newtonsoft.Json.csx"
#load "/home/justin/code/fsharp/GiraffeWebApp/GiraffeWebApp/.paket/load/net403/System.ValueTuple.csx"
#load "/home/justin/code/fsharp/GiraffeWebApp/GiraffeWebApp/.paket/load/net403/TaskBuild... |
using System;
using CreativeCoders.Net.XmlRpc.Model.Values;
using Xunit;
namespace CreativeCoders.Net.UnitTests.XmlRpc.Model.Values
{
public class DateTimeValueTests
{
[Fact]
public void Ctor_DateTimeNowValue_ValueIsDateTimeNow()
{
var now = DateTime.Now;
var v... |
using Assets.Modules.Plots;
using UniRx;
using UnityEngine;
namespace Assets.Modules.ScatterPlots
{
[RequireComponent(typeof(Renderer))]
public class SetPlotColor : MonoBehaviour
{
public bool UseStaticColor;
public Color StaticColor;
private Renderer _renderer;
private Ma... |
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Equinor.ProCoSys.IPO.BlobStorage;
using Equinor.ProCoSys.IPO.Command.InvitationCommands.DeleteAttachment;
using Equinor.ProCoSys.IPO.Domain;
using Equinor.ProCoSys.IPO.Domain.AggregateModels.InvitationAggregate;
using Equinor.ProCoSys.... |
namespace roslyn.optprof.runsettings.generator
{
public interface IFileWriter
{
int WriteOutFile(string outputFolder, string runSettings);
}
} |
namespace Altsoft.PDFO.StreamEncodingRules
{
using Altsoft.PDFO;
using System;
public class Flate : IStreamEncodingRule
{
// Methods
public Flate()
{
}
public bool Handle(PDFStream stream)
{
return false;
}
}
}
|
using System;
using System.Collections.Generic;
namespace OzzyEntityLibraries.DTO.Models
{
public partial class CustomersDTO
{
public int CustomerId { get; set; }
public int? TerritoryId { get; set; }
public int? RegionId { get; set; }
public int? CountryId { get; set; }
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using reservas.Models;
using reservas.CommunicationModels;
using Microsoft.AspNetCore.Cors;
using reservas.CommunicationModels.Access.Request;
using reservas.CommunicationModels.Access.Respo... |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ColorSlider.cs" company="PropertyTools">
// Copyright (c) 2014 PropertyTools contributors
// </copyright>
// <summary>
// Represents a color slider.
// </summary>
// --... |
using static Levismad.Utils.ValidationUtil;
namespace Levismad.Model
{
public interface IModel
{
ValidatorResult Validar();
}
}
|
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Collections.Generic;
using Microsoft.Common.Core.UI.Commands;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Editor;
namespace Mi... |
using Core;
using Pages.Pages;
namespace HCA.Pages.Pages.CheckoutPages
{
public class PaymentPage : BasePage
{
private UiElement CardNumber => new UiElement("//input[@class='card-number']");
private UiElement ExpiresMonth => new UiElement("//select[@name='EXPIRES_MONTH']");
private UiE... |
using Microsoft.AspNetCore.Authorization;
namespace DemoIdentity.Identity
{
public class UserAuthorize : BaseAuthorize<UserAuthorize>, IAuthorizationRequirement
{
protected override bool IsAuthorize(AuthorizationHandlerContext context, UserAuthorize requirement)
{
return co... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using BasicTestApp.Client;
using Blazorise.Tests.Helpers;
using Bunit;
using Xunit;
namespace Blazorise.Tests.Components
{
public class ValidateSelectComponentTest : ComponentTestFixture
{
public ValidateSelec... |
namespace Bank.Cards.Domain.Account.State
{
public abstract class AccountState
{
public decimal Balance { get; internal set; }
public long IssuerId { get; internal set; }
}
} |
@page
<h1>ERROR Occured</h1>
<p>Please try later..</p>
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class EventText : MonoBehaviour {
#region - Variables.
public GameObject textObj;
public float fadeInTime = 0.1f;
public float fadeOutTime = 0.1f;
public float displayTime = 0.... |
/*!
* DisplayMonkey source file
* http://displaymonkey.org
*
* Copyright (c) 2015 Fuel9 LLC and contributors
*
* Released under the MIT license:
* http://opensource.org/licenses/MIT
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
u... |
namespace ShellScript.Core.Language.Compiler.Statements
{
public class ReturnStatement : IStatement
{
public bool CanBeEmbedded => true;
public StatementInfo Info { get; }
public EvaluationStatement Result { get; }
public IStatement[] TraversableChildren { get; protecte... |
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CliKit.Cil;
namespace CliKit.IO
{
/// <summary>
/// Provides a pool of local variables meant to be used for a short span and later reused.
/// </... |
using System.Net.Http;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
namespace Keystone.Net.Services
{
/// <summary>
/// https://docs.openstack.org/api-ref/identity/v3/index.html#system-role-assignments
/// </summary>
public class SystemRoleAssignService : AbstractService
{
pub... |
using System.Collections.Generic;
using BillPath.Models;
namespace BillPath.Providers
{
public class CurrencyDisplayFormatProvider
{
public IEnumerable<CurrencyDisplayFormat> CurrencyDisplayFormats { get; } = new[]
{
CurrencyDisplayFormat.Full,
CurrencyDispl... |
/*
* Your rights to use code governed by this license https://github.com/AlexWan/OsEngine/blob/master/LICENSE
* Ваши права на использование кода регулируются данной лицензией http://o-s-a.net/doc/license_simple_engine.pdf
*/
using System.Collections.Generic;
using System.Threading;
using OsEngine.Entity;
using OsEn... |
using System.IO;
using System.Linq;
using Spines.Mahjong.Analysis.Replay;
using Spines.Mahjong.Analysis.Shanten5;
using Xunit;
namespace Spines.Mahjong.Analysis.Tests
{
public class Shanten5Tests
{
[Fact]
public void BundlesWithVisitor()
{
var files = Bundles.All.SelectMany(Directory.EnumerateFi... |
namespace Plethora.Mvvm.Model
{
/// <summary>
/// An interface which exposes a property to determine whether the implementing instance has changed values.
/// </summary>
public interface IHasChanged
{
/// <summary>
/// Gets a flag indicating whether the instance has changed values.
... |
// Exercise 01
// Gibble, Jay ejg2
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.IO;
using Assignment01CoreIntro;
namespace Assignment01CoreIntroUnitTest
{
[TestClass]
public class UnitTestVendingMachine
{
StringReader sr;
StringWriter sw;
[TestMet... |
using PestControlMapper.Mapping;
using System;
using System.Collections.Generic;
using System.Text;
namespace PestControlMapper.wpf.structs
{
public class ComboBoxComponentInfoItem
{
public string RealName { get; set; }
public ComponentInfo ComponentInfo { get; set; }
public override... |
using Archiving.Entity;
using Archiving.Monitor;
using Archiving.Operation;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Archiving.Core.Options;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.