content stringlengths 23 1.05M |
|---|
namespace Serenity.TypeScript.TsTypes
{
[Flags]
public enum NodeFlags
{
None = 0,
Let = 1 << 0, // Variable declaration
Const = 1 << 1, // Variable declaration
NestedNamespace = 1 << 2, // Namespace declaration
Synthesized = 1 << 3, // Node was synthesized during tra... |
using Visitor.Visitors;
namespace Visitor.Element
{
public class Kid : IElement
{
public Kid(string name)
{
this.KidName = name;
}
public string KidName { get; set; }
public void Accept(IVisitor visitor)
{
visitor.Visit(this);
}... |
using System;
using Vecto.Core.Entities;
namespace Vecto.Application.Sections
{
public static class SectionMapper
{
public static Section MapToSection(this SectionDTO dto)
{
return dto.SectionType switch
{
nameof(PackingSection) => new PackingSection() {... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class HurtPlayer : MonoBehaviour {
//damage the player wll receive
public int damageGiven;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
//When tw... |
/*
https://www.codewars.com/kata/56cafdabc8cfcc3ad4000a2b/csharp
7 kyu
Binary scORe
Objective
Given a number n we will define its scORe to be 0 | 1 | 2 | 3 | ... | n, where | is the bitwise OR operator.
Write a function that takes n and finds it's scORe.
n scORe n
0 0
1 1
49 63
1000000 1048575
Any feedback would b... |
using System;
using System.Linq.Expressions;
using System.Text;
using JetBrains.Annotations;
using PK.Sql.Generator.Extensions.Extensions.Assigment;
using PK.Sql.Generator.Extensions.Interfaces;
namespace PK.Sql.Generator.Extensions.Assigment
{
public class CustomColumnOperation : AssigmentOperationBase
{
[NotNull... |
// Copyright (c) Daniel Crenna & Contributors. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using ActiveAuth.Models;
using ActiveTenant;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.DependencyInject... |
using Unity.Collections;
using Unity.Entities;
[UpdateBefore(typeof(ShipSystem))]
public class FindTargetSystem : FixedEcbSystem
{
private EntityQuery _findTargetQuerry;
private EntityQuery _targetsQuery;
protected override void OnCreate()
{
base.OnCreate();
_findTargetQu... |
using System;
using System.Diagnostics.Contracts;
using System.Linq;
using ErrorProne.NET.Common;
using Microsoft.CodeAnalysis;
namespace ErrorProne.NET.Extensions
{
public static class TypeSymbolExtensions
{
public static string FullName(this ITypeSymbol symbol)
{
Contract.Require... |
using NUnit.Framework;
using RingCentral.Http;
using System.Linq;
namespace RingCentral.Test
{
[TestFixture]
class APIVersionsTest : BaseTest
{
[Test]
public void BaseURL()
{
var request = new Request("/restapi/");
var response = sdk.Platform.Get(request);
... |
using System.Threading.Tasks;
using Business.Abstract;
using Core.Utilities.Results;
using Entities.DTOs;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace WebApplication.Controllers
{
[Route("api/auth")]
[ApiController]
public class AuthController : Controller
{
priva... |
@section MetaTags{
<meta name="description" content="This example illustrates exporting Gantt project tasks to Excel and PDF formats.">
}
@section SampleHeading{<span class="sampleName">Gantt-Exporting Gantt-ASP.NET MVC-SYNCFUSION</span>}
@section ControlsSection{
@(Html.EJ().Gantt("GanttContainer")
... |
using System;
using System.Windows.Forms;
namespace CompilerGUI
{
public partial class MainForm : Form
{
private void quietMode_CheckedChanged(object sender, EventArgs e)
{
if (quietMode.Checked) ArgumentList.Add("-q");
else ArgumentList.Remove("-q");
}
... |
using LeakBlocker.Libraries.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace LeakBlocker.AdminView.Desktop.Themes
{
internal sealed partial class Generics
{
public Generics()
{
... |
using Mirror;
namespace WeaverSyncObjectsTest.SyncObjectsMoreThanMax
{
public class RecommendsReadonly : NetworkBehaviour
{
// NOT readonly. should show weaver recommendation.
public SyncList<int> list = new SyncList<int>();
}
}
|
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
namespace Microsoft.Azure.WebJobs.Hosting
{
/// <summary>
/// Interface defining a startup action for configuring application configuration
/// as part of ... |
using System;
using System.Collections.Generic;
using System.Linq;
using Medja.Controls;
namespace SecureTextEditor.Views
{
/// <summary>
/// Static class holding extension methods to simplify working with comboBox updates.
/// </summary>
internal static class ComboBoxExtensions
{
/// <summ... |
namespace EveEchoesPlanetaryProductionApi.Web.Common
{
public class PresentationConstants
{
public const string PriceFormat = "F2";
public const string IskSymbol = " Ƶ";
public const string UserKey = "68cc19c0-d20a-4d64-9858-f10338746e38userKey";
public const string IconsApiE... |
@{
ViewData["Title"] = "Confirm email";
Layout = "_WindowLayout";
}
<p>Thank you for confirming your email.</p>
|
/// SafeExchange
namespace SpaceOyster.SafeExchange.Core
{
using Microsoft.Extensions.Logging;
using Microsoft.Graph;
using System.Threading.Tasks;
public interface IGraphClientProvider
{
Task<GraphServiceClient> GetGraphClientAsync(TokenResult tokenResult, string[] scopes, ILogger logger)... |
using Gdpr.Api.Infrastructure.Data.Entities;
namespace Gdpr.Api.Infrastructure.Data.Models
{
public class AppUser : BaseEntity
{
public AppUser(string firstName, string lastName, string email, string passwordHash, string id, int role)
{
FirstName = firstName;
LastName = ... |
namespace DFC.App.SkillsHealthCheck.Services.SkillsCentral.Models
{
public class Image
{
public string Src { get; set; }
public string Title { get; set; }
public string Alttext { get; set; }
}
}
|
using System.Collections.Generic;
using System.Linq;
namespace Shared
{
public class FoundServices
{
public FoundServices(IEnumerable<Service> services)
{
Services = services.ToArray();
}
public Service[] Services { get; private set; }
}
public class Servi... |
using System;
using System.Collections.Generic;
using Moq;
using NUnit.Framework;
using SchoolSystem.Data.Models.CustomModels;
using SchoolSystem.MVP.Account.Models;
using SchoolSystem.MVP.Account.Presenters;
using SchoolSystem.MVP.Account.Views;
using SchoolSystem.Web.Services.Contracts;
namespace SchoolSystem.MVP.T... |
// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information
using Elastic.Elasticsearch.Xunit.XunitPlumbing;
using System.ComponentModel;
using Nest;
namespace Examples.Sear... |
using UnityEngine;
namespace Wowsome.TwoDee {
[ExecuteInEditMode]
public class WScaleFitCanvas : MonoBehaviour {
public Transform canvasObject;
public Transform rootObject;
void ReScale() {
if (null != canvasObject) {
rootObject.localScale = canvasObject.localScale;
}
}
v... |
// Instance generated by TankLibHelper.InstanceBuilder
using TankLib.STU.Types.Enums;
// ReSharper disable All
namespace TankLib.STU.Types {
[STUAttribute(0x600E3C59)]
public class STU_600E3C59 : STU_6243C374 {
[STUFieldAttribute(0xD655C99A, ReaderType = typeof(EmbeddedInstanceFieldReader))]
pu... |
using System;
using System.ComponentModel.DataAnnotations;
namespace JudgeMyTaste.Models
{
public class FavoriteBand
{
public int Id { get; set; }
[Display(Name="Band/Artist Name")]
public string Name { get; set; }
[Display(Name="Entered By")]
public string EnteredBy {... |
using WebApp.Models;
using Microsoft.AspNetCore.Components;
namespace WebApp.Components;
public class ProductModalComponent : ComponentBase
{
[Parameter]
public Product Product { get; set; }
protected override void OnParametersSet()
{
Product ??= new Product();
base.OnParametersSet(... |
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;
using System.IO.Ports;
using System.Threading;
namespace Console_to_Gui
{
public partial class Form1... |
using System.IO;
using System;
using System.Net;
using System.Collections.Specialized;
class Program
{
static void Main()
{
var parameters = new NameValueCollection {
{ "token", "APP_TOKEN" },
{ "user", "USER_KEY" },
{ "message", "hello world" }
};
u... |
/* EFrt - (C) 2021 Premysl Fara */
namespace EFrt.Core.Words
{
using EFrt.Core.Extensions;
/// <summary>
/// A word keeping a floating point value.
/// </summary>
public class FloatingPointConstantWord : AWordBase
{
/// <summary>
/// Constructor.
/// </summar... |
using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Threading;
namespace Navigation.Utils
{
public class NavigationManager : INavigationManager
{
#region Fields
private readonly Dispatcher _dispatcher;
private reado... |
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace TaskManagement.Repositories.TaskActivityData
{
public class TaskActivityRepository : BaseRepository<TaskActivityEntity>
{
/// <summary>
/// Initi... |
using System;
using System.Collections.Generic;
using GuardNet;
using Humanizer;
using Microsoft.Extensions.Options;
using Promitor.Agents.Core.Usability;
using Promitor.Agents.ResourceDiscovery.Configuration;
using Spectre.Console;
namespace Promitor.Agents.ResourceDiscovery.Usability
{
public class DiscoveryGro... |
//
// BSD 3-Clause License
//
// Copyright (c) 2020-201, Boia Alexandru
// 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 ab... |
using Syn.Speech.Linguist.Language.Grammar;
//REFACTORED
namespace Syn.Speech.Linguist.Flat
{
/// <summary>
/// Represents a non-emitting sentence hmm state
/// </summary>
public class GrammarState : SentenceHMMState
{
/**
/// Creates a GrammarState
*
/// @param nod... |
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 BLSystem
{
public partial class formAddressBookType : Form
{
PMModel contxt;
... |
using System;
using System.Web;
namespace Yahoo.Samples.CSharp
{
public partial class BBAuth4
{
// This is only required for the sample to compile
System.Web.SessionState.HttpSessionState Session = null;
System.Web.UI.HtmlControls.HtmlGenericControl Div1 = new System.Web.UI.HtmlControls.HtmlGenericCon... |
using System;
using System.Globalization;
using System.Xml;
using Iviz.Urdf;
namespace Iviz.Sdf
{
public sealed class Pose
{
public string? RelativeTo { get; }
public Vector3d Position { get; } = Vector3d.Zero;
public Vector3d Orientation { get; } = Vector3d.Zero;
Pose()
... |
using DragonSpark.Compose;
using DragonSpark.Model.Selection;
using System;
namespace DragonSpark.Model.Sequences.Collections.Groups;
public readonly struct GroupName : IEquatable<GroupName>
{
public static bool operator ==(GroupName left, GroupName right) => left.Equals(right);
public static bool operator !=(Grou... |
using System;
using System.Collections.Generic;
using System.Text;
namespace OutOfOrderCpuSimulator
{
class LoadStoreUnit : FunctionalUnit
{
private Dictionary<byte, int> OpCycleCost = new Dictionary<byte, int>()
{
{ (byte)0x0, 1 }, // LW
{ (byte)0x2, 1 }, // LB
... |
using Application.Interfaces.DBContextInterfaces;
using Domain.Entities;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Application.Repositories
{
public interface IOrderRepository : IBaseRepository<Order>
{
Task<List<O... |
namespace Com.Ericmas001.Windows.Validations
{
public class MinDigitValidationAttribute : DigitValidationAttribute
{
private readonly int m_Min;
public MinDigitValidationAttribute(int min)
{
m_Min = min;
}
public override string Validate(string value)
... |
using SkiaSharp;
using System.Collections.Generic;
/*
* Copyright 2017 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.... |
using System;
using System.Collections.Generic;
using System.Linq;
class Program
{
public static void Main() {
var sequence = new[] { "A", "B", "C", "D" };
foreach (var subset in Subsets(sequence.Length).Where(s => !IsContinuous(s))) {
Console.WriteLine(string.Join(" ", subset.Select(i ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace DuelBots
{
public class TypeSelectorWindow:Window
{
public TypeSelectorWindow(Rectangle MyRectangle, Rectangle Hover... |
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace ElmSampleApp
{
/// <summary>
/// Simple page that displays "Hello World". Navigate to localhost/foo to see the e... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Sitecore.Diagnostics;
namespace Rainbow.Storage.Yaml
{
public class YamlReader : IDisposable
{
private readonly StreamReader _reader;
private const int IndentSpaces = 2;
private const char IndentCharacter = ' ';
privat... |
using System;
using MediatR.AspNet;
namespace WizardWorld.Application.Requests.Houses.Queries.GetHouseById {
public class GetHouseByIdQuery : IQuery<HouseDto> {
public Guid Id { get; set; }
}
}
|
using MarketDataViewer.Controls.ViewModels;
using Moq;
using NUnit.Framework;
using Shouldly;
namespace MarketDataViewer.Controls.Tests.ViewModels
{
[TestFixture]
public class AddSymbolViewModelTests
{
private Mock<IStockSymbolService> _stockSymbolService;
[SetUp]
public void Setu... |
//
// LinkLabelTest.cs: MWF LinkLabel unit tests.
//
// Author:
// Everaldo Canuto (ecanuto@novell.com)
//
// (C) 2007 Novell, Inc. (http://www.novell.com)
//
using System;
using NUnit.Framework;
using System.Windows.Forms;
using System.Drawing;
namespace MonoTests.System.Windows.Forms
{
[TestFixtu... |
namespace BlueSun.Services.NFTCollections.Models
{
public class NFTCollectionQueryServiceModel
{
public int CurrentPage { get; init; }
public int CollectionsPerPage { get; init; }
public int TotalCollections { get; set; }
public IEnumerable<NFTCollectionServiceModel> Collect... |
//
// Copyright (C) 2012 DataStax Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applica... |
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using DinnerSpinner.Domain.Model;
namespace DinnerSpinner.Domain.Repositories
{
public interface ISpinnerRepository
{
Task<IList<Spinner>> GetAll();
Task<Spinner> GetById(Guid id);
Task Save(Spinner s);
... |
using ServiceMonitor.Common.Contracts;
namespace ServiceMonitor.Common
{
public class WatchResponse : IWatchResponse
{
public bool Successful { get; set; }
public string ShortMessage { get; set; }
public string FullMessage { get; set; }
}
}
|
using Microsoft.AspNetCore.Http;
using System.Collections.Generic;
namespace GovITHub.Auth.Common.Infrastructure.Localization
{
public class CsvImportDescription
{
public string Information { get; set; }
public ICollection<IFormFile> File { get; set; }
}
}
|
namespace Unicorn.Internal
{
internal enum uc_query_type
{
// From unicorn.h
/// <summary>
/// Dynamically query current hardware mode.
/// </summary>
UC_QUERY_MODE = 1,
/// <summary>
/// query pagesize of engine
/// </summary>
... |
using System;
namespace Barak.VersionPatcher.Engine
{
public enum VersionPart
{
Major,
Minor,
Build,
Revision
}
public class PatchInfo
{
public string ForceVersionControlType { get; set; }
public Uri SourceControlUrl { get; set; }
public str... |
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace JdaTools.Studio.Models
{
public class MocaDirectory : IMocaFile
{
public string Type { get; set; }
public string PathName { get; set; }
public string FileName { get; set; }
public strin... |
private sealed class OrInstruction.OrBoolean : OrInstruction // TypeDefIndex: 2657
{
// Methods
// RVA: 0x191ACC0 Offset: 0x191ADC1 VA: 0x191ACC0 Slot: 8
public override int Run(InterpretedFrame frame) { }
// RVA: 0x191ACB0 Offset: 0x191ADB1 VA: 0x191ACB0
public void .ctor() { }
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
namespace WebAddressbookTests
{
[TestFixture]
public class DeleteContacts : AuthTestBase
{
[Test]
public void DeleteContactByEditForm()
{
... |
namespace Castle.Services.Transaction.IO
{
///<summary>
/// Small interface for the map path functionality.
///</summary>
public interface IMapPath
{
///<summary>
/// Gets the absolute path given a string formatted
/// as a map path, for example:
/// "~/plugins" or "plugins/integrated" or "C:\a\b\c.txt" or... |
using System.IO;
namespace Dalamud.Divination.Common.Api.Definition
{
public static class DefinitionProviderFactory<TContainer> where TContainer : DefinitionContainer, new()
{
public static IDefinitionProvider<TContainer> Create(string url)
{
var filename = Path.GetFileName(url);
... |
// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ===========================... |
using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Runtime.InteropServices;
namespace _10._Multiply_Even_By_Odds
{
class Program
{
static void Main(string[] args)
{
int number = int.Parse(Console.ReadLine());
int result = Ge... |
using System;
namespace Norml.Common.Helpers
{
public delegate void ExceptionOccurredHandler(object sender, ExceptionEventArgs e);
public interface IRetryHelper
{
event ExceptionOccurredHandler ExceptionOccurred;
void Retry(Action action, RetryPolicy retryPolicy = RetryPolicy.ThrowExcepti... |
namespace SharpScript
{
#region public ScriptType
public enum ScriptType
{
CSharp,
VB,
}
#endregion
#region internal CompilerType
internal enum CompilerType
{
CodeDom,
Roslyn,
}
#endregion
#region internal ExitCode
internal enum ExitCode
{
Success = 0,
InvalidArg = 1,
Exception = 2,
... |
@model WebStatus.ViewModels.HealthStatusViewModel
@{
ViewData["Title"] = "System Status";
}
<div class="row">
<div class="col-md-12">
<h2 class="overall-status-title">Overall Status: @Model.OverallStatus</h2>
</div>
</div>
<div class="list-group-status">
@foreach (var result in Model.Results)
{
<... |
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ZEGO
{
public class ZegoMediaPlayerImpl:ZegoMediaPlayer
{
public override void LoadResource(string path, OnLoadResourceCallback onLoadRes... |
#region BSD License
/*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE.md file or at
* https://github.com/Wagnerp/Krypton-Toolkit-Suite-Extended-NET-5.471/blob/master/LICENSE
*
*/
#endregion
using System.Windows.Forms;
namespace ExtendedMenuToolbarItems.Controls
{... |
using System.Collections.Generic;
using System.Text.RegularExpressions;
using ReviewApp.Location.Core.Application.Wikipedia;
using ReviewApp.Location.Infrastructure.Extensions;
using ReviewApp.Location.Infrastructure.Services;
namespace ReviewApp.Location.Infrastructure.Handlers.WikiTableHandlers
{
public sealed... |
using EnvDTE;
using Xunit;
namespace NuGet.VisualStudio.Test
{
public class ProjectExtensionsTest
{
[Fact]
public void GetOutputPathForWebSite()
{
// Arrange
Project project = TestUtils.GetProject("WebProject", VsConstants.WebSiteProjectTypeGuid);
... |
using social_journal.BL.DTO;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace social_journal.BL.Services.Interfaces
{
public interface IJournalProfileService
{
Task<ProfileDTO> GetUserProfile();
Task<IEnumerable<AchievementDTO>> GetUserAchievements();
Task<IEnu... |
// Add Method in ItemType (e.g. Part) -> Server Events -> Event: onAfterGet
for (int i = 0; i < this.getItemCount()-1; i++)
{
string bg_color_state;
string myCss = "";
Item thisItem = this.getItemByIndex(i);
string thisStatus = thisItem.getProperty("state","");
// Choose co... |
using KeyManagement.Repository;
using KeyManagement.Repository.Entities;
using KeyManagment.Bus;
using KeyManagment.Bus.Queries;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace KeyManagement.Logic.Queries
{
public class GetKey : Bas... |
using System;
using System.Collections.Generic;
using System.Net;
using EzSurvey.Core.Application;
using EzSurvey.Core.Domain;
using EzSurvey.Core.Shared.Converters;
using EzSurvey.Infrastructure.Authentication;
using EzSurvey.Infrastructure.JobQueue;
using EzSurvey.Infrastructure.Logging.Extensions;
using EzSurvey.Inf... |
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DAL.Core;
using DAL.Repositories;
using Domain;
using Microsoft.EntityFrameworkCore;
namespace DAL.EF.Repositories
{
public class ContactEFRepository : EFRepository<Contact>, IContactRepository
{
public ContactEFR... |
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
namespace SpaceGraphicsToolkit
{
[CanEditMultipleObjects]
[CustomEditor(typeof(SgtProceduralScale))]
public class SgtProceduralScale_Editor : SgtProcedural_Editor<SgtProceduralScale>
{
protected override void OnInspector()
{
base.OnInspector();
Be... |
#nullable enable
using System;
using System.Linq;
using MSFramework.Domain;
using MSFramework.Extensions;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace MSFramework.AspNetCore.Infrastructure
{
public class EnumerationConverter : JsonConverter
{
public override void WriteJson(JsonWriter writer, objec... |
using Cirilla.Core.Models;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Cirilla.Core.Test.Tests
{
[TestClass]
public class ITMTests
{
[TestMethod]
public void Load__itemData()
{
ITM itm = new ITM(Utility.GetFullPath(@"chunk0/common/item/itemData.itm"));... |
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fi... |
namespace Sudoku.Core.Test
{
using FluentAssertions;
using Xunit;
public class PuzzleSolverTest
{
private readonly PuzzleSolver testee;
public PuzzleSolverTest()
{
this.testee = new PuzzleSolver();
}
[Fact]
public void ParsesPuzzle()
... |
namespace Gtk.Core
{
public interface Container : Widget
{
void Add(GWidget widget);
}
} |
namespace AnimalRescue.DataAccess.Mongodb.QueryBuilders
{
internal interface IAliasStore
{
Alias GetAlias<T>(string aliasePropertyName);
}
}
|
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
namespace Maverick.WebSockets
{
internal sealed class WebSocketStream : IWebSocketStream
{
public WebSocketStream( HttpContext context, Stream stream )
{
m_context = context;
m... |
using Havit.Blazor.Components.Web // <------ ADD THIS LINE
using Havit.Blazor.Components.Web.Bootstrap // <------ ADD THIS LINE
public static async Task Main(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("app");
// ... shortened for brevity
... |
using RePacker.Buffers;
namespace RePacker.Builder
{
internal class TypeResolver<TPacker, T> where TPacker : IPacker<T>
{
static TPacker defaultPacker = default(TPacker);
public static TPacker Packer { get => defaultPacker; set => defaultPacker = value; }
public void Pack(ReBuffer buff... |
using System.ComponentModel.DataAnnotations;
namespace COMOEQEPROFESSORAMIGRACAOPONTODEINTERRROGACAO.Models
{
public class Cartas
{
[Key]
public int ID { get; set; }
public Mana mana_ { get; set; }
public Atributos atributos_ { get; set; }
public ValorDanoResistencia val... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Threading;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Core.Pipeline;
using Azure.ResourceManager.Dns.Models;
namespace Azure... |
//---------------------------------------------------------------------
// <copyright file="DefaultServiceWrapper.cs" company="Microsoft">
// Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
// </copyright>
//-------------------------------... |
using System;
namespace Accord.Domain.Model
{
public class VoiceSession
{
public int Id { get; set; }
public ulong UserId { get; set; }
public virtual User User { get; set; } = null!;
public string DiscordSessionId { get; set; } = null!;
public ulong DiscordChannelId ... |
using System;
using Microsoft.EntityFrameworkCore;
namespace DGAuthServer.ModelsDB;
/// <summary>
///
/// </summary>
public class DgAuthDbContext : DbContext
{
#pragma warning disable CS8618 // 생성자를 종료할 때 null을 허용하지 않는 필드에 null이 아닌 값을 포함해야 합니다. null 허용으로 선언해 보세요.
public DgAuthDbContext(DbContextOptions<DgAuthDb... |
using LazuriteUI.Windows.Controls;
using System;
using System.Windows.Controls;
namespace LazuriteUI.Windows.Main.Constructors
{
/// <summary>
/// Логика взаимодействия для SelectCoreActionView.xaml
/// </summary>
public partial class SelectCoreActionView : UserControl
{
public SelectCoreA... |
using System;
namespace Zoey.Quartz.Domain.Model
{
public class Log
{
/// <summary>
/// 执行时间
/// </summary>
public DateTime ExecutionTime { get; set; }
/// <summary>
/// IP
/// </summary>
public string ClientIpAddress { get; set; }
/// <s... |
using Gma.QrCodeNet.Encoding.Positioning.Stencils;
namespace Gma.QrCodeNet.Encoding.Positioning;
internal static class PositioningPatternBuilder
{
internal static void EmbedBasicPatterns(int version, TriStateMatrix matrix)
{
new PositionDetectionPattern(version).ApplyTo(matrix);
new DarkDotAtLeftBottom(version)... |
using System;
using System.Collections.Generic;
using System.Net;
using System.Threading.Tasks;
using Hangfire.Common;
using Hangfire.Console.Serialization;
using Hangfire.Console.Storage;
using Hangfire.Dashboard;
using Hangfire.States;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace Hangfire.C... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace Xap
{
[Serializable]
[DebuggerDisplay( "{m_waveBanks.Count} WaveBanks, {m_soundBanks.Count} SoundBanks")]
public class Project
{
// Xap.Project does NOT inherit from Xap.Entity, as it lacks the curly braces,
// but is otherwise... |
namespace Rebus.HttpGateway
{
public class RebusHttpHeaders
{
public const string CustomHeaderPrefix = "rebus-x-";
public const string Id = "rebus-message-ID";
}
} |
using System;
namespace _11.UnderstandingDelegates
{
public class MainListing1X75
{
public delegate int Calculate(int x, int y);
public int Add(int x, int y) => x + y;
public int Multiply(int x, int y) => x * y;
// Using Delegate
public MainListing1X75()
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.