content stringlengths 23 1.05M |
|---|
namespace SIL.Machine.WebApi
{
public class SegmentPairDto
{
public string[] SourceSegment { get; set; }
public string[] TargetSegment { get; set; }
public bool SentenceStart { get; set; }
}
}
|
using System;
using System.Collections.Generic;
using System.IO;
using Xunit.Abstractions;
namespace Micser.TestCommon
{
public class TestFileManager
{
private readonly List<string> _fileNames;
private readonly ITestOutputHelper _testOutputHelper;
public TestFileManager(ITestOutputHelp... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using XUnity.AutoTranslator.Plugin.Core.Utilities;
namespace XUnity.AutoTranslator.Plugin.Core
{
/// <summary>
/// Public API Surface for the Auto Translator Plugin.
/// </summar... |
/*
http://www.cgsoso.com/forum-257-1.html
CG搜搜 Unity3d 插件团购
CGSOSO 主打游戏开发,影视设计等CG资源素材。
每日Unity3d插件免费更新,仅限下载试用,如若商用,请务必官网购买!
*/
using System;
using UnityEngine;
using System.Collections;
public class MoveOnGround : MonoBehaviour
{
public event EventHandler<CollisionInfo> OnCollision;
public bool IsRootMove = tr... |
using System.Linq;
using Com.Ericmas001.Userbase.Models.ServiceInterfaces;
using Com.Ericmas001.Userbase.Test.Util;
using FluentAssertions;
using Unity;
using Xunit;
namespace Com.Ericmas001.Userbase.Test
{
[Collection("Com.Ericmas001.Userbase.Test")]
public class ManagementTest
{
[Fact]
... |
//---------------------------------------------------------------------
// <copyright file="IRelationshipEnd.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//
// @owner [....]
// @backupOwner [....]
//----------------------------------------------------... |
using System;
using System.Windows.Forms;
using GTA;
namespace ScriptInstance
{
// Main script is auto-started and creates AI scripts using key presses.
// T key to spawn AIone
// Y key to spawn AItwo
// G key to change AIone animation
// H key to SetWait(6) for AItwo
// J key to pause AIone
public class Mai... |
// (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 Microsoft.Test.CommandLineParsing;
using System;
using Xunit;
using Xunit.Extensions;
namesp... |
using UnityEngine;
public class GetPixelsExample : MonoBehaviour
{
[SerializeField] uDesktopDuplication.Texture uddTexture;
[SerializeField] int x = 100;
[SerializeField] int y = 100;
const int width = 64;
const int height = 32;
public Texture2D texture;
Color32[] colors = new Color3... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
using UnityEngine.UI;
public class CampaignSaveDataUiElement : MonoBehaviour
{
[SerializeField]
private TextMeshProUGUI CampaignText;
private CampaignSaveData SaveData;
public CampaignSaveData CurrentSaveData { ... |
namespace Extensions
{
public class ConsumerConfig : BaseKafkaConfig
{
public string[] SubscriptionTopics { get; set; }
public override string DefaultTopic => SubscriptionTopics[0];
public string GroupId { get; set; }
}
} |
using Odachi.CodeGen.TypeScript.StackinoDue.Renderers;
using Odachi.CodeGen.TypeScript.StackinoDue.TypeHandlers;
using Odachi.CodeModel;
using System;
using System.Collections.Generic;
using System.Text;
namespace Odachi.CodeGen.TypeScript.StackinoDue
{
public static class PackageExtensions
{
public static void Re... |
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Text;
namespace EventSourcingOnAzureFunctions.Common.Notification
{
public class NotificationDispatcherNameResolver
: INameResolver
{
private readonly IConfigu... |
// Copyright (c) Microsoft. All rights reserved.
using System;
using Windows.ApplicationModel.Background;
using Windows.Devices.Adc;
using Windows.System.Threading;
using Microsoft.IoT.AdcMcp3008;
using Windows.Devices.Adc.Provider;
using System.Collections.Generic;
// The Background Application template is documente... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace CommandRunner.Helper... |
using System;
using System.Linq;using System.Collections.Generic;
namespace Diana
{
public partial class DTuple
{
public string Classname => "Tuple";
public static DModule module_instance {get; private set;}
public static DObj bind_len(DObj[] _args) // bind `this` prop
{
var nargs = _args.Length;
if (... |
namespace PhotoDealer.Web.Infrastructure.Search
{
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
public class SearchViewModel
{
public string Title { get; set; }
public string Author { get; set; }
[DisplayName("Price From")]
public decimal P... |
using Rabbit.Kernel.Caching;
using Rabbit.Kernel.Environment.Assemblies.Models;
using System;
using System.Reflection;
namespace Rabbit.Kernel.FileSystems.Dependencies
{
/// <summary>
/// 一个抽象的程序集探测文件夹。
/// </summary>
public interface IAssemblyProbingFolder : IVolatileProvider
{
/// <summa... |
using System.Collections.Generic;
namespace HouseScraper.Scraper.ScrapeItems
{
/// <summary>
/// Factory to make new properties
/// </summary>
public class PropertyFactory : AbstractItemFactory<Property>
{
/// <summary>
/// Make new property from list of stringified attributes
... |
using System;
using JetBrains.Annotations;
namespace PowerGenerator
{
public sealed class Generator : IGenerator
{
private static int _autoId;
[NotNull] private static readonly Random Random;
static Generator()
{
Random = new Random();
}
public G... |
using System.IO;
using System.Reflection;
using System.Xml.Linq;
namespace AlbLib
{
namespace Internal
{
/// <summary>
/// Class for accessing embedded XML resources.
/// </summary>
internal static class Resources
{
/// <summary>
/// When this set on, this class will load resources only from this as... |
namespace MassTransit.Registration
{
using GreenPipes;
public interface IBusInstanceSpecification :
ISpecification
{
void Configure(IBusInstance busInstance);
}
}
|
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using DAL.App.DTO.OrderModels;
using Microsoft.AspNetCore.Identity;
namespace DAL.App.DTO.Identity
{
public class AppUser : IdentityUser<Guid>
// , IDomainEntityId
{
[Required]
[StringLength(12... |
using System.IO;
namespace SelfishMeme
{
public class Simulation : ISimulation
{
private readonly TextWriter outputStream;
private readonly IBreedingSeasonFactory breedingSeasonFactory;
private readonly int breedingSeasons;
private IPopulation currentPopulation;
public ... |
// DocSection: linked_content_get_page_with_subpages
// Tip: Find more about .NET SDKs at https://docs.kontent.ai/net
using Kentico.Kontent.Delivery;
// Creates an instance of the delivery client
// ProTip: Use DI for this in your apps https://docs.kontent.ai/net-register-client
IDeliveryClient client = DeliveryClient... |
namespace DotnetNativeInterop
{
public class Program
{
static void Main()
{
using var window = new MyWindow();
Thread.Sleep(1000);
window.Clear(0, 0xff, 0);
Thread.Sleep(1000);
window.Clear(0, 0, 0xff);
Threa... |
namespace TONBRAINS.TONOPS.WebApp.Common.Models
{
public class ModuleLoggingModel : ModuleModel
{
public LoggingModel Logging { get; set; }
}
}
|
using OpenRasta.Web;
namespace OpenRasta.CommunicationFeatures
{
public static class CommunicationExtensions
{
public static void Feature<T>(this ICommunicationContext context, T feature)
{
context.PipelineData[GetFeatureKey<T>()] = feature;
}
public static bool Feature<T>(this ICommunicatio... |
using System;
using System.Runtime.Serialization;
using Orchard.Localization;
namespace Orchard.Commands {
[Serializable]
public class OrchardCommandHostRetryException : OrchardCoreException {
public OrchardCommandHostRetryException(LocalizedString message)
: base(message) {
}
... |
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.EventSystems;
namespace Common.Unity.Cameras
{
public class SimpleCameraController2D : MonoBehaviour
{
private class CameraState
{
public Vector3 position;
public float size;
}
[SerializeFie... |
using System;
using System.Collections.Generic;
namespace Elvet.FridayNightLive.Data
{
internal class Session
{
public ulong GuildId { get; set; }
public int Number { get; set; }
public DateTime? Date { get; set; }
public List<SessionWinner> Winners { get; set; } = new();
... |
using System.ComponentModel.DataAnnotations;
using DataAnnotationsExtensions;
using SharpLite.Domain;
using SharpLite.Domain.Validators;
namespace CaTS.Domain
{
[HasUniqueDomainSignature(
ErrorMessage = "A customer already exists with the provided account number")]
public class Customer : Ent... |
// SPDX-License-Identifier: Apache-2.0
// Licensed to the Ed-Fi Alliance under one or more agreements.
// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
// See the LICENSE and NOTICES files in the project root for more information.
using System;
using System.Collections.Generic;
u... |
using System;
namespace NAudio.Midi
{
/// <summary>
/// MIDI MetaEvent Type
/// </summary>
public enum MetaEventType : byte
{
/// <summary>Track sequence number</summary>
TrackSequenceNumber = 0x00,
/// <summary>Text event</summary>
TextEvent = 0x01,
/// <summary>Copyright</summary>
Cop... |
using System;
using System.Text;
namespace EncodeDecode_Variant
{
public class EncodeDecodeWithKey
{
public static void Main()
{
// idea - if cipher is longer then message -> continue encrypt
string message = Console.ReadLine();
string cipher = Console.ReadL... |
using System;
using Windows.UI.Xaml.Data;
namespace Emlid.UniversalWindows.UI.Converters
{
/// <summary>
/// Null test to boolean one-way value converter.
/// </summary>
/// <remarks>
/// Converts null to false and non-null to true, any object type.
/// </remarks>
public class NullBoolValu... |
using System.Collections.Generic;
using System.Linq;
using Microsoft.CodeAnalysis;
namespace Sharpen.Engine.Analysis
{
// We have a slight terminology issue here. Users talk about files.
// Roslyn talks about documents. For the code identifiers we will
// use the term documents. For the user messages we w... |
using System.Web.Mvc;
namespace SFA.DAS.EmployerAccounts.Web.ViewModels
{
public class RenameEmployerAccountViewModel : ViewModelBase
{
public string HashedId { get; set; }
[AllowHtml]
public string CurrentName { get; set; }
[AllowHtml]
public string NewName { get; set;... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ConsumableScript : ItemScript
{
public static int MAX_BONUS_VALUE = 10;
[Range(0, 100)] [SerializeField] private int defaultHealValue;
[Range(0, 100)] [SerializeField] private int healValue;
private void Awake(... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
public class InputInteractable : MonoBehaviour
{
[Header("Settings")]
[SerializeField] bool _onlyOnce;
[SerializeField] UnityEvent _pressEvent;
[SerializeField] UnityEvent _releaseEvent;
[Seria... |
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Reflection;
using System.Text;
namespace DMM.Common.Configuration
{
[ConfigurationCollection(typeof(BehaviorConfigurationElement), AddItemName = "behavior")]
public class BehaviorSectionsCollection : Co... |
using System;
namespace Documentos.Clases
{
public class Factura : Documento
{
public Factura(Cliente cliente) : base(cliente: cliente) { }
public override void Imprimir()
{
Console.WriteLine($"Factura para: {this._cliente.Presentarse()}");
Console.Writ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _08.MilitaryElite
{
public abstract class SpecialisedSoldier : Private, ISpecialisedSoldier
{
private string corps;
protected SpecialisedSoldier(int id, string firstNa... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PullTracker : MonoBehaviour
{
private ParasiteHead p_head;
private SpriteRenderer sr;
private GameObject tracker;
private void Awake () {
p_head = GameObject.FindWithTag("ParasiteHead").GetComponent<Pa... |
//---------------------------------------------------------------------
// <copyright file="ThreadGetSetDataRule.cs" company="Microsoft">
// Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
// </copyright>
//--------------------------------... |
using Microsoft.Extensions.Logging;
namespace OmniSharp.MSBuild.Discovery
{
internal static class Extensions
{
public static void RegisterDefaultInstance(this IMSBuildLocator msbuildLocator, ILogger logger)
{
MSBuildInstance instanceToRegister = null;
var invalidVSFound... |
using System;
using System.Collections.Generic;
using MongoDB.Bson.Serialization.Attributes;
namespace Hangfire.Mongo.Dto
{
#pragma warning disable 1591
public class StateDto
{
[BsonElement(nameof(Name))]
public string Name { get; set; }
[BsonElement(nameof(Reason))]
public str... |
using Microsoft.AspNetCore.Mvc;
using TLDR.Models;
using System;
using System.Threading.Tasks;
namespace TLDR.Web.Services
{
public interface IAuthorItemService
{
IActionResult GetAuthorById(Guid id);
IActionResult GetAllAuthors();
Task<IActionResult> CreateAuthor(AuthorItem value);
... |
using UnityEngine;
using System.Collections;
public class Mole : MonoBehaviour {
public float moveDistance;
public float moveTime;
public float waitTime;
public TextMesh letterLabel;
public float shakeAmplitude;
public float scaleTo;
public char Letter { get { return letterLabel.text[0]; } }
float startY;
... |
using GrocerySupplyManagementApp.DTOs;
namespace GrocerySupplyManagementApp.Repositories.Interfaces
{
public interface ICapitalRepository
{
decimal GetMemberTotalBalance(UserTransactionFilter userTransactionFilter);
decimal GetSupplierTotalBalance(SupplierTransactionFilter supplierTransactionF... |
using YourBrand.Domain.Common;
namespace YourBrand.Domain.Events;
public class CommentPostedEvent : DomainEvent
{
public CommentPostedEvent(string itemId, string commentId)
{
this.ItemId = itemId;
CommentId = commentId;
}
public string ItemId { get; }
public string... |
/*
| Version 10.1.84
| Copyright 2013 Esri
|
| 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 applicable law or... |
//
// NSMutableData.cs:
// Author:
// Miguel de Icaza
// Copyright 2010, Novell, Inc.
// Copyright 2013-2014 Xamarin Inc (http://www.xamarin.com)
using System;
using ObjCRuntime;
using System.IO;
using System.Runtime.InteropServices;
using System.Collections;
using System.Collections.Generic;
namespace Foundation ... |
namespace CodeBoss.MultiTenant
{
/// <summary>
/// Determines which tenant is currently active
/// </summary>
public interface ITenantIdentificationService
{
ITenant CurrentTenant();
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AssemblySharp
{
public class MEM
{
public MEM Byte => new MEM(_register, MemoryStructureType.Byte);
public MEM Word => new MEM(_register, MemoryStructureType.Word);
... |
using UnityEngine;
namespace MiniHexMap
{
public static class HexMetrics
{
public const float outerRadius = 10f;
public const float innerRadius = outerRadius * 0.866025404f;
public const float elevationStep = 5f;
public const float solidFactor = 0.85f;
public const floa... |
namespace Inforigami.CLI
{
using System;
using System.Collections.Generic;
public interface ICommandTypeProvider
{
IEnumerable<Type> GetCommandTypes();
}
} |
using System;
using System.Xml.Serialization;
using AnotherCM.Library.Common;
namespace AnotherCM.Library.Import.Common {
public class ReferencedObject : NamedValueElement {
[XmlElement]
public string Description { get; set; }
// TODO: doesn't really belong this deep
[XmlElement]
... |
using YourBrand.Payments.Domain.Common;
namespace YourBrand.Payments.Domain.Events;
public class PaymentCancelled : DomainEvent
{
public PaymentCancelled(string paymentId)
{
PaymentId = paymentId;
}
public string PaymentId { get; }
}
|
// 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.Tests.Common
{
using System;
using System.Collections.Generic;
using Microsoft.DocAsCode.Common;
public class... |
using System;
using System.Collections.Generic;
using XEngine;
using XEngineActor;
namespace XEngineCommand
{
public class BulletFXCmd : BaseCommand
{
public int fxID;
public float scale;
public XPoint point;
public int bulletLife;
public Action<Actor, XPoint, ActorParent> collisionCallback;
public ... |
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using System.Web;
using Qiwi.BillPayments.Exception;
using Qiwi.BillPayments.Model;
using Qiwi.BillPayments.Model.In;
using Qiwi.BillPayments.Model.Out;
using Qiwi.BillPayments.Web;
namespace Qiwi.BillPa... |
using Microsoft.VisualStudio.Shell;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Json;
using System.Text;
namespace EasyBuildManager.Model
{
[DataContract]
class CustomConfiguration
{
public string Name... |
using System.Collections.Generic;
using NUnit.Framework;
using Unity.MARS.MARSHandles.Picking;
using UnityEngine;
using UnityEngine.TestTools.Constraints;
using Is = NUnit.Framework.Is;
namespace Unity.MARS.MARSHandles.Tests.Picking
{
internal sealed class LinePickingTargetTests
{
LinePickingTarget m_... |
using System;
using Cysharp.Threading.Tasks;
namespace toio
{
public interface BLEServiceInterface
{
void RequestDevice(Action<BLEDeviceInterface> action);
void DisconnectAll();
UniTask Enable(bool enable, Action action);
}
} |
using UnityEditor;
using UnityEngine;
using UnityTemplateProjects;
namespace EditorUISamples
{
public class EditorWindowSceneView : EditorWindow
{
[MenuItem(menuItemRoot + "Scene View - kinda")]
static void ShowWindow()
{
var window = GetWindow<EditorWindowSceneView>();
... |
using NUnit.Framework;
namespace Outracks.CodeNinja.Tests.Tests
{
public class TryCatch : Test
{
[Test]
public void TryCatch00()
{
AssertCode(
@"using Uno;
class b
{
public void derp()
{
try
{
int i = 5;
}
catch($(Exception,IndexOutOfRangeException,InvalidCastException,InvalidOperationExcep... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.NetworkInformation;
using System.Text;
using System.Text.RegularExpressions;
using UnityEditor;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
namespace XT
{
publ... |
using GameSharp.Core.Native.Offsets;
namespace GameSharp.Core.Memory
{
public class PEB
{
public bool IsValid => _pebPointer.IsValid;
private readonly MemoryPointer _pebPointer;
private readonly IPebOffsets _pebOffsets;
public PEB(IProcess process)
{
_pebPo... |
using LBH.AdultSocialCare.Api.V1.Domain.Common;
using System.Collections.Generic;
using System.Threading.Tasks;
using LBH.AdultSocialCare.Data.Entities.Common;
using LBH.AdultSocialCare.Data.Extensions;
using LBH.AdultSocialCare.Data.RequestFeatures.Parameters;
namespace LBH.AdultSocialCare.Api.V1.Gateways.Common.Inte... |
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Microsoft.Azure.II... |
using System;
using System.Collections.Generic;
using System.Linq;
public class StudentsByFirstAndLastName
{
public static void Main()
{
string input;
var students = new List<string>();
while ((input = Console.ReadLine()) != "END")
{
var tokens = input
... |
using Mono.Cecil;
using Mono.Cecil.Cil;
using OTAPI.Patcher.Engine.Extensions;
using OTAPI.Patcher.Engine.Modification;
using System;
using System.Linq;
using Mono.Collections.Generic;
using OTAPI.Patcher.Engine.Extensions.ILProcessor;
using Terraria;
using Terraria.Localization;
namespace OTAPI.Patcher.Engine.Modifi... |
// This file was automatically generated and may be regenerated at any
// time. To ensure any changes are retained, modify the tool with any segment/component/group/field name
// or type changes.
namespace Machete.HL7Schema.V26
{
using System;
using HL7;
/// <summary>
/// OM1 (Segment) - General Segm... |
using System.Collections.Generic;
using Kudu.Contracts.Infrastructure;
using Newtonsoft.Json;
namespace Kudu.Contracts.Diagnostics
{
public class ProcessEnvironmentInfo : Dictionary<string, string>, INamedObject
{
private readonly string _name;
public ProcessEnvironmentInfo()
{
... |
// ReSharper disable once CheckNamespace
namespace System.Threading.Tasks
{
static class TaskEx
{
public static Task CompletedTask { get; } = Task.FromResult(0);
}
}
|
// Copyright (c) Jeroen van Pienbroek. All rights reserved.
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
namespace AdvancedInputFieldPlugin
{
public interface INativeKeyboardCallback
{
void OnTextEditUpdate(string text, int selectionStartPosition, int selec... |
using System;
namespace Minimax.Chess
{
public enum Piece : byte
{
NULL = 0,
WHITE_PAWN = 1,
WHITE_ROOK = 2,
WHITE_KNIGHT = 3,
WHITE_BISHOP = 4,
WHITE_QUEEN = 5,
WHITE_KING = 6,
BLACK_PAWN = 7,
BLACK_ROOK = 8,
BLACK_KNIGHT = 9,
... |
#region Using
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using NLib;
using NLib.Design;
using NLib.Reflection;
using SQLite;
using SQLiteNetExtensions.Attributes;
using SQLiteNetExtensions.Extensions;
// required for JsonIgnore attribute.
using Newtonsoft.Json;
u... |
using Engine.Drawing_Objects;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using StillDesign.PhysX;
namespace Requiem.Entities
{
/// <summary>The base abstract for all game-type objects</summary>
/// <author>Gabrial Dubois, modified by Daniel Cuccia</author>
public abstra... |
using System;
using System.Collections.Generic;
using System.Linq;
class Program
{
static void Main() //100/100
{
Dictionary<string, Dictionary<string, long>> dic = new Dictionary<string, Dictionary<string, long>>();
while (true)
{
string x = Console.ReadLine();
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace OfficePS.Models
{
public class FeedBack
{
public FeedBack() { }
public int FeedBackId { get; set; }
public string Titulo { get; set; }
public string Descricao { get; s... |
using System;
using System.Collections.Generic;
namespace Dibix.Dapper.Tests
{
internal class StructuredType_Int : StructuredType_IntStringDecimal
{
public void Add(int intValue) => base.Add(intValue, String.Empty, default);
public static StructuredType_Int From(IEnumerable<int> sourc... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Lib;
namespace UnsupervisedLearning.KMeans
{
/// <summary>
/// Implementação de <see cref="IMovieClassification"/> para o algoritmo <see cref="StandardKMeans"/>.
/// </summary>
public clas... |
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Audio;
namespace AdrianKovatana
{
public class AudioManager : MonoBehaviour
{
//Singleton requirements
protected AudioManager() { } // guarantee this will be always a singleton only - can't use the constructor!
publ... |
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace watchtower.Code.ExtensionMethods {
public static class JTokenExtensionMethods {
public static string GetString(this JToken ext, string name, string def) {
re... |
using System.Collections;
namespace UnitTests.Iniect.io.TestDomain.Constructor
{
public interface ICtorA
{
IExtraProperty ExtraProperty { get; }
}
internal class CtorA : ICtorA
{
public CtorA(IExtraProperty extraProperty)
{
ExtraProperty = extraProperty;
... |
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities.Auditing;
using Emarketing.Authorization.Users;
namespace Emarketing.BusinessObjects
{
public class UserWithdrawDetail : FullAuditedEntity<long>
{
public UserWithdrawDetail()
{
}
[ForeignKey("UserId"... |
namespace SingletonExample.AOP {
[Singleton]
public class AnotherOneClass {
public static AnotherOneClass Instance { get; set; }
private AnotherOneClass() {}
}
} |
using UnityEngine;
public abstract class GameState
{
protected GameStateMachine _gameStateMachine;
protected GameState _nextState;
protected GameState(GameStateMachine gameStateMachine)
{
_nextState = null;
_gameStateMachine = gameStateMachine;
}
public virtual void Updat... |
using Crocodal.Transpiler.Tests.Core;
using Crocodal.Transpiler.Tests.Fixtures;
using System;
using Xunit;
namespace Crocodal.Transpiler.Tests
{
public class TupleDeclarationTranslationTests : IClassFixture<CompilerFixture>
{
private readonly StatementTranslator _translator = new StatementTranslator()... |
using GrainInterfaces;
using Orleans;
using System.Threading.Tasks;
namespace HelloGrains
{
/// <summary>
/// Grain implementation class Grain1.
/// </summary>
internal class HelloGrain : Grain, IHello
{
public Task<string> SayHello(string msg)
{
return Task.FromResult(s... |
using TeeSquare.Reflection;
namespace TeeSquare.Tests.Reflection.FakeDomain
{
public class Circle
{
public int Radius { get; set; }
[TypeDiscriminator]
public string Kind => nameof(Circle);
}
} |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RoomData : MonoBehaviour
{
[SerializeField] private int roomNumberInArray;
[SerializeField] private RoomMovement roomControllerRoomMovement;
[SerializeField] private RoomInformation thisRoom;
[SerializeField] pr... |
using UserIdentity.Services.Models;
namespace UserIdentity.WebUI.Infrastructure.Settings
{
public class AppSettings
{
public SmtpSettings SmtpSettings { get; set; }
public string UploadsFolder { get; set; }
public string Domain { get; set; }
}
} |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Threading.Tasks;
using BuildXL.Cache.ContentStore.Interfaces.Results;
using Xunit;
namespace BuildXL.Cache.ContentStore.InterfacesTest.Results
{
public class ResultsExtensionsTests
{
[Fact... |
using System;
using System.Threading.Tasks;
namespace Lykke.Job.BlockchainOperationsExecutor.Core.Domain.OperationExecutions
{
public interface IActiveTransactionsRepository
{
Task<Guid> GetOrStartTransactionAsync(Guid operationId, Func<Guid> newTransactionIdFactory);
Task EndTransactionAsync(... |
@model UserModel
@{
ViewBag.Title = "Register";
}
<h1>Account <span>Creation</span></h1>
@using (Html.BeginForm())
{
@Html.ValidationSummary(true)
<div>
<div class="editor-field">
@Html.EditorFor(m => m.User.Email)
@Html.ValidationMessageFor(m => m.User.Email)
</... |
using Audio;
using Buildings;
using MapElements.Buildings;
using UnityEngine;
namespace Game
{
public class BottomUI : IMapUI
{
public void ShowPanelMessage(string text)
{
OnMapUI.Get().bottomButtonText.color = Color.white;
OnMapUI.Get().bottomButtonText.text = text;
... |
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
namespace Twitch.Base.Models.V5.Bits
{
/// <summary>
/// Information about a tier for a Bits cheermote.
/// </summary>
public class BitCheermoteTierModel
{
/// <summary>
/// The ID of the tier.
/// </summary>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.