content stringlengths 23 1.05M |
|---|
using OpenKh.Imaging;
using OpenKh.Kh2.SystemData;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace OpenKh.Kh2.Contextes
{
public class FontContext
{
private IImageRead imageSystem;
private IImageRead imageSystem2;
private IImageRead imageEvent;
pr... |
using System.Linq;
using DeusVultClicker.Client.Shared.Store.Actions;
using Fluxor;
namespace DeusVultClicker.Client.Buildings.Store
{
public static class BuildingReducers
{
[ReducerMethod]
public static BuildingState ReduceBuyBuildingAction(BuildingState state, BuyBuildingAction action)
... |
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Amazon.Pay.API.WebStore.Types
{
/// <summary>
/// Specify whether the buyer will return to your website to review their order before completing checkout.
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum Checko... |
#region Packages
using System.Linq;
using Mfknudsen.Battle.Systems;
using Mfknudsen.Battle.Systems.Interfaces;
using Mfknudsen.Battle.Systems.Spots;
using Mfknudsen.Pokémon;
using Mfknudsen.Pokémon.Conditions;
using UnityEngine;
#endregion
namespace Mfknudsen.Weathers.Irritants
{
public class PheromonesWeather :... |
using System;
using NUnit.Framework;
namespace ZenDeskSharp.Mobile.Tests
{
[TestFixture]
public class describe_zendeskclient_ticket
{
ZenDeskConfig _config;
[SetUp]
public void setup()
{
_config = new ZenDeskConfig() {
Url = "http://cutepuppy.zendesk.com",
Email = "anuj.bhatia@xamarin.com",
... |
using System;
class EnglishNameOfLastDigit
{
static void Main()
{
long number = long.Parse(Console.ReadLine());
GetNumbersName(number);
}
public static void GetNumbersName(long number)
{
var LastDigit = Math.Abs(number % 10);
switch (LastDigit)
{
... |
using System.Collections.Generic;
using System.Linq;
namespace Invi.Extensions.Configuration.Validation
{
public class ValidationStartupFilter
{
public ValidationStartupFilter(IEnumerable<IValidation> validationList)
{
validationList.ToList().ForEach(v => v.Validate());
}
... |
namespace XpressTest;
public interface IVoidAsserter<TSut>
:
IAsserter<ISutArrangement<TSut>>,
IThenWhenItAsserter<TSut>
{
IVoidMockVerifier<TSut, TMock> ThenThe<TMock>()
where TMock : class;
IVoidMockVerifier<TSut, TMock> ThenThe<TMock>(
string name
)
where TMock : cla... |
namespace VTEX.ValueObjects
{
using System.Collections.Generic;
using Newtonsoft.Json;
/// <summary>
/// The cart tag class.
/// </summary>
public class Tag
{
/// <summary>
/// Gets or sets the display value.
/// </summary>
/// <value>
/// The displa... |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
namespace Vi2B {
public class Config {
public static string ConnectionString;
public static string DataRoot;
public static void Load() {
StreamReader reader = new StreamReader(HttpCo... |
using Android.Content;
using Android.Webkit;
using System;
namespace Cnblogs.Droid.UI.Widgets
{
public class WebViewJSInterface : Java.Lang.Object
{
Context context { get; set; }
public WebViewJSInterface(Context context)
{
this.context = context;
}
[Java.I... |
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace WellBot.Domain.Chats.Entities
{
/// <summary>
/// Contains information about a chat.
/// </summary>
public class Chat
{
/// <summary>
/// Chat id.
/// </summary>
[Key]
p... |
namespace bytePassion.Lib.Communication.MessageBus
{
/// <summary>
/// NOT IN USE ... JUST AN IDEA
/// </summary>
public interface IRequestHandler<in TMessage, out TResult>
{
TResult Process(TMessage message);
}
}
|
using Amazon.DynamoDBv2;
using Amazon.S3;
using JKang.EventSourcing.Persistence;
using JKang.EventSourcing.Persistence.CosmosDB;
using JKang.EventSourcing.Snapshotting.Persistence;
using JKang.EventSourcing.TestingFixtures;
using JKang.EventSourcing.TestingWebApp.Database;
using Microsoft.AspNetCore.Builder;
using Micr... |
// written by: Thomas Stewart
// tested by: Michael Quinn
// debugged by: Diane Gregory, Shane Barry
// balanced by: Diane Gregory, Metin Erman, Thomas Stewart
using UnityEngine;
using System.Collections;
/// <summary>
/// LazerShot is a NonInteractiveObject that moves forward with its initial speed, unless it is
/... |
using System;
using Timestamp;
using Xunit;
namespace XUnitTestTimestamp
{
public class UnitTestToTimeSpan
{
[Fact]
public void TimeShort()
{
// Arrange
var factory = new TimestampFactory();
// Act
var zero = factory.ToTimeSpan(0);
... |
using System;
using System.Collections.Generic;
using TMPro;
using UnityEngine.UI;
public abstract class AccionDeOpciones : AccionGenerica
{
protected bool pasarAlSiguienteDialogo;
protected List<string> opciones;
protected virtual void ColocarOpcionesEnPantlla(List<string> opciones)
{
if(opc... |
using System;
namespace SharpGfx.Primitives
{
public interface Matrix3 : Primitive
{
public float this[int row, int col] { get; }
public Vector3 Mul(Vector3 r);
public static Vector3 operator *(Matrix3 l, Vector3 r)
{
if (!IsVisible(l, r)) throw new Ar... |
using System;
using Moq;
using NUnit.Framework;
using PortkablePass.Cryptography;
using PortkablePass.Interfaces.Cryptography;
using PortkablePass.Interfaces.Encoding;
using PortkablePass.Tests.Mocks;
namespace PortkablePass.Tests.TestFixtures
{
[TestFixture]
public class HmacSha256GeneratorTest
{
... |
using System;
namespace WindowsDesktop.Interop
{
[ComInterfaceWrapper]
internal class ApplicationViewCollection : ComInterfaceWrapperBase
{
public ApplicationViewCollection(ComInterfaceAssembly assembly)
: base(assembly) { }
public ApplicationView GetViewForHwnd(IntPtr hWnd)
{
var param = ... |
using UnityEngine;
public class FadeWalls : MonoBehaviour{
private UnityEngine.Camera mainCamera;
private GameObject player;
private GameObject[] walls;
private Color _color;
[Range(0.0f, 1.0f)]
public float alphaValueSlider;
RaycastHit hitInfo;
private void Start(){
mainCamera... |
// RegistrationPermissionWriteOnce
using Disney.Mix.SDK;
public class RegistrationPermissionWriteOnce : IRegistrationPermissionWriteOnce, IRegistrationPermission
{
}
|
using HashidsNet;
using System;
using System.Security.Cryptography;
using System.Text;
namespace YattWpf.Models
{
class UserModel
{
public string ID
{
get {
string userName = GetSHA256HashAsString(Environment.UserName);
byte[] byteArray = Encoding.D... |
<h4 class="card-title"><i class="fa fa-cloud-download"></i>@T["Unpublish Content"]</h4>
<p>@T["Unpublish a content item."]</p> |
// 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 Microsoft.DotNet.Cli.CommandLine;
using Microsoft.DotNet.Cli.Compiler.Common;
using static Microsoft.DotNet.Cli.Compiler.Common.AssemblyInf... |
using System;
using System.Linq;
using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Linq;
using System.Runtime.Serialization;
namespace ReactiveUI
{
/// <summary>
/// RoutingState manages the ViewModel Stack and allows ViewModels to
/// navigate to other ViewModels.
/// </s... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Sandbox.LINQ_Lab
{
public static class Task6
{
public static List<(int, string[])> GroupByLength(string str)
{
return Regex.Split(str, @"\W+")
.GroupBy... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FaladorTradingSystems.Backtesting.Events
{
/// <summary>
/// Event which represents a signal being generated
/// by a trading strategy
/// </summary>
public class Sign... |
namespace Brightcove.MediaFramework.Brightcove.Upload
{
public class VideoUploadServiceConfigBase
{
public bool CaptureImages { get; set; }
public string Profile { get; set; }
public bool AlwaysCreateVideoItem { get; set; }
}
} |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Bing.Caching.Abstractions;
using Newtonsoft.Json;
namespace Bing.Serialization.Json
{
/// <summary>
/// 默认Json序列化器
/// </summary>
public class DefaultJsonSerialize... |
using System;
using System.Data.Services.Providers;
using LinqToDB.ServiceModel;
using NUnit.Framework;
namespace Tests.Linq
{
using Model;
[TestFixture]
public class DataServiceTests
{
#if !MONO
[Test]
public void Test1()
{
var ds = new DataService<NorthwindDB>();
var mp = ds.Ge... |
using ChristInSong.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Christ_in_song
{
/// <summary>
/// Locates view models from the IoC for use in binding in Xaml files
/// </summary>
public class ViewModelLocator
{... |
using System.Reflection;
using System.Web.Mvc;
using Autofac;
using Autofac.Integration.Mvc;
using Santiago.Infrastructure.DependencyResolution;
namespace Santiago.Web
{
public static class ContainerConfig
{
public static void Register()
{
var containerBuilder = new ContainerBuilde... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;
namespace Sircl.Website.Data.Localize
{
/// <summary>
/// Represents a localized value for a localization key.
/... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SQLiteDBProject.Model;
using Microsoft.Data.Sqlite;
using System.Collections.ObjectModel;
namespace SQLiteDBProject.Helper
{
public static class DataAccess
{
private static readonl... |
namespace BinarySerializer
{
/// <summary>
/// Signed number representation for bit serializing
/// </summary>
public enum SignedNumberRepresentation
{
Unsigned,
TwosComplement,
SignMagnitude
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yasb.Redis.Messaging.Client.Interfaces;
namespace Yasb.Redis.Messaging.Client.Commands
{
public class EvalShaCommand : IRedisCommand<byte[]>
{
private byte[] _sha1;
private byte[][] _keys;
... |
namespace Soapbox.Web.Areas.Admin.Models.Posts
{
using Soapbox.Models;
public class SelectableCategoryViewModel : PostCategory
{
public bool Selected { get; set; }
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RestWebApi.Tools
{
/// <summary>
/// 表示一个空的任务
/// </summary>
static class EmptyTask
{
static readonly Task Null = new Task(() => { });
public static bool ... |
using System;
using System.Runtime.InteropServices;
using GodLesZ.Library.Win7.Shell.Resources;
using MS.WindowsAPICodePack.Internal;
namespace GodLesZ.Library.Win7.Shell.PropertySystem {
/// <summary>
/// Defines a partial class that implements helper methods for retrieving Shell properties
/// using a canonica... |
namespace MW.Blazor
{
public class TreeStyle
{
public static readonly TreeStyle Bootstrap = new TreeStyle
{
ExpandNodeIconClass = "far fa-plus-square uic-tree--cursor-pointer",
CollapseNodeIconClass = "far fa-minus-square uic-tree--cursor-pointer",
NodeTitle... |
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Git_Watcher_Client;
using Git_Watcher_Client.Dto;
using Git_Watcher_Client.GitHubRestServices.Interfaces;
using Git_Watcher_Client.GitHubRestServices;
using Git_Watcher_Client.Models;
using NSubstitute;
using Xunit;
using GitWatcher.Api... |
namespace RegularExpressionScratchpad
{
using System;
using System.Text;
/// <summary>
/// RegexConditional.
/// </summary>
public class RegexConditional : RegexItem
{
private readonly RegexExpression expression;
private readonly RegexExpression yesNo;
private reado... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Configuration
{
public sealed class IriParsingElement : ConfigurationElement
{
internal const bool EnabledDefaultValue = false;
private read... |
@using TensileStrength.Web
@using TensileStrength.Web.Models
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
using Microsoft.AspNetCore.Identity;
using System;
using System.Text;
using OnlineBankingApp.Models;
using System.Security.Cryptography;
namespace OnlineBankingApp.Identity
{
public class PasswordHasher : IPasswordHasher<Customer>
{
public string HashPassword(Customer customer, string password)
... |
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Windows.Forms;
namespace WorkMonit
{
public partial class SettingsForm : Form
{
public SettingsForm()
{
InitializeComponent();
homeOfficeEnableElements();
}
... |
using Acmion.CshtmlComponent;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Razor.TagHelpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SampleRazorPagesApplication.Pages.Components
{
[HtmlTarget... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
//this was made because of issues with using TMPro
public class TextChanger : MonoBehaviour
{
public Text Shadow;
private Text Self;
// Use this for initialization
void Start()
{
... |
using System.Globalization;
using System.Numerics;
static partial class main_package
{
// const Big = 1 << 100
private static BigInteger? __Big__value;
private static BigInteger __init__Big() => __Big__value ??= BigInteger.Parse("1", NumberStyles.Float) << 100;
public const float Big__f32 = 12676... |
using System.Threading.Tasks;
using Nodegem.Engine.Data;
using Nodegem.Engine.Data.Attributes;
using Nodegem.Engine.Data.Fields;
namespace Nodegem.Engine.Core.Nodes.Utils
{
[DefinedNode("33ABFC2F-BC96-4D36-99D5-86B27B3F5E55")]
[NodeNamespace("Core.Utils")]
public class Concat : Node
{
public IV... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.