content stringlengths 23 1.05M |
|---|
@using ChameleonStore.Web
@using ChameleonStore.Web.Models
@using ChameleonStore.Models
@using ChameleonStore.Web.Pages.Orders
@using ChameleonStore.Common.Orders.ViewModels
@using ChameleonStore.Web.Pages.Products
@using ChameleonStore.Common.Products.ViewModels
@using ChameleonStore.Common.Areas.Admin.Users.ViewMode... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AltBuild.LinkedPath.Parser
{
/// <summary>
/// 属性のキーと値を複数保持(カンマ区切り= ',')
/// 例1: class='text-success fw-bold',disabled
/// </summary>
public class PathAttributeCollection : List<PathAttribute>
{
... |
using EFT;
using FilesChecker;
using Haru.Modules.Patches;
using Haru.Modules.Providers;
namespace Haru.Modules
{
/// <summary>
/// Main application
/// </summary>
public class Program
{
/// <summary>
/// Entry point
/// </summary>
public static void Main()
{... |
using Microsoft.AspNetCore.Http;
using Newtonsoft.Json;
using System;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
namespace SYN.ApiCore.Middleware
{
public class ExceptionHandleMiddleware
{
private readonly RequestDelegate _next;
private readonly ILogger<ExceptionHandleMi... |
using System;
using System.Collections.Generic;
using System.Text;
using MO.Common.Content;
using MO.Common.Lang;
namespace MObj.Windows.Schedule {
public class FScheduleJobs : FObjects<FScheduleJob> {
public FScheduleJobs() {
}
}
}
|
using System;
namespace EDSDKWrapper.Framework.Enums
{
public enum LiveViewDepthOfFieldPreview : uint
{
OFF = 0x00000000,
ON = 0x00000001,
}
}
|
/*
https://www.codewars.com/kata/57a1d5ef7cb1f3db590002af/csharp
7 kyu
Fibonacci
Create function fib that returns n'th element of Fibonacci sequence (classic programming task).
*/
using System;
namespace CodeWars
{
public class Fibonacci
{
public static int fib(int n)
{
return n... |
namespace Be.Vlaanderen.Basisregisters.Shaperon
{
using GeoAPI.Geometries;
using GeoAPI.IO;
using NetTopologySuite.IO;
public class WellKnownBinaryWriter
{
private readonly WKBWriter _wkbWriter;
public WellKnownBinaryWriter() =>
_wkbWriter = new WKBWriter(ByteOrder.Litt... |
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ------------------------------------------------------------
namespace Microsoft.Azure.Cosmos.Serialization.HybridRow.Schemas
{
using Newtonsoft.Json;
using Newtonsoft.Json.Convert... |
using System.Data.Odbc;
using System.Collections.Generic;
using System.Data;
namespace Aquiris.Tools.XLS
{
public class XLSParser : XLSConnector{
public string Sheet {set{m_sheet = "["+value + "$]";}}
private string m_sheet;
public XLSParser(string p_datasource, string p_sheet = null):base(p_datasource){
S... |
public static class Lighting
{
public static void RecalculateNaturalLight(ChunkData chunk)
{
for(int i =0; i<VoxelData.chunkWidth; i++)
{
for(int j =0; j<VoxelData.chunkWidth; j++)
{
NaturalLight(chunk, i, j, VoxelData.chunkHeight - 1);
... |
namespace XenForms.Core.Reflection
{
public interface IXenCodeCompiler
{
bool FromFiles(int names, string[] fileNames, out byte[] data);
bool FromFile(string fileName, out byte[] data);
bool FromSource(string code, out byte[] data);
}
} |
using System;
using Http.chunk_ext_name;
using Http.chunk_ext_val;
using JetBrains.Annotations;
using Txt.ABNF;
using Txt.Core;
namespace Http.chunk_ext
{
public sealed class ChunkExtensionLexerFactory : RuleLexerFactory<ChunkExtension>
{
static ChunkExtensionLexerFactory()
{
Defau... |
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Localization;
namespace Schematic.Core.Mvc
{
[Route("{culture}/portal")]
[Authorize]
public class PortalController : Controller
{
[HttpGet]
public IActionResult Portal()
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using Correspondence.Memory;
using System.Threading.Tasks;
namespace Correspondence.UnitTest
{
public class AsyncTest
{
protected AsyncMemoryStorageStrategy _memory;
private Community ... |
using System.Collections.Generic;
using UnityEngine;
using TMPro;
namespace DSC.UI
{
public class DSC_UI_TextGroupController : UIGroupController<TextMeshProUGUI>
{
#region Data
protected struct TextData
{
public Color m_hDefaultColor;
}
#endregion
... |
using EventUtils;
using System.Collections;
using UnityEngine;
namespace Interaction
{
public class InteractableObject : MonoBehaviour
{
public UnityBoolEvent onFocused;
public UnityInteractorEvent onInteract;
private bool isFocused = false;
public virtual void SetFocus(bool value)
{
if (isFocused =... |
using UnityEngine;
using UnityEngine.Events;
using System.Collections;
using System.Collections.Generic;
using uStableObject.Data;
namespace uStableObject
{
public abstract class GameEventListenerBase<T> : MonoBehaviour, IGameEventListener<T>
{
[SerializeField] protected Bo... |
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace Sample.Application
{
public interface IDistributedWeatherService
{
Task<IEnumerable<WeatherForecast>> FetchAsync(CancellationToken cancellationToken);
}
} |
using GrazeDocs.LivePreview;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.FileProviders;
namespace GrazeDocs
{
public partial class Startup
{
public void ConfigureServices(IServiceCollection... |
namespace VaporStore.DataProcessor.DTOs
{
using System;
using System.ComponentModel.DataAnnotations;
public class PurchaseDto
{
[Required]
public string Title { get; set; }
[Required]
public string Type { get; set; }
[RegularExpression(@"^(?<productKey>[A-Z\d... |
namespace Hoard.HW
{
internal class DeviceInfo
{
public int VendorId { get; }
public int ProductId { get; }
public string Name { get; }
public DeviceInfo(int vendorId, int productId, string name)
{
VendorId = vendorId;
ProductId = productId;
... |
using System;
namespace WPWebSockets.Server
{
interface IConnectionDetails
{
Int64 connectionID { get; set; }
ConnectionType ConnectionType { get; }
}
}
|
namespace Virgin.MSGraph.Configuration
{
public class MicrosoftGraphConfiguration
{
public string TenantId { get; set; }
public string AppId { get; set; }
public string ClientSecret { get; set; }
public string B2cExtensionAppClientId { get; set; }
public string SignInTyp... |
using System.Numerics;
using InfectedRose.Builder.Behaviors.External;
using InfectedRose.Database;
namespace InfectedRose.Builder.Behaviors
{
[Behavior(Template.AirMovement)]
public class AirMovementBehaviorBase : BehaviorBase
{
[Parameter("goto_target")]
public bool GotoTarget { get; set; ... |
using GenHTTP.Engine;
using GenHTTP.Modules.Controllers;
using GenHTTP.Modules.IO;
using GenHTTP.Modules.Layouting;
using GenHTTP.Modules.Practices;
using GenHTTP.Modules.Websites;
using Project.Controllers;
using Project.Themes;
namespace Project
{
public static class Program
{
pub... |
using CoCo.Analyser.Classifications.CSharp;
using CoCo.Test.Common;
using NUnit.Framework;
namespace CoCo.Test.CSharpIdentifiers.Declarations
{
internal class Locals : CSharpIdentifierTests
{
[Test]
public void LocalTest()
{
GetContext(@"Declarations\Locals\SimpleVariable.c... |
using AdoNetCore.AseClient.Interface;
namespace AdoNetCore.AseClient
{
/// <summary>
/// Manages a pool of identical connections.
/// </summary>
public sealed class AseConnectionPool
{
private readonly IConnectionPool _pool;
internal AseConnectionPool(IConnectionPool pool)
... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace FlexWork.Models
{
public class WorkspaceFacility
{
[ForeignKey("WorkspaceId")]
public virtual Workspace Workspace { get; set; }
public Guid WorkspaceId { get... |
using Net.FreeORM.Framework.Base;
using System;
using Net.FreeORM.Test_Odbc.Source.DL;
namespace Net.FreeORM.Test_Odbc.Source.BO
{
public class RejectedOrders : BaseBO
{
private string _OBJID;
public string OBJID
{
set { _OBJID = value; OnPropertyChanged("OBJID"); }
get { return _OBJID; }
}
private ... |
/*------------------------------------------------------------------------------
<auto-generated>
This code was generated from a template.
Manual changes to this file may cause unexpected behavior in your application.
Manual changes to this file will be overwritten if the code is regenerated.
</auto-gen... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace AssemblyDefender.Common.Cryptography
{
/// <summary>
/// Crypto stream support only one operation at a time. Read or Write but not both. Strong encryption level.
/// </summary>
public class StrongCrypt... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ArrowPointer : MonoBehaviour
{
public Transform[] arrows = new Transform[4];
[HideInInspector]
public Trainer trainer;
[HideInInspector]
public int row, col;
public void Start()
{
trainer =... |
using System;
using System.Collections.Generic;
using System.Reflection;
using CodeCampServer.Core;
using CodeCampServer.Core.Common;
using CodeCampServer.DependencyResolution;
using CodeCampServer.Infrastructure.NHibernate;
using CodeCampServer.Infrastructure.NHibernate.DataAccess;
using CodeCampServer.UnitTes... |
@page
@model FytSoa.Web.Pages.FytAdmin.Cms.ArticleTopModel
@{
ViewData["Title"] = "文章点击排行";
Layout = AdminLayout.Pjax(HttpContext);
}
<div id="container">
<div class="list-wall">
<div class="layui-form list-search">
<div class="layui-inline">
<input class="layui-input" i... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Http;
namespace LegacyEnterpriseWebApp.Controllers
{
[RoutePrefix("api/reports")]
public class ReportsController : ApiController
{
[HttpPost]
... |
//-----------------------------------------------------------------------------
// Life.cs
//
// AddictionSoftware
//-----------------------------------------------------------------------------
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Gra... |
using System;
using Octo.Core.Cqrs;
using PushNotifications.Domain.AggregateRoots;
using PushNotifications.Domain.Commands;
using PushNotifications.Services;
namespace PushNotifications.Domain.CommandHandlers
{
public class SendPushNotificationCommandHandler : ICommandHandler<SendPushNotificationCommand>
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using Livet;
using Livet.Commands;
using Livet.Messaging;
using Livet.Messaging.IO;
using Livet.EventListeners;
using Livet.Messaging.Windows;
using ProgressiveTweet.Models... |
using System;
using FiveChecks.Applic.Common;
using LanguageExt;
using Microsoft.Toolkit.Uwp.Notifications;
namespace FiveChecks.Applic.ToastTemplates
{
public class ActionDismissToastContentInfo : Record<ActionDismissToastContentInfo>
{
public BindableString Greeting { get; }
public string Ti... |
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WebApiCore.Extensions
{
public static class IResultExtensionsExtensions
{
public static IResult ContentStatus(this IResultExtensions resultExten... |
using System;
namespace TtxFromTS
{
/// <summary>
/// Exit codes used by the application.
/// </summary>
public enum ExitCodes
{
Success = 0,
InvalidArgs = 1,
InvalidService = 2,
InvalidPID = 3,
TSError = 4,
Unspecified = 5,
InvalidServiceID =... |
namespace HomeAPI.Backend.Options
{
public class HueOptions
{
public string BridgeIP { get; set; }
public int BridgePort { get; set; }
public string UserKey { get; set; }
public HueOptions()
{
}
}
} |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ReactiveApp;
using ReactiveApp.App;
using Splat;
using TestApp.Services;
using TestApp.ViewModels;
namespace TestApp
{
public class TestApp : ReactiveApplication
{
... |
using FCommerce.Core.Connection;
namespace FCommerce.Core.Command
{
public interface ICommand
{
int? Execute(IConnection connection);
}
}
|
using UnityEngine;
using System.Collections;
public class CameraRotate : MonoBehaviour
{
public GameObject rotationpoint;
void Start()
{
Time.timeScale = 1;
}
// Update is called once per frame
void Update()
{
gameObject.transform.Rotate(new Vector3(0, -1f, 0) * 10.0... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace AdventOfCode.Y2019.Day25;
[ProblemName("Cryostasis")]
class Solution : Solver {
public object PartOne(string input) {
var securityRoom = "== Security Checkpoint ==";
var icm = new In... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class MiniMapManager : MonoBehaviour
{
public GameObject seedPrefab;
public Canvas canvas;
public Image mapImage;
public Transform koroksParent;
public Transform mapSeedParent;
public... |
using GateMQ.Db.Converters;
namespace GateMQ.Db.Drivers.SqlServer
{
public class SqlServerGateDbConverter : AdoNetGateDbConverter
{
public override string GenerateLastInsertIdQuery()
{
return "SELECT SCOPE_IDENTITY();";
}
public override string GeneratePagingClaus... |
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Avalonia.Controls.Utils;
using Xunit;
namespace Avalonia.Controls.UnitTests
{
public class GridLayoutTests
{
private const double Inf = double.PositiveInfinity;
[Theory]
[InlineData("100,... |
using System;
using System.Collections.Generic;
using System.Text;
namespace monstruos.hl.compiler.shared.Language
{
public abstract class MetaObject
{
public enum MetaType
{
Interface,
Class,
Property,
Method,
Field,
Stru... |
namespace SFM.Importer.Configuration
{
public class AppSettings
{
public string Token { get; internal set; }
public string Folder { get; set; }
public string UploadAPI { get; set; }
public int UploadThreads { get; set; }
}
} |
using Dapper;
using FxConsoleApp.Utils;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
namespace FxConsoleApp.ORM
{
public class DapperSqlHelper
{
public static List<T> GetList<T>(string query, object param = null)
{
using (var ... |
#region Using directives
using System;
using System.Configuration;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using Syste... |
using System;
using System.Collections.Immutable;
namespace ExRam.Gremlinq.Core
{
public interface IGremlinQueryAdmin
{
IGremlinQuery<object> ConfigureSteps(Func<IImmutableList<Step>, IImmutableList<Step>> configurator);
TTargetQuery ChangeQueryType<TTargetQuery>() where TTargetQuery : IGremli... |
using Microsoft.EntityFrameworkCore;
using MultiDataSourceGenericRepository.Interfaces;
using MultiDataSourceGenericRepository.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
namespace MultiDataSourceGenericRepository.Repositories
{
public class Repository... |
using System;
using WeatherAPI.NET.Entities;
namespace Sample.Extending
{
public class CustomAstronomyResponseEntity : AstronomyResponseEntity
{
private readonly string _message = "I'm a message from a custom entity!";
/// <summary>
/// Does something custom.
/// </summary>
... |
using UnityEngine;
namespace Asteroids
{
public interface IWeaponBehaviour
{
WeaponType Type { get; }
void DoMovement(MovementController movementController);
}
} |
using Aquality.Selenium.Core.Localization;
using Aquality.Selenium.Core.Logging;
using System;
using System.Diagnostics;
using System.Linq;
namespace Aquality.WinAppDriver.Utilities
{
/// <summary>
/// Implementation of <see cref="IProcessManager"/>
/// </summary>
public class ProcessManager : IProces... |
using System;
using SolidWorks.Interop.sldworks;
using System.Threading.Tasks;
namespace AngelSix.SolidDna
{
/// <summary>
/// Represents a SolidWorks Taskpane
/// </summary>
public class Taskpane : SolidDnaObject<ITaskpaneView>
{
#region Constructor
/// <summary>
/// Defa... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class MenuScript : MonoBehaviour
{
public Text txtFin;
public Text txtRecord;
private void Start()
{
Cursor.lockState = CursorLockMode.None;
Cur... |
using System.ComponentModel.DataAnnotations;
using System;
namespace WavelengthTheGame.Entities
{
public class PlayerEntity : BaseEntity, IPlayerEntity
{
[Required]
public string Name {get;set;}
public bool IsOwner {get;set;}
public bool IsController {get;set;}
public Dat... |
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HttpListener.Model.HycCharge.Response
{
/// <summary>
/// 用户执行结果
/// </summary>
/// <typepara... |
using System;
using KillrVideo.Models.Shared;
namespace KillrVideo.Models.YouTube
{
/// <summary>
/// The request ViewModel for adding a new YouTube video.
/// </summary>
[Serializable]
public class AddYouTubeVideoViewModel : IAddVideoViewModel
{
/// <summary>
/// The name/titl... |
using System;
using MonoTouch.UIKit;
using BigTed;
using MonoTouch.Foundation;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
namespace XamarinStore
{
public class ShippingAddressViewController : UITableViewController
{
User user;
public event EventHandler ShippingComplete;
public... |
using System.Linq;
using Microsoft.EntityFrameworkCore;
using tcs_service.Models;
using tcs_service.Repos.Base;
using tcs_service.Repos.Interfaces;
namespace tcs_service.Repos {
///<summary>Repo for the SessionReason Table</summary>
public class SessionReasonRepo : BaseRepo<SessionReason>, ISessionReasonRepo {... |
/////////////////////////////////////////////////
//
//PEIMEN Frame System || GeneralObjMove branch
//
//creat by PEIKnifer[.CN]
//
//Frame for SimpleObjMove
//
//Create On 2019 4 4
//
//Last Update in 2019 4 4 16:17:09
//
/////////////////////////////////////////////////
using PEIKTS;
using System.Collections;
using... |
/*
http://www.cgsoso.com/forum-211-1.html
CG搜搜 Unity3d 每日Unity3d插件免费更新 更有VIP资源!
CGSOSO 主打游戏开发,影视设计等CG资源素材。
插件如若商用,请务必官网购买!
daily assets update for try.
U should buy the asset from home store if u use it in your project!
*/
using System.Collections;
namespace UnityEngine.UI.Tweens
{
internal interface ITweenValu... |
using System.Reflection;
using Lime.Protocol.Serialization;
namespace Lime.Messaging
{
public static class DocumentTypeResolverExtensions
{
/// <summary>
/// Registers all documents in the Lime.Messaging assembly.
/// </summary>
/// <param name="documentTypeResolver"></param>
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyScript : MonoBehaviour
{
Rigidbody[] rbs;
Animator anim;
ShooterController shooter;
public bool aimed;
void Start()
{
shooter = FindObjectOfType<ShooterController>();
anim = GetCo... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Shouldly;
using Skyward.Popcorn;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace PopcornNetStandardTest
{
[TestClass]
public class MultipleProjectionTests
{
#region Test Helper Classes
... |
namespace LaunchPad2.Controls
{
public enum CueMoveMode
{
Normal,
LeftGrip,
RightGrip,
LeadIn
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using FileExplorer.WPF.BaseControls;
namespace FileExplorer.WPF.UserControls
{
public class BreadcrumbExpander : DropDownList
{
... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using CitizenFX.Core;
using CitizenFX.Core.Native;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Hostin... |
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using SalesOrderMVP.Commands;
namespace SalesOrderMVP.Controllers
{
public class LayoutController : IDisposable
{
private readonly Action<FrameworkElement> ChangeView;
private readonly FrameworkElement GridView;
pri... |
using System.Collections.Generic;
namespace MedicalExaminer.API.Models.v1.Locations
{
/// <inheritdoc />
/// <summary>
/// Response object for a list of locations.
/// </summary>
public class GetLocationsResponse : ResponseBase
{
/// <summary>
/// List of Locations.
... |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
using NUnit.Framework;
namespace ServiceStack.Text.Tests
{
public class Module
{
public Module()
{
Ext... |
// ***********************************************************************
// Assembly : XLabs.Forms.Droid
// Author : XLabs Team
// Created : 12-27-2015
//
// Last Modified By : XLabs Team
// Last Modified On : 01-04-2016
// *****************************************************************... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataTables.AspNetCore.Mvc
{
/// <summary>
/// Represents a global grid button
/// </summary>
class GridButtonOptions
{
/// <summary>
/// Define which button... |
using System.Threading.Tasks;
using PuppeteerExtraSharp.Plugins.ExtraStealth.Evasions;
using Xunit;
namespace Extra.Tests.StealthPluginTests.EvasionsTests
{
public class ChromeSciTest : BrowserDefault
{
[Fact]
public async Task ShouldWork()
{
var plugin = new ChromeSci();
... |
namespace Microsoft.Research.SpeechWriter.Core.Data
{
/// <summary>
/// The type of the tile.
/// </summary>
public enum TileType
{
/// <summary>
/// A normal tile that by default is surrounded by spaces.
/// </summary>
Normal,
/// <summary>
/// A pr... |
using UnityEngine;
using UnityEditor;
public partial class PostFXStack
{
partial void ApplySceneViewState();
#if UNITY_EDITOR
partial void ApplySceneViewState()
{
if(camera.cameraType == CameraType.SceneView &&
!SceneView.currentDrawingSceneView.sceneViewState.showImageEffect... |
using NUnit.Framework;
namespace Blog.UI.Tests.Pages.PostPage
{
public static class PostPageAsserter
{
public static void AssertPostAdded(this PostPage page)
{
Assert.IsTrue(page.PostAdded.Displayed);
}
public static void AssertErrorMessage(this PostPage page, stri... |
using NUnit.Framework;
namespace Nest.Tests.Unit.QueryParsers.Queries
{
[TestFixture]
public class FilteredQueryTests : ParseQueryTestsBase
{
[Test]
public void Filtered_Deserializes()
{
var q = this.SerializeThenDeserialize(
f=>f.Filtered,
f=>f.Filtered(fq=>fq
.Filter(ff=>Filter1)
.Qu... |
[Equals]
public class WithoutGenericParameter :
GenericClass<GenericClassBaseClass>
{
public int Z { get; set; }
public static bool operator ==(WithoutGenericParameter left, WithoutGenericParameter right) => Operator.Weave();
public static bool operator !=(WithoutGenericParameter left, WithoutG... |
using System.Collections.Generic;
using Basic.Ast;
namespace Basic
{
public class AttributeInstance
{
private readonly object obj;
public AttributeInstance(ITypeDefinition type)
{
Parameters = new Dictionary<string, Expression>();
}
public AttributeInstanc... |
using System.Collections.Generic;
using UnityEngine;
// Manages every instatiated platform in the scene - used for:
// controlling platforms speed
// instantiating platforms at a given frequency
// destroying platforms
// Also manages the object pool for the the platforms and blockades
public class PlatformManager :... |
//-----------------------------------------------------------------------------
// FILE: Service.cs
// CONTRIBUTOR: Marcus Bowyer
// COPYRIGHT: Copyright (c) 2005-2022 by neonFORGE LLC. All rights reserved.
using System.Threading.Tasks;
using System.Net;
using System;
using System.Collections.Generic;
using Sys... |
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using NUnit.Framework;
using StreamRC.Gambling.Cards;
namespace Gambling.Tests {
/// <summary>
/// tests assumptions about card data
/// </summary>
[TestFixture]
public class CardTests {
IEnumerable<Tup... |
using LanchesMac.Models;
using System.Collections.Generic;
namespace LanchesMac.ViewModels
{
public class LancheListViewModel
{
public IEnumerable<Lanche> Lanches { get; set; }
public string CategoriaAtual { get; set; }
}
}
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using GameSpark.Plus;
namespace GameSpark
{
[System.Serializable]
public class CameraSystem : GameSparkModule
{
List<GameCam> cams;
private static CameraSystem manager;
public CameraSettingData cameraSe... |
using System;
using UnityEngine.SceneManagement;
using UnityEngine;
using UnityStandardAssets.CrossPlatformInput;
public class ViewpointChange : MonoBehaviour
{
[SerializeField] private GameObject _pivotCamera;
[SerializeField] private GameObject _frontCamera;
[SerializeField] private GameObject ... |
namespace Grunt.Models.HaloInfinite
{
public class BanResult
{
public object[] BansInEffect { get; set; }
}
}
|
using System.Xml;
namespace Platform.Xml.Serialization
{
/// <summary>
/// Abstract base class for classes that support serializing of objects.
/// </summary>
/// <remarks>
/// Serializers of this type also support seralizing objects to a simple text representation.
/// Only types are serialized with a ... |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.Globalization;
using Microsoft.WindowsAzure.Storage;
namespace Dashboard.Data
{
public static class StorageAccountValidator
{
... |
using Newtonsoft.Json;
namespace DGP.Genshin.DataModel.Character
{
/// <summary>
/// 角色统计值
/// </summary>
[SuppressMessage("", "SA1134")]
[SuppressMessage("", "SA1516")]
[SuppressMessage("", "SA1600")]
public class CharStatValues
{
[JsonProperty("1")] public string? Level1 { ge... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Backgammon
{
public struct OneStep
{
public int _from;
public int _to;
public OneStep(int from, int to)
{
_from = from;
... |
using System.Runtime.InteropServices;
namespace QuickJS.Native
{
[StructLayout(LayoutKind.Sequential)]
public struct JSClassID
{
private uint _value;
public static implicit operator JSClassID(uint value)
{
return new JSClassID {_value = value};
}
... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Security.AccessControl;
using System.Security.Principal;
namespace System.IO.Pipes
{
public sealed class PipeAccessRule : AccessRule
{
//
// Con... |
namespace LPG2.Runtime
{
/**
* Low-Level interface to act as recipient for error messages generated by a
* parser/compiler.
*/
public interface IMessageHandler
{
/**
* The following constants can be used as indexes to dereference
* values in the msgLocation and errorLocation arrays.
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.