content stringlengths 23 1.05M |
|---|
using static System.Console;
using System.IO;
using System.Reflection;
public class Program {
public static void Main() {
WriteLine(Path.Combine(Directory.GetCurrentDirectory(), @"EmailTemplate/email.html"));
WriteLine(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"EmailTemplate/e... |
using System;
using System.Threading.Tasks;
using N8T.Infrastructure.App.Dtos;
using ShoppingCartService.Domain.Exception;
using ShoppingCartService.Domain.Gateway;
namespace ShoppingCartService.Infrastructure.Extensions
{
public static class CartDtoExtensions
{
public static async Task<CartDto> Insert... |
using System;
using System.Collections.Generic;
using UnityEngine;
namespace ET
{
public class TowerAIAwakeSystem : AwakeSystem<TowerAI>
{
public override void Awake(TowerAI self)
{
self.Awake();
}
}
public class TowerAIUpdateSystem : UpdateSystem<TowerAI>
{
... |
using MSHC.Lang.Attributes;
namespace AlephNote.Common.Settings.Types
{
public enum URLMatchingMode
{
[EnumDescriptor("Standard-conform")]
StandardConform,
[EnumDescriptor("Extended character set")]
ExtendedMatching,
[EnumDescriptor("Tolerant")]
Tolerant,
}
}
|
using OrchardCore.Workflows.ViewModels;
using Rework.ContentApproval.Workflows.Activities;
namespace Rework.ContentApproval.Workflows.ViewModels
{
public class ApprovalRequestEventViewModel : ActivityViewModel<ApprovalRequestEvent>
{
public ApprovalRequestEventViewModel()
{
}
... |
@model Core1.Web.Features.Accounts.ConfirmEmail.CommandResult
@{
ViewData["Title"] = "Confirm Email";
ViewData["ShowHeader"] = true;
ViewData["ShowCookieConsent"] = false;
}
<div class="container">
<div class="columns">
<div class="column">
@if (Model.Succeeded)
{
... |
namespace OnlyM.Core.Utils
{
using System.Collections.ObjectModel;
using System.Collections.Specialized;
public class ObservableCollectionEx<T> : ObservableCollection<T>
{
private bool _notificationSupressed;
private bool _supressNotification;
public bool SupressNotification
... |
using System;
using RabbitMQ.Client;
namespace EasyNetQ.Producer
{
public interface IPublishConfirmationListener : IDisposable
{
IPublishConfirmationWaiter GetWaiter(IModel model);
}
} |
using System.Collections.ObjectModel;
using System.Windows.Input;
using What_Should_I_Do.Models;
using Xamarin.Forms;
namespace What_Should_I_Do.ViewModels
{
public sealed class MainViewModel
{
public ObservableCollection<Reminder> Reminders => App.Reminders;
public ICommand AddCommand { get;... |
using System;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Util;
using Android.Views;
using Android.Widget;
using Android.Graphics;
using Android.Animation;
using Android.Graphics.Drawables;
using Android.Views.Animations;
using SVGParser = Org.Anddev.Andengine.Exte... |
using Flutterwave.Net.Utilities;
using System.ComponentModel;
namespace Flutterwave.Net
{
public enum Currency
{
/// <summary>
/// "EUR"
/// </summary>
[Description(AppConstants.EURO_CODE)]
Euro,
/// <summary>
/// "GHS"
/// </summary>
[D... |
namespace _InputTest.Entity.Scripts.Combat
{
public class Attack
{
public int Damage { get; }
public bool Critical { get; }
public Attack(int damage, bool critical) => (Damage, Critical) = (damage, critical);
}
}
|
// 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.Collections.Generic;
using System.Collections.Immutable;
using System.Threading;
using System.Threadin... |
using MediatR;
using System.Diagnostics.CodeAnalysis;
namespace Liquid.WebApi.Http.UnitTests.Mocks
{
[ExcludeFromCodeCoverage]
public class TestCaseRequest : IRequest<TestCaseResponse>
{
}
}
|
using System.Linq;
using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using Xunit;
namespace MR.Augmenter
{
public class AugmenterServiceCollectionExtensionsTest : TestHost
{
[Fact]
public void Works()
{
var services = new ServiceCollection();
ser... |
using System;
using calc1.twoOper;
using NUnit.Framework;
namespace calc1.Tests.twoOper
{
public class CalculaterfactoryTests
{
[TestCase("plus", typeof(Add))]
[TestCase("minus", typeof(Subtraction))]
[TestCase("mul", typeof(Multiplication))]
[TestCase("div", typeof(Division))]... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using FeatureBits.Data.EF;
using FluentAssertions;
using Xunit;
namespace FeatureBits.Data.Test
{
public class FeatureBitsEfDbContextTests : I... |
using System;
using Foundation;
using InputMask.Classes.Model;
using UIKit;
namespace InputMask.Classes.View
{
public class MaskedTextFieldDelegate : UITextFieldDelegate, IUITextFieldDelegate
{
private string _maskFormat;
private bool _autocomplete;
private bool _autocompleteOnFocus;
... |
using System.Threading.Tasks;
namespace ESO_LangEditor.GUI.Services
{
public interface IStartupCheck
{
void UpdateEditor();
Task UpdateUpdater();
//bool CompareDatabaseRevNumber();
Task DownloadFullDatabase();
Task SyncRevDatabase();
Task StartupTaskList();
... |
using Digitteck.Gateway.DMapper;
using Digitteck.Gateway.Service.Common.Guards;
using Digitteck.Gateway.Service.Exceptions;
using Digitteck.Gateway.SourceModels;
using System;
using System.Linq;
namespace Digitteck.Gateway.Service.JsonModelProvider
{
public sealed class JSDownstreamMap : DataMap<JSDownstream, Dow... |
using System;
using CSF.Validation;
namespace Agiil.Domain.Tickets
{
public class EditTicketResponse
{
readonly IValidationResultInterpreter resultInterpreter;
public readonly IValidationResult ValidationResult;
public Ticket Ticket { get; private set; }
public bool Identity... |
// ThreadDataTransferII.cs
//
// Showing how to pass data to a thread
//
// (C) Datasim Education BV 2009
//
using System;
using System.Threading;
public class ThreadData_II
{
public static void Main()
{
// Create a thread running the "Print" method.
Thread ts = new Thread(d... |
using UnityEngine;
using System.Runtime.InteropServices;
using System;
// TODO:
// - Figure out a way to pass the Y texture directly to the native plugin to prevent marshalling.
public class OpencvProcessingInterface {
int[] m_outArray = new int[4];
IntPtr m_marshalledBuffer;
int m_marshalledSize;
byt... |
using Microsoft.CodeAnalysis;
using ProxyInterfaceSourceGenerator.Enums;
namespace ProxyInterfaceSourceGenerator.Extensions
{
internal static class TypeSymbolExtensions
{
public static TypeEnum GetTypeEnum(this ITypeSymbol ts)
{
if (ts.IsValueType || ts.IsString())
... |
namespace RealTimeThemingEngine.ThemeManagement.Data.Entities
{
public class ThemeVariableValue
{
public int ThemeVariableValueId { get; set; }
public int ThemeId { get; set; }
public int VariableId { get; set; }
public string Value { get; set; }
public virtual Theme Th... |
using Godot;
using System;
public class Singleton : Node
{
public static byte IconMode = 0;
public static byte TrackMode = 0;
}
|
using BepInEx;
using BepInEx.Configuration;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Valheim.SpawnThat.Configuration;
using Valheim.SpawnThat.Configuration.ConfigTypes;
using Valheim.SpawnThat.Core;
using Valheim.SpawnThat.Core.Configuration;
namespace Valheim.SpawnThat.PreConfigure... |
using System;
using System.Globalization;
using System.Runtime.InteropServices;
namespace Drexel.Terminal
{
/// <summary>
/// Represents a coordinate (a pair of a horizontal position and a vertical position).
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public readonly struct Coord : IEqua... |
using System;
using System.Xml.Serialization;
namespace BroadWorksConnector.Ocip.Models
{
/// <summary>
/// User alias usage mode for AS translations on incoming calls.
/// </summary>
[Serializable]
[XmlRoot(Namespace = "")]
public enum IncomingCallToUserAliasMode
{
[XmlEnum(Name = ... |
using Micromed.EventCalculation.Common;
using Micromed.ExternalCalculation.Common.Dto;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Micromed.ExternalCalculation.MockExternalCalculation
{
public class MockPlu... |
using System;
namespace RxLibrary
{
public interface ITemperatureSensor
{
IObservable<double> Readings { get; }
}
} |
// Copyright(c) 2016 Guus Waals (guus_waals@live.nl)
// Licensed under the MIT License(MIT)
// See "LICENSE.txt" for more information
using osu.Framework.GameModes.Testing;
using osu.Framework.Graphics3D;
namespace FX2.Game.Tests
{
public class TestTrack3D : TestCase
{
private Render3DContainer rende... |
using System.Collections.Generic;
using Htc.Vita.Core.Log;
namespace Htc.Vita.Core.Config
{
/// <summary>
/// Class DummyConfigV2.
/// Implements the <see cref="ConfigV2" />
/// </summary>
/// <seealso cref="ConfigV2" />
public class DummyConfigV2 : ConfigV2
{
/// <summary>
... |
using System;
using System.Threading.Tasks;
using R5T.D0078;
using R5T.T0106;
using R5T.T0113;
using R5T.T0114;
using Instances = R5T.T0113.X0001.Instances;
namespace System
{
public static class ISolutionGeneratorExtensions
{
public static async Task CreateSolution(this ISolutionGenerator _,
... |
using UdonSharp;
using VRC.SDKBase;
namespace InariUdon.Player
{
[UdonBehaviourSyncMode(BehaviourSyncMode.NoVariableSync)]
public class PlayerEventLogger : UdonSharpBehaviour
{
#region Public Variables
public UI.UdonLogger logger;
public string level = "NOTICE";
public stri... |
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Text;
namespace ArangoDBNetStandard.Serialization
{
/// <summary>
/// Implements a <see cref="IApiClientSerialization"/> that uses Json.NET.
//... |
//-----------------------------------------------------------------------
// <copyright>
// Copyright (c) 2018 wanderer. All rights reserved.
// </copyright>
// <describe> #游戏模块的基类# </describe>
// <email> dutifulwanderer@gmail.com </email>
// <time> #2018年6月22日 14点59分# </time>
//-----------------------------... |
//------------------------------------------------------------------------------
// <auto-generated>
// Ten kod został wygenerowany przez narzędzie.
// Wersja wykonawcza:4.0.30319.42000
//
// Zmiany w tym pliku mogą spowodować nieprawidłowe zachowanie i zostaną utracone, jeśli
// kod zostanie ponownie ... |
using System.Linq;
using System.Threading.Tasks;
using AElf.CSharp.Core.Extension;
using AElf.Kernel;
using AElf.Kernel.Blockchain.Application;
using AElf.OS.BlockSync.Dto;
using AElf.OS.BlockSync.Infrastructure;
using AElf.OS.Network.Application;
using AElf.Sdk.CSharp;
using AElf.Types;
using Shouldly;
usin... |
using System.Data.Entity.ModelConfiguration;
using Advertise.DomainClasses.Entities.Products;
namespace Advertise.DomainClasses.Configurations.Products
{
/// <summary>
/// </summary>
public class ProductSpecificationConfig : EntityTypeConfiguration<ProductSpecification>
{
/// <summary>
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BoxLaunch.Actions;
using NDesk.Options;
namespace BoxLaunch.Commands
{
public class CleanDirectoryCommand : BaseCommand
{
public string TargetPath { get; set; }
public override void Run(IEnumerable<str... |
using System;
using System.Collections.Generic;
using System.Linq;
using SFA.DAS.Commitments.Domain.Entities;
using SFA.DAS.Commitments.Domain.Entities.DataLock;
using SFA.DAS.Provider.Events.Api.Types;
using EventStatus = SFA.DAS.Commitments.Domain.Entities.EventStatus;
namespace SFA.DAS.Commitments.Infrastructure... |
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.CommandLine.Parsing;
using System.Linq;
using BenchmarkDotNet.Attributes;
namespace System.CommandLine.Benchmarks.CommandLine
{
... |
using System;
using System.Text.Json.Serialization;
// TODO: IsInBounds(Rectangle)
namespace Engine.Core
{
/// <summary>
/// Represents an integral position in the two-dimensional plane.
/// </summary>
public struct Position : IEquatable<Position>
{
/// <summary>
/// The x-coordinat... |
using Engine.Interfaces.Config;
using Engine.Models.Boards;
using Engine.Models.Enums;
using Engine.Models.Helpers;
namespace Engine.Models.Config
{
public class StaticValueProvider: IStaticValueProvider
{
private readonly StaticTableCollection _collection;
public StaticValueProvider(StaticTa... |
namespace O10.Client.DataLayer.Enums
{
public enum ServiceProviderType : short
{
DocumentsManager = 1,
Bank
}
}
|
using Synapse.Config;
using System.ComponentModel;
namespace AutoNuke
{
public class Config : AbstractConfigSection
{
[Description("How long until nuke goes off? (-1 = not), (in seconds)")]
public float AutoNukeTime { get; set; } = 600;
[Description("What is the broadcast message?")]
... |
using Boxed.Mapping;
using LanguageExt;
using SJP.Schematic.Core;
namespace SJP.Schematic.Serialization.Mapping;
public class NumericPrecisionMapper
: IImmutableMapper<Dto.NumericPrecision?, Option<INumericPrecision>>
, IImmutableMapper<Option<INumericPrecision>, Dto.NumericPrecision?>
{
public... |
namespace FubuMVC.HelloWorld.Controllers.Earth
{
public class EarthController
{
public EarthViewModel Rock(EarthViewModel whereAreWe)
{
return whereAreWe;
}
}
public class EarthViewModel
{
public string RawUrl { get; set; }
}
} |
namespace WTabs
{
public class W_2 : BaseTab { }
} |
using System.Collections.Generic;
using Sharpduino.Base;
using Sharpduino.Constants;
using Sharpduino.Exceptions;
using Sharpduino.Messages;
using Sharpduino.Messages.Send;
namespace Sharpduino.Creators
{
public class SamplingIntervalMessageCreator : BaseMessageCreator<SamplingIntervalMessage>
{
publi... |
// Copyright (c) 2007 James Newton-King. All rights reserved.
// Use of this source code is governed by The MIT License,
// as found in the license.md file.
using System.Collections.Immutable;
public class Issue1984
{
[Fact]
public void Test_NullValue()
{
var actual = JsonConvert.DeserializeObjec... |
using UnityEngine;
public class DragAndDrop : MonoBehaviour
{
private PeopleGroup group;
private void Start()
{
group = transform.parent.GetComponent<PeopleGroup>();
}
private void OnMouseDown()
{
group.BeginDrag();
}
private void OnMouseUp()
{
group.Stop... |
using System;
using System.Collections.Generic;
using System.Text;
using FlatRedBall;
using FlatRedBall.Input;
using FlatRedBall.AI.Pathfinding;
using FlatRedBall.Graphics.Animation;
using FlatRedBall.Graphics.Particle;
using FlatRedBall.Math.Geometry;
using FlatRedBall.Math.Splines;
using BitmapFont = FlatRedBall.Gra... |
using System.IO;
using System.Runtime.InteropServices;
namespace KHAOSS;
public class TransactionRecord
{
public string Key;
public int Version;
public byte[] Body;
public DocumentChangeType ChangeType;
public int SizeInStore;
private const int FIXED_HEADER_SIZE =
4 + // Keylength
... |
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Sockets;
namespace DotXxlJob.Core
{
/// <summary>
/// ip utility
/// </summary>
internal static class IPUtility
{
#region Private Members
/// <summary>
... |
using System;
using System.Collections;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Timers;
using System.Windows;
using System.Windows.Threading;
namespace SyncFusionLiveTest
{
public class MainWindowViewModel : INotifyPropertyChanged
{
p... |
// Copyright (c) 2015-17 Liam McSherry
//
// 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 Software without restriction, including without limitation the rights
// to use, copy, modify, merge, pub... |
using System;
using System.IO;
namespace Ropufu.UpdaterApp
{
public interface IInstruction
{
/// <summary>
/// Reads the instruction from a stream.
/// </summary>
Boolean ReadFrom(StreamReader reader);
/// <summary>
/// Writes the instruction to a stream.
... |
using System;
using System.Collections.Generic;
using System.Text;
namespace System.IO.Ports
{
/// <summary>
/// Stop bits
/// note that only One and Two are implemented
/// </summary>
public enum StopBits
{
None = 0,
One = 1,
Two = 2,
OnePointFive = 3
};
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ardalis.GuardClauses;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Szlem.Domain.Exceptions
{
public class ValidationFailure
{
public ValidationFailure(string error) : this(string.Empty, error) {... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class CharacterPreview : MonoBehaviour
{
public Sprite[] Previews = new Sprite[4];
public void ChangePreview(int index)
{
GetComponent<Image>().sprite = Previews[index];
}
}
|
using UnityEngine;
using UnityEditor;
namespace UnityToolkit.Editor.Controls {
public class Control : IDrawable {
public virtual void Draw() {
}
public virtual void DrawAbsolute(Rect position) {
}
}
} |
using Microsoft.AspNetCore.Mvc;
namespace CutieShop.Models.Utils
{
public static class CookiesUtils
{
public static string SessionId(this Controller controller)
{
return controller.Request.Cookies["sessionId"];
}
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Autodesk.DesignScript.Runtime;
using Autodesk.DesignScript.Interfaces;
using Autodesk.DesignScript.Geometry;
using Machina;
using MAction = Machina.Action;
using MPoint = Machina.Point;
using MVe... |
/****
* CAP - "Configuration and Property"
* Copyright (C) 2020-2021 Yigty.ORG; all rights reserved.
* Copyright (C) 2020-2021 Takym.
*
* distributed under the MIT License.
****/
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TakymLib.Tests;
namespace CAP.Tes... |
using FazendaFeliz.ApplicationCore.Business;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace FazendaFeliz.ApplicationCore.Interfaces.Repository
{
public interface IAnuncioRepository : IRepository<Anuncio>
{
Task<List<AnuncioCompleto>> ObterTod... |
using System;
using FluentAssertions.NodaTime;
using NodaTime;
namespace FluentAssertions
{
public static class InstantAssertionsExtensions
{
public static InstantAssertions Should(this Instant? value)
{
if (value == null) throw new ArgumentNullException(nameof(value));
... |
using System;
using System.Collections.Generic;
using Orchard.ContentManagement;
using Orchard.Security;
using Orchard.Security.Providers;
using Orchard.Settings;
using Orchard.Users.Models;
namespace Orchard.Users.Services {
public class PasswordChangedDateUserDataProvider : BaseUserDataProvider {
priv... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using UniRx;
using UnityEngine;
using UnityEngine.Networking;
using Debug = UnityEngine.Debug;
namespace UnityAsyncAwaitUtil
{
public class UniRxTests : MonoBeha... |
/*
* Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
namespace Revitalize.Framework.Utilities
{
public class RotationUtilities
{
public static float get90Degrees()
{
float angle = (float)Ma... |
using System;
using System.Collections.Generic;
using System.Text;
using VehicleLoan.BusinessModels;
namespace VehicleLoan.DataAccessLayer.Repository.Abstraction
{
public interface IUserRegistrationDao
{
int AddRecord(UserRegistrationModel userModel);
int UpdateRecord(UserRegistrat... |
@{
ViewBag.Title = "Search";
ViewBag.Word = '"' + ViewBag.Word + '"';
}
<h2 style="text-align: center;">Results for word @ViewBag.Word</h2>
<div>
<h2>Subject results</h2>
@foreach (Forum.Models.Subject subject in ViewBag.Subjects)
{
ViewData["subjectClickable"] = true;
<div class... |
using Serilog;
using System.Configuration;
namespace Service.Extensions
{
public class LogConfigWeb
{
public static ILogger GetLogger()
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Verbose()
.WriteTo.File(ConfigurationManager.AppSettings["l... |
using EmsDepRelation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyNewClass.Common
{
public class ErrorLogHelper
{
public ErrorLogHelper(string content)
{
string EmailTitle = string.Empty;
... |
// Copyright(c) 2017 Vertical Software - All rights reserved
//
// This code file has been made available under the terms of the
// MIT license. Please refer to LICENSE.txt in the root directory
// or refer to https://opensource.org/licenses/MIT
using Vertical.CommandLine.Configuration;
using Vertical.CommandLine.Conv... |
using TfsDeployer.Data;
namespace TfsDeployer.Web.Services
{
public interface IConfigurationService
{
string[] GetDeployerInstanceAddress();
IDeployerService CreateDeployerService(int instanceIndex);
void SetDeployerInstanceAddress(string deployerServiceUrl);
}
} |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Windows;
using Archimedes.Patterns.WPF.DragNDrop.Utilities;
using System.Windows.Controls;
using System.ComponentModel;
namespace Archimedes.Patterns.WPF.DragNDrop
{
class DefaultDrop... |
namespace ConDep.Dsl
{
public interface IOfferAwsBootstrapUserDataOptions
{
IOfferAwsBootstrapOptions PowerShell(string script);
IOfferAwsBootstrapOptions RunCmd(string script);
}
} |
using EasyDesk.Tools.Collections;
using EasyDesk.Tools.Options;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using System;
using System.Collections.Generic;
namespace EasyDesk.CleanArchitecture.Web.ModelBinders;
public class TypedModelBinderProvider : IModelBinderProvider
{
private readonly IDictionary... |
namespace KnowYourCustomer.Kyc.Data.Contracts.Enumerations
{
public enum Operation
{
ProcessPassportMrz = 0,
IdentityVerification = 1
}
} |
using Podler.Models;
using Podler.Models.Interfaces;
namespace Podler.Responses
{
public class SelectAddResponse : IResponse
{
public bool IsSuccess { get; }
public string Message { get; }
public ISelectableItem Model { get; }
public SelectAddResponse(bool isSuccess, string me... |
using Microsoft.Azure.KeyVault;
using Microsoft.Azure.Services.AppAuthentication;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Configuration.AzureKeyVault;
using Microsoft.Extensions.Hosting;
namespace Api.Configuration
{
public static class AzureKeyVaultConfigHostBuilderExtension
{
... |
using Shared.RequestResponse;
using System;
namespace Uniwiki.Shared.RequestResponse
{
public class EditHomeFacultyRequestDto : RequestBase<EditHomeFacultyResponseDto>
{
public EditHomeFacultyRequestDto(Guid? facultyId)
{
FacultyId = facultyId;
}
public Guid? Facul... |
//-----------------------------------------------------------------------------
// <copyright file="UriParserExtenstionEdmModel.cs" company=".NET Foundation">
// Copyright (c) .NET Foundation and Contributors. All rights reserved.
// See License.txt in the project root for license information.
// </copyright>... |
using System;
using System.Collections.Generic;
namespace _03_Queues
{
class Program
{
static void Main(string[] args)
{
/*
* Очередь Queue<T> - коллекция объектов, основанная на принципе "первый поступил -- первым обслужен"
* используется, когда необходим... |
using System;
using System.Reflection;
using System.Reflection.Emit;
delegate int Getter();
class Host
{
static int Field = 42;
Getter g;
public Host(Getter g)
{
this.g = g;
}
~Host()
{
int d = g();
Console.WriteLine(d);
}
}
class Program
{
static Host h... |
#region Copyright (C) 2017 Kevin (OSS开源作坊) 公众号:osscore
/***************************************************************************
* 文件功能描述:公号的功能接口 —— 消息统计接口实体
*
* 创建人: Kevin
* 创建人Email:1985088337@qq.com
* 创建日期:2017-1-19
*
***********************************************************************... |
// 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.
namespace System {
public class HttpStyleUriParser: UriParser
{
public HttpStyleUriParser():base(Ur... |
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
using System.Diagnostics;
using System.Xml.XPath;
using System.Xml;
using System.IO;
using DigitalPlatform;
//using DigitalPlatform.XmlEditor;
using DigitalPlatform.GUI;
using Digi... |
#region Header
// Revit MEP API sample application
//
// Copyright (C) 2007-2021 by Jeremy Tammik, Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software
// for any purpose and without fee is hereby granted, provided
// that the above copyright notice appears in all copies and
// tha... |
#region License
/*
* Copyright 2002-2008 the original author or 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
*
* Unl... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yibai.Api.Domain
{
/*
* 用户信息的参数列表
*/
public class UserInfo
{
public string username { set; get; }
public string mobile { set; get; }
public int... |
using PureDI;
using IOCCTest.TestCode;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace IOCCTest
{
[TestClass]
public class StructTest
{
[TestMethod]
public void ShouldInstantiateStruct()
{
StructRoot root = new DependencyInjector().CreateAndInjectDependenc... |
using System.Collections;
using System.Collections.Generic;
using Group3d.Localization;
using NUnit.Framework;
using UnityEngine;
using UnityEngine.TestTools;
namespace Tests.Runtime
{
public class LocalizationTests
{
private GameObject localizationGameObject;
private Localization localization... |
// https://www.tutorialspoint.com/csharp/csharp_constants.htm
using System;
namespace Constant {
class Program {
static void Main(string[] args) {
// integer literals
Object constant = 212;
Console.WriteLine(constant);
constant = 215U;
Console.Wr... |
using System;
namespace RabbitMQWeb.Models
{
[Serializable]
public class LongEaredRabbitMessage : RabbitMessage
{
public LongEaredRabbitMessage(string message)
: base(message)
{
}
public override string ToString()
{
return $"long eared rabbi... |
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Telegram.Bot;
using Telegram.Bot.Types;
namespace CodyMazeBot.Game {
[StateHandler(BotState.WaitingForDirection)]
public class WaitingForDirectionProcessor : Bas... |
<html>
<head>
<title>Pollr</title>
<link href="~/css/site.min.css" rel="stylesheet">
<link href="~/lib/tether/dist/css/tether.min.css" rel="stylesheet">
<link href="~/lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="~/favicon.ico" rel="icon" type="/image/vnd.microsoft.icon">
<... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.