content stringlengths 23 1.05M |
|---|
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Introducao.Models
{
public class Usuario
{
[Required(ErrorMessage ="O campo Nome é obrigatório !")]
public string Nome { get; set; }... |
using System.Net.Http.Json;
using Fluxor;
using SharedLibrary.Features.PokeApi.Models;
using SharedLibrary.Features.PokeApi.State;
namespace SharedLibrary.Features.PokeApi.Services;
public class PokemonApiHttpClient
{
private readonly HttpClient _client;
private readonly IDispatcher _dispatcher;
public PokemonAp... |
using System;
using System.Collections;
using System.Data.SqlTypes;
using System.Text;
using Microsoft.SqlServer.Server;
using System.Threading;
/// <summary>
/// TVF for clr stored procedure with following definition:
///
/// use master;
/// -- Replace SQL_Server_logon with your SQL Server user credentials.
/// ... |
namespace NegativeEddy.SoT.Seasons;
public class AvailablePaths
{
public bool Base { get; set; }
public bool Legendary { get; set; }
public bool SeasonPass { get; set; }
} |
using UnityEngine;
using UnityEngine.UI;
namespace GameEvents
{
[RequireComponent(typeof(Text))]
public class Score : MonoBehaviour
{
[Min(0)]
[SerializeField]
private int scoreIncrease = 100;
[SerializeField]
private float scoreEffectYOffset = 10f;
[Seria... |
using System.Collections.Generic;
namespace TweetinviCore.Interfaces.Streaminvi
{
public interface ITrackStringAnalyzer
{
/// <summary>
/// Verify that the input matches one requirement
/// </summary>
bool Matches(string input);
/// <summary>
/// Ve... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// A super crummy, poor mans cross scene reference setup for capture points
/// </summary>
public class CapturePointReference : MonoBehaviour
{
public int capturePointIndex;
public struct CapturePointAnimator
{
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerAbilityTracker : MonoBehaviour
{
private bool canDoubleJump, canDash, canBecomeBall, canDropBomb;
public bool CanDoubleJump { get { return canDoubleJump; } set { canDoubleJump = value; } } // ENCAPSULATION
p... |
/* This a qualitative 8-color palette generated using https://colorbrewer2.org
* © Cynthia Brewer, Mark Harrower and The Pennsylvania State University
* It is is both LCD and print friendly but not blind nor photocopy friendly
*/
namespace ScottPlot.Drawing.Colorsets
{
class Dark : HexColorset, IPalette
{
... |
using System;
namespace Moscrif.IDE.Task
{
public interface ITaskOutput
{
void ClearOutput ();
}
}
|
using System;
namespace ResourcesPaneTest
{
/// <summary>
/// Summary description for TestGenerator.
/// </summary>
public class TestGenerator
{
const string namespaceName = "ResourcePaneTestApps";
string appName = "";
System.IO.StreamReader sourceStreamReader = null;
string sourceCode = "";... |
// CS9007: Primary constructor parameter `value' is not available in this context when using ref or out modifier
// Line: 12
class X (ref double value)
{
public double Prop {
get {
return value;
}
}
}
|
using System;
using UniRx;
using UnityEngine;
using UnityEngine.UI;
namespace MVPSample.Scripts
{
public sealed class CountView : MonoBehaviour
{
[SerializeField] Text countLabel;
[SerializeField] Button countUpButton;
public IObservable<Unit> OnCountUpButtonClickAsObservable() => cou... |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace DD.CloudControl.Client.Models.Server
{
using Common;
/// <summary>
/// The configuration for deploying a new server.
/// </summary>
public class ServerDeploymentConfiguration
{
/// <summary>
/// A name for the new server.
/... |
using Bing.Helpers;
namespace Bing.Admin.Systems.Domain.Models
{
/// <summary>
/// 操作
/// </summary>
public partial class Operation
{
/// <summary>
/// 初始化
/// </summary>
public override void Init()
{
base.Init();
InitPinYin();
... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using Accidis.Apps.Preflight.Model;
using Accidis.Apps.Preflight.Services.Parsers;
using Accidis.Apps.Preflight.Utils.Diagnostics;
using Accidis.Apps.Preflight.Utils.Web;
namespace Accidis.Apps.Preflight.Services
{
public se... |
using System;
using System.Collections.Generic;
using ProtoBuf;
namespace GPS.Common
{
[ProtoContract]
public class WikiDictionary
{
/// <summary>
/// Mapping of word -> pages with that word.
/// </summary>
[ProtoMember(1)]
public Dictionary<string, HashSet<Int64>> ... |
using Newtonsoft.Json;
using Scatterbrain.Models;
using SQLite;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Scatterbrain.Data
{
public class ScatterbrainRepository
{
... |
using System;
// ReSharper disable UnusedMember.Global
namespace sfa.Tl.Marketing.Communication.Functions
{
public class TimerInfo
{
public ScheduleStatus ScheduleStatus { get; set; }
public bool IsPastDue { get; set; }
}
public class ScheduleStatus
{
public DateTime Last... |
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class InstallationId
{
public InstallationId() { }
public InstallationId(long id)
{
Id = id;
}
/// <summary>
/// The Inst... |
namespace Pixlr.Lina
{
using System;
internal class ConvolutionStrategy1D
{
public ConvolutionStrategy1D()
{
}
public int StartInclusive { get; set; }
public int StopExclusive { get; set; }
public int TargetLength { get; set; }
}
} |
using LibElite.PilotJournal.Converter;
namespace LibElite.PilotJournal.Events.StationServices
{
[EventType("CargoDepot")]
public class CargoDepot : EventBase
{
public int MissionID { get; set; }
public CargoDepotUpdateType UpdateType { get; set; }
public string CargoType { get; set... |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using Microsoft.Azure.WebJobs.Extensions.ServiceBus.Config;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.Azure.WebJobs.ServiceBus.Binding... |
using System.Collections.Generic;
using Newtonsoft.Json;
namespace TourService.Entities
{
public class RouteEntity
{
public int Id { get; set; }
public string Name { get; set; }
public string Origin { get; set; }
public string Destination { get; set; }
public string Des... |
// Based on AndroidUpdateResDir.cs
// Copyright (c) 2010 Novell, Inc. (http://www.novell.com)
// Copyright (C) 2012 Xamarin, Inc. All rights reserved.
using System;
using System.IO;
using System.Collections.Generic;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
namespace Xamarin.ObjcBinding.Tasks... |
namespace WalletWasabi.Tor.Control.Messages.CircuitStatus;
public enum CircStatus
{
/// <summary>Circuit ID assigned to new circuit</summary>
LAUNCHED,
/// <summary>All hops finished, can now accept streams</summary>
BUILT,
/// <summary>All hops finished, waiting to see if a circuit with a better guard will be ... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Inheritance
{
public class FullTimeEmployee : Employee
{
float YearlySalary;
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Graphics;
namespace Jumper
{
class SpikeManager
{
// Variables
private Texture2D texture;
private Rect... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Cilsil.Extensions;
using Cilsil.Services.Results;
using Cilsil.Sil;
using Cilsil.Sil.Types;
using Mono.Cecil;
using System.Collections.Generic;
using System.Linq;
namespace Cilsil.Services
{
internal class TenvParserService : IServic... |
// 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.
[assembly:
System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1804:RemoveUnusedLocals",... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class WinningTimer : MonoBehaviour {
// Text variable
private Text finalTimer;
void Start()
{
finalTimer = GetComponent<Text>();
}
private vo... |
using System.Collections.Generic;
namespace Bitcoin.Api.Models
{
public class OrderBook
{
public List<List<float>> Bids { get; set; }
public List<List<float>> Asks { get; set; }
}
} |
using System;
using System.IO;
using System.Linq;
using System.Threading;
using NUnit.Framework;
using Xamarin.UITest;
using Xamarin.UITest.Queries;
namespace CarltonFields
{
[TestFixture(Platform.Android)]
[TestFixture(Platform.iOS)]
public class Tests
{
IApp app;
Platform platform;
public Tests(Platform ... |
using System;
using System.Xml;
using System.Xml.Serialization;
namespace RefBox
{
[Serializable, XmlRoot(ElementName = "signal", Namespace = "")]
public class Signal
{
/// <summary>
/// Gets or sets the type of the signal
/// </summary>
[XmlAttribute("type")]
public string Type { get; set; }
/// <summ... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class KeyGameBlock : MonoBehaviour
{
[SerializeField]
private bool m_isLeft;
private void OnTriggerEnter2D(Collider2D other)
{
if (other.CompareTag("KeyGamePlayer"))
{
var _controller = oth... |
using WeatherForecastSample.WebAPI.Entities;
namespace WeatherForecastSample.WebAPI.Controllers.Mappers
{
internal static class LocationMapper
{
public static IEnumerable<Shared.Models.Location> MapToModel(this IEnumerable<Location> source)
{
return source.Select(MapToModel);
... |
using Microsoft.AspNetCore.Components;
using Money.Commands;
using Money.Components;
using Money.Events;
using Money.Models;
using Money.Models.Loading;
using Money.Models.Queries;
using Money.Models.Sorting;
using Money.Services;
using Neptuo;
using Neptuo.Commands;
using Neptuo.Events;
using Neptuo.Events.Handlers;
... |
// //-----------------------------------------------------------------------
// // <copyright file="FamilyTreeTests.cs" company="Short Leg Studio, LLC">
// // Copyright (c) Short Leg Studio, LLC. All rights reserved.
// // </copyright>
// //-----------------------------------------------------------------------
us... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.CommandLine;
using System.CommandLine.Builder;
using System.CommandLine.Invocation;
using PSRule.BuildTool.Resources;
namespace PSRule.BuildTool
{
internal sealed class ClientBuilder : CommandBuilder
{
private Cli... |
using System;
using System.Linq;
namespace Entiry
{
/*
* 注意:
*
* Easy4net查询可以不用配置任何信息,只需要保证属性名和数据库字段名称一致即可
* 如果需要属性名和数据库名称不一致,则需要配置做映射配置
* 如果需要做修改和删除等操作,则需要做配置
**/
//[Table(Name = "student")]
public class StudentForQuery
{
//主键 INDENTITY自动增长标识
//[Id(Na... |
using System.Collections.Generic;
using System.Linq;
namespace Arma3ServerToolbox.ArmaPersist
{
public class PersistItem
{
public PersistItem()
{
}
public PersistItem(string name, float count)
{
Name = name;
Count = count;
}
publ... |
namespace Snowflake.Client.Model
{
public enum SnowflakeStatementType
{
UNKNOWN = 0x0000,
SELECT = 0x1000,
DML = 0x3000,
INSERT = 0x3000 + 0x100,
UPDATE = 0x3000 + 0x200,
DELETE = 0x3000 + 0x300,
MERGE = 0x3000 + 0x400,
MULTI_INSERT = 0x3000 + 0x5... |
namespace RingCentral
{
public partial class CallerBlockingSettings
{
// Call blocking options: either specific or all calls and faxes
public string @mode { get; set; }
// Determines how to handle calls with no caller ID in 'Specific' mode
public string @noCallerId { get; set; }... |
// Copyright (c) 2019 Lykke Corp.
// See the LICENSE file in the project root for more information.
using Autofac;
using MarginTrading.AssetService.Contracts.ClientProfileSettings;
using MarginTrading.Backend.Core;
using MarginTrading.Backend.Services.AssetPairs;
using Rocks.Caching;
namespace MarginTrading.Backend.... |
/* http://www.zkea.net/ Copyright 2016 ZKEASOFT http://www.zkea.net/licenses */
using Easy.ViewPort.Validator;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Easy.ViewPort.Descriptor
{
public class TextBoxDescriptor : BaseDescriptor
{
public TextBoxDescr... |
using Volo.Abp.Modularity;
namespace ClientSimulationDemo
{
[DependsOn(
typeof(ClientSimulationDemoApplicationModule),
typeof(ClientSimulationDemoDomainTestModule)
)]
public class ClientSimulationDemoApplicationTestModule : AbpModule
{
}
} |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Immutable;
using System.Diagnostics;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Completion;
usi... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cbn.Infrastructure.Common.Foundation.Exceptions.Bases;
namespace Cbn.Infrastructure.Common.Foundation.Exceptions
{
/// <summary>
/// システムアセンブリの取得例外
/// </summary>
public class NotFo... |
using Cofoundry.Domain.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Cofoundry.Domain
{
/// <summary>
/// Simple mapper for mapping to ImageAssetDetails objects.
/// </summary>
public class ImageAssetSummaryMapper : IImageAssetSummaryMapper
{... |
using System;
using Microsoft.AspNetCore.Mvc;
namespace ApiHelloWorld.Controllers
{
[ApiController]
[Route("api/[controller]")]
public class PingController : ControllerBase
{
[HttpGet]
public ActionResult GetPong()
{
return Ok(new { Pong = DateTime.Now });
}
}
} |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using SmartAgent;
namespace MiroV1
{
public class MiroV1Hole2ENEmitAbsorb : MonoBehaviour {
public GameObject _ENBallPrefab;
public Transform _SourceTF;
public List<Transform> _Path = new List<Transform> ();
public Color _ENCol... |
using static AChildsCourage.Rng;
namespace AChildsCourage.Game
{
public readonly struct GameSeed
{
internal static GameSeed CreateRandom() =>
new GameSeed(RandomRng().Map(GetValueBetween, int.MinValue, int.MaxValue));
private readonly int value;
private GameSeed(int v... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LoadInformation :MonoBehaviour {
public static void LoadAllInformation() {
gameInformation.PlayerName = PlayerPrefs.GetString("PLAYERNAME");
//MAIN INFO
gameInformation.Playerlevel=PlayerPrefs.GetIn... |
@inherits Nancy.ViewEngines.Razor.NancyRazorViewBase<dynamic>
@using PagedList;
@{
Layout = "_Layout.cshtml";
}
<div class='hslice' id='1' >
<h2 class='entry-title'>Upcoming Dinners</h2>
<a rel='feedurl' href='/Dinners/WebSliceUpcoming' style='display:none;' ></a>
<ul class="upcomingdinners">
@foreach (va... |
namespace BookShop.Server.Services.OrderService
{
public class OrderService : IOrderService
{
private readonly DataContext _context;
private readonly ICartService _cartService;
private readonly IAuthService _authService;
public OrderService(DataContext context,
ICar... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Level : MonoBehaviour
{
public float value;
public GameObject battle;
public LevelManager manager;
void Awake()
{
manager.AddLevel(this, value);
}
public void Load()
{
battle.S... |
namespace InvokeWhatever
{
public static class ConstructorInvoker
{
//public static object Invoke(Type type, params object[] availableArgs)
//{
//}
}
}
|
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Collections.Generic;
using Microsoft.PowerFx.Core.Binding;
using Microsoft.PowerFx.Core.Entities;
using Microsoft.PowerFx.Core.Syntax;
using Microsoft.PowerFx.Core.Syntax.Nodes;
using Microsoft.PowerFx.Core.Utils;
namespace Micro... |
using BusinessLayer.Abstract;
using DataAccessLayer.Abstract;
using EntityLayer.Concrate;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BusinessLayer.Concrete
{
public class BlogRaytingManeger : IBlogRaytingService
{
IBlogR... |
#if NET5_0_OR_GREATER
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using NewLife;
using NewLife.Log;
using NewLife.Reflection;
namespace Stardust.Monitors
{
/// <summary>诊断监听器的观察者</summary>
public class DiagnosticListenerObserver : IObserver<DiagnosticListe... |
namespace AltBuild.LinkedPath
{
/// <summary>
/// Object initialization interface
/// </summary>
public interface IObjectFactory
{
void InitializeObject(ObjectInitializeParameters parameters);
}
}
|
using System.Net.Http;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Keystone.Net.Services
{
/// <summary>
/// https://docs.openstack.org/api-ref/identity/v3/index.html?expanded=#service-catalog-and-endpoints
/// </summary>
public class ServiceCatalogServic... |
using Xunit;
namespace Liquid.NET.Tests.Filters.Strings
{
public class DownCaseFilterTests
{
[Fact]
public void It_Should_Put_A_String_In_Local_Case()
{
// Arrange
var result = RenderingHelper.RenderTemplate("Result : {{ \"TeSt\" | downcase }... |
using UnityEditor;
class AudioPostprocessor : AssetPostprocessor {
internal void OnPreprocessAudio() {
var audioImporter = assetImporter as AudioImporter;
if (audioImporter == null) {
return;
}
audioImporter.forceToMono = true;
audioImporter.hardware = false;
audioImporter.threeD = true;
if (assetP... |
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using CourseMicroservice.Domain;
namespace CourseMicroservice.Mappers
{
public class ModelMapper
{
public List<Course> MapToCourses(IDataReader reader)
{
List<Course>... |
using System.Text;
namespace BirthdayBot;
static class Common {
/// <summary>
/// Formats a user's name to a consistent, readable format which makes use of their nickname.
/// </summary>
public static string FormatName(SocketGuildUser member, bool ping) {
if (ping) return member.Mention;
... |
#region Copyright
/*
--------------------------------------------------------------------------------
This source file is part of Xenocide
by Project Xenocide Team
For the latest info on Xenocide, see http://www.projectxenocide.com/
This work is licensed under the Creative Commons
Attribution-NonCommercia... |
/*
* FileName: EnvironmentContext.cs
* Author: functionghw<functionghw@hotmail.com>
* CreateTime: 2017/2/20 16:57:23
* Version: v1.0
* Description:
* */
using HelperLibrary.Core.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Ta... |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace CFDependencyMapper.Console
{
class Graph
{
public HashSet<Node> Nodes { get; private set; }
public Graph()
{
Nodes = new HashSet<Node>();... |
using System.Collections.Generic;
namespace Lit.DataType
{
/// <summary>
/// Type binding.
/// </summary>
public interface ITypeBinding<TI>
{
/// <summary>
/// Binding list.
/// </summary>
IReadOnlyList<TI> BindingList { get; }
}
}
|
using System;
using Cake.AppPackager.Tests.Fixtures;
using Cake.Core;
using Xunit;
namespace Cake.AppPackager.Tests
{
public sealed class AppPackagerResolverTests
{
[Fact]
public void ShouldThrowIfFileSystemIsNull()
{
// Given
var fixture = new AppPackagerResolv... |
using Spear.Core.Micro.Services;
namespace Spear.Core.Micro
{
public interface IMicroClientFactory
{
/// <summary> 创建客户端 </summary>
/// <param name="serviceAddress"></param>
/// <returns></returns>
IMicroClient CreateClient(ServiceAddress serviceAddress);
}
}
|
using System.Threading.Tasks;
using UnityEngine;
namespace Utility.Lib
{
public static class Timing
{
public static async Task WaitForFrames(int frames)
{
for (int i = 0; i < frames; i++)
{
await new WaitForEndOfFrame();
}
}
}
} |
using System;
using System.Globalization;
using System.Threading.Tasks;
using Windows.ApplicationModel;
using Windows.UI.StartScreen;
using MoneyFox.Foundation;
using MoneyFox.Foundation.Resources;
using MoneyFox.ServiceLayer.ViewModels;
using MoneyFox.Windows.Business;
using MoneyFox.Windows.Business.Tiles;
namespac... |
// /////////////////////////////////////
//
// © Siemens AG, 2012. All Rights Reserved
//
// /////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ActiveMQMessaging;
using Apache.NMS;
using Apache.NMS.Util;
using DataAccess;
using Spring.Con... |
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KSP;
using KSPAchievements;
using Contracts;
using Contracts.Parameters;
using UnityEngine;
namespace SpaceTourism.Contracts.Parameters
{
public class TouristDeaths : ContractParame... |
// Copyright (c) Nate McMaster.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Reflection;
namespace McMaster.Extensions.CommandLineUtils.Conventions
{
/// <summary>
/// Sets <see cref="CommandLineApplication.OptionVer... |
#if UNITY_EDITOR
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEditor.ShortcutManagement;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace GridGame.Editor
{
//TODO add play mode persistence
public class LevelEditor : EditorWindow
{
... |
using Qf.Core;
using Qf.SysTodoList.Application.Dto;
using Qf.SysTodoList.Domain;
using System;
using System.Threading.Tasks;
namespace Qf.SysTodoList.Application.Queries
{
public interface ITodoTaskQueries
{
/// <summary>
/// 分页查询列表
/// </summary>
Task<PageDto<TodoTaskDto>> Ge... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RUL
{
public enum InclusionOptions
{
/// <summary>
/// Includes both the lower and the upper bound
/// </summary>
Both,
/// <summary>
/// Only includes the lower boun... |
namespace OnlyV.VerseExtraction.Cache
{
using System;
using System.Collections.Generic;
using System.IO;
using Models;
internal class BibleChaptersListCache
{
private readonly Dictionary<string, IReadOnlyList<BookChapter>> _data =
new Dictionary<string, IReadOnlyList<BookCh... |
// CS1678: Parameter `1' is declared as type `T' but should be `IStream<T>'
// Line: 14
using System;
interface IStream<T>
{
}
static class X
{
public static IStream<U> Select<T, U> (IStream<T> stream, Func<IStream<T>, U> selector)
{
return Select<T, U> (stream, (T _) => selector(stream));
}
}
|
using System;
using System.Collections.Generic;
using System.Text;
namespace BNGTest.Entitys
{
public class UserCollections : List<User>
{
public string TestValue { get; set; }
public User us { get; set; }
}
}
|
using RestSharp;
using System;
using System.Collections.Generic;
using System.Text;
namespace MV.Framework.providers
{
/// <summary>
/// Another class not usable into blazor wasm
/// </summary>
public class BaseRestClient
{
private string _baseUrl;
private IRestClient _client;
... |
namespace Magic
{
class A
{
void MethodA1()
{
}
#region Region
void MethodA2()
{
}
void MethodB1()
{
}
#endregion
void MethodB2()
{
}
}
} |
namespace Game.Base
{
public enum ePrivLevel : uint
{
Player = 1u,
GM,
Admin
}
}
|
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using ShareFile.Api.Client.Converters;
using ShareFile.Api.Client.Credentials;
usin... |
using System.Collections.Generic;
using System.Security.Claims;
using System.Threading;
using System.Threading.Tasks;
namespace IdOps.IdentityServer.DataConnector
{
public interface IUserDataConnectorService
{
Task<IEnumerable<Claim>> GetClaimsAsync(
UserDataConnectorCallerContext context,
... |
// Copyright (c) Project Initium. 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;
using Initium.Portal.Domain.AggregatesModel.RoleAggregate;
using Xunit;
namespace Initium.Por... |
using System.Collections.Generic;
namespace Lever.IBLL
{
public interface IDynamicApiBll
{
object DynamicFetch(string code);
object DynamicFetch(string code, IDictionary<string, object> inputParameters);
}
}
|
/*
* Copyright 2016 gdaigo82@gmail.com.
* Licensed under the MIT license
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//add by gdaigo
using System.Windows.Forms;
namespace CuiHelperLib
{
public class CuiHelperShowFileDi... |
using DiffMatchPatch;
using NUnit.Framework;
namespace DiffMatchPatchTests
{
[TestFixture]
public class TextUtilTests
{
[Test]
public void CommonOverlapEmptyStringNoOverlap()
{
// Detect any suffix/prefix overlap.
// Null case.
Assert.AreEqual(0, ... |
using System.Collections.Generic;
namespace Diversion.Reflection
{
public interface IGenericParameterInfo : ITypeReference
{
bool RequiresDefaultConstructor { get; }
GenericTypeRequirement TypeRequirement { get; }
GenericTypeVariance TypeVariance { get; }
ITypeReference Base { g... |
namespace AgileObjects.AgileMapper.UnitTests.Orms.EfCore2
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Common;
using Infrastructure;
using Microsoft.EntityFrameworkCore;
using Orms.Infrastructure;
using TestClasses;
usi... |
namespace CrossPlatformApp.Pages
{
public partial class MasterDetail
{
public MasterDetail()
{
InitializeComponent();
}
}
} |
using System;
using System.Diagnostics;
namespace Lucene.Net.Util.Packed
{
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ... |
using System;
using System.ComponentModel;
using CoreGraphics;
using Foundation;
using LetterApp.Core;
using LetterApp.Core.ViewModels;
using LetterApp.iOS.Helpers;
using LetterApp.iOS.Interfaces;
using LetterApp.iOS.Views.Base;
using UIKit;
namespace LetterApp.iOS.Views.Loading
{
public partial class LoadingVie... |
using System;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Collections.ObjectModel;
using System.Data;
using System.Collections;
using Sports.Classes;
using System.Windows.Data;
using System.ComponentModel;
using DataBase;
using Sports.NewObject;
namespace Sports.Forms
{
//... |
namespace EventSourcing.WriteModel.ExceptionHandler.Middleware
{
using System;
using Microsoft.Extensions.DependencyInjection;
public class ExceptionHandlingBuilder : IExceptionHandlingBuilder
{
public ExceptionHandlingBuilder(IServiceCollection services)
{
this.Services = s... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
#pragma warning disable 1591
namespace AssetGenerator.Runtime.ExtensionMethods
{
public static class NumericExtensionMethods
{
public static float[] ToArray(this V... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.