text stringlengths 1 932k |
|---|
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace SimplCommerce.Module.Pricing.Areas.Pricing.ViewModels
{
public class CartRuleForm
{
public long Id { get; set; }
[Required(ErrorMessage = "پر کردن این قسمت اجباری است")]
public strin... |
using System;
using System.Linq;
using System.Threading.Tasks;
namespace Orleans.Bus
{
public class TestGrain : PocoGrain<Poco>, ITestGrain
{
public TestGrain()
{
Activate =()=>
{
var poco = new Poco(Id(), Notify);
return poco.Activate();... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OddEvenSum
{
class Program
{
static void Main(string[] args)
{
int num = int.Parse(Console.ReadLine());
int sumEven = 0;
int sumOdd... |
//
// Juhta.NET, Copyright (c) 2017 Juha Lähteenmäki
//
// This source code may be used, modified and distributed under the terms of
// the MIT license. Please refer to the LICENSE.txt file for details.
//
using System;
namespace Juhta.Net.Startup
{
/// <summary>
/// This exception will be thrown when an erro... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("01... |
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Index.cshtml";
}
<script>
layui.use(['form', 'table', 'common', 'commonTable', 'optimizeSelectOption'], function () {
var form = layui.form,
table = layui.table,
commonTable = layui.commonTable,
common = layui... |
namespace eKuharica.WinUI.Users
{
partial class frmUserProfile
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SoapCore
{
internal class ExceptionTransformer
{
private readonly Func<Exception, string> _transformer;
public ExceptionTransformer(Func<Exception, string> transformer)
{
_transformer = transformer;
... |
//------------------------------------------------------------
// Game Framework
// Copyright © 2013-2021 Jiang Yin. All rights reserved.
// Homepage: https://gameframework.cn/
// Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------
namespace GameFramework.UI
{
in... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.CodeAnalysis.Features.RQName.SimpleTree;
namespace Microsoft.CodeAnalysis.Features.RQName.Nodes
{
internal class RQTypeVariableType : RQ... |
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Jinyinmao.MessageManager.Api.Config")]
[as... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using Azure.Core;
namespace Azure.Core.Pipeline.Policies
{
public class TelemetryPolicy : HttpPipelinePolicy
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(BaseShooter))]
public class ShootingBullet : Bullet {
[Separator("Shooting Bullet Properties", true)]
[SerializeField, Tooltip("The fire-rate of the shooters.")]
private float fireRate;
private fl... |
using Microsoft.EntityFrameworkCore;
using ContosoUniversityBackendService.Models;
namespace ContosoUniversityBackendService.Data
{
public class SchoolContext : DbContext
{
public SchoolContext(DbContextOptions<SchoolContext> options)
: base(options)
{
}
public DbS... |
using System;
using System.Linq.Expressions;
using HybridDb.Linq.Compilers;
namespace HybridDb.Tests.Linq.Compilers
{
public class CompilerTests
{
protected Expression F<T>(Expression<Func<T, object>> exp) => exp;
protected Expression F<T>(Expression<Func<View<T>, T, object>> exp) => exp;
... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
namespace aoe3wpfg
{
public partial class uimultiplayerhost : Window
{
public uimultiplayerhost()
{
InitializeComponent();
}
}
} |
using System.Collections.Generic;
using System.Linq;
using Chinook.Domain.Entities;
using Chinook.Domain.ViewModels;
namespace Chinook.Domain.Converters
{
public static class InvoiceCoverter
{
public static InvoiceViewModel Convert(Invoice invoice)
{
var invoiceViewModel = new Invo... |
// CHANGED
//
// NewArrayExpression.cs
//
// Author:
// Jb Evain (jbevain@novell.com)
//
// (C) 2008 Novell, Inc. (http://www.novell.com)
//
// 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 Soft... |
using System;
using System.Collections.Generic;
using System.Threading;
using Vita.Data.Runtime;
using Vita.Entities.Logging;
using Vita.Entities.Model;
using Vita.Entities.Model.Construction;
namespace Vita.Entities {
public enum EntityAppInitStep {
Initializing,
EntityModelConstructed,
Initialized,
... |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Skender.Stock.Indicators
{
public static partial class Indicator
{
// CHAIKIN OSCILLATOR
/// <include file='./info.xml' path='indicator/*' />
///
public static IEnumerable<ChaikinOscResult> GetChaikin... |
/*
* 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
*
... |
/*
© Siemens AG, 2017-2018
Author: Dr. Martin Bischoff (martin.bischoff@siemens.com)
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... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18034
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... |
/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace Re.Base.Queryables.File
{
internal class QueryTranslator : ExpressionVisitor
{
private RebaseQuery query;
internal RebaseQuery Translate(Expression expression)
... |
// *****************************************************************************
// BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE)
// © Component Factory Pty Ltd, 2006 - 2016, All rights reserved.
// The software and associated documentation supplied hereunder are the
// prop... |
namespace MassTransit.Scoping.PublishContexts
{
public class ExistingPublishScopeContext<T> :
IPublishScopeContext<T>
where T : class
{
public ExistingPublishScopeContext(PublishContext<T> context)
{
Context = context;
}
public void Dispose()
... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Microsoft.MixedReality.Toolkit.Utilities;
using Microsoft.MixedReality.Toolkit.Utilities.Editor;
using Microsoft.MixedReality.Toolkit.Input.UnityInput;
using UnityEditor;
using UnityEngine;
using Microsoft.MixedReality.Toolkit.Editor;
... |
using LiveSplit.ComponentUtil;
using System;
using System.Diagnostics;
namespace LiveSplit.SourceSplit.GameSpecific
{
class HL2Mods_WatchingPaintDry : GameSupport
{
// start (all categories): on chapter select
// ending (ice): when the buttom moves
// ending (ee): when color correction... |
using System;
using System.Data.OleDb;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace System.Web.UI.DataVisualization.Chart... |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class Shift : ModuleRules
{
public Shift(TargetInfo Target)
{
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore","SlateCore","Slate",});
}
} |
/*
* 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
*
... |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IoC.cs" company="Web Advanced">
// Copyright 2012 Web Advanced (www.webadvanced.com)
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file... |
using System;
using System.Collections;
using ServiceStack.Text;
namespace ServiceStack
{
public static class ConditionAlias
{
public new const string Equals = "=";
public const string NotEqual = "<>";
public const string LessEqual = "<=";
public const string Less = "<";
... |
using System.Net.Http;
using Ungerboeck.Api.Sdk;
using Ungerboeck.Api.Models;
using Ungerboeck.Api.Models.Subjects;
using Ungerboeck.Api.Models.Search;
using System.Collections.Generic;
namespace Examples.Operations
{
public class PaymentPlans : Base
{
public PaymentPlans(ApiClient apiClient) : base(apiClient... |
/*
* 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, Version 2.0 (the
* "License"); you may n... |
using chapter_10.Engine.Input;
namespace chapter_10.Input
{
public class GameplayInputCommand : BaseInputCommand
{
public class GameExit : GameplayInputCommand { }
public class PlayerMoveLeft : GameplayInputCommand { }
public class PlayerMoveRight : GameplayInputCommand { }
p... |
// 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;
namespace Microsoft.CodeAnalysis.Sarif.Baseline.DefaultBaseline
{
internal class ThreadFlowLocationBaselineEquals : IEqualityCom... |
namespace CAS.Laporan
{
partial class FrmLKwt_outstanding
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("06.... |
using System;
using NetRuntimeSystem = System;
using System.Runtime.InteropServices;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Reflection;
using System.Collections.Generic;
using System.Collections;
using NetOffice;
namespace NetOffice.VisioApi
{
///<summary>
/// Interface LPVI... |
@model Vta.Models.Course
@{
ViewBag.Title = "Create";
}
<h2>Create</h2>
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
<h4>Course</h4>
<hr />
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
<div class="form-group">
... |
using Microsoft.Owin;
using Owin;
[assembly: OwinStartup(typeof(SignalRChat.Startup))]
namespace SignalRChat
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
// Any connection or hub wire up and configuration should go here
app.MapSignalR();
... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cervantes.CORE
{
public class TaskAttachment
{
/// <summary>
/// Task A... |
namespace EA.Iws.DataAccess.Mappings.Common
{
using System.Data.Entity.ModelConfiguration;
using Domain.Finance;
internal class ShipmentQuantityRangeMapping : EntityTypeConfiguration<ShipmentQuantityRange>
{
public ShipmentQuantityRangeMapping()
{
ToTable("ShipmentQuantityR... |
// 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 Xunit;
namespace System.IO.Tests
{
public static class GetFullyQualifiedPathSpanTests
{
[Fac... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace AutoDeployClient.Settings
{
public class DefineManager
{
public const int
LOG_LEVEL_VERBOSE = 0,
LOG_LEVEL_INFO = 1,
LOG_LEVEL_DEBUG = 2,
LOG_LEVEL_WARN = 3,
... |
#if (!PCL) && ((!UNITY_5 && !UNITY_5_3_OR_NEWER) || UNITY_STANDALONE)
/*---------------------------------------------------------------------------------------------
Copyright (c) Microsoft Corporation
All rights reserved.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of... |
using System.IO;
using System.Net.Sockets;
using System.Security.Authentication;
using System.Threading.Tasks;
using Loggly.Config;
namespace Loggly.Transports.Syslog
{
class SyslogTcpTransport : SyslogTransportBase
{
protected string Hostname
{
get { return LogglyConfig.Instance.T... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Tizen.NUI.WindowSystem.Shell
{
internal static partial class Interop
{
internal static partial class SoftkeyService
{
const string lib = "libtzsh_softkey_service.so.0";
[global::System.Runtime... |
using System;
using Gtk;
using QS.Dialog.GtkUI;
using QS.DomainModel.Config;
using QS.RepresentationModel.GtkUI;
using QS.Tdi;
namespace QS.Project.Dialogs.GtkUI.JournalActions
{
public class RepresentationAddButton : RepresentationButtonBase
{
public RepresentationAddButton(IJournalDialog dialog, IRepresentation... |
using Nemo.Configuration;
using Nemo.Data;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
namespace Nemo
{
public static partial class ObjectFactory
{
#region Aggregate Methods... |
// This file is part of Silk.NET.
//
// You may modify and distribute Silk.NET under the terms
// of the MIT license. See the LICENSE file for details.
using System;
using Silk.NET.Core.Attributes;
#pragma warning disable 1591
namespace Silk.NET.OpenGLES
{
[NativeName("Name", "TextureEnvParameter")]
public... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
namespace Microsoft.Psi.CognitiveServices.Speech.Service
{
using System.IO;
using Microsoft.Psi.Audio;
/// <summary>
/// Represents a message containing audio to be sent to the service.
/// </summary>
... |
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using XstarS.Reflection.Emit;
namespace XstarS.Reflection
{
/// <summary>
/// 提供基于代理委托 <see cref="MethodInvokeHandler"/> 的包装代理类型。
/// </summary>
... |
using System;
using System.Collections.Concurrent;
using System.Net;
using System.Net.Sockets;
using System.Threading;
namespace XzySocketServer
{
/// <summary>
/// upd server
/// </summary>
/// <typeparam name="TMessage"></typeparam>
public sealed class UdpServer<TMessage> : IUdpServer<TMessage> ... |
namespace Company.Product.WebApi.Common;
public interface IGuidFactory
{
Guid CreateRandom();
} |
using TripBooker.Common;
namespace TripBooker.TransportService.Model;
internal class ReservationModel : EventModel
{
public Guid TransportId { get; set; }
public int Places { get; set; }
public double Price { get; set; }
public ReservationStatus Status { get; set; }
public int TransportOption... |
// SPDX-License-Identifier: Apache-2.0
// Licensed to the Ed-Fi Alliance under one or more agreements.
// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
// See the LICENSE and NOTICES files in the project root for more information.
using System;
using NUnit.Framework;
namespace E... |
namespace StrawberryShake.Tools
{
public class WellKnownFiles
{
public const string Config = ".graphqlrc.json";
}
} |
using System;
using System.Linq;
using dngrep.core.Queries.SyntaxNodeMatchers.Targets;
using dngrep.core.VirtualNodes;
using dngrep.core.VirtualNodes.VirtualQueries.Extensions;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using RoslyJump.Core.Contexts.ActiveFile.Local.States.BaseStates;
n... |
using DevChatter.DevStreams.Core;
using DevChatter.DevStreams.Core.Data;
using DevChatter.DevStreams.Core.Model;
using DevChatter.DevStreams.Core.Twitch;
using DevChatter.DevStreams.Web.Data.ViewModel.Channels;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using System.Collections.Generic;... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using NUnit.Framework;
using Azure.ResourceManager.Resources;
using Azure.Core.TestFramework;
using Azure.ResourceManager.ServiceBus.Models;
usin... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Xin.AQS
{
/// <summary>
/// 空气小时数据
/// </summary>
public class AirHourData : AirDataBase
{
/// <summary>
/// 臭氧(O3)1小时平均浓度(μg/m³)
/// </summary>
public decimal? O3 { get;... |
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// re... |
using System;
using System.Runtime.InteropServices;
using UnityEngine;
namespace udSDK
{
static class UDSDKLibrary
{
#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
public const string name = "udSDK";
#else
public const string name = "udSDK";
#endif
}
} |
using ENode.RabbitMQ;
using ENode.Infrastructure;
using ENode.Messaging;
namespace BankTransferSample.Providers
{
public class ApplicationMessageTopicProvider : AbstractTopicProvider<IApplicationMessage>
{
public override string GetTopic(IApplicationMessage applicationMessage)
{
re... |
using System.Linq;
using System.Web.Http.Controllers;
using System.Web.Http.Properties;
namespace System.Web.Http.Tracing.Tracers
{
/// <summary>
/// Tracer for <see cref="IHttpActionSelector"/>.
/// </summary>
internal class HttpActionSelectorTracer : IHttpActionSelector
{
private const s... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using static MAVLink;
namespace MavLink
{
public class MissionPlanner
{
}
} |
/* Credit to https://github.com/horgeon
* for his initial developments in Roccat support
* here: https://github.com/horgeon/Aurora/commits/dev
*/
/* Side notes about this device:
* SDK Docs state "Due to hardware and protocol limitations, the approximate latency for on/off events is currently about 20 to 30ms." ... |
using Eto.Drawing;
using Eto.Forms;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Eto.Designer
{
public class DesignSurface : Drawable
{
public static Size GripPadding = new Size(5, 5);
static Size GripSize = new Size(2, 2);
static... |
//------------------------------------------------------------------------------
// <copyright file="CodeTypeReference.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//----------------------------... |
using System.Xml.Serialization;
using Newtonsoft.Json;
namespace Essensoft.AspNetCore.Payment.Alipay.Response
{
/// <summary>
/// KoubeiMarketingToolPointsQueryResponse.
/// </summary>
public class KoubeiMarketingToolPointsQueryResponse : AlipayResponse
{
/// <summary>
/// 可用集点
... |
using System;
using System.Xml.Serialization;
namespace Generator.Shared.Serialization
{
/// <remarks/>
[Serializable]
[System.ComponentModel.DesignerCategory("code")]
[XmlType(TypeName = "TemplateData", Namespace = "http://schemas.microsoft.com/developer/vstemplate/2005")]
public class TemplateData
{
/// <re... |
using System.Collections.Generic;
namespace PanoramicDataWin8.view.inq
{
public class Gesturizer
{
private readonly IList<IGesture> _gestures = new List<IGesture>();
public void AddGesture(IGesture gesture)
{
_gestures.Add(gesture);
}
public IList<IGesture... |
using System;
namespace Binance.Net.Interfaces
{
/// <summary>
/// Recent trade data
/// </summary>
public interface IBinanceRecentTrade
{
/// <summary>
/// The id of the trade
/// </summary>
long OrderId { get; set; }
/// <summary>
/// The price of... |
// Copyright 2007-2017 Chris Patterson, Dru Sellers, Travis Smith, et. al.
//
// 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 System.ComponentModel.DataAnnotations;
namespace BookStore.Domain.Model
{
public class Autor: Entity
{
[Required(ErrorMessage = "Nome do autor deve ser informado.")]
public string Nome { get; set; }
public string Nacionalidade { get; set; }
}
} |
using MediatR;
using SFA.DAS.Apim.Developer.Domain.Models;
namespace SFA.DAS.Apim.Developer.Application.AzureApimManagement.Commands.CreateUser
{
public class CreateUserCommand : IRequest<string>
{
public string Id { get ; set ; }
public string FirstName { get; set; }
public string Last... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xam... |
using MediatR;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using DevBlog.Api.Extensions;
using System.Threading;
using System.Threading.Tasks;
using DevBlog.Application.Handlers.Command;
using DevBlog.Application.Response;
namespace DevBlog.Api.Controllers
{
[Route("[controller]")]
public class... |
using NBitcoin.RPC;
using Microsoft.Extensions.Logging;
using NBXplorer.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using NBXplorer.Configuration;
using NBitcoin.Protocol;
using System.Threading;
using System.IO;
using NBitcoin;
using System.Net;
using NBit... |
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/
using System;
using System.Collections.Generic;
using System.Net;
using System.Security;
using Snowflake.Data.Log;
using Snowflake.Data.Client;
namespace Snowflake.Data.Core
{
internal enum SFSessionProperty
{
[SFSessionP... |
using MediatR;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using SFA.DAS.LoginService.Application.ChangeEmail.StartChangeEmail;
using SFA.DAS.LoginService.Types.GetClientById;
using SFA.DAS.LoginService.Web.Controllers.ChangeEmail.ViewModels;
using System;
using System.Threading.Tasks;
na... |
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace platzi_asp_net_core.Models
{
public class EscuelaContext : DbContext
{
public DbSet<Escuela> Escuelas { get; set; }
public DbSet<Asignatura> Asignatur... |
using System;
using System.Collections.Generic;
namespace ModelGraph.Core
{
public class MapToOne<T> : Dictionary<Item, T> where T : Item
{
internal MapToOne(int capacity = 0) : base(capacity) { }
#region Serializer ===================================================
internal MapToOn... |
using System.Collections.Generic;
using autoCardboard.Pandemic.State;
namespace autoCardBoard.Pandemic.Bots
{
public interface IHandManagementHelper
{
List<PandemicPlayerCard> GetCardsToDiscardToCure(IPandemicState state, Disease disease, PlayerRole playerRole, IEnumerable<PandemicPlayerCard> cards);
... |
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Rulesets.Catch.Skinning
{
public enum CatchSkinColour
{
/// <summary>
/// The colour to be used for the catcher while in hy... |
using Orchard;
using Orchard.ContentManagement;
namespace Nwazet.Commerce.Services {
public class ProductInventoryService : ProductInventoryServiceBase {
public ProductInventoryService(
IWorkContextAccessor workContextAccessor,
IContentManager contentManager)
: base(wo... |
using FuelSDK;
using System;
namespace objsamples
{
partial class Tester
{
static void TestET_OpenEvent()
{
var filterDate = new DateTime(2013, 1, 15, 13, 0, 0);
Console.WriteLine("--- Testing OpenEvent ---");
var myclient = new ET_Client();
Co... |
// 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.
#if !WINDOWS_UWP
using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using ... |
/*
* This class was auto-generated from the API references found at
* https://epayments-api.developer-ingenico.com/s2sapi/v1/
*/
using Ingenico.Connect.Sdk.Domain.Hostedmandatemanagement.Definitions;
namespace Ingenico.Connect.Sdk.Domain.Hostedmandatemanagement
{
public class CreateHostedMandateManagementReques... |
@using MVCApp
@using MVCApp.Models
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers |
// 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.Runtime.InteropServices;
internal partial class Interop
{
internal partial class Ker... |
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ---------------------------------------... |
using System;
using System.Diagnostics;
using System.Drawing;
using System.Globalization;
using System.Runtime.InteropServices;
using System.Security.Cryptography.X509Certificates;
using System.Text;
namespace Microsoft.AnalysisServices.AdomdClient.MsoID
{
internal sealed class MsoIDCRL
{
[StructLayout(LayoutKind.... |
using System;
using System.Collections.Generic;
using System.Text;
using Vhc.Optimus.Core.Abstractions;
namespace Vhc.Optimus.Core.Models
{
public class DatabaseConnection : IDatabaseConnection
{
public string Name { get; set; }
public string ConnectionString { get; set; }
}
} |
namespace Atc.Rest.Extended.Tests.Options;
public class ConfigureAuthorizationOptionsTests
{
[Fact]
public void Implements_IPostConfigureOptions_JwtBearerOptions()
=> typeof(ConfigureAuthorizationOptions)
.Should()
.Implement<IPostConfigureOptions<JwtBearerOptions>>();
[Fac... |
/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... |
/*
* Copyright (c) 2011-2015 Håkan Edling
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*
* http://github.com/piranhacms/piranha
*
*/
using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
usin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.