content stringlengths 23 1.05M |
|---|
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DocAsCode.Common
{
using System;
public sealed class LoggerPhaseScope : IDisposable
{
private readonly string _originPhaseName... |
using System.Data.Entity;
using System.Threading.Tasks;
using BookLovers.Base.Infrastructure.Queries;
using BookLovers.Readers.Infrastructure.Persistence;
using BookLovers.Readers.Infrastructure.Queries.Readers.Profiles;
namespace BookLovers.Readers.Infrastructure.QueryHandlers.Profiles
{
internal class DoesProfi... |
using ZeldaOracle.Common.Geometry;
using ZeldaOracle.Game.Entities.Collisions;
using ZeldaOracle.Game.Entities.Players;
namespace ZeldaOracle.Game.Entities.Projectiles.MonsterProjectiles {
public class MagicProjectile : Projectile {
//---------------------------------------------------------------------------... |
/* url do poczytania: https://docs.microsoft.com/en-us/dotnet/api/system.idisposable?view=net-5.0 */
namespace ExternalAPI
{
public sealed class PersonFromAPI
{
#region IMPELEMEN_IDISPOSABLE
#endregion
#region VARIABLE_PERSONAL_DATA
public string name { get; set; }
pu... |
namespace CosmicMachine.Lang
{
public class NegateOp : Exp, IEagerOp
{
public override Exp Apply(Exp x) => -(long)x;
public override string ToString() => "negate";
}
} |
namespace Nunycode
{
public partial class Ucs2 {}
public partial class Punycode {}
}
|
// 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.Windows.Forms;
namespace WindowsFormsApp1
{
public partial class FormBorderStyles :... |
//------------------------------------------------------------------------------
// <copyright file="PropertyInformationCollection.cs" company="Microsoft">
//
// Copyright (c) 2006 Microsoft Corporation. All rights reserved.
//
// The use and distribution terms for this software are contained in th... |
using FairyGame;
using FairyGUI;
using UnityEngine;
public class BaseWindow
{
public Window _window;
protected GComponent _contentPane;
protected Vector2 _originPos = Vector2.zero;
protected string[] animation = new []{"fade_in","fade_out"}; //进入动画效果 退出动画效果
protected bool _asyncCreate = false; //是... |
namespace Tests.Caliburn.RoutedUIMessaging
{
using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;
using Fakes.UI;
using global::Caliburn.Core.Invocation;
using global::Caliburn.Core.InversionOfControl;
using global::Caliburn.Presen... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.Azure.Management.Redis;
namespace AzureRedisCacheSample.Services
{
/// <summary>
/// class to access Redis using Microsoft.Azure.Management.Redis
/// </summary>
public class MicrosoftRedisService
{... |
using System;
namespace Business.Objects.Layer.Exceptions.Generic.Args
{
public class DatabaseErrorExceptionArgs : ExceptionArgsBase
{
public string ErrorMessage { get; set; }
public DatabaseErrorExceptionArgs(string exceptionMessage)
{
ErrorMessage = exceptionMe... |
using InterviewMvcApi.Models;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Linq;
namespace InterviewMvcApi.Controllers
{
[Route("api/movie")]
[ApiController]
public class MovieController : ControllerBase
{
private readonly InterviewMvcContext _context;
... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using Sys... |
namespace SimpleMvc.App.Services
{
using Data;
using Models;
using System.Collections.Generic;
using System.Linq;
public class NoteService
{
private readonly NotesDbContext db;
public NoteService()
{
this.db = new NotesDbContext();
}
public... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NotifyPropertyChanged
{
/// <summary>
/// Marker attribute indicating that a type should implement
/// <see cref="INotifyPropertyChanged"/> for all public properties.
/// </summary>
public class NotifyPropertyChanged... |
using System;
using System.Collections.Immutable;
using Newtonsoft.Json;
namespace Microsoft.DotNet.Maestro.Client.Models
{
public partial class AssetAndLocation
{
public AssetAndLocation(int assetId, Models.LocationType locationType)
{
AssetId = assetId;
LocationType = ... |
using System;
using Newtonsoft.Json;
using RemoteAgent.Common.Serialization;
namespace RemoteAgent.Common.Commands
{
public class ShutdownCommand : RemoteCommand
{
public ShutdownCommand() : base("B07E6779-9EF5-4069-BC45-4D13A17190CA", "Shutdown")
{
Parameters = new object[1];
}
public ShutdownCommand(T... |
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Text;
namespace CSPDC.Generator
{
public class PStringBlockType : IBlockType
{
public string Name { get; }
public string TypeName => "string";
private BufferBlockType _buffer;
public ... |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
namespace Microsoft.Web.LibraryManager.Contracts
{
/// <summary>
/// Represents the result of <see cref="IPr... |
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
using System.Threading;
namespace Microsoft.Playwright.CLI
{
class Program
{
private const string DriverEnvironmentPath = "PW_... |
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
namespace PubActiveSubService {
public static class Program {
public static void Main() =>
CreateWebHostBuilder().Build().Run();
public static IWebHostBuilder CreateWebHostBuilder() =>
WebHost.CreateDefaultBui... |
using System.Linq;
using DevExpress.XtraReports.UI;
namespace DevExpressReportingExtensions.Extensions
{
public static partial class BandExtensions
{
public static PageHeaderBand AddPageHeaderBand(this XtraReport report)
{
var result = report.GetBandByType<PageHeaderBand>();
... |
using System;
namespace RingBuffer
{
public static class RingBufferExtensions
{
/// <summary>
/// Create a new array and copy the current data
/// </summary>
public static T[] ToArray<T>(this IReadOnlyRingBuffer<T> self)
{
var array = new T[self.Count];
self.CopyTo(arra... |
using System;
using WebAPI.Domain.Models.Entities;
using WebAPI.Domain.Models.Service.OpenWeather;
namespace WebAPI.Domain.Helpers
{
public static class CityWeatherModelHelper
{
public static CityWeather FromOpenWeatherToModel(CurrentModel model)
{
return new CityWeather {
... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using Lucene.Net.Analysis.Core;
using Lucene.Net.Analysis.Snowball;
using Lucene.Net.Documents;
using puck.core.Attributes;
using puck.core.Attributes.Transformers;
using puck.core.Base;
us... |
// WARNING
//
// This file has been generated automatically by MonoDevelop to store outlets and
// actions made in the Xcode designer. If it is removed, they will be lost.
// Manual changes to this file may not be handled correctly.
//
using Foundation;
namespace NSAlertSample
{
[Register ("MainWindowController")]
p... |
/* Copyright (C) 2007 The Trustees of Indiana University
*
* Use, modification and distribution is subject to the Boost Software
* License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*
* Authors: Douglas Gregor
* Andrew Lumsdaine
*
* This... |
using System;
using Godot;
public class FieldOfView : Area2D {
public bool IsPlayerDetected () {
return GetOverlappingBodies ().Count > 0;
}
public Node2D GetClosestPlayer () {
Node2D closestPlayer = null;
float maxDist = float.PositiveInfinity;
foreach (Node2D piece in GetOverlappingBodies ()) {
float... |
using System;
using System.Runtime.InteropServices;
namespace Dendron
{
class API
{
// Native API's
//-----------
[DllImport("KernelBase.dll")]
public static extern IntPtr CreateFileW(
IntPtr lpFileName,
UInt32 dwDesiredAccess,
UInt32 dwShare... |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
namespace Inventory.Model
{
public class TRAN_DOC
{
public TRAN_MAIN head { get; set; }
public List<TRAN_ITM> body_itm { get; set; }
public List<TRAN_BACO> body_baco { get; set; }
public List<... |
using Moq;
using NUnit.Framework;
using System;
using LetTestHelper;
namespace Let.cs.Tests
{
[TestFixture]
public class LetHelperTest
{
private Mock<ISpy> _spy;
private Func<bool> _callback;
[SetUp]
public void SetUp()
{
_spy = new Mock<ISpy>();
... |
using System;
using SystemsRx.Extensions;
using SystemsRx.Systems;
using SystemsRx.Systems.Conventional;
using SystemsRx.Threading;
using EcsRx.Collections;
using EcsRx.Components.Database;
using EcsRx.Components.Lookups;
using EcsRx.Entities;
using EcsRx.Extensions;
using EcsRx.Groups;
using EcsRx.Groups.Observable;
u... |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="OpenUrlOnClickBehaviour.cs" company="Slash Games">
// Copyright (c) Slash Games. All rights reserved.
// </copyright>
// --------------------------------------------------------... |
using UnityEngine;
using UnityEngine.UI;
namespace Assets.Scripts
{
public class PlayerController : MonoBehaviour
{
public float Speed = 10;
public Text ScoreText;
public Text WinText;
public static string PickUpTag = "Pick Up";
private Rigidbody _rigidbody;
p... |
using System;
using System.IO;
using System.Runtime.InteropServices;
namespace TAFactory.Utilities
{
/// <summary>
/// Holds a set of utilities.
/// </summary>
public static class Utility
{
#region Stream Utilities
/// <summary>
/// Reads a structure of type T from the input... |
using P01.CommandPattern.Core.Conntracs;
using System;
using System.Linq;
using System.Reflection;
namespace P01.CommandPattern
{
public class CommandInterpreter : ICommandInterpreter
{
public string Read(string args)
{
string[] inputTokens = args
.Split(' ', String... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Test.Linq2SQL.DLRColumns
{
/// <summary>
/// Sqlite专用的DLRColumn
/// </summary>
public class SqliteDLRColumn:LinqDLRColumn
{
public override string EqualFlag => "=";
public override string GreaterEqualFlag ... |
using System;
namespace NoteList.IntegrationTest.Support.Services
{
public class TimeHelperService
{
protected DateTime? dateTime = null;
public TimeHelperService()
{
}
public void SetCurrentDateTime(DateTime dateTime)
{
this.dateTime = dateTime;
... |
using AltV.Net.NetworkingEntity.Elements.Providers;
using net.vieapps.Components.WebSockets;
namespace AltV.Net.NetworkingEntity.Elements.Factories
{
public class AuthenticationProviderFactory : IAuthenticationProviderFactory
{
public IAuthenticationProvider Create(string ip, int port, WebSocket webSoc... |
namespace LicenseVerificationLibrary.Policy
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using Android.Content;
using LicenseVerificationLibrary.Obfuscator;
/// <summary>
/// <para>
/// Default policy.
/// All policy decisions are based off of respo... |
using System;
namespace OpenDreamShared.Net.Packets {
public class PacketResource : IPacket {
public PacketID PacketID => PacketID.Resource;
public string ResourcePath;
public byte[] ResourceData;
public PacketResource() { }
public PacketResource(string resourcePath, byt... |
using strange.extensions.context.api;
using strange.extensions.context.impl;
using UnityEngine;
using unitymenusystem;
namespace menusystem.example {
public class ExampleMenuContext : MVCSSignalContext {
public ExampleMenuContext() : base() {
}
public ExampleMenuContext(MonoB... |
using System;
using System.IO;
namespace Femyou {
public class ConsoleCallbacks : ICallbacks {
public void Logger(IInstance instance, Status status, string category, string message) {
using var console = new StreamWriter(Console.OpenStandardOutput());
console.WriteLine($"[{instance.Name}] {category}({status})... |
@model IEnumerable<Domain.Create.PermissionShowModel>
<div>
@foreach (var permission in Model)
{
<ul>
<li>
<Label>@permission.Name</Label>
@Html.Partial("~/Views/Permission/ChildPermission.cshtml",permission.ChildPermissionShowModels)
</li>
... |
using System.Threading.Tasks;
using System.Windows.Media;
using Caliburn.Micro;
namespace Notifications.Wpf.Caliburn.Micro.Sample.ViewModels
{
public class NotificationViewModel : PropertyChangedBase
{
private readonly INotificationManager _manager;
public string Title { get; set; }
p... |
using Terminals.Common.Connections;
using Terminals.Data;
namespace Terminals.Plugins.Rdp
{
internal class RdpOptionsConverter : IOptionsConverter
{
public void FromConfigFavorite(OptionsConversionContext context)
{
var rdpOptions = context.Favorite.ProtocolProperties as R... |
@{
ViewBag.Title = "Index";
}
<nav>
<ul id="menu">
<li>@Html.ActionLink("Students", "ListStudents", "Admin")</li>
<li>@Html.ActionLink("Teachers", "ListTeachers", "Admin")</li>
<li>@Html.ActionLink("Classrooms", "ListClassrooms", "Admin")</li>
<li>@Html.ActionLink("Simulation S... |
using Microsoft.DataTransfer.Basics.Collections;
using Microsoft.DataTransfer.Extensibility;
namespace Microsoft.DataTransfer.DocumentDb.Transformation.Remap
{
sealed class RemapFieldsTransformation : IDataItemTransformation
{
private IReadOnlyMap<string, string> fieldsMapping;
public RemapFi... |
namespace Gu.Persist.Core.Tests.Repositories
{
using System.IO;
using Gu.Persist.Core.Backup;
public class Files
{
public const string NewName = "NewName";
public readonly FileInfo File;
public readonly FileInfo Temp;
public readonly FileInfo SoftDelete;
public ... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Chapter 5.3.3 Parent Child *
* *
* Copyright © 2018 Alex Okita *
* ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using Newtonsoft.Json;
using System.IO;
using NewLeagueApp.Client.Types;
namespace NewLeagueApp.Updater {
public class MatchupsUpdater {
private static readonly int update... |
using System.Threading.Tasks;
using NUnit.Framework;
namespace Watchman.Tests.Alb
{
public class WhenPatternDoesNotMatch
{
private AlbTestSetupData _albTestSetupData;
[OneTimeSetUp]
public async Task OneTimeSetup()
{
_albTestSetupData = await new AlbTestSetupBuilder... |
using Cofoundry.Core.Configuration;
using System;
using System.ComponentModel.DataAnnotations;
namespace Cofoundry.Domain
{
/// <summary>
/// These settings control the background task that runs to clean up
/// deleted asset files. Asset files are deleted as a background process
/// to avoid file lo... |
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "MapConfig", menuName = "MapConfig")]
public class MapConfig : ScriptableObject
{
public List<string> CollisionObjectFilter => collisionObjectFilter;
public List<int> DestroyThresholdsFromLevels => destroyThresholdsFromLevelBase... |
#if UNITY_EDITOR
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
namespace Toolnity
{
internal sealed class SceneObjectSelectorPopup : PopupWindowContent
{
private const float WINDOW_WIDTH = 300f;
private const float BUTTON_HEIGHT = 20f;
private List<GameObject> objectsToShow;
priv... |
using static BuckarooSdk.Constants.Services;
namespace BuckarooSdk.Services.CreditCards.Response
{
public class CreditCardPayResponse : ActionResponse
{
public override ServiceNames ServiceNames => ServiceNames.CreditCard;
/// <summary>
/// Credit card expiration date.
/// </summary>
public string CardEx... |
using Xunit;
namespace AM.Core.Algorithms.Numbers.Tests
{
public class DigitsStripperTests
{
[InlineData("12345", 2, "123")]
[InlineData("10345", 1, "345")]
[InlineData("10", 1, "0")]
[Theory]
public void RemoveKdigits_Succeeds(string number, int key, string expectation... |
using System.Collections.Generic;
using System.Threading.Tasks;
using DiscountAPI.Core.Entities;
namespace DiscountAPI.Core.Repositories
{
public interface IInvoiceProductsRepository : IRepository<InvoiceProducts>
{
//Task<IEnumerable<InvoiceProducts>> GetAllByInvoiceIdAsync(int id);
}
} |
namespace Woa.Api.Common;
[DataContract]
public record DataContractBase()
{
[DataMember]
public virtual string? BodyContents { get; set; }
[JsonIgnore]
public virtual string? SidebarContents { get; set; }
}
|
/*
https://www.codewars.com/kata/55a5a70c81e8541d990000bd/csharp
7 kyu
Validate Hexadecimal
Create a function to validate if a string is a valid hexadecimal.
Two patterns is valid
6 chars (ff00ff)
3 chars (f0f).
*/
using System.Text.RegularExpressions;
namespace CodeWars
{
public class ValidateHexadecimal
... |
namespace WCF
{
partial class Form1
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</pa... |
using System;
using Scriban;
using Scriban.Parsing;
using Zio;
namespace Grynwald.ChangeLog.Templates
{
internal class FileSystemTemplateLoader : ScribanTemplateLoader
{
private readonly IFileSystem m_FileSystem;
public FileSystemTemplateLoader(IFileSystem fileSystem)
{
m... |
using NUnit.Framework;
using System;
using WargamingAPI;
namespace TestAPI
{
public class RequestTest
{
[Test]
public void TestConvertingFromTimeStamp()
{
int timestamp = 1593301376;
DateTime expectedTime = new(2020, 6, 27, 23, 42, 56);
DateTime res... |
using UnityEngine;
public class BGM : MonoBehaviour
{
public static BGM S;
private void Awake()
{
if (S == null)
S = this;
else if (S != this)
Destroy(gameObject);
DontDestroyOnLoad(gameObject);
}
} |
namespace Fixie.Tests.TestAdapter
{
using System.Collections.Generic;
using System.IO;
using Assertions;
using Fixie.Internal;
using Fixie.TestAdapter;
using Microsoft.VisualStudio.TestPlatform.ObjectModel;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter;
using Microsoft.V... |
using System;
using System.Windows.Forms;
namespace PasswordGenerator
{
public partial class PasswordGenerator : Form
{
public PasswordGenerator()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
PassGenerator ... |
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
// This file contain implementations details that are subject to change without notice.
// Use at your own risk.
//
namespace Microsoft.VisualStudio.Text.... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Explode : MonoBehaviour
{
public GameObject psPrefab;
public void ExplodeDestructable(Destructable destructable)
{
var instance = Instantiate(psPrefab, destructable.destructableRoot.transform.position, Qua... |
using System;
using Basement.BLFramework.Core.Context;
using Basement.BLFramework.Core.Reference.Collection;
using Basement.Common;
namespace Basement.BLFramework.Essential.Prices
{
public class DynamicCompositePrice : DynamicPrice
{
public LazyArray<DynamicPrice> prices { get; }
public Dynami... |
using SQLite.Net.Attributes;
namespace FoodByMe.Core.Services.Data.Types
{
[Table("RecipeTextSearch")]
public class RecipeTextSearchRow
{
[Column("docid")]
public long Id { get; set; }
[NotNull]
public string Value { get; set; }
}
}
|
/**
* Copyright (c) 2020-2021 LG Electronics, Inc.
*
* This software contains code licensed as described in LICENSE.
*
*/
namespace Simulator.ScenarioEditor.UI.EditElement.Waypoints
{
using Agents;
using Data.Serializer;
using Effectors;
using Elements;
using Elements.Agents;
using Element... |
// Copyright (c) Geta Digital. All rights reserved.
// Licensed under Apache-2.0. See the LICENSE file in the project root for more information
namespace Geta.NotFoundHandler.Core.Suggestions
{
public class SuggestionRedirect
{
public string OldUrl { get; }
public string NewUrl { get; }
... |
using CommonServiceLocator;
using Simplic.Group;
using Simplic.Localization;
using Simplic.UI.MVC;
using System;
using System.Windows;
using System.Windows.Input;
namespace Simplic.User.UI
{
class CreateNewGroupViewModel : ViewModelBase, ISaveableViewModel, IUserDialogViewModel
{
#region fields
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Fly : MonoBehaviour {
Rigidbody2D rb;
public float speed = 0.05f;
// Use this for initialization
void Start() {
rb = GetComponent<Rigidbody2D>();
}
// Update is called once per frame
void Fixe... |
using System.Collections.Generic;
namespace FH.Cache.Core.Dashboard.Models
{
public class QueueWithTopEnqueuedJobsDto
{
public string Name { get; set; }
public long Length { get; set; }
public long? Fetched { get; set; }
public List<EnqueuedJobDto> FirstJobs { get; set; }
}... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using System.Windows.Threading;
using System.IO.IsolatedStorage;
namespace Unicord.WP7... |
using Stylet;
using StyletBasicNavigation.Interfaces;
using System.Collections.ObjectModel;
namespace StyletBasicNavigation.ViewModels
{
public class ShellViewModel : Conductor<IScreen>.StackNavigation
{
private IWindowManager windowManager;
private IDialogFactory dialogFactory;
publi... |
using System;
using System.Collections.Generic;
using VRage.Library.Collections;
namespace VRage.Network
{
public class MyPacketQueue
{
class Item
{
public BitStream Stream;
public float Priority;
public EndpointId Recipient;
public int Order;
... |
// 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 FluentAssertions;
using Microsoft.DotNet.Tools.Test.Utilities;
using Xunit;
namespace Microsoft.DotNet.Cli.MSBuild.Tests
{
public clas... |
using BDFramework.Mgr;
namespace Code
{
public class MapEventAttribute:ManagerAtrribute
{
public string Des { get; private set; }
public MapEventAttribute(string Id,string des="") : base(Id)
{
Des = des;
}
}
} |
using System;
using System.Linq;
using System.Text;
namespace Honeywell4000Series
{
class Program
{
private static readonly int[] SupportedDevices = new [] { 0x207, 0x1C7 };
private static Scanner _scanner;
static void Main()
{
_scanner = Scanner.Enume... |
using System.Collections.Generic;
using Xunit;
namespace CodingChallenges.Tests
{
public class ReverseOrRotateTest
{
[Fact]
public void TestReverseOrRotate()
{
var actual = ReverseOrRotate.Compute("1234", 0);
Assert.Equal("", actual);
actual = Revers... |
using WhatsAppApi.Account;
namespace WhatsAppPort
{
public class User
{
public string PhoneNumber
{
get; private set;
}
public string UserName
{
get; private set;
}
public WhatsUser WhatsUser
{
get; private s... |
using System;
public enum SkillCostType
{
None,
Hp,
Mp,
Energy
}
|
namespace Xena.Contracts.ApiRoutes.Chart
{
public class PartnerChartRoutes
{
/// <summary>"Fiscal/{fiscalId}/Chart/Partner/{id}"</summary>
public const string Base = "Fiscal/{fiscalId}/Chart/Partner/{id}";
/// <summary>"Statistics"</summary>
public const string GetStatistics = ... |
using System;
namespace OctoAwesome
{
public enum Wall
{
/// <summary>
/// Top
/// </summary>
Top,
/// <summary>
/// Bottom
/// </summary>
Bottom,
/// <summary>
/// West
/// </summary>
Left,
/// <summary>
... |
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Options;
namespace Localization.SqlLocalizer.DbStringLocalizer
{
// >dotnet ef migrations add LocalizationMigration
public class DevelopmentSetup
{
private readonly LocalizationModelContext _context;
private readonly IOptions<... |
using DACN.Models.NhanDienMauViewModels;
using HtmlAgilityPack;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace DACN.Services.NhanDienMau
{
public class Mau5
{
public static bool Check(HtmlDocument doc)
{
var nodeH1 = doc.D... |
// Add namespaces to enable security in Oqtane & Dnn despite the differences
#if NETCOREAPP
using Microsoft.AspNetCore.Authorization; // .net core [AllowAnonymous] & [Authorize]
using Microsoft.AspNetCore.Mvc; // .net core [HttpGet] / [HttpPost] etc.
#else
// 2sxclint:disable:no-dnn-namespaces 2sxclint:disabl... |
using UnityEngine;
using UnityEngine.UI;
namespace GRTools.Localization
{
public class LocalizationSpriteRender : MonoBehaviour
{
[Tooltip("本地化键")] public string localizationKey;
[Tooltip("本地化默认图片加载路径")] public string defaultValue;
[SerializeField] private SpriteRenderer sprite... |
using System.Collections.Generic;
using System.Text.Json.Serialization;
using my_shoppinglist_api.Helpers.enums;
namespace my_shoppinglist_api.Models.Database
{
public class User
{
public int Id { get; set; }
public string Email { get; set; }
public string Password { get; set; }
public Role Role { ... |
using System.Threading.Tasks;
using Microsoft.Azure.ServiceBus;
using ServiceBus.LoggingPlugin.Infrastructure;
namespace ServiceBus.LoggingPlugin.Abstractions
{
/// <summary>
/// Service interface to log message actions
/// </summary>
public interface ILoggingService : IDisposableState
{
... |
namespace LegoM.Services.Traders
{
using LegoM.Data;
using LegoM.Data.Models;
using System.Linq;
public class TraderService : ITraderService
{
private readonly LegoMDbContext data;
public TraderService(LegoMDbContext data)
{
this.data = data;
}
... |
using System;
namespace Equinor.ProCoSys.IPO.ForeignApi.Exceptions
{
public class InvalidResultException : Exception
{
public InvalidResultException(string message) : base(message)
{
}
}
}
|
using System;
class AlternateInterpolatedStrings
{
string s1 = $@"C:{12}";
string s2 = @$"C:{12}";
}
|
using MyProject01.NeuroNetwork;
using MyProject01.Util.DataObject;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyProject01.Controller.Jobs
{
class TrainerContex
{
public long Epoch;
public DateTime S... |
namespace InpaintHTTP
{
public class AppConfiguration : IAppConfiguration
{
public Logging Logging { get; set; }
public Smtp Smtp { get; set; }
}
public class LogLevel
{
public string Default { get; set; }
public string System { get; set; }
public string Mic... |
using System;
using System.Collections.Generic;
using System.Linq;
namespace MyDotey.SCF.Labeled
{
/**
* @author koqizhao
*
* May 17, 2018
*/
public class TestLabeledConfigurationSource : AbstractLabeledConfigurationSource<ConfigurationSourceConfig>
{
protected IDictionary<TestD... |
using System;
namespace EcoCivicsImportExportMod.Bundler
{
public static class EcoTypes
{
public const string ConstitutionalAmendment = "Eco.Gameplay.Civics.Constitutional.ConstitutionalAmendment";
public const string Constitution = "Eco.Gameplay.Civics.Constitution";
public const stri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.