content stringlengths 23 1.05M |
|---|
using Autodesk.AutoCAD.Runtime;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace bore_hole1
{
public class Class1
{
[CommandMethod("BlockModel")]
public void BHL()
{
var BHL = new ClassLibrary2.For... |
using System.Collections;
using System.Collections.Generic;
using Bhaptics.Tact.Unity;
using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(SimpleHapticClip), true)]
public class SimpleHapticClipEditor : FileHapticClipEditor
{
public override void OnInspectorGUI()
{
serializedObject.Update();
... |
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using RtspClientSharp.Rtsp;
namespace RtspClientSharp.UnitTests.Rtsp
{
[TestClass]
public class RtspRequestMessageFactoryTests
{
private static readonly Uri FakeUri = new Uri("rtsp://127.0.0.1");
private const string UserAge... |
using OrderServiceProject.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace OrderServiceProject.Views
{
public partial class EditPro... |
using System.IO;
namespace ObsWeather
{
public static class General
{
public static string StartupPath => ObsController.Core.General.StartupPath;
public static string SettingPath => ObsController.Core.General.SettingPath;
public static string WeatherIconsPath => Path.Combine(StartupPat... |
namespace Facepunch.Minigolf.Entities;
/// <summary>
/// Bounds of a hole.
/// </summary>
[Library( "minigolf_hole_bounds" )]
[HammerEntity, Solid, AutoApplyMaterial( "materials/editor/minigolf_wall/minigolf_hole_bounds.vmat" )]
[VisGroup( VisGroup.Trigger )]
[Title( "Hole Bounds" )]
public partial class HoleBounds :... |
using Newtonsoft.Json;
namespace Binance_Spot_API.Model.Market
{
[JsonConverter(typeof(Utils.Converter.Candlestick))]
public class Candlestick
{
public long OpenTime { get; set; }
public double Open { get; set; }
public double High { get; set; }
public double Low ... |
using System.Collections.Generic;
using System.IO;
using System.IO.IsolatedStorage;
using System.Linq;
using Correspondence.Mementos;
namespace Correspondence.IsolatedStorage
{
public class MessageStore
{
private const string MessageTableFileName = "MessageTable.bin";
private List<MessageRecord... |
using System;
using System.Globalization;
using System.IO;
using NUnit.Framework;
using ValveResourceFormat;
namespace Tests
{
public class ShaderTest
{
[Test]
public void ParseShaders()
{
var path = Path.Combine(TestContext.CurrentContext.TestDirectory, "Files", "Shaders");... |
namespace GoNorth.Data.Karta.Marker
{
/// <summary>
/// Marker Geometry Type
/// </summary>
public enum MarkerGeometryType
{
/// <summary>
/// Polygon Geometry
/// </summary>
Polygon,
/// <summary>
/// Circle Geometry
/// </sum... |
using System.Linq;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
#endif
// Apply the default category of "Issues" to all of the tests in this assembly
// We use this as a catch-all for tests which haven't been individually categorized
#if... |
namespace ShadyNagy.Blazor.JavaScriptUtilities.Services
{
public interface ISyncBlazorFile
{
}
}
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class StarLinker : MonoBehaviour
{
[SerializeField]
private GameObject _linkPrefab;
private Tracer _tracer;
private GameObject _activeLink;
void Awake()
{
_tracer = GetComponent<Tracer>();
}
... |
using System;
#if WISEJ
using Wisej.Web;
#else
using System.Windows.Forms;
#endif
using MasterDetailWithModel.ViewModels;
using MvvmFx.CaliburnMicro;
namespace MasterDetailWithModel.Views
{
public partial class StudentEditView : UserControl, IHaveDataContext
{
public StudentEditView()
{
... |
// Copyright (c) 2009-2010 Frank Laub
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of condit... |
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using PNS4OneS.KeyStorage;
namespace PNS4OneS
{
public static class AuthHandler
{
public static async Task Auth(HttpRequest request, HttpResponse response)
{
string serverKey = request.Query["server_k... |
using UnityEngine;
using etf.santorini.km150096d.utils;
namespace etf.santorini.km150096d.model.gameobject
{
public class Roof : MonoBehaviour
{
public static void GenerateRoof(int x, int y, Board board, int height)
{
GameObject gameObject = Instantiate(board.roofPrefab) as GameOb... |
namespace ErlSharp.Expressions
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ErlSharp.Language;
public class MultiFunExpression : IExpression
{
private IList<FunExpression> expressions;
public MultiFunExpression(I... |
using Gravity.Abstraction.Contracts;
using Gravity.Abstraction.Tests.Base;
using Gravity.Abstraction.WebDriver;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using OpenQA.Selenium.Remote;
using System.Collections.Generic;
using System.Diagnostics;
u... |
using System.Web.Compilation;
using System.Web;
namespace Texxtoor.BaseLibrary.Globalization.Provider
{
/// <summary>
/// Provider factory that instantiates the individual provider. The provider
/// passes a 'classname' which is the ResourceSet id or how a resource is identified.
/// For global resourc... |
// ----------------------------------------------------------------------------
// The MIT License
// LeopotamGroupLibrary https://github.com/Leopotam/LeopotamGroupLibraryUnity
// Copyright (c) 2012-2019 Leopotam <leopotam@gmail.com>
// ----------------------------------------------------------------------------
using... |
using System.Collections.Generic;
namespace UdpKit {
public class UdpStreamPool {
readonly UdpSocket socket;
readonly Stack<UdpStream> pool = new Stack<UdpStream>();
internal UdpStreamPool (UdpSocket s) {
socket = s;
}
internal void Release (UdpStream stream) {
UdpAssert.Assert(str... |
using ABP.WebApi.Dtos;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
using System.ComponentModel.DataAnnotations;
namespace ASF.Application.DTO
{
/// <summary>
/// 批量删除日志请求
/// </summary>
public class LoggerDeleteRequestDto : IDto
{
/// <summary>
/// 开始时间
... |
using Foundation.Cms.ViewModels;
using Foundation.Commerce.Models.Blocks;
using System.Collections.Generic;
namespace Foundation.Commerce.ViewModels
{
public class CategoryBlockViewModel : BlockViewModel<CategoryBlock>
{
public CategoryBlockViewModel(CategoryBlock currentBlock) : base(currentBlock)
... |
// Copyright (c) Mahmoud Shaheen, 2021. All rights reserved.
// Licensed under the Apache 2.0 license.
// See the LICENSE.txt file in the project root for full license information.
using System.Diagnostics.Contracts;
using X.Paymob.CashIn.Models.Callback;
using X.Paymob.CashIn.Models.Orders;
using X.Paymob.CashIn.Mode... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections.Generic;
namespace JIT.HardwareIntrinsics.Arm
{
public static partial class Program
{
static Program()
{
T... |
using System;
using System.Linq;
using Android.Content;
using Android.Views;
using AndroidX.Core.Content;
using AndroidX.RecyclerView.Widget;
namespace AuthenticatorPro.IconList
{
internal sealed class IconAdapter : RecyclerView.Adapter
{
private readonly Context _context;
private readonly Ico... |
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, co... |
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.Runtime.Serialization;
namespace LogicMonitor.Api.Netscans
{
/// <summary>
/// A Netscan Policy Schedule Type
/// </summary>
[DataContract(Name = "type")]
[JsonConverter(typeof(StringEnumConverter))]
public enum NetscanScheduleType
{
///... |
using System.Collections.Generic;
namespace ESFA.DC.ILR.FundingService.FM35.FundingOutput.Model.Output
{
public class FM35Global
{
public int UKPRN { get; set; }
public string CurFundYr { get; set; }
public string LARSVersion { get; set; }
public string OrgVersion { get; set... |
using Microsoft.EntityFrameworkCore;
namespace la_rive_admin.Models
{
public class UserContext
{
public DbSet<User> Users { get; set; }
}
}
|
using System;
using UnityEngine;
using UnityEngine.Networking;
using Assets.Scripts.Utils;
namespace Assets.Scripts.Networking {
class SyncPosition : NetworkBehaviour {
[SerializeField]
Transform _transform;
[SerializeField]
float lerpRate = 15f;
[SyncVar]
Vector3... |
namespace DotNetCommons.CheckDigits
{
/// <summary>
/// Check digit calculations.
/// </summary>
public interface ICheckDigits
{
/// <summary>
/// Calculate a new check digit from a given input string.
/// </summary>
char Calculate(string input);
/// <summar... |
using System.Net;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace GenHTTP.Testing.Acceptance.Engine
{
[TestClass]
public sealed class RoutingTests
{
/// <summary>
/// As a client, I expect the server to return 404 for non-existing files.
/// </summary>... |
using System;
namespace Gridsum.DataflowEx.Databases
{
/// <summary>
/// Represents a mapping from C# property to a DB column
/// </summary>
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true, Inherited = true)]
public class DBColumnMapping : Attribute
{
/// <su... |
using System.Collections.Immutable;
using UnicornHack.Primitives;
namespace UnicornHack.Systems.Abilities
{
public class SubAttackStats
{
public AbilitySuccessCondition SuccessCondition { get; set; }
public int HitProbability { get; set; }
public int Accuracy { get; set; }
publ... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using RPG.Core;
namespace RPG.Characters
{
public abstract class AbilityConfig : ScriptableObject
{
//safer than public, only children who inherit from specialAbility can acces this
protected AbilityBehaviour behav... |
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace mvc_webapp.Models
{
public class Product
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public... |
using System.Runtime.InteropServices;
using Vanara.InteropServices;
namespace Vanara.PInvoke
{
public static partial class IpHlpApi
{
/// <summary>
/// <para>
/// The <c>TCP_TABLE_CLASS</c> enumeration defines the set of values used to indicate the type of table returned by calls to GetExtendedTcpTable.
///... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zaggoware.BugTracker.Common;
namespace Zaggoware.BugTracker.Services
{
using Zaggoware.BugTracker.Data;
using Zaggoware.BugTracker.Services.DataMappers;
public class OrganizationServi... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Laba4_ApproximateCalculationOfIntegrals
{
public class AntiderivativeFunction : IFunction
{
public string Print()
{
return "f(x) = sin(x) * cos(x) + e^x";
}
public double Value(double x)
... |
using System;
using System.Collections.Generic;
using System.Text;
using IL2CPU.API.Attribs;
namespace Cosmos.CPU.x86 {
static public class Boot {
// OLD CODE pasted.. .still cleaning/porting
// See note in Global - these are a "hack" for now so
// we dont force static init of Global, an... |
using IdentityModel.Client;
using Newtonsoft.Json.Linq;
using System;
using System.Net;
using System.Net.Http;
using System.Windows;
using Thinktecture.Samples;
namespace WpfClient
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
... |
using SharpReact.Core.MockUI.Routing.Test.Navigation;
using SharpReact.Core.MockUI.Test.Props;
using SharpReact.Core.Properties;
namespace SharpReact.Core.MockUI.Routing.Test.Components
{
public class Header : SharpComponent<Props.Header, object>
{
public override ISharpProp Render()
{
... |
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using AutoFixture.NUnit3;
using FluentAssertions;
using Moq;
using NUnit.Framework;
using SFA.DAS.EmployerDemand.Application.CourseDemand.Queries.GetAggregatedCourseDemandList;
using SFA.DAS.EmployerDemand.Domain.Interfaces;
using ... |
using UnityEngine;
using System.Collections;
using System.IO.Ports; // for RS-232C
using NS_MyRs232cUtil;
public class rs232cSendCS : MonoBehaviour {
void Test_rs232c() {
SerialPort sp;
bool res = MyRs232cUtil.Open ("COM3", out sp);
if (res == false) {
return; // fail
}
string msg = "hello";
sp.W... |
namespace Disqus.NET.Requests
{
public enum DisqusExportFormat
{
Xml
}
}
|
using UnityEngine;
using System.Collections;
public class CollectableBehaviour : Timeoutable
{
[SerializeField]
private float _rotationSpeed = 0.5f;
[SerializeField]
ReceivedCollectable _receivableType = ReceivedCollectable.Random;
[SerializeField]
private Transform _model;
private Collectable _collectable;
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MyCustomAction.Model;
namespace MyCustomAction.Service
{
/// <summary>
/// 客户行为服务.
/// </summary>
public interface ICustomActionService
{
/// <summary>
/// ... |
using PipServices3.Commons.Data;
using System;
using System.Runtime.Serialization;
namespace PipServices.Blobs.Client.Version1
{
[DataContract]
public class BlobInfoV1 : IStringIdentifiable
{
/* Identification */
[DataMember(Name = "id")]
public string Id { get; set; }
[Da... |
using Data.Models;
using SharedLibraryCore.Database.Models;
using SharedLibraryCore.Dtos;
using SharedLibraryCore.QueryHelper;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace SharedLibraryCore.Interfaces
{
public interface IMetaService
{
/// <summary>
//... |
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.VisualStudio.Utilities;
namespace ShowSelection
{
[Export(typeof(IWpfTextViewCreationListener))]
[ContentType("text")]
[TextViewRole(PredefinedTextViewRoles.Document)]
internal sealed class AdornmentFact... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WallpaperTool.Server.Models;
using WallpaperTool.Wallpapers;
namespace WallpaperTool.ViewModels
{
public static class WallpaperManger
{
static ExeWallpaper exeWallPaper = new ExeWa... |
using System;
using System.Collections.Generic;
using R5T.T0113;
using Instances = R5T.T0113.X001.Instances;
namespace System
{
public static class ISolutionOperatorExtensions
{
public static IEnumerable<string> DetermineMissingProjectReferences(this ISolutionOperator _,
IEnumerable<str... |
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Interactivity;
using System.Windows.Threading;
using SciChart.Examples.Demo.Common;
using SciChart.Examples.Demo.ViewModels;
namespace SciChart.Examples.Demo.Behaviors
{
public class TilesHarmonistBehavior : Behavior<WrapPanelC... |
using AutoMapper;
using FintecDemo.API.Entities;
using FintecDemo.API.Models.Stock;
namespace FintecDemo.API.Configuration.Mappings
{
public class StockProfile : Profile
{
public StockProfile()
{
CreateMap<Stock, StockDetailsModel>();
CreateMap<Stock, StockListModel>();
... |
using System;
public class ValueType1
{
static int Main ()
{
Blah a = new Blah ("abc", 1);
Blah b = new Blah ("ab" + 'c', 1);
long start, end;
start = Environment.TickCount;
start = Environment.TickCount;
for (int i = 0; i < 1000000; i++)
a.GetHashCode ();
end = Environment.TickCount;
Console.Wri... |
namespace Zergatul.Network.Http.Frames
{
public enum ErrorCode : uint
{
NO_ERROR = 0x00,
PROTOCOL_ERROR = 0x01,
INTERNAL_ERROR = 0x02,
FLOW_CONTROL_ERROR = 0x03,
SETTINGS_TIMEOUT = 0x04,
STREAM_CLOSED = 0x05,
FRAME_SIZE_ERROR = 0x06,
REFUSED_STREA... |
using StudentForum.BL.Abstractions;
using StudentForum.BL.Helpers.Settings;
using StudentForum.BL.Models.Authorization;
using StudentForum.DAL.Abstractions;
using StudentForum.Data.Models;
using System;
using System.Threading.Tasks;
namespace StudentForum.BL.Services
{
public class UserService : BaseService, IUse... |
namespace UIC.Framework.Interfaces.Project
{
public interface DatapointTaskMetadata
{
double ExpectedMaximum { get; }
double ExpectedMinimum { get; }
double WarningThreshold { get; }
double ErrorThreshold { get; }
bool IslnverseThresholdEvaluation { get; }
string ... |
using System;
using NUnit.Framework;
using Roadkill.Core.Configuration;
using Roadkill.Core.Converters;
using Roadkill.Core.Database;
using Roadkill.Tests.Unit.StubsAndMocks;
namespace Roadkill.Tests.Unit.Text
{
[TestFixture]
[Category("Unit")]
public class MarkdownParserTests
{
private PluginFacto... |
using System;
using System.Collections;
using System.Collections.Generic;
namespace Iviz.Msgs
{
public struct RentEnumerator<T> : IEnumerator<T>
{
readonly T[] a;
readonly int length;
int currentIndex;
public RentEnumerator(T[] a, int length)
{
this.a = a;
... |
using Homework4.Enums;
using Homework4.Interfaces;
using System;
namespace Homework4.Models
{
class Animal{
private readonly Guid _id = Guid.NewGuid();
public string Name { get; set; }
public Taxonomic TaxonomikClass { get; set; }
public string Variety { get; set; }
... |
//#define DISABLE_CACHE
using OpenTK.Graphics.OpenGL;
namespace example.Renderer
{
public class StencilStateComponent
{
public StencilOp StencilFailOp = StencilOp.Keep;
public StencilOp ZFailOp = StencilOp.Keep;
public StencilOp ZPassOp = Stencil... |
using System;
using System.Threading.Tasks;
using kiwiho.EFcore.MultiTenant.Core.Interface;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
namespace kiwiho.EFcore.MultiTenant.Core
{
public class TenantInfoMiddleware
{
private readonly RequestDelegate _next;
pu... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cardville.Dungeon;
namespace Cardville.Engine
{
public abstract class GameObject
{
public readonly GameObjectType Type = GameObjectType.Empty;
public Guid UUID { get; }
... |
// Presentation Karaoke Player
// File: Clock.cs
//
// Copyright 2014, Arlo Belshee. All rights reserved. See LICENSE.txt for usage.
using System;
using System.Threading.Tasks;
using JetBrains.Annotations;
namespace Player.Model
{
public abstract class Clock
{
[NotNull]
public RecurringEvent Schedule(TimeSpan ... |
<form asp-controller="Home" asp-action="LoginPage">
用户名:<input type="text" name="userName"/>
<br/>
密码:<input type="password" name="pwd"/>
<input type="submit" value="登陆"/>
</form>
@User.Claims.Where(g => g.Type.Equals("FamilyName")).FirstOrDefault().Value; |
using System.Collections.ObjectModel;
using QSF.Examples.ListPickerControl.Models;
using QSF.Services.Toast;
using QSF.ViewModels;
using Xamarin.Forms;
namespace QSF.Examples.ListPickerControl.CustomizationExample
{
public class CustomizationViewModel : ExampleViewModel
{
private const int defaultColo... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CineTeatro.Common.Entities
{
public class Venta : ICloneable
{
public int VentaId { get; set; }
public DateTime FechaDeVenta { get; set; }
public Fo... |
using System;
using System.Collections.Generic;
namespace Weikio.ApiFramework.Plugins.Harvest
{
public class HarvestOptions
{
public string HarvestCompany { get; set; } = "";
public string HarvestUser { get; set; } = "";
public string HarvestUserPassword { get; set; } = "";
pub... |
namespace Witter.Data.Models.Enums
{
public enum NotificationType
{
Like = 0,
Follow = 1,
}
}
|
namespace TheDmi.CouchDesignDocuments
{
using System;
using Newtonsoft.Json;
public class IndexSpec
{
private readonly Lazy<string> _indexFunction;
internal IndexSpec(Lazy<string> indexFunction)
{
_indexFunction = indexFunction;
}
[JsonProperty(Pro... |
// ---------------------------------------------------------------------------
// <copyright file="MockCloudProvider.cs" company="Microsoft">
// Copyright(c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// </copyright>
// ------------------------------------------------------------------... |
namespace MessageMedia.Messages.Models
{
public enum MessageStatus
{
enroute,
submitted,
delivered,
expired,
rejected,
undeliverable,
queued,
processed,
cancelled,
scheduled,
failed
}
} |
using System;
// Problem 4. Multiplication Sign
// • Write a program that shows the sign (+, - or 0) of the product of three real numbers, without calculating it.
// ◦ Use a sequence of if operators.
public class MultiplicationSign
{
public static void Main()
{
while (true)
{
C... |
using System;
using Steamworks;
using UnityEngine;
public class SteamAchievementsController : MonoBehaviour
{
public void InitSteamAchievementStatus()
{
if (!SteamManager.Initialized)
{
Debug.Log("Steam连接失败!");
return;
}
SteamUserStats.GetStat("stat_JiShaGuaiWu", out this.m_JiShaGuaiWu);
SteamUserSt... |
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace Rivers
{
public class UserDataComparer : IEqualityComparer<IDictionary<object, object>>
{
public bool Equals(IDictionary<object, object> x, IDictionary<object, object> y)
{
if (x.Count != y.Cou... |
namespace SFA.DAS.NotificationService.Application.DataEntities
{
public class MessageData
{
public string MessageType { get; set; }
public string MessageId { get; set; }
public MessageContent Content { get; set; }
}
} |
using System;
using System.Collections.Generic;
using System.Text;
namespace Line.Messaging
{
public static class BoxComponentExtensions
{
public static BoxComponent AddContents(this BoxComponent self, IFlexComponent component)
{
self.Contents.Add(component);
return sel... |
using Lidgren.Network;
using P = AkroNetworking.Packets;
using System;
using System.Linq;
using System.Reflection;
namespace AkroNetworking {
public static class MessageReceiverFactory {
public static NoOpMessageReceiver CreateNoOpMessageReceiver() {
return new NoOpMessageReceiver();
}... |
using DCSoft.Common;
using System;
using System.Runtime.InteropServices;
namespace DCSoft.Writer.Dom
{
/// <summary>
/// 访问文档对象模型时的标记
/// </summary>
[Flags]
[Guid("A41F518E-269C-4E18-B444-CFA723A00998")]
[ComVisible(true)]
[DCPublishAPI]
[DocumentComment]
public enum DomAccessFlags
{
/// <summa... |
//Original Scripts by IIColour (IIColour_Spectrum)
using UnityEngine;
using System.Collections;
public class InteractBed : MonoBehaviour
{
public static string[] english;
public static string[] spanish;
public string engDialog;
public string spanDialog;
private bool hasSwitched = false;
pri... |
namespace RolePlayingGame.Engine.Items
{
public abstract class ArmorPiece : IDistinguishable
{
protected ArmorPiece(string name, int armor)
{
Name = name;
Armor = armor;
}
public int Armor { get; }
public string Name { get; }
}
} |
using Microsoft.EntityFrameworkCore;
using WebApp;
namespace WithContextFactory
{
public class MyController
{
#region Construct
private readonly IDbContextFactory<ApplicationDbContext> _contextFactory;
public MyController(IDbContextFactory<ApplicationDbContext> contextFactory)
... |
// 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.Collections.Generic;
using Microsoft.AspNetCore.Http;
namespace Microsoft.AspNetCore.Routing.Matching
{
public readonly struct Policy... |
using System.Linq;
using SIL.Machine.DataStructures;
using SIL.ObjectModel;
namespace SIL.Machine.Annotations
{
internal class ShapeRangeFactory : RangeFactory<ShapeNode>
{
public ShapeRangeFactory()
: base(true, AnonymousComparer.Create<ShapeNode>(Compare), FreezableEqualityComparer<ShapeNode>.Default)
{
... |
using System;
namespace Cysharp.Diagnostics
{
public class ProcessErrorException : Exception
{
public int ExitCode { get; }
public string[] ErrorOutput { get; }
public ProcessErrorException(int exitCode, string[] errorOutput)
: base("Process returns error, ExitCode:" + exi... |
using FluentNHibernate.Mapping;
using Shoko.Models.Server;
using Shoko.Server.Models;
namespace Shoko.Server.Mappings
{
public class AnimeEpisode_UserMap : ClassMap<SVR_AnimeEpisode_User>
{
public AnimeEpisode_UserMap()
{
Table("AnimeEpisode_User");
Not.LazyLoad();
... |
using System;
using System.IO;
using XSLibrary.ThreadSafety.Executors;
namespace XSLibrary.Utility
{
public class FileLogger : Logger
{
string FilePath { get; set; }
SafeExecutor m_lock = new SingleThreadExecutor();
public FileLogger(string filePath)
{
FilePath = ... |
using System;
using Cirrus.Business;
namespace Cirrus.Module.CatchEmAll.StartUp
{
/// <summary>
/// Todo's
/// - Zusätzliche Filter auf Queries
/// - Triggers für zB Email Versand bei gewissem Preis (oder default?)
/// </summary>
public class Program
{
public static void Main(strin... |
using System;
using UnityEngine;
namespace UnityObjectSerializer.Patchers
{
/// <summary>
/// A PatcherFactory of dependent of Unity.
/// </summary>
public class UnityPatcherFactory : IPatcherFactory
{
public bool IsSerializableType(Type type)
{
if (Match<Vec... |
using Momentary.Common;
using Npgsql;
namespace Momentary.PostgreSql
{
/// <summary>
/// <inheritdoc cref="ISession"/>
/// </summary>
internal class Session : ISession
{
public void Execute(string connectionString, string command)
{
using (NpgsqlConnection connection = n... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Aphysoft.Share
{
public enum DatabaseExceptionType2
{
None,
LoginFailed,
Timeout
}
public class DatabaseExceptionEventArgs2 : EventArgs
{
#... |
namespace BullOak.Repositories.EventStore.Metadata
{
using System;
using System.Collections.Generic;
using System.Linq;
internal class EventMetadata_V2 : IHoldMetadata
{
public string EventTypeFQN { get; set; }
public int MetadataVersion { get; set; }
public Dictionary<stri... |
using System;
namespace Document_Program_Practice
{
public class ExpertDocumentProgram : ProDocumentProgram
{
public override void Save()
{
Console.WriteLine("Document Saved in pdf format.");
}
public override void DoAllOperations()
{
... |
using System.Collections.Generic;
using System.Threading.Tasks;
using FluentAssertions;
using NUnit.Framework;
using TwitterClone.Application.Common.Exceptions;
using TwitterClone.Application.Conversations.Commands.CreateConversation;
using TwitterClone.Domain.Entities;
using static TwitterClone.Application.Integration... |
// ReSharper disable CheckNamespace
namespace GameLovers.Statechart
{
/// <summary>
/// The state factory is used to setup the <see cref="IStateMachine"/> representation of states and transitions
/// There is always a state factory being created per region in the <see cref="IStateMachine"/>.
/// A state factory is... |
namespace ServiceBusDepot.ConsoleHost.Features.Application.Initialisation
{
using System;
using MediatR;
public class QueryHandler: PageRequestHandler<Request>
{
public QueryHandler(IMediator mediator) : base("Initialising....", mediator)
{
}
public override IPageReq... |
using System;
using System.Threading;
namespace UserInterfaceTemplate.Infrastructure.Dialogs
{
public class ProgressHandling
{
public ProgressHandling()
{
ProgressReport = new Progress<double>();
CancellationTokenSource = new CancellationTokenSource();
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.