content stringlengths 23 1.05M |
|---|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Dragging : MonoBehaviour
{
public float catchingDistance = 3f;
bool isDragging = false;
GameObject draggingObject;
// Use this for initialization
void Start()
{
}
// Update is calle... |
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using static Veldrid.Sdl2.Sdl2Native;
namespace Veldrid.Sdl2
{
internal static class Sdl2EventProcessor
{
public static readonly object Lock = new object();
private static r... |
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Experimental.Rendering;
using SSM.Grid;
namespace SSM.GraphDrawing
{
public static class ScheduleTextureHelper
{
private static Dictionary<Tuple<int, Color, Color>, Sprite>
textureDictionary =
... |
namespace FitForLife.Tests.Controllers
{
using FitForLife.Controllers;
using FitForLife.Web.ViewModels.Events;
using FluentAssertions;
using MyTested.AspNetCore.Mvc;
using Xunit;
using static Data.Events;
public class EventsControllerTest
{
[Fact]
public void IndexSho... |
using FullStackJobs.GraphQL.Core.Domain.Entities;
using FullStackJobs.GraphQL.Core.Domain.Values;
using GraphQL.Types;
namespace FullStackJobs.GraphQL.Infrastructure.GraphQL.Types.Input
{
public class UpdateJobInputType : InputObjectGraphType<Job>
{
public UpdateJobInputType()
{
N... |
using System;
using System.Linq;
namespace ClumsyVM.Architecture
{
public static class MicroCodeDisassembler
{
public static void Disassemble(string[] codeLines)
{
var instructions = codeLines
.Select(line => new MicroCodeInstruction(line))
.ToArray()... |
// 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.
#nullable disable
using System.Collections.Immutable;
using System.Threading;
using System.Threading.Tasks;
using ... |
using System;
using System.Collections.Generic;
using System.Linq;
using AutoBuilder.Items;
using AutoBuilder.Model;
using log4net.Repository.Hierarchy;
using Terraria.ModLoader;
using Terraria.ModLoader.IO;
namespace AutoBuilder
{
public class AutoBuilderWorld : ModWorld
{
public override void Initial... |
namespace RetroGamesGo.Core.ViewModels
{
using MvvmCross.Navigation;
using MvvmCross.ViewModels;
/// <summary>
/// Root empty ViewModel for setup up the startup.
/// </summary>
public class RootViewModel : MvxViewModel
{
private bool viewAppeared;
private readonly IMvxNavi... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Single_Socket_Handler : MonoBehaviour
{
public Sprite availableSprite, unavailableSprite, neutralSprite;
public SpriteRenderer spriteRenderer;
public bool available = false;
void Start()
{
spriteRend... |
//Apache2, 2017, WinterDev
//Apache2, 2009, griffm, FO.NET
namespace Fonet.Fo.Expr
{
internal class FromTableColumnFunction : FunctionBase
{
public override int NumArgs
{
get
{
return 1;
}
}
public override Property Eval(Prope... |
using System;
using System.Diagnostics.CodeAnalysis;
using NUnit.Framework;
using BddStyle.NUnit;
using FluentAssertions;
namespace LogCast.Test.given_LogManager
{
[SuppressMessage("ReSharper", "ExplicitCallerInfoArgument")]
public class when_getting_logger : ContextBase
{
[TestCase("name1")]
... |
// Licensed under the MIT License.
// See LICENSE file in the project root for full license information.
using Microsoft.Extensions.Logging;
namespace Najlot.Log.Extensions.Logging
{
[ProviderAlias("Najlot.Log")]
public sealed class NajlotLogProvider : ILoggerProvider
{
private LogAdministrator _logAdministrato... |
using GISCore;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GISWinApp
{
public class LogHelper
{
static LogHelper()
{
IsFirstTime = !File.Exists(LOG_PATH);
}
public st... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using RxAs.Rx4.ProofTests.Mock;
namespace RxAs.Rx4.ProofTests.Operators
{
public class EmptyEventFixture
{
private IObservable<int> obs;
[SetUp]
public void Setup()
{
obs =... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ArvidsonFoto.Data;
using ArvidsonFoto.Models;
using Serilog;
namespace ArvidsonFoto.Services
{
public class CategoryService : ICategoryService
{
// Databas koppling
private readonly ArvidsonF... |
using System.ComponentModel;
namespace PublishingUtility
{
[TypeConverter(typeof(LocaleDisplayNameConverter))]
public enum Locale
{
en_US,
en_GB,
ja_JP,
fr_FR,
es_ES,
de_DE,
it_IT,
nl_NL,
pt_PT,
pt_BR,
ru_RU,
ko_KR,
zh_Hans,
zh_Hant,
fi_FI,
sv_SE,
da_DK,
nb_NO,
pl_PL
}
}
|
// 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;
using System.Collections.Generic;
using System.Linq;
namespace CommandLineTools.CommandLine
{
[System.Runtime.Versioning.NonV... |
using System.Collections.Generic;
using CommandLine;
using CommandLine.Text;
using ProSuite.Commons.Essentials.CodeAnnotations;
namespace ProSuite.Microservices.Server.AO
{
[UsedImplicitly(ImplicitUseTargetFlags.WithMembers)]
public class MicroserverArguments
{
[Option('h', "hostname", Required = false,
... |
namespace BitTorrentEdu.DTOs
{
public class Torrent
{
public Torrent(string announceUrl, TorrentInfoSingle info)
{
AnnounceUrl = announceUrl;
Info = info;
Left = info.Length;
}
public TorrentInfoSingle Info { get; set; }
public string... |
// 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.
namespace Argon;
/// <summary>
/// Provides a base class for converting a <see cref="DateTime"/> to and from JSON.
/// </summary>
public abstract class DateTime... |
using System.Collections.Generic;
using Microsoft.CodeAnalysis;
namespace BitTools.Core.Contracts.HtmlClientProxyGenerator
{
public interface IDefaultHtmlClientProxyGenerator
{
void GenerateCodes(Workspace workspace, Solution solution, IList<Project> projects);
}
} |
using System.Collections.Generic;
using System.IO;
using PontoDigitalMVC.Models;
namespace PontoDigitalMVC.Repositories
{
public class AdministradorRepositorio
{
private List<AdministradorModel> administradores = new List<AdministradorModel>();
private const string PATH = "DataBases/Administra... |
namespace WhateverDevs.TwoDAudio.Runtime
{
/// <summary>
/// Interface that defines the class that other classes will call to play specific 2D audios.
/// </summary>
public interface IAudioManager
{
/// <summary>
/// Check if an audio is available to play.
/// </summary>
... |
using System.Xml.Serialization;
namespace DataAccess.Enums
{
public enum ColumnType
{
[XmlEnum(Name = "text")]
Text = 0,
[XmlEnum(Name = "integer")]
Integer = 1,
[XmlEnum(Name = "real")]
Real = 2,
[XmlEnum(Name = "none")]
None = 3,
[XmlEn... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace rest_api.Models
{
public class Teacher
{
public int Id { get; set; }
public String Name { get; set; }
public String Email { get; set; }
public Teacher(int id, String name, String ema... |
using LCGoLOverlayProcess.Game;
using LCGoLOverlayProcess.Helpers;
using SharpDX.Direct3D9;
using System.Collections.Concurrent;
namespace LCGoLOverlayProcess.Overlay
{
internal class LCGoLOverlay : IOverlay
{
private readonly ConcurrentDictionary<GameState, IOverlay> _overlayLookup;
public L... |
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
namespace Localizations.PhraseApp.Infrastructure
{
internal static class OptionExtensions
{
public static IServiceCollection AddOption<T, V>(this IServiceCollection services)
where T : class, new()
... |
using ArchaicQuestII.GameLogic.Core;
using ArchaicQuestII.GameLogic.Skill.Model;
namespace ArchaicQuestII.GameLogic.Skill.Type
{
/// <summary>
/// Handles effects on player attributes which is defined in Attributes.cs
/// Effects can be negative or positive, and can stack.
/// </summary>
public cl... |
namespace Hatchet.Graphics
{
public interface ITextured
{
IHatchetTexture2D Texture { get; set; }
}
}
|
namespace Resources.Endurance.Enums
{
public enum VetGateStatus
{
NotEntered = 0,
Passed = 1,
Failed = 2,
}
}
|
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace MedicalExaminer.Models.Enums
{
[JsonConverter(typeof(StringEnumConverter))]
public enum QapDiscussionOutcome
{
MccdCauseOfDeathProvidedByQAP,
MccdCauseOfDeathProvidedByME,
MccdCauseOfDeathAgreedByQAPandME,
... |
using System.Collections;
using System.Collections.Generic;
using UnityEditor.PackageManager;
using UnityEngine;
using UnityEngine.UIElements;
public class Waypoint : MonoBehaviour
{
// ok to use as this is data class
public bool isExplored = false; // explored in BFS ?
public bool isPlacable = true; /... |
using System;
using WildFarm.Contracts.Foods;
using WildFarm.Models.Foods;
namespace WildFarm.Factories
{
public static class FoodFactory
{
public static IFood Create(string[] tokens)
{
var food = tokens[0];
var quantity = int.Parse(tokens[1]);
switch (food... |
using System;
namespace Services
{
public class Primary
{
/// <summary>
/// Check if an 32-bit integer is a prime number.
/// </summary>
/// <param name="candidate">Number to check.</param>
/// <returns>TRUE if Prime Number, else FALSE</returns>
public bool IsPr... |
namespace JsonPatchGenerator.Core.Tests.Tests.JsonPatchGeneratorServiceTests
{
public interface IReplaceTests
{
void ArrayElementPropertyReplaceOperationHasCorrectPath();
void ArrayElementPropertyReplaceOperationHasCorrectValue();
void ArrayElementReplaceOperationHasCorrectPath();
... |
using System;
namespace StackCalculator
{
/// <summary>
/// Last-in-first-out container of integer values based on array.
/// </summary>
public class ArrayStack : IStack
{
private const int size = 100;
private int[] stack = new int[size];
private int topIndex = 0;
... |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
/// <summary>
/// 建筑物属性
/// </summary>
/// <author>zhulin</author>
///
public class BuildAttribute : NDAttribute {
/// <summary>
/// 死亡Mana
/// </summary>
protected int m_DeadMana;
public int DeadMana
{
get { return m_DeadMana; }
... |
using Examine;
namespace Umbraco.Cms.Infrastructure.Examine
{
public interface IIndexPopulator
{
/// <summary>
/// If this index is registered with this populator
/// </summary>
/// <param name="index"></param>
/// <returns></returns>
bool IsRegistered(IIndex in... |
using System;
using System.Globalization;
using System.Windows.Data;
namespace MagicMesh
{
class PercentageConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value != null)
{
r... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;
using System.Xml.Serialization;
namespace BuildingSmart.Serialization.Xml
{
public class headerData
{
[DataMember(Order = 0)]
[XmlElement(ElementName ="name")]... |
using System;
using System.Net.Sockets;
using MineLib.Network.Classic.Packets;
using MineLib.Network.IO;
namespace MineLib.Network
{
// -- Classic logic is stored here
public sealed partial class NetworkHandler
{
private void ConnectedClassic(IAsyncResult asyncResult)
{
_baseSo... |
using System;
using System.IO;
using System.Xml;
using System.Xml.Schema;
using Common.DebugUtils;
namespace Common.Message
{
public class XmlValidation
{
static XmlValidation instance;
XmlReaderSettings settings;
private XmlValidation()
{
settings =... |
using System;
namespace DAQ.Pattern.Test
{
public class SupersonicTestPattern : PatternBuilder32
{
private int valveChan = PatternBuilder32.ChannelFromNIPort(0,6);
private int flashChan = PatternBuilder32.ChannelFromNIPort(0,5);
private int qChan = PatternBuilder32.ChannelFromNIPort(0,2);
private int pum... |
using UnityEngine;
[RequireComponent(typeof(ParticleSystem))]
public class ParticleCleanup : MonoBehaviour
{
private void Start()
{
Destroy(gameObject, GetComponent<ParticleSystem>().main.duration);
}
}
|
using System;
using System.Runtime.InteropServices;
namespace DIA
{
/// <summary>
/// Helper interface that can be instantiated using coclass.
/// </summary>
[ComImport, CoClass(typeof(DiaStackWalkerClass)), Guid("5485216B-A54C-469F-9670-52B24D5229BB")]
public interface DiaStackWalker : IDiaStackWa... |
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using AuthorizationWorkshop.Repositories;
na... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ChanceNET
{
public struct USState
{
public readonly string Abbreviation;
public readonly string StateName;
public readonly string ZipCodes;
public readonly string Capitol;
public r... |
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace LimeManage.Mode... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Revit.EntityMapper;
namespace Sample
{
public static class MapperInstance
{
private readonly static IMapper<Task> mapper = Mapper.CreateAdHoc<Task>();
public static IMapp... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class KnowledgeCompare : KnowledgeDecorator
{
string key;
object value;
/// <summary>
/// Compares a custom knowledge value and a defined value.
/// Succeeds if values are identical, otherwise fail... |
using System;
using System.Runtime.InteropServices;
using TitaniumAS.Opc.Client.Common;
namespace TitaniumAS.Opc.Client.Interop.Da
{
[ComConversionLoss]
[StructLayout(LayoutKind.Sequential, Pack = 4)]
internal struct OPCITEMPROPERTIES
{
public HRESULT hrErrorID;
public int dwNumPropert... |
using Leopotam.Ecs;
namespace Ingame.Hud
{
public sealed class PlayerHudInitSystem : IEcsInitSystem
{
private readonly EcsFilter<HudModel> _hudFilter;
public void Init()
{
foreach (var i in _hudFilter)
{
ref var hudEntity = ref _hudFilter.GetEnt... |
using System.ComponentModel.DataAnnotations;
using PaySharp.Core;
namespace PaySharp.Unionpay.Domain
{
public class AppPayModel : BasePayModel
{
/// <summary>
/// 订单描述
/// </summary>
[ReName(Name = "orderDesc")]
[StringLength(32, ErrorMessage = "订单描述最大长度为32位")]
... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
names... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LeetCode.Challenge.Y21
{
/// <summary>
/// https://leetcode.com/explore/challenge/card/may-leetcoding-challenge-2021/600/week-3-may-15th-may-21st/3745/
///
/// </summary>
internal class May16
{
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
public class AudioManager : MonoBehaviour {
public Audio[] sounds;
public static AudioManager instance;
private void Awake()
{
#region singleton
DontDestroyOnLoad(gameObject);
if(i... |
namespace VirtoCommerce.SearchModule.Web.Model
{
public class FilterProperty
{
public string Name { get; set; }
public bool IsSelected { get; set; }
}
}
|
using System;
using System.Collections.Generic;
using Verse;
using RimWorld;
namespace TorannMagic
{
public class ItemCollectionGenerator_AncientTempleContents : ItemCollectionGenerator
{
private const float ArtifactsChance = 0.9f;
private const float LuciferiumChance = 0.9f;
private... |
using System;
using System.ComponentModel.DataAnnotations;
namespace Backend.Dtos
{
public class AddToCartRequest
{
[Required]
public int? ProductId { get; set; }
[Required]
[Range(1, Int32.MaxValue, ErrorMessage = "{0} must be greater than {1}.")]
public int? Quantity ... |
namespace Microsoft.AspNetCore.Razor.Hosting
{
using System;
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true, Inherited = false)]
public sealed class RazorCompiledItemAttribute : Attribute
{
public RazorCompiledItemAttribute(Type type, string kind, string identifier)
{
... |
using System.Collections.Generic;
using RemoteConnectionCore.EyeTracking.Domain;
using RemoteConnectionCore.EyeTracking.Presentation.Model;
using UniRx;
using UnityEngine;
using Zenject;
namespace RemoteConnectionCore.EyeTracking.Presentation.Presenter
{
public class EyeDataReceivePresenter : MonoBehaviour
{
... |
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Threading.Tasks;
namespace MultiTenantWebApp.Models {
public class AppDbContext : DbContext {
// todo: 初期化用SQL
// プログラムで書けるといいけど
/*
drop table if exists dbo.Blog;
cr... |
using MediatR;
using SmartHub.Application.Common.Models;
namespace SmartHub.Application.UseCases.InitCheck.CheckUsers
{
public class CheckUsersQuery: IRequest<Response<bool>>
{
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using Discord;
using Discord.WebSocket;
using LadyOfSpooky.Helpers;
using static LadyOfSpooky.Models.Enums;
namespace LadyOfSpooky.Models
{
public class Player ... |
namespace TinyBee
{
using System.IO;
public static class TFile : object
{
//儲存檔案
public static void Save(string path, byte[] data, int xor = 0)
{
string zPath = Path.GetDirectoryName(path);
//檢查目錄是否存在
if (!Directory.Exists(zPath))
Directory.CreateDirectory(zPath);
//檢查舊檔案
if (File.Exists... |
using System.Collections.Generic;
using System.Threading.Tasks;
using AutoMapper;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using ProjectUntitled.Models;
using ProjectUntitled.Models.ViewModels;
namespace ProjectUntitled.Controllers
{
[Authorize... |
using System.Diagnostics.CodeAnalysis;
using System.Threading;
using System.Threading.Tasks;
using AutoMapper;
using FluentValidation;
using MediatR;
using U.ProductService.Application.Common.Exceptions;
using U.ProductService.Application.Pictures.Models;
using U.ProductService.Domain.Common;
using U.ProductService.Pe... |
namespace Booking.Web.ViewModels.Bookings
{
using System;
using System.Collections.Generic;
using System.Text;
public class BookingInListViewModel
{
public string Id { get; set; }
public string PropertyName { get; set; }
public decimal Price { get; set; }
public ... |
using System.Web.Mvc;
using System.Web.Mvc.Html;
namespace Tarantino.RulesEngine.Mvc
{
public static class HtmlExtensions
{
public static string OriginalForm(this HtmlHelper helper)
{
return OriginalForm(helper, helper.ViewData.Model);
}
public static string OriginalForm(this HtmlHelper helper, object or... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Remoting.Messaging;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using GOEddie.Dacpac.References;
using Microsoft.SqlServer.Dac;
using Microsoft.SqlServer.Dac... |
using System;
using System.Net.Http;
using System.Threading.Tasks;
namespace Playground.NET5
{
public class DownloadSomething
{
public async Task DownloadFile(string fileName, string fileUrl)
{
using var http = new HttpClient();
var file = await http.GetByteArrayAsync(fileUrl);
await System.IO.File.Wr... |
// 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.
using System;
using System.Linq;
using System.Numerics;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
us... |
namespace OffByOne.Ql.Checker.Analyzers.CircularDependencies
{
using System;
using MoreDotNet.Extensions.Common;
public class Dependency
{
public Dependency(string startPointId, string endPointId)
{
if (startPointId == null)
{
throw new Argument... |
using System;
namespace WebApplication.EFCore
{
public class WeatherForecast
{
public DateTime TimeStamp { get; set; }
public decimal TemperatureC { get; set; }
public decimal TemperatureF => 32 + (TemperatureC / 0.5556m);
public string Summary { get; set; }
}
} |
using System;
namespace Linquest.AspNetCore {
public class NonLinquestActionAttribute: Attribute {
}
}
|
using System.Net.Http;
using System.Text;
namespace Coder.WebPusherService.Senders.HttpSender.HttpNotify
{
internal class HttpRawBodyContent : HttpSendContent
{
public string Content { get; set; }
public override HttpContent MakeContent(string contentType)
{
return new St... |
using System;
using System.Collections.Generic;
using System.Text;
using Generator.Parsing;
namespace Generator.CodeTranslation
{
/// <summary>
/// A class for translating source code from one language/format to another.
/// </summary>
public static class CodeTranslator
{
/// <... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteInEditMode]
// Flat shadow that orient around Y according to the camera rotation.
public class BillboardShadows : MonoBehaviour {
void Update()
{
var camera = Camera.main;
if (camera == null) retur... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using HuaweiCloud.SDK.Core;
namespace HuaweiCloud.SDK.ProjectMan.V4.Model
{
/// <summary>
/// Response Object
/// </summary>
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
namespace Xamarin.Forms.Core.UnitTests
{
[TestFixture]
public class DragGestureRecognizerTests : BaseTestFixture
{
[SetUp]
public override void Setup()
{
base.Setup();... |
using UnityEngine;
namespace blaseball.vo {
[System.Serializable]
public class BBPlayer {
public string id;
public string name;
public float anticapitalism, baseThirst, buoyancy, chasiness,
coldness, continuation, divinity, groundFriction, indulgence, laserlikeness,
martyrdom, moxie, musclitude, omniscien... |
using System;
using System.Collections.Generic;
using System.Text;
namespace strategy
{
public interface QuackBehavior
{
public void Quack();
}
public class QuackSound : QuackBehavior
{
public void Quack()
{
Console.WriteLine("Quack");
}... |
namespace RealArtists.ShipHub.Api.Diagnostics {
using System.Collections.Generic;
using System.Web.Http.ExceptionHandling;
using Filters;
using Microsoft.ApplicationInsights;
public class ApplicationInsightsExceptionLogger : ExceptionLogger {
private TelemetryClient _client = new TelemetryClient();
... |
using System.Threading.Tasks;
using CommunityCatalog.Core.Domain;
namespace CommunityCatalog.Core.Gateways.Transactions
{
public interface IProductUpdateTransaction
{
ValueTask UpdateProduct(ProductDocument product, ProductContribution productContribution,
int baseProductVersion);
}
}
|
/*
Copyright (C) 2008 Siarhei Novik (snovik@gmail.com)
This file is part of QLNet Project https://github.com/amaggiulli/qlnet
QLNet is free software: you can redistribute it and/or modify it
under the terms of the QLNet license. You should have received a
copy of the license along with this program; if not, li... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
namespace Microsoft.Psi.Visualization.VisualizationObjects
{
using System;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Linq;
using System.Runtime.Serialization;
u... |
// 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.Runtime.InteropServices;
using Xunit;
namespace Windows.UI.Xaml.Test... |
using Termine.Promises.Generics;
namespace TestConsumePromise.Collections
{
public class NewCollectionRequest: GenericRequest
{
public string CollectionName { get; set; }
public int Visibility { get; set; }
}
} |
using Microsoft.Extensions.DependencyInjection;
using Moq;
using System;
using Xunit;
namespace RT.Comb.AspNetCore.Tests {
public sealed class PostgresSqlCombProviderServiceCollectionExtensionsTests {
[Fact]
public void AddPostgreSqlCombGuidWithSqlDateTime_ShouldAddPostgreSqlProviderWithDefaultStrategies() {
... |
using System;
using System.Collections.Generic;
using System.Text;
namespace XF_Monettelli.CodeFontIcons
{
static class MonettelliFontIcons
{
public const string icon_brand_monettelliuikit = "\ue800";
public const string icon_fly_menu = "\ue801";
public const string icon_fly_rocket_outline = "\ue802";
publi... |
using FluentAssertions;
using PartialResponseRequest.Filters.Serializers;
using PartialResponseRequest.Filters.TokenReaders.Tokens;
using System.Collections.Generic;
using Xunit;
namespace PartialResponseRequest.Tests
{
public class FilterSerializerTests
{
[Fact]
public void SerializesFilterTo... |
using System;
namespace OOPEx
{
public class Truck : Vehicle
{
public Truck(double fuelQ, double fuelCons) : base(fuelQ, fuelCons)
{
}
public override double FuelConsumption
{
get => base.FuelConsumption;
protected set => base.FuelC... |
using System;
using System.Activities.Expressions;
using System.Activities.Presentation.Expressions;
using System.Activities.Presentation.Internal.PropertyEditing;
using System.Activities.Presentation.Model;
using System.Activities.Presentation.View;
using System.Activities.XamlIntegration;
using System.Collections.Ge... |
using System;
using System.Reflection;
namespace SampSharp.Core.Natives.NativeObjects
{
/// <summary>
/// Provides information about a native which can be consumed by a proxy factory IL generator.
/// </summary>
public class NativeIlGenContext
{
private MethodInfo _baseMethod;
///... |
namespace DotNetBungieAPI.Generated.Models.Destiny.Definitions;
public class DestinyItemTooltipNotification
{
[JsonPropertyName("displayString")]
public string? DisplayString { get; set; }
[JsonPropertyName("displayStyle")]
public string? DisplayStyle { get; set; }
}
|
using System;
using System.Collections.Generic;
using Comformation.IntrinsicFunctions;
namespace Comformation.AppSync.GraphQLSchema
{
/// <summary>
/// AWS::AppSync::GraphQLSchema
/// https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlschema.html
/// </summary>
... |
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;
namespace akset.data
{
public class User: IdentityUser
{
public string Ad ... |
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SharpMusicLibraryUpdater.App.Services;
using SharpMusicLibraryUpdater.App.Models;
using iTunesSearch.Library;
using System.Linq;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using SharpMusic... |
using System.Collections.Generic;
using Newtonsoft.Json;
namespace PluginWebRequestOkta.DataContracts
{
public class ObjectResponseWrapper
{
[JsonProperty("results")]
public List<ObjectResponse> Results { get; set; }
[JsonProperty("paging")]
public PagingResponse Paging... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.