content stringlengths 23 1.05M |
|---|
namespace usingblazor.tips.Localization.Api;
public interface Localizer<T>
{
string this[string name] { get; }
string this[string name, params object[] arguments] { get; }
}
|
using System;
using System.Drawing;
namespace Screna
{
/// <summary>
/// Captures the Region specified by a Rectangle.
/// </summary>
public class RegionProvider : IImageProvider
{
Rectangle _region;
readonly ImagePool _imagePool;
readonly bool _includeCursor;
reado... |
using System.Threading.Tasks;
using Microsoft.ServiceBus.Messaging;
namespace DCT.ILR.ValidationServiceStateless.ServiceBus
{
public interface ITopicHelper
{
Task SendMessage(BrokeredMessage message);
}
} |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
using System.Collections;
namespace Rabbit_explosion_game
{
public class Program
{
static List<Rabbit> RabbitList;
static void Main(s... |
using CmlLib.Core.Downloader;
using CmlLib.Core.Version;
using CmlLib.Utils;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
namespace CmlLib.Core.Files
{
public sealed class A... |
using System;
using System.Threading.Tasks;
using ConstellationMind.Infrastructure.Services.Commands.Constellations;
using ConstellationMind.Infrastructure.Services.Services.Domains.Interfaces;
using ConstellationMind.Shared.Handlers.Interfaces;
namespace ConstellationMind.Infrastructure.Services.Handlers.Constellatio... |
using UnityEngine;
public class Obstacle : MonoBehaviour
{
public Vector3 startPos;
public Vector3 endPos;
public float cycleTime;
private float _currentTime;
private void Update()
{
Move();
}
private void Move()
{
_currentTime += Time.deltaTime / cycleTime;
transform.po... |
using AutoMapper;
using Cafe.Core;
using Cafe.Core.TabContext.Commands;
using Cafe.Domain;
using Cafe.Domain.Entities;
using Cafe.Domain.Events;
using Cafe.Domain.Repositories;
using FluentValidation;
using MediatR;
using Optional;
using Optional.Async;
using System.Collections.Generic;
using System.Linq;
using System... |
using System.Reflection;
using System.Windows;
namespace goh_ui.Views
{
public partial class AboutWindow : ToolWindow
{
public AboutWindow()
{
DataContext = this;
Version = Assembly.GetExecutingAssembly().GetName().Version.ToString(2);
InitializeComponent(... |
using Milvaneth.Overlay;
using Milvaneth.Service;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Windows.Media.Imaging;
namespace Milvaneth.ViewModel
{
public class OverviewPresenterViewModel : INotifyPropertyChanged
{
pu... |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Azure.WebJo... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using VirtualWork.Interfaces;
using VirtualWork.Interfaces.Attributes;
namespace VirtualWork.Persistence.Entities
{
public class Issue : Repeatable, IHaveIdentifier... |
#region Copyright
// Copyright 2014 Myrcon Pty. Ltd.
//
// 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 appl... |
using Admin.Core.Service.Admin.Api;
using Xunit;
namespace Admin.Core.Tests.Service.Admin
{
public class ApiServiceTest : BaseTest
{
private readonly IApiService _apiService;
public ApiServiceTest()
{
_apiService = GetService<IApiService>();
}
[Fact]
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace FirstViewerWebApp
{
/// <summary>
/// Model class required to deserialize the JSON response
/// </summary>
public class Models
{
public class AccessToken
{
public string token_type { ge... |
using Buffers;
using Base.Config;
using Newtonsoft.Json.Linq;
namespace Base.Data.Operations.Result
{
public sealed class SpaceTypeIdOperationResultData : OperationResultData
{
private SpaceTypeId value;
public override object Value => value;
public override ChainTypes.OperationResu... |
@model BalanceViewModel
@{
ViewData["Title"] = "Your balance";
}
<h2>Your current balance is: <strong>@Model.Balance.ToString("c")</strong></h2>
<form asp-action="Withdraw">
<div class="form-group">
<label >Amount to withdraw: </label>
<input type="number" min="1" step="1" class="form-control... |
using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
namespace Models
{
public class Purchase
{
public int Id { get; set; }
public int Count { get; set; }
[InverseProperty("Purchases")]
public Product? FirstProduct { get; set; }
public i... |
namespace Elders.Cronus.DomainModeling
{
public interface IProjection
{
}
} |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Ref<T>
{
private T[] m_ref;
public Ref(T _value)
{
m_ref = new T[] {_value};
}
// copy the value, so no modification on this value
public T asValue
{
get{return m_ref[0];}
... |
// <auto-generated>
// DO NOT EDIT: generated by fsdgencsharp
// </auto-generated>
#nullable enable
using System;
using Facility.Core;
namespace EdgeCases
{
[System.CodeDom.Compiler.GeneratedCode("fsdgencsharp", "")]
internal static class EdgeCasesMethods
{
[Obsolete]
public static readonly IServiceMethodInfo O... |
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TransportSystem.Data.DbModels;
using TransportSystem.Data.Entities;
namespace TransportSystem.Data.Dbc... |
using ProjectEye.Core.Enums;
using ProjectEye.Core.Models.Options;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Media;
using System.Windows;
using System.Windows.Resources;
namespace ProjectEye.Core.Service
{
/// <summary>
/// 音效Service
/// 处理休息结束提示音的加载和播放
... |
using UnityEngine;
using System.Collections;
public class PlayerControl : MonoBehaviour
{
[HideInInspector]
public bool jump = false;
public int maxJump;
private Animator mecanim;
private Uni2DAnimationPlayer ap;
private CharacterController2D controller;
public Vector2 initialVelocity =... |
namespace TeamBuilder.App.Commands
{
using Microsoft.EntityFrameworkCore;
using System;
using System.Linq;
using TeamBuilder.App.Commands.Abstractions;
using TeamBuilder.App.Interfaces;
using TeamBuilder.Data;
using TeamBuilder.Models;
public class AcceptInviteCommand : Command
{
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using Serilog;
using System;
using System.Collections.Generic;
using System.IO;
namespace AttackSurfaceAnalyzer.Utils
{
public class DirectoryWalker
{
public static IEnumerable<FileSystemInfo> WalkDirectory... |
// MailCellTemplate.cs
// (c) Copyright Christian Ruiz @_christian_ruiz
// MvvmCross - Controls Navigation Plugin is licensed using Microsoft Public License (Ms-PL)
//
using System;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using Cirrious.MvvmCross.Binding.BindingContext;
using Cirrious.MvvmCross.Binding.Tou... |
using System;
using UnityEngine;
public class CreatureClass : MonoBehaviour {
public enum CreatureClassType {
Hellhound,
Imp
}
public enum CreatureSubClassType {
Melee
}
[SerializeField] private CreatureClassType _classType;
public CreatureClassType ClassType {
... |
namespace OliWorkshop.Deriv.ApiResponse
{
using System;
using System.Collections.Generic;
using System.Globalization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
/// <summary>
/// Server status alongside general settings like call limits, currencies information,
/// suppo... |
namespace Majiro.Script.Analysis.Source.Nodes.Expressions {
public class BinaryExpression : Expression {
public Expression Left;
public Expression Right;
public BinaryOperation Operation;
public BinaryExpression(Expression left, Expression right, BinaryOperation operation, MjoType type) {
Left = left;
... |
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Bit.Client.Web.BlazorUI.Tests.Persona
{
[TestClass]
public class BitPersonaTests : BunitTestContext
{
[DataTestMethod,
DataRow(Visual.Fluent, true),
DataRow(Visual.Fluent, false),
DataRow(Visual.... |
/* _BEGIN_TEMPLATE_
{
"id": "LOOT_101",
"name": [
"爆炸符文",
"Explosive Runes"
],
"text": [
"<b>奥秘:</b>在你的对手使用一张随从牌后,对该随从造成$6点伤害,超过其生命值的伤害将由对方英雄\n承受。",
"<b>Secret:</b> After your opponent plays a minion, deal $6 damage to it and any excess to their hero."
],
"cardClass": "MAGE",
"type": "S... |
using System.Web;
using System.Web.Mvc;
using Cake.Web.Core;
using Cake.Web.Docs;
namespace Cake.Web.Helpers.Api
{
public static class FieldHelper
{
public static IHtmlString FieldName(this ApiServices context, DocumentedField field)
{
if (field != null)
{
... |
using Microsoft.AspNetCore.Mvc;
using RRBL;
using RRModels;
using RRREST.DTO;
using System.Threading.Tasks;
// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
namespace RRREST.Controllers
{
[Route("restaurants/{restaurantId}/reviews")]
[ApiCon... |
using Abp.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
namespace Lpb.Service1.EntityFrameworkCore
{
public class Service1DbContext : AbpDbContext
{
//Add DbSet properties for your entities...
public Service1DbContext(DbContextOptions<Service1DbContext> options)
: bas... |
//----------------------------------------------
// NGUI: Next-Gen UI kit
// Copyright © 2011-2013 Tasharen Entertainment
//----------------------------------------------
using UnityEditor;
using UnityEngine;
#pragma warning disable
/// <summary>
/// Editor component used to display a list of sprites.
/// ... |
using System.Collections.Generic;
using AutoMapper;
using AdventureWorks.Application.DataEngine.Purchasing.Vendor.Queries.GetVendors;
using AdventureWorks.Application.Interfaces.Mapping;
using AdventureWorks.BaseDomain.Entities.Purchasing;
using AdventureWorks.Common.Extensions;
using MediatR;
using Entities = Adventur... |
/////////////////////////////////////////////////////////////////////////////////
// Paint.NET //
// Copyright (C) dotPDN LLC, Rick Brewster, Tom Jackson, and contributors. //
// Portions Copyright (C) Microsoft Corporation. All Rights Reserved. ... |
using System;
using OpenCvSharp.Internal;
// ReSharper disable once CheckNamespace
namespace OpenCvSharp.XImgProc
{
/// <summary>
/// Interface for realizations of Domain Transform filter.
/// </summary>
// ReSharper disable once InconsistentNaming
public class DTFilter : Algorithm
{
p... |
using System;
using FubuCore;
using FubuMVC.Core.Registration.Conventions;
using FubuMVC.Core.Registration.DSL;
using FubuMVC.Core.Registration.Nodes;
using FubuMVC.Core.Runtime;
namespace FubuMVC.Core
{
public class OutputDeterminationExpression
{
private readonly FubuRegistry _registry;
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.
using ExampleGallery.Direct3DInterop.SpriteBatchPerformance;
using Microsoft.Graphics.Canvas;
using Microsoft.Graphics.Canvas.Text;
using Microsoft.Graphics.Ca... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ResourceManager : MonoBehaviour {
public static ResourceManager instance;
void Awake() {
if (instance == null) {
DontDestroyOnLoad (gameObject);
instance = this;
} else if (instance != this... |
using log4net.Config;
using Owin;
namespace OwinSelfHostLogging.Logging
{
public static class AppBuilderLoggerExtensions
{
public static void CreateLog4NetLogger(this IAppBuilder app)
{
// This code will load log4net configure from App.config
XmlConfigurator.Configure()... |
using System;
namespace FluidDbClient.Sandbox.Models
{
public class Widget
{
public Widget(int widgetId, Guid globalId, string name, string description)
{
WidgetId = widgetId;
GlobalId = globalId;
Name = name;
Description = description;
}... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.CompilerServices;
using GGGG.Interface;
namespace GGGG.Algorithms
{
//public class MonteCache
//{
// LruCache<string, MonteCacheEntry> internalCache;
// public MonteCache()
// {
... |
namespace FoxOffice.Domain
{
using Autofac;
using FluentAssertions;
using Khala.Messaging;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
[TestClass]
public class DomainModule_specs
{
[TestMethod]
public void sut_inherits_Module()
{
t... |
using UnityEngine.UI;
using System;
namespace FanLang
{
/// <summary>
/// <see cref="Toggle"/> binding that makes it easier to manage toggle value change subscriptions.
/// </summary>
public class ToggleBinding : IDisposable
{
private Toggle toggle;
private Func<bool> getData;
private Action<bool> setData;... |
using ServiceStack;
namespace Api.Interfaces.ServiceOperations.Doctors
{
[Route("/doctors", "POST")]
public class RegisterDoctorRequest : PostOperation<RegisterDoctorResponse>
{
public string ClinicId { get; set; }
public string FirstName { get; set; }
public string LastName { ge... |
using System;
using System.Runtime.CompilerServices;
namespace Base64
{
/// <summary>
///
/// </summary>
public class Base64DecoderConstant : Base64Constant, IDecoder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static byte Base64CharToByte(byte c, bool urlSafe)
... |
using System;
namespace Concept.Tuple.Lesson2 {
class Main {
// private delegate void ShowDelegate();
// private ShowDelegate ShowAction { get; set; }
private Action ShowAction { get; set; }
private Action<string> ShowMessageAction { get; set; }
public void Run() {
... |
using Piranha.AttributeBuilder;
using Piranha.Extend.Fields;
using Piranha.Models;
namespace NorthwindCms.Models.Regions
{
public class ProductRegion
{
[Field(Title = "Product ID")]
public NumberField ProductID { get; set; }
[Field(Title = "Product name")]
public TextField ProductName { get; set; ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using YourSpace.Areas.Identity;
using YourSpace.Modules.Moderation.Models;
namespace YourSpace.Services
{
public interface ISUsers
{
public Task<List<MIdentityUser>> GetUsers(... |
@model OOM.Model.Expression
@{
ViewBag.Title = "Expression details";
}
<ul class="breadcrumb">
<li>@Html.ActionLink("Home", "Index", "Home")</li>
<li>@Html.ActionLink("Expressions", "List")</li>
<li class="active">Details</li>
</ul>
<h2>Expression details</h2>
<div>
<dl class="dl-horizontal">
... |
namespace SecurityConsultantCore.Thievery
{
public class PreferenceMostHidden : Preference
{
public PreferenceMostHidden()
: base((x, y) => -x.Publicity.CompareTo(y.Publicity))
{
}
}
}
|
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;
using System.Xml;
using Sogeti.Provisioning.Business;
using Sogeti.Provisioning.Business.Interface;
using Sogeti.Provisioning.Domain;
us... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using firstwebapp.Models;
using firstwebapp.Data;
using Microsoft.Asp... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class AllowedKey : MonoBehaviour
{
public KeyCode keyCode;
public Image sprite;
public Vector2 defaultPosition;
private void Awake()
{
sprite = GetComponentInChildren<Image>();
... |
using Castle.ActiveRecord;
using Castle.ActiveRecord.Framework;
using System.ComponentModel.DataAnnotations;
using System;
namespace Mictlanix.BE.Model
{
[ActiveRecord("payment_on_delivery")]
public class PaymentOnDelivery : ActiveRecordLinqBase<PaymentOnDelivery>
{
[PrimaryKey(PrimaryKeyType.Identity, "payment_... |
using System.Threading.Tasks;
using GrainInterfaces;
namespace GrainCollection
{
class HelloGrain : Orleans.Grain, IHello
{
public Task<string> SayHello(string msg)
{
return Task.FromResult(string.Format("You said {0}, I say: Hello!", msg));
}
}
}
|
namespace MagiQL.Expressions.Model
{
public class UnaryExpression : Expression
{
public Expression Expression { get; set; }
public Operator Operator { get; set; }
public UnaryExpression()
{
Operator = Operator.None;
}
public UnaryExpression(Expression expression, Operator op)
{
Expression = e... |
// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.
using System.Windows;
using System.Windows.Controls;
namespace Microsoft.Silverlight.Testing.Client... |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Windows.Input;
using Xamarin.Forms;
using Xamvvm;
namespace FFImageLoading.Forms.Sample
{
public class ListPageModel : BasePageModel
{
public ListPageModel()
{
ItemSelectedComman... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RarLib {
public class TRarElement {
public string Name { get; set; }
public string Pathname { get; set; }
public string Fullname {
get {
return ((Pathname ?? "") == "" ? "" : Pathname + "\\") + ... |
using System;
using System.Collections.Generic;
using System.Text;
namespace weixin.work.Response.msgaudit
{
public class Response_getpermituserlist:Response_base
{
public List<string> ids { get; set; }
}
}
|
using SFML.Audio;
using System;
using System.IO;
class Audio
{
// Lista dos sons
public enum Sounds
{
Click = 1,
Above,
Rain,
Thunder_1,
Thunder_2,
Thunder_3,
Thunder_4,
Amount
}
// Listas das músicas
public enum Musics
{
... |
using System.Collections.Generic;
using ESFA.DC.Data.DAS.Model;
namespace ESFA.DC.ILR.ReportService.Service.Comparer
{
public sealed class DasCommitmentsComparer : IEqualityComparer<DasCommitments>
{
public bool Equals(DasCommitments x, DasCommitments y)
{
if (x == null && y != nul... |
using ASPNETCore2JwtAuthentication.DomainClasses;
namespace ASPNETCore2JwtAuthentication.Services;
public interface ITokenStoreService
{
Task AddUserTokenAsync(UserToken userToken);
Task AddUserTokenAsync(User user, string refreshTokenSerial, string accessToken, string refreshTokenSourceSerial);
Task<boo... |
using System;
using System.Threading.Tasks;
namespace Demos.SharedCode.ConfigHandling {
public interface IConfigService<T> where T : class, new() {
T Settings { get; }
T ReadSettingsFile();
void WriteSettings(T obj);
bool SettingsExist { get; }
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
namespace BFNet.Execution
{
public static class Utils
{
public static char ToAsciiCode(this short input) => (char) input;
public static short ToChar(this char input) => (short) input;
public static void SafeIncrement(ref IList<short>... |
using System.Collections.Generic;
using System.ComponentModel;
using System.Threading.Tasks;
namespace OpenTracker.Models.AutoTracking
{
/// <summary>
/// This is the interface containing autotracking data and methods
/// </summary>
public interface IAutoTracker : INotifyPropertyChanged
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace SFog.Models.Queues
{
public class AllocatedServer
{
private string serverID;
public string ServerID
{
get { return serverID; }
set { serverID = value; }
}
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Library
{
public class Sudoku4 : Library.Matrix
{
public Sudoku4()
: base(4, new RangeSet4(), new RangeSet4())
{ }
public Sudoku4(int[,] data)
... |
@using Telerik.Sitefinity.DynamicModules.Model
@using Telerik.Sitefinity.Model
@model IQueryable<DynamicContent>
<h1>
Projects
</h1>
<ul>
@foreach (var project in @Model)
{
<li>@Html.ActionLink(project.GetString("Title"), "Detail", new { urlName = project.UrlName })</li>
}
</ul> |
//<Snippet1>
using System;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
public class Group{
public string GroupName;
public GroupType Grouptype;
}
public enum GroupType{
// Use the SoapEnumAttribute to instruct the XmlSerializer
// to generate Small and Large instead of A and B.
... |
using System;
using System.Collections.Generic;
using System.Linq;
namespace KittenzRepositorySample.Data
{
public class JsonRepository : IRepository
{
private static readonly List<DadJoke> _DadJokes;
static JsonRepository()
{
LoadFromJson();
}
private static void LoadFromJson() {
if (_DadJokes ... |
using NUnit.Framework;
using UnityEngine;
using Random = System.Random;
namespace Archon.SwissArmyLib.Partitioning.Tests
{
[TestFixture]
public class QuadtreeTests
{
private static Vector2 GetPoint(Quadtree<object> tree, float x, float y)
{
var actualX = Mathf.LerpUnclamped(tre... |
using System;
namespace cn.SMSSDK.Unity
{
public class UserInfo
{
public string uid;
public string phoneNumber;
public string avatar;
public string nickName;
public string zone;
}
} |
using System;
using System.Collections.Generic;
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 System.Windows.Media.Imaging;... |
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
namespace CoralEngine
{
public enum BouncerMode : int { Additiv... |
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("PashuaNetBindings.Tests")]
namespace Pashua
{
/// <summary>
/// Internal interface used to set results on the element.
/// </summary>
internal interface IHaveResults
{
/// <summary>
/// Intentionally shadows <se... |
using System;
public class Example
{
public static void Main()
{
ConvertInt16();
Console.WriteLine("-----");
ConvertInt64();
Console.WriteLine("-----");
ConvertObject();
Console.WriteLine("-----");
ConvertSByte();
Console.WriteLine("----");
ConvertUInt16();
... |
using System.Collections.Generic;
using System.Web.Mvc;
using Abp.Localization;
namespace Localink.Platform.Web.Areas.Mpa.Models.Languages
{
public class LanguageTextsViewModel
{
public string LanguageName { get; set; }
public List<SelectListItem> Sources { get; set; }
public ... |
namespace Crucis.Protocol
{
public class MessageHandlerAttribute : BaseAttribute
{
public MessageHandlerAttribute()
{
}
}
} |
namespace FootballLeagues.Data.Models
{
public enum Target
{
News,
Player,
Team,
Game
}
}
|
using System;
namespace Cube.Properties
{
class CubeProperties
{
static void Main()
{
double sideOfCube = double.Parse(Console.ReadLine());
string parameter = Console.ReadLine();
double result = (double)CubeParameters(sideOfCube, parameter);
Cons... |
/* Copyright (c) 2016 Sysprogs OU. All Rights Reserved.
This software is licensed under the Sysprogs BSP Generator License.
https://github.com/sysprogs/BSPTools/blob/master/LICENSE
*/
using BSPEngine;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
... |
namespace BuilderDesignPatternExample
{
public interface IBeverageBuilder
{
void SetBeverageType();
}
} |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
public class Base
{
public virtual int Foo(int x)
{
return x + 1;
}
}
// Override via a shared generic.
//
// Jit must be careful to set the rig... |
using MailKit.Net.Smtp;
using Microsoft.Extensions.Configuration;
using MimeKit;
using System;
using UsuariosApi.Models;
namespace UsuariosApi.Services
{
public class EmailService
{
private IConfiguration _configuration;
public EmailService(IConfiguration configuration)
{
... |
using System;
using System.IO;
// https://www.spoj.com/problems/CODESPTB/ #bit #sorting
// Finds the number of swaps necessary when performing insertion sort.
public static class CODESPTB
{
private const int _elementLimit = 1000000;
// Insertion sort looks like this: [sorted part]k[unsorted part]. When addin... |
namespace Abc.NCrafts.Quizz.Performance2018.Questions._003
{
[NonCodeAnswer]
[CorrectAnswer(Difficulty = Difficulty.Hard)]
public class Answer3
{
public void Run()
{
// begin
// end
}
}
}
|
using System;
namespace GDShrapt.Reader
{
public sealed class GDInvalidToken : GDCharSequence
{
readonly char[] _stopChars;
readonly Predicate<char> _stop;
internal GDInvalidToken(params char[] stopChars)
{
_stopChars = stopChars;
}
internal GDInva... |
//======================================================================
//
// CopyRight 2019-2021 © MUXI Game Studio
// . All Rights Reserved
//
// FileName : PlotItemEditorWindow.cs
//
// Created by 半世癫(Roc) at 2021-01-26 13:56:22
//
//============================================... |
namespace Zilon.Core.Persons
{
public interface IPersonPerkInitializator
{
IPerk[] Generate();
}
} |
using System;
using System.Xml.Serialization;
using NewLife.Serialization;
using System.IO;
namespace NewLife.Messaging
{
/// <summary>指定长度的字节数据消息</summary>
/// <remarks>
/// 一般用于对数据进行二次包装,理论上,这是一个万能消息。
/// 数据长度由<see cref="Data"/>决定,以编码整数来存储。
/// </remarks>
public class DataMessage... |
using System;
using System.Threading.Tasks;
using AndrewLarsson.Common.Domain;
namespace AndrewLarsson.Common.AppService {
public interface IAggregateRootStore<T> where T : AggregateRoot {
Task<T> LoadAsync(Guid id);
Task SaveAsync(T t);
}
}
|
using System;
using System.IO;
namespace versioning
{
class AssemblyInfoRepo
{
private string repo;
private string[] files;
public AssemblyInfoRepo(string repo)
{
this.repo = repo;
this.files = Directory.GetFiles(repo, "AssemblyInfo.cs", SearchOption.A... |
using WeakAuraAutomationTool.Warcraft;
using WeakAuraAutomationTool.Warcraft.Classes;
using WeakAuraAutomationTool.WeakAuras;
namespace WeakAuraAutomationTool.Barbeque.Auras
{
internal static class DeathKnightBlood
{
public static void Generate(WeakAura wa)
{
var blood = new Blood(... |
using System;
using System.Collections.Generic;
namespace RestEaseClientGeneratorConsoleApp.Examples.Infura.Models
{
public class TickerFullResponse
{
public string Base { get; set; }
public string Quote { get; set; }
public object[] Tickers { get; set; }
}
}
|
namespace Cbn.Infrastructure.SQS
{
public static class SQSConstans
{
public const int MaxDelay = 900;
public const string TypeFullNameKey = "sqs-type";
public const string ReceiveCountKey = "sqs-count";
public const string ApproximateReceiveCountKey = "ApproximateReceiveCount";
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.