text stringlengths 1 932k |
|---|
using UnityEngine;
namespace Andtech
{
/// <summary>
/// Template for observing a target subsystem.
/// </summary>
/// <typeparam name="TSubsystem">The subsystem to target.</typeparam>
public abstract class SubsystemObserver<TSubsystem> : MonoBehaviour, IObserver<TSubsystem> where TSubsystem : Su... |
using System;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Text;
using ReClassNET.Extensions;
using ReClassNET.UI;
using ReClassNET.Util;
namespace ReClassNET.Nodes
{
public abstract class BaseHexCommentNode : BaseHexNode
{
protected int AddComment(ViewInfo view, int x, int y, float fvalue,... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
names... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DCISDBManager.trnLib.Utility;
using System.Configuration;
using System.Data;
using System.Drawing;
using DCISDBManager.objLib.Usr;
using DCISDBManager.objLib.MasterMaintena... |
@model BankSystem.DTO.BankAccountAddAspModel
@{
ViewBag.Title = "WritingId";
Layout = null;
}
<h2>WritingId</h2>
@*
@using PagedList.Mvc;*@
@using (Html.BeginForm()
)
{
<p>
ID: @Html.TextBox("id")
@Html.AntiForgeryToken()
<input type="submit" value="Search" />
</... |
using System;
using System.Collections.Generic;
using System.Text;
namespace GankCompanionDataReader.eventHandler.party
{
public class PartyLeftRequest
{
public string PartyId { get; set; }
public string PlayerLeftId { get; set; }
public PartyLeftRequest() { }
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace dgMicMute
{
public enum DgMicStates
{
Muted,
Unmuted
}
} |
namespace PizzaCalories
{
using System;
using System.Collections.Generic;
public class Dough
{
private const double MIN_WEIGHT = 1;
private const double MAX_WEIGHT = 200;
private const double BASE_CALORIES = 2;
// Fields.
private string type;
private st... |
using System;
using Xamarin.Forms;
namespace TemplateUI.Gallery.Views
{
public partial class ShieldGallery : TabbedPage
{
public ShieldGallery()
{
InitializeComponent();
}
void OnShieldTapped(object sender, EventArgs e)
{
DisplayAlert("Shield Ev... |
using System;
using System.Threading;
using System.Threading.Tasks;
namespace FBCore.Concurrency
{
/// <summary>
/// An <see cref="IExecutorService"/> that can schedule commands to run after
/// a given delay, or to execute periodically.
/// </summary>
public interface IScheduledExecutorService : ... |
using System;
using System.IO;
using System.Reactive.Linq;
using System.Windows;
using Carnac.Logic;
using Carnac.Logic.KeyMonitor;
using Carnac.Logic.Models;
using Carnac.UI;
using Carnac.Utilities;
using SettingsProviderNet;
using Squirrel;
namespace Carnac
{
public partial class App
{
readonly Sett... |
using System;
using NodaMoney;
namespace NoCqrs.Domain
{
public class UnitPrice
{
public Money Value { get; private set; }
public TimeSpan Unit { get; private set; }
public UnitPrice(Money value, TimeSpan unit)
{
Value = value;
Unit = unit;
}
... |
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class camearaFollower : MonoBehaviour {
public Transform target;
/// <summary>
/// This function is called every fixed framerate frame, if the MonoBehaviour is enabled.
/// </summary>
void FixedUpdate()
{
Vector3 pos = ta... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.Azur... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Nucleus.Maths;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Nucleus.UnitTests
{
[TestClass]
public class IntIntervalTests
{
[TestMethod]
public void En... |
namespace ClassLib104
{
public class Class094
{
public static string Property => "ClassLib104";
}
} |
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter;
using System;
using System.Collections.Generic;
using System.Text;
namespace PHPUnit.TestAdapter
{
/// <summary>
/// Class to store information about the current test run to be used from <see cref="TestReporterExtension"/>.
/// </summary>
... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Android.App;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly... |
namespace SdlSharp
{
/// <summary>
/// Information about the system CPU.
/// </summary>
public static class CpuInfo
{
/// <summary>
/// The number of CPUs.
/// </summary>
public static int CpuCount => Native.SDL_GetCPUCount();
/// <summary>
/// The c... |
/*
* 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 iWorkTech.Orleans.Common
{
public enum GameState
{
AwaitingPlayers,
InPlay,
Finished
}
} |
namespace NServiceBus
{
using System;
// Generates a Guid using http://www.informit.com/articles/article.asp?p=25862
// The Comb algorithm is designed to make the use of Guids as Primary Keys, Foreign Keys, and Indexes nearly as efficient as ints.
static class CombGuid
{
/// <summary>
... |
namespace UnityEngine.Perception.GroundTruth.DataModel
{
/// <summary>
/// Definition of an RGB Camera sensor.
/// </summary>
public class RgbSensorDefinition : SensorDefinition
{
/// <inheritdoc/>
public override string modelType => "type.unity.com/unity.solo.RGBCamera";
//... |
using System;
namespace Keas.Mvc.Models
{
public class ErrorViewModel
{
public string RequestId { get; set; }
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
}
} |
using System.Collections.Generic;
using Newtonsoft.Json;
namespace PinnacleWrapper.Data
{
public class GetOddsEvent
{
[JsonProperty(PropertyName = "id")]
public int Id { get; set; }
[JsonProperty(PropertyName = "periods")]
public List<PeriodType> Periods { get; set; }
... |
using System;
namespace KaiHeiLa.Commands
{
/// <summary>
/// Provides extension methods for <see cref="IUserMessage" /> that relates to commands.
/// </summary>
public static class MessageExtensions
{
/// <summary>
/// Gets whether the message starts with the provided chara... |
using System;
using Abp.Auditing;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
namespace Abp.Zero.SampleApp.EntityHistory
{
[Audited]
public class UserTestEntity : AggregateRoot, IHasCreationTime
{
public DateTime CreationTime { get; set; }
public string Name { get; set;... |
// <copyright file="BTreeType.cs" company="Quamotion bv">
// Copyright (c) Quamotion bv. All rights reserved.
// </copyright>
namespace DiscUtils.HfsPlus
{
/// <summary>
/// Specifies the type of the B-tree.
/// </summary>
public enum BTreeType : byte
{
/// <summary>
/// The tree i... |
using System;
using System.Collections;
namespace Gaia.FullSerializer.Internal
{
public class fsArrayConverter : fsConverter {
public override bool CanProcess(Type type) {
return type.IsArray;
}
public override bool RequestCycleSupport(Type storageType) {
return fa... |
//Copyright (C) Microsoft Corporation. All rights reserved.
// indexedproperty.cs
using System;
public class Document
{
// Type allowing the document to be viewed like an array of words:
public class WordCollection
{
readonly Document document; // The containing document
internal WordC... |
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/WindowsStorageCOM.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System;
using Syst... |
using DocumentFormat.OpenXml.Wordprocessing;
using NUnit.Framework;
using OOXMLComparer.Tables.TableProperties;
namespace OOXMLComparer.Test.Tables.TableProperties
{
[Category("OOXML")]
public class TableWidthComparerTests
{
[Test]
public void TableWidthComparerTest()
{
... |
using System;
class URI {
static void Main(string[] args) {
int a, b, c, d, diferenca;
a = Convert.ToInt32(Console.ReadLine());
b = Convert.ToInt32(Console.ReadLine());
c = Convert.ToInt32(Console.ReadLine());
d = Convert.ToInt32(Console.ReadLine());... |
using System;
using System.Collections.Generic;
using System.Text;
namespace amadeus.resources
{
/// <summary>
/// An DepartureArrivalAirportLocation object.
/// </summary>
public class DepartureArrivalAirportLocation
{
internal DepartureArrivalAirportLocation() { }
/// <summary>
... |
// 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.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using JetBrains.Ann... |
// Copyright (c) 2020-2022 百小僧, Baiqian Co.,Ltd.
// Furion is licensed under Mulan PSL v2.
// You can use this software according to the terms and conditions of the Mulan PSL v2.
// You may obtain a copy of Mulan PSL v2 at:
// https://gitee.com/dotnetchina/Furion/blob/master/LICENSE
// THIS SOFTWARE IS PRO... |
using System.Reflection;
[assembly: AssemblyTitle("Leak.Metaget.Tests")]
[assembly: AssemblyProduct("Leak.Metaget.Tests")]
[assembly: AssemblyCopyright("Copyright © Adrian Macal 2016")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")] |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections;
using Xunit;
namespace System.Windows.Forms.Tests
{
public class ListBoxIntegerColle... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
names... |
using NUnit.Framework;
using Linq = System.Linq.Enumerable;
using static Utils;
using Unity.Collections;
using CareBoo.Blinq;
using static ValueFuncs;
internal class LastTest
{
[Test, Parallelizable, Timeout(5000)]
public void BlinqShouldEqualLinqNativeArrayLast([ArrayValues] int[] sourceArr)
{
va... |
@{
Layout = "~/Views/Shared/_ContentPage.cshtml";
ViewBag.Title = "User Guide - WorldWide Telescope";
}
@section leftnav {
@Html.Partial("~/Views/Learn/LeftNav.cshtml")
}
<script>
$(function () {
$.ajax({
//type:'GET',
//url: '/Models/wwtguides.xml',
url: 'https://raw.githubusercontent.com/WorldW... |
using System;
namespace Plugin.BLE.Abstractions
{
public static class Trace
{
public static Action<string, object[]> TraceImplementation { get; set; }
public static void Message(string format, params object[] args)
{
TraceImplementation?.Invoke(format, args);
... |
//<SNIPPET1>
using System;
using System.Security.Cryptography;
using System.Text;
using System.IO;
class RSACSPSample
{
static void Main()
{
try
{
ASCIIEncoding ByteConverter = new ASCIIEncoding();
// Create some bytes to be signed.
byte[] dataBytes = ByteCo... |
using System;
using System.Collections.Generic;
namespace Lucene.Net.Facet.Taxonomy
{
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership... |
/* =======================================================================
Copyright 2017 Technische Universitaet Darmstadt, Fachgebiet fuer Stroemungsdynamik (chair of fluid dynamics)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You ... |
using System;
namespace PrimeFuncPack;
partial class Dependency<T1, T2>
{
public Dependency<T1, T2, T3> With<T3>(
Dependency<T3> other)
=>
InnerWith(
other ?? throw new ArgumentNullException(nameof(other)));
private Dependency<T1, T2, T3> InnerWith<T3>(
Dependency<... |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
namespace Day11
{
internal static class Task1
{
public static int Solve(IEnumerable<string> input)
{
var memory = input
.First()
.Split(new[] { ',' }, Stri... |
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.eShopOnContainers.Services.Ordering.Infrastructure;
namespace Ordering.API.Migrations
{
[DbContext(ty... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using teruzuki.Twitter.Parameters.Account;
using teruzuki.Twitter.Model;
namespace teruzuki.Twitter.API
{
public static class Account
{
public static IEnumerator VerifyCredentials (Client client, VerifyCredentialsParamet... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// CancellableEnumerable.cs
//
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=... |
using DevelopmentInProgress.TradeView.Core.Enums;
namespace DevelopmentInProgress.TradeView.Wpf.Common.Helpers
{
public interface ITradeHelperFactory : IHelperFactory
{
ITradeHelper GetTradeHelper();
ITradeHelper GetTradeHelper(Exchange exchange);
}
} |
namespace Facebook.Interface.Messenger
{
public class CallbackMessageBase
{
public User sender { get; set; }
public User recipient { get; set; }
public long timestamp { get; set; }
public CallbackMessage message { get; set; }
}
} |
/*
* 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... |
using System;
using System.Xml;
using Steam4Intermediate.NodeBehavior;
namespace Steam4Intermediate.Nodes
{
class CvQualifiedTypeNode : ConstIdentBehavior
{
public CvQualifiedTypeNode(XmlAttributeCollection collection)
: base(collection)
{
}
}
} |
using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über folgende
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet si... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using FluentAssertions.Execution;
using FluentAssertions.Primitives;
namespace FluentAssertions.Reflection
{
/// <summary>
/// Contains a number of methods to assert that an <see cref="Assembly"/> is in the expected st... |
using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Threading;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Markup;
namespace GalaxyWare
{
public partial class A... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.IO.Compression;
using System.Threading;
using System.Security.Cryptography;
namespace Charlotte.Commons
{
/// <summary>
/// 共通機能・便利機能はできるだけこのクラスに集約する。
/// </summary>
public static class SCommon
{
... |
namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210
{
using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell;
/// <summary>
/// A PowerShell PSTypeConverter to support converting to an instance of <see cref="A2AContainerCreationInput" />
/// </summary>
public partia... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.Contracts;
using System.Text;
namespace System.IO.Compression
{
//The disposab... |
/*
* 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... |
@using Microsoft.AspNetCore.Http
@using FactOff.Services.Contracts
@inject IUsersService userService
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - FactOff</title>
<environment include="Develo... |
#region Copyright
//
// DotNetNuke® - https://www.dnnsoftware.com
// Copyright (c) 2002-2018
// by DotNetNuke Corporation
//
// 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 restric... |
using LanguageExt;
using ReactiveUI;
using RVis.Base.Extensions;
using RVis.Model;
using RVisUI.Model;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Reactive.Disposables;
using System.Windows.Input;
using static LanguageExt.Prelude;
using static R... |
using System;
using Avalonia;
using Avalonia.Collections;
using Avalonia.Controls;
namespace WalletWasabi.Fluent.Controls
{
public class ResponsivePanel : Panel
{
public static readonly StyledProperty<double> ItemWidthProperty =
AvaloniaProperty.Register<ResponsivePanel, double>(nameof(ItemWidth), double.NaN);
... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Microsoft.TeamFoundation.TestManagement.WebApi;
using Microsoft.VisualStudio.Services.FeatureAvailability.WebApi;
using Microsoft.VisualStudio.Services.TestResults.WebApi;
using Microsoft.VisualStudio.Services.WebApi;
using System;
using ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Linq;
using System.Reflection;
using System.Threading;
using static Microsoft.ReactNative.Managed.JSValueGenerator;
using static Microsoft.ReactNative.Managed.ReactContextGenerator;
using static S... |
// ---------------------------------------------------------------------------------------
// ILGPU
// Copyright (c) 2016-2020 Marcel Koester
// www.ilgpu.net
//
// File: MathIntrinsics.cs
//
// This file is part of ILGPU ... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Test case library for Dev10 bug #640711
// Please see moduleHandleCache.cs
[assembly: System.Runtime.CompilerSe... |
using System;
using System.Runtime.InteropServices;
namespace XGamingRuntime.Interop
{
//typedef struct XblAchievementTitleAssociation
//{
// _Field_z_ const char* name;
// uint32_t titleId;
//}
//XblAchievementTitleAssociation;
[StructLayout(LayoutKind.Sequential)]
internal str... |
using Gee.External.Capstone.Arm;
using Gee.External.Capstone.Arm64;
using Gee.External.Capstone.M68K;
using Gee.External.Capstone.Mips;
using Gee.External.Capstone.PowerPc;
using Gee.External.Capstone.X86;
using Gee.External.Capstone.XCore;
using System;
using System.Collections.Generic;
using System.Linq;
namespace ... |
namespace IntroToIdentity.AspnetCore.Example.Models.ManageViewModels
{
public class TwoFactorAuthenticationViewModel
{
public bool HasAuthenticator { get; set; }
public int RecoveryCodesLeft { get; set; }
public bool Is2faEnabled { get; set; }
}
} |
using System.Reflection;
using System.Runtime.CompilerServices;
//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("InvoiceObjects")]
[assembly: Asse... |
@model ECommerce.Models.VerifyPhoneNumberViewModel
@{
ViewBag.Title = "Verify Phone Number";
}
<h2>@ViewBag.Title.</h2>
@using (Html.BeginForm("VerifyPhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
@Html.AntiForgeryToken()
@Html.Hidden("phoneNumber", @Model.... |
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using WalkingTec.Mvvm.Mvc;
using WalkingTec.Mvvm.Mvc.Admin.ViewModels.FrameworkGroupVMs;
namespace WalkingTec.Mvvm.Admin.Controllers
{
[ActionDescr... |
@inherits Custom.Hybrid.Razor12
@{
/* This Template is used in ca. 5 Views which show title, text and image */
// Determine the widths of each part, based on 12 Bootstrap Cols
var colsText = Settings.TextFirst ? Settings.ColsElement1 : 12 - Settings.ColsElement1;
var colsImg = 12 - colsText;
// define dom a... |
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
namespace osu.Game.Rulesets.Objects.Types
{
/// <summary>
/// A HitObject that has a starting X-position.
/// </summary>
public interface IHasXPosition
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Charlotte
{
/// <summary>
/// Confused by ConfuserElsa
/// </summary>
public class UndoLocalAmericiumDocument
{
/// <summary>
/// Confused by ConfuserElsa
/// </summary>
public void RefactorStandaloneCarpoSynt... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
namespace System.Linq
{
public static partial class EnumerableEx
... |
using UnityEngine;
namespace Unity.Animations.SpringBones
{
public static class SpringBoneGUIStyles
{
public static GUIStyle LabelStyle { get; private set; }
public static GUIStyle HeaderLabelStyle { get; private set; }
public static GUIStyle ButtonStyle { get; private set; }
pu... |
using System.Web.Optimization;
namespace TestWebEngine.Web
{
public class BundleConfig
{
public static void RegisterBundles(BundleCollection bundleTable)
{
#region Libraries
#region Styles
bundleTable.Add(new StyleBundle("~/Content/Custom/Home").Include("~/Content/Custom/Home/home.less"));
bundleT... |
using Domain.Models;
using MvcDating.Models;
namespace MvcDating.Services
{
public class PictureRepository : GenericRepository<Picture>
{
public PictureRepository(UsersContext context)
: base(context)
{
}
}
} |
using System;
using NUnit.Framework;
using AutoTest.Core.Caching.Projects;
using System.IO;
using System.Reflection;
namespace AutoTest.Test
{
[TestFixture]
public class ProjectTest
{
[Test]
public void When_output_path_is_not_valid_return_combined_path()
{
var document = new ProjectDocument(ProjectType.CSh... |
using System;
using System.Threading.Tasks;
using aspnetcoregraphql.Data;
using aspnetcoregraphql.Models;
using GraphQL;
using GraphQL.Types;
using Microsoft.AspNetCore.Mvc;
namespace aspnetcoregraphql.Controllers
{
[Route("graphql")]
public class GraphQLController : Controller
{
private readonly I... |
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace Yi.Framework.StaticPageProcessor
{
public class Worker : BackgroundSer... |
using System.Threading;
using System.Threading.Tasks;
using Andromeda.Framing.Behaviors;
using Andromeda.Framing.Extensions.Tests.Infrastructure.Models;
namespace Andromeda.Framing.Extensions.Tests.Infrastructure
{
public class HandshakeMessageHandler : MessageHandler<HandshakeMessage>
{
protected ove... |
// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschränkt)
// All rights reserved. Licensed under the MIT license.
// ============================... |
namespace Tangle.Net.Repository
{
using System.Collections.Generic;
using System.Threading.Tasks;
using Tangle.Net.Entity;
using Tangle.Net.Repository.DataTransfer;
/// <summary>
/// The TangleRepository interface.
/// </summary>
public interface IIotaCoreRepository
{
/// <summary>
/// The ... |
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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.apa... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Codewars.Katas
{
/// <summary>
/// https://www.codewars.com/kata/526dbd6c8c0eb53254000110
/// https://www.codewars.com/kata/reviews/599ea6aee50047b3af0029e2/groups/5dff684f4225f30001f56592
/// </summary>
publi... |
//
// System.Net.ICredentialsByHost.cs
//
// Author:
// Tim Coleman (tim@imtcoleman.com)
//
// Copyright (C) Tim Coleman, 2004
//
// 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 r... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace TextRecognitionLibrary
{
public delegate bool dOnDetectObject(ObjectPoints o, IPicAccess originalPic);
public class ObjectPoints
{
public PixelInfo Type;
public List<Point>... |
// Project: Aguafrommars/TheIdServer
// Copyright (c) 2022 @Olivier Lefebvre
using Microsoft.AspNetCore.Components;
namespace Aguacongas.TheIdServer.BlazorApp.Pages
{
public partial class Authentication
{
protected override void OnInitialized()
{
Localizer.OnResourceReady = () => I... |
namespace Adnc.Application.Shared.BloomFilter
{
public interface IBloomFilterFactory
{
IBloomFilter GetBloomFilter(string name);
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ParserCore;
using ParserCore.Expr.Simple;
namespace ParserCore.Expr.Extend
{
public class RTrim : FuncExpr_OneOperand
{
public override void Prepare()
{
base.Prepare();
if (!(Op... |
using System.Threading.Tasks;
using SlackNet.Interaction;
using SlackNet.WebApi;
namespace SlackNet.EventsExample
{
public class EchoCommand : ISlashCommandHandler
{
public async Task<SlashCommandResponse> Handle(SlashCommand command)
{
return new()
{
... |
// This file is auto-generated, don't edit it. Thanks.
using System;
using System.Collections.Generic;
using System.IO;
using Tea;
namespace AlibabaCloud.SDK.Kms20160120.Models
{
public class ScheduleKeyDeletionResponse : TeaModel {
[NameInMap("RequestId")]
[Validation(Required=true)]
pub... |
/********************************************************************************
* 文件名:IModel
* 创建人:
* 创建时间:2010-5-5 9:57:54
* 版本:1.0
* 本文件版本号:1.0
* 最后更新:
* 功能说明:
* 历史修改记录:
* <author> <time> <version > <desc>
*********************************************************************************/
usi... |
// This file is part of Core WF which is licensed under the MIT license.
// See LICENSE file in the project root for full license information.
namespace CoreWf.Debugger
{
using System.Collections.Generic;
internal interface ICharacterSpottingTextReaderForUnitTest
{
int CurrentLine { get; }
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.