content stringlengths 23 1.05M |
|---|
// Copyright (c) Alessio Parma <alessio.parma@gmail.com>. All rights reserved.
//
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
using System;
using ShaiRandom.Generators;
namespace ShaiRandom.Distributions
{
/// <summary>
/// Abstract class which impl... |
using Humanizer;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.IO;
using System.Threading.Tasks;
namespace FluentlyHttpClient.Sample.Api.Controllers
{
public class UploadInput
{
[Required]
public strin... |
#if INCLUDE_PHYSICS
using System.Collections.Generic;
using UnityEngine;
namespace Unity.RuntimeSceneSerialization.Internal
{
static class ColliderPropertyBagDefinition
{
[RuntimeInitializeOnLoadMethod]
#if UNITY_EDITOR
[UnityEditor.InitializeOnLoadMethod]
#endif
static void Initialize... |
using UnityEngine;
public class Fire : MonoBehaviour {
public CircleCollider2D fireCollider;
public GameObject explosion;
public Vector2 offset;
public Vector2 offset2;
public Animator animator;
// Update is called once per frame
void Update () {
if(Input.GetMouseButtonDown(0)) {
fireCollider.offset = ... |
// Copyright (c) MASA Stack All rights reserved.
// Licensed under the Apache License. See LICENSE.txt in the project root for license information.
namespace Masa.Auth.ApiGateways.Caller.Services.Permissions;
public class PermissionService : ServiceBase
{
protected override string BaseUrl { get; set; }
inte... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using EcsRx.Collections.Entity;
using EcsRx.Entities;
using EcsRx.Events.Collections;
using EcsRx.Extensions;
using EcsRx.Groups.Observable;
using NSubstitute;
using Xunit;
namespace EcsRx.Te... |
using System;
using System.Threading.Tasks;
using E247.Fun;
using E247.Fun.Exceptions;
using Ploeh.AutoFixture.Xunit2;
using Xunit;
using Xunit.Extensions;
using static E247.Fun.Fun;
namespace E247.Fun.UnitTest
{
public class MaybeTests
{
[Fact]
public void EmptyMaybeHasNoValue()
{
... |
using LogJoint.Analytics.Correlation.Solver;
namespace LogJoint.Analytics.Correlation
{
public static class SolverFactory
{
public static ISolver Create()
{
#if WIN
return new Analytics.Correlation.EmbeddedSolver.EmbeddedSolver();
#elif MONOMAC
return new Analytics.Correlation.ExternalSolver.CmdLine... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
namespace Engine.Saving.XMLSaver
{
abstract class XmlValue<T> : ValueWriterEntry, XmlValueReader
{
protected const String NAME_ENTRY = "name";
protected String elementName;
... |
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using Blumind.Controls;
using Blumind.Controls.MapViews;
using Blumind.Core;
using Blumind.Model.Documents;
using Blumind.Model.MindMaps;
namespace Blumind.Core.Exports
{
abstract class ImageExportEngine : ... |
namespace ValidCode
{
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
[ApiController]
public class OrdersController : Controller
{
private readonly Db db;
public OrdersController(Db db)
{
this.db = db;
... |
using System;
using System.Collections.Generic;
using System.Text;
namespace SingleAgenda.Application.Base
{
public interface IBusiness
{
}
}
|
using GalaxyZooTouchTable.Lib;
using GalaxyZooTouchTable.Services;
using GalaxyZooTouchTable.ViewModels;
using System;
namespace GalaxyZooTouchTable.Models
{
public class ClassificationPanelViewModelFactory : IClassificationPanelViewModelFactory
{
private ILocalDBService _localDBService;
priva... |
namespace Domain.Security
{
using Domain.Customers.ValueObjects;
using Domain.Security.ValueObjects;
public abstract class User : IUser
{
public ExternalUserId ExternalUserId { get; set; }
public CustomerId CustomerId { get; set; }
}
}
|
using Application.Common.Mappings.Interfaces;
using Application.Identity.Entities;
using AutoMapper;
namespace Application.CQRS.Roles.Models
{
public class RoleDto : IMapFrom<ApplicationRole>
{
#region Properties
public string RoleId { get; set; }
public string Name { get; set; }
... |
@model WebMarket.Models.Cliente
<br />
<div class="register">
<form method="post" action="@Url.Action("RegistrarCliente","Home")">
<div class="register-top-grid">
<h3>INFORMACION PERSONAL</h3>
<div>
<span>Nombre<label>*</label></span>
<input type="tex... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace DesignPatterns.ObjectPool{
public class Client : MonoBehaviour
{
void Update()
{
if (Input.GetKeyDown(KeyCode.G))
{
GameObject walker = ObjectPool.Instance.PullObject("Walker");
walker.transform.Translate(Vector3.forw... |
@using Data.Models;
@model FeedModel
@{
ViewBag.Title = Model.Title;
}
@Model.Html
|
namespace BusinessLayer
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using BusinessLayer.CrossCuttingConcerns;
using Contract;
using SimpleInjector;
// This class allows registering all types that are define... |
using Surging.Core.Domain.Entities;
namespace Surging.Debug.Test1.Domain.Demo.Entities
{
public class DemoEntity : Entity<string>
{
public string Filed1 { get; set; }
}
}
|
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace SujaySarma.Sdk.WikipediaApi.SerializationObjects
{
/// <summary>
/// Result data for <see cref="WikipediaApi.PageReferenceClient.GetPageReferences(string, decimal)"/>.
/// </summary>
public class PageReferencesList
{... |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Reflection;
using System.Threading;
namespace Localizy
{
public class NulloLocalizationDataProvider : ILocalizationDataProvider
{
public string GetText(StringToken key, CultureInfo culture = null)
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityTK.Audio;
namespace OsFPS
{
/// <summary>
/// Weapon sound implementation that handles fire, reload and dry fire sounds.
/// </summary>
[RequireComponent(typeof(Weapon))]
public class WeaponSound : MonoBehavi... |
using Microsoft.Bot.Connector;
using PomodoroBot.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PomodoroBot.Command
{
public class CommandTool
{
public PomodoroTimerRepository Repository { get; private set; }
... |
using System;
namespace DFC.Content.Pkg.Netcore.Data.Contracts
{
public interface IApiCacheService
{
int Count { get; }
void AddOrUpdate(Uri id, object obj);
void Clear();
void StartCache();
void StopCache();
void Remove(Uri id);
TModel? Retrieve<T... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DaxDrill.DaxHelpers
{
public class DaxFilter
{
public string TableName;
public string ColumnName; // also represents hierarchy name
public string Value;
... |
#region PDFsharp Charting - A .NET charting library based on PDFsharp
//
// Authors:
// Niklas Schneider
//
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
//
// http://www.pdfsharp.com
// http://sourceforge.net/projects/pdfsharp
//
// Permission is hereby granted, free of charge, to any perso... |
using RacecourseSystem;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using Syste... |
using System.Collections.Generic;
namespace AirView.Persistence.Core.EventSourcing.Internal
{
internal class EventStream<TEvent> :
IEventStream<TEvent>
{
private readonly IEventReader<TEvent> _reader;
private readonly int _sliceSize;
private readonly ICollection<TEvent> _uncomm... |
// Copyright (c) .NET Foundation. 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.IO;
using Xunit;
namespace Microsoft.Extensions.Configuration.Xml.Test
{
public class XmlConfigurationExtensionsTest
... |
namespace OrderingService.Core.Enums
{
public enum ManipulationOperator
{
Plus,
Subtract
}
} |
namespace LoggerApplication.Models.Appenders
{
using LoggerApplication.Models.Contracts;
using LoggerApplication.Models.Enums;
public abstract class Appender : IAppender
{
private const string dateFormat = "M/dd/yyyy h:mm::ss tt";
public Appender()
{
this.MessagesA... |
using Blauhaus.Domain.Abstractions.Entities;
namespace Blauhaus.Domain.Abstractions.Extensions
{
public static class EntityExtensions
{
public static bool IsActive(this IEntity entity)
{
return entity.EntityState == EntityState.Active;
}
public static bool IsArchive... |
using System;
using System.Collections.Generic;
using System.Text;
#if !NETFX_CORE
using NUnit.Framework;
using TestClass = NUnit.Framework.TestFixtureAttribute;
using TestMethod = NUnit.Framework.TestAttribute;
#else
using Microsoft.VisualStudio.TestTools.UnitTesting;
#endif
using Mina.Core.Buffer;
namespace Mina.Fi... |
//
// OutgoingWebResponseContext.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2008 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal i... |
using System.IO;
namespace DotnetCleanup
{
internal static class PathUtility
{
private static readonly char SeparatorChar =
Path.DirectorySeparatorChar;
public static string GetCleanPath(string path)
{
return path?.Replace('\\', SeparatorChar)
... |
namespace _02.Data.Models
{
public class Invoice : BaseEntity
{
public Invoice(int id, int? parentId)
: base(id, parentId)
{
}
public string Description { get; set; }
public int PriceCents { get; set; }
}
}
|
using DA;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Rotativa;
using System;
using System.Linq;
using System.Web.Mvc;
using Web.Controllers;
namespace Web.UnitTest
{
[TestClass]
public class PagosTest
{
[TestMethod]
public void TablaPagosTest()
{
DAEntiti... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ActorTest : MonoBehaviour {
EquipsLoader equips_loader;
TechsLoader techs_loader;
SlottableAnatomy anatomy;
ActionComparator validator;
UnitActor actor_a;
UnitActor actor_b;
int test_count = 0;
int pass_count... |
namespace StupidNetworking
{
public class ClientRPCAttribute : RPCAttribute
{
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Threading;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Content;
using Engine;
namespace Para... |
using Sapphire.Host.Core.Interfaces;
namespace Sapphire.Host.Core.Base
{
/// <inheritdoc />
public abstract class DeviceBase : IDevice {
/// <inheritdoc />
public abstract void Init();
/// <inheritdoc />
public abstract void Connect(int timeOut = 3000);
/// <inheritdoc />
public abstract void Disconnect... |
using SteamBot;
using SteamBot.MarketBot.CS.Bot;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Utility {
public class Tasking {
static NewMarketLogger taskLog = new NewMarketLogger("Tasking");
p... |
using TransitionShellApp.Models;
using TransitionShellApp.ViewModels;
using TransitionShellApp.Views.Collectionview;
using Xamarin.Forms;
namespace TransitionShellApp.Views.Listview
{
public partial class ListViewFromPage : ContentPage
{
readonly ListViewFromPageViewModel _viewModel;
public L... |
using Grasshopper.Kernel;
using NAudio.Wave;
using System;
using Rhino.Geometry;
using System.Linq;
namespace Siren
{
public class ReadSampleComponent : GH_Component
{
/// <summary>
/// Initializes a new instance of the ReadSampleComponent class.
/// </summary>
public ReadSampleComponent()
: base("ReadS... |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace Aprimo.Epi.Extensions.API.Orders
{
public partial class Order
{
public Order()
{
this.DeliveredFiles = new List<string>();
this.Links = new OrderLinks();
}
[JsonProperty("_... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace PersonaApi2.Models
{
public class Maestro
{
public Persona Persona { get; set; }
public int IdPersona { get; set; }
public string Folio { get; set; }
public string Asignatura { get; s... |
using FPP.Scripts.Enums;
using UnityEngine.Events;
using System.Collections.Generic;
namespace FPP.Scripts.Patterns
{
public class RaceEventBus
{
private static readonly IDictionary<RaceEventType, UnityEvent> Events =
new Dictionary<RaceEventType, UnityEvent>();
public static void... |
using Rnx.Abstractions.Tasks;
namespace Rnx.Tasks.Reliak.Minification
{
public class JsMinTaskDescriptor : TaskDescriptorBase<JsMinTask>
{ }
public class JsMinTask : MinificationTask
{
protected override string Minify(string input)
{
var jsMinifier = new WebMarkupMin.Core.... |
namespace MeTube.App.Controllers
{
using SimpleMvc.Framework.Attributes.Methods;
using SimpleMvc.Framework.Controllers;
using SimpleMvc.Framework.Interfaces;
using MeTube.App.Models.BindingModels;
using MeTube.Models;
using Services.DataProvider.Contracts;
using Services.DataProvider;
... |
namespace Maze
{
public partial class Level
{
public static class Side
{
public const uint North = 1;
public const uint East = 2;
public const uint South = 4;
public const uint West = 8;
};
public readonly Vector2 CellCenter = new(-64, 64);
public Vector2 CellToWorld( int x, int y )
{
re... |
using ActiveDevelop.MvvmBaseLib.Mvvm;
using System;
using System.Collections.ObjectModel;
using System.Reflection;
using Xamarin.Forms;
namespace XamFormExp.ViewModel
{
public class MainListViewModel : MvvmViewModelBase
{
private ObservableCollection<ImageListItem> myImageListItems;
private s... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Management.Automation;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace PowerShellTools.Common
{
[DebuggerDisplay("{Name}, Module {ModuleName}")]
... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using UnityEngine;
namespace Microsoft.MixedReality.WebRTC.Unity
{
/// <summary>
/// Abstract base component for a custom video source delivering raw video frames
/// directly to the WebRTC implementation.
/// </... |
using System;
using System.Linq;
using System.Linq.Expressions;
using DevExpress.ExpressApp.Model;
using Xpand.Persistent.Base.General.Controllers;
using Xpand.Persistent.Base.Logic.Model;
using Xpand.Utils.Helpers;
namespace Xpand.ExpressApp.Logic.Security {
public class PopulateExecutionContextsController:Popul... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace SecureXWebApp.Models
{
public class Account
{
[Required]
[Display(Name = "Account Number")]
public int Id { get; set; }
[Requ... |
namespace Tensorflow.Framework.Models
{
public class ScopedTFGraph : Graph
{
public ScopedTFGraph() : base()
{
}
~ScopedTFGraph()
{
base.Dispose();
}
}
}
|
using Xamarin.Forms;
namespace XForms.Controls
{
public class NumberEntry : Entry
{
}
}
|
namespace Adaptive.ReactiveTrader.Client.UI.Connectivity
{
public sealed partial class ConnectivityStatusView
{
public ConnectivityStatusView()
{
InitializeComponent();
}
}
}
|
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Bit.Utils.Models.Identity
{
[ComplexType]
public class UserRoleDto
{
public int Id { get; set; }
[Required(ErrorMessage = "User Domain Name is required")]
public string? User... |
using MongoDB.Bson;
using Plus.Core.Tests.Domain;
using Plus.Domain.Repositories;
namespace Plus.Core.Tests.Repositories
{
public interface IArticleRepository : IRepository<Article, ObjectId>
{
}
} |
using System;
public class ModConfiguration : SerializedRawObject {
public enum AuthorizationLevel {
NOBODY, SUBSCRIBERS, ANYONE
}
[Serialized]
public AuthorizationLevel authPostAlerts = AuthorizationLevel.SUBSCRIBERS;
[Serialized]
public AuthorizationLevel authSpawnGuests = AuthorizationLevel.SUBSCRIB... |
/*********************************************
作者:曹旭升
QQ:279060597
访问博客了解详细介绍及更多内容:
http://blog.shengxunwei.com
**********************************************/
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Common.Configu... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WorkloadViewer.ViewModel
{
public class SortColMessage
{
public string ColumnName { get; set; }
public ListSortDirection Direction { get; s... |
using System.Text.Json.Serialization;
namespace Deribit_Scalper_Trainer.DeribitModels
{
public abstract class BaseReceiveModel<T>
{
[JsonPropertyName("jsonrpc")]
public string JsonRPC { get; set; }
[JsonPropertyName("id")]
public int Id { get; set; }
[JsonPropertyName... |
using UnityEditor;
using UnityEngine;
namespace Lasm.UAlive
{
public static class Images
{
public static Texture2D ualive_logo;
public static Texture2D flow_icon_16;
public static Texture2D flow_icon_32;
public static Texture2D return_icon_16;
public static Texture2D re... |
using System.IO;
using Core.Security;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.FileMangement
{
[TestClass]
public class WhenISaveAString : FileManagerBase
{
[TestMethod]
public void It_should_be_able_to_operate_on_the_data_before_saving()
{
TestFileManager.Save((... |
using UnityEngine;
using System.Collections;
public class Pickup : MonoBehaviour {
public int id;
// 1: Pistol
// 2: Shotgun
// 3: PlasmaCannon
public float ascendHeigt;
public float descendHeight;
private bool ascend = false;
private bool descend = true;
void Start () {
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System;
public class Detected : ScoreManager {
public Text detectedText;
//UI text for detected ratio
void Update () {
detectedText.text = (Math.Round((FeaturesDetected/FeaturesPresented), 3) * 100)... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace ElfLib
{
public enum SymbolVisibility : byte
{
Default,
Internal,
Hidden,
Protected,
}
public class Symbol
{
internal Pointer internalName;
public string... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DestroySelf : MonoBehaviour
{
public void SelfDestruct() {
Destroy(gameObject);
}
public void SelfDestructAfter(float timer)
{
Destroy(gameObject, timer);
}
}
|
using System;
using System.Collections.Generic;
using System.Text;
namespace GiftCardLogParser
{
public class MoneyOwedToStore
{
public string Store;
public double AmountOwed;
}
}
|
using Core;
using Core.Service;
using Microsoft.EntityFrameworkCore;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Tests
{
[TestClass()]
public class LocalServic... |
using System.Collections.Generic;
using System.IO;
using WodiLib.Ini;
using WodiLib.Test.Tools;
namespace WodiLib.Test.IO
{
public static class EditorIniDataTestItemGenerator
{
#region CreateEditorIniData
/** ========================================
* EditorIniオブジェクト作成
... |
namespace Decent.Minecraft.Client.Blocks
{
public class UnknownBlock : IBlock
{
}
}
|
using System.Linq;
using UnityEditor;
using UnityEditor.Localization;
using UnityEngine.Localization.Tables;
public class ChangeKeyGeneratorExample
{
public void ChangeKeyGenerator()
{
var stringTableCollection = LocalizationEditorSettings.GetStringTableCollection("My Game Text");
// Determine... |
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
namespace SoundDevices.IO.WindowsCoreAudio.Internal
{
[Guid("0BD7A1BE-7A1A-44DB-8397-CC5392387B5E")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
internal interface IMMDeviceCollection
{
... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Globalization
{
// Gregorian Calendars use Era Info
internal sealed class EraInfo
{
internal int era; // The value of the era.
i... |
using Game;
using Game.Events;
using LisergyServer.Commands;
using System;
using System.Net;
using System.Net.Sockets;
using Telepathy;
namespace LisergyServer.Core
{
public abstract class SocketServer
{
private bool _running = false;
protected readonly Server _socketServer;
private M... |
using System;
namespace Jock.Net.TcpBson
{
/// <summary>
/// EventArgs for TcpBsonClient connection denied
/// </summary>
public class TcpBsonConnectionDeniedEventArgs : EventArgs
{
internal TcpBsonConnectionDeniedEventArgs(TcpBsonClient client)
{
this.Client = client;
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Baseline;
using Baseline.Dates;
using Marten.Events.Daemon;
namespace Marten.Events.TestSupport
{
public partial class ProjectionScenario: IEventOperations
{
private readonly Queue<ScenarioStep> _step... |
using System;
namespace BirthdayCelebrations
{
interface IBirthable
{
public DateTime Birthdate { get;}
}
}
|
using System;
using System.Collections.Generic;
using wb.Layers;
using wb.Slices;
namespace wb.App.Commands
{
public class Find : ICommand
{
public Find(Args args)
{
Args = args;
}
public Args Args { get; }
/// <summary>
/// Finds all versions of r... |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using NuGet.Services.Validation;
namespace Validation.PackageSigning.ValidateCertificate
{
/// <summary>
/// The ways an <see cref="EndCertifi... |
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using NuScien.Users;
using Trivial.Net;
using Trivial.Reflection;
using Trivial.Security;
namespace NuScien.Security
{
/// <summary>
/// T... |
namespace DebtPlanner
{
/// <summary>
/// Class DebtAmortizationItem.
/// </summary>
public class DebtAmortizationItem
{
/// <summary>
/// The debt information
/// </summary>
public readonly DebtInfo debtInfo;
/// <summary>
/// Gets the payment.
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
namespace Paragraph.Data.Models
{
// Add profile data for application users by adding properties to the ParagraphUser class
public class ParagraphUser : IdentityUser
{
... |
using System;
using System.IO;
using System.Net;
namespace ScrapingFromOurOwn
{
public static class Scraper
{
public static String Scrape(String url) {
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.Method = "GET";
WebResponse response = null;
try {
response = reque... |
using CS253ShortestPath.Services;
namespace CS253ShortestPath.Droid
{
public class CsServiceDroid : CsService
{
private CsServiceDroid()
{
if (_instance != null) return;
_instance = this;
_instance.Location = new LocationManagerDroid();
}
p... |
namespace DigitallyImported.Controls
{
using System;
using System.Diagnostics;
/// <summary>
/// Static utility methods
/// </summary>
public class Utilities
{
private Utilities() { }
/// <summary>
/// Splits a string up based on capital letters, i.e. ThisString becomes This String
/// </summary>... |
using SIM.Instances;
using SIM.Tool.Base.Plugins;
using SIM.Tool.Windows.MainWindowComponents.Buttons;
namespace SIM.Tool.Windows.MainWindowComponents
{
public static class MainWindowButtonFactory
{
public static IMainWindowButton GetBrowseButton(Instance instance)
{
if (instance != null && instance... |
namespace tyr.Core.Extensions
{
public static class CharExtensions
{
public static bool IsDecimalSign(this char source)
{
return source == '+' || source == '-';
}
}
} |
using ComparableGenerator;
namespace GenerateSourceForNotNullable
{
[Comparable]
internal partial class CompositeObject
{
[CompareBy]
public CompositeChildValue Value { get; set; }
}
public class CompositeChildValue : ClassObject { }
} |
using System.Collections.Generic;
using UnityEngine;
public class ObjectPool<T> where T : MonoBehaviour
{
#region Variable
private readonly List<T> _pools = new List<T>(); // Pool
private int _count; // Count of created object
private readonly T _prefab; // To instantiate... |
using System;
using System.IO;
using System.Linq;
namespace Day04
{
public class Program
{
public static void Main(string[] args)
{
var input = File.ReadAllLines("input.txt").Select(RoomParser.GetRoomDescription).ToArray();
PartOne(input);
PartTwo(input);
... |
using System.Collections.Generic;
namespace Cosmos.Business.Extensions.Holiday.Globalization
{
/// <summary>
/// Translation resource map
/// </summary>
public class TranslationResourceMap
{
/*
* 根据日期查询
* 01-01 公历 01-01
* chinese-01-01 农历 01-... |
namespace MediatR.Behaviors.ResponseCaching
{
public interface IRequestCacheKeyProvider<in TRequest>
{
string GetCacheKey(TRequest request);
}
} |
using ReactiveUI;
namespace SpaceHaven_Save_Editor.Data
{
public class DataProp : ReactiveObject
{
private int _value;
public DataProp()
{
Name = "def";
}
public int Id { get; set; }
public string Name { get; set; }
public int Value
... |
using Gtk;
using System;
using System.Collections;
using System.Linq;
using guidemo;
using MySql.Data.MySqlClient;
using Org.BouncyCastle.Math.EC;
namespace gui_demo
{
class SharpApp : Window
{
ListStore store;
Statusbar statusbar;
public SharpApp() : base("上海交大学生管理系统")
{
... |
using System;
namespace cs_learner {
class ExceptionLearner {
public string name = "exception";
public void print() {
try{
int div = 0;
int a = 10 / div;
} catch (Exception e) {
Console.WriteLine(e);
} finally {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.