text stringlengths 1 932k |
|---|
using System;
using System.Diagnostics;
using System.Text;
using u8 = System.Byte;
using u32 = System.UInt32;
namespace Community.CsharpSqlite
{
using sqlite3_value = Mem;
public partial class Globals
{
/*
** 2003 April 6
**
** The author disclaims copyright to this source code. In place of
** a legal notice,... |
namespace TheOracle
{
public class HookedEvents
{
public bool OracleTableReactions = false;
public bool PlanetReactions = false;
public bool ProgressReactions = false;
public bool StarCreatureReactions = false;
public bool StarNPCReactions = false;
public bool St... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using UnityEngine;
namespace Logical.Editor
{
/// <summary>
/// Class that fetches and stores all pertinent classes to the whole Logical system.
/// Uses some cute one-time reflection to find stu... |
// 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.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics.Tracing;
using Syst... |
// ==================================================
// Copyright 2018(C) , DotLogix
// File: ObjectNodeConverterFactory.cs
// Author: Alexander Schill <alexander@schillnet.de>.
// Created: 17.02.2018
// LastEdited: 01.08.2018
// ==================================================
#region
using System.Collections.... |
using System;
using System.Collections.Generic;
namespace E2E.Sqlite
{
public partial class OneToManyPrincipal
{
public OneToManyPrincipal()
{
OneToManyDependent = new HashSet<OneToManyDependent>();
}
public long OneToManyPrincipalId1 { get; set; }
public l... |
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v7/services/customer_user_access_service.proto
// </auto-generated>
// Original file comments:
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you... |
using System;
using System.IO;
using System.Threading;
namespace SharpProxy.Server.Example
{
class Program
{
static void Main(string[] args)
{
// linux下可能需要手动复制SharpProxy项目中的libs文件夹, 不然会报错找不到 config.json 等配置文件
// 如果报错注意查看Console输出的错误信息, trojan go lib有详细的日志输出
... |
// <auto-generated />
// Built from: hl7.fhir.r4b.core version: 4.1.0
// Option: "NAMESPACE" = "fhirCsR4"
using fhirCsR4.Models;
namespace fhirCsR4.ValueSets
{
/// <summary>
/// Used for status.
/// </summary>
public static class MedlineCitationStatusCodes
{
/// <summary>
/// MedlineCitation recor... |
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using JetBrains.Annotations;
using Microsoft.Data.Entity.Metadata;
using Microsoft.Data.Entity.Utilities;
namespace Micr... |
using System;
using Glimpse.Core.Extensibility;
namespace Glimpse.Core.ResourceResult
{
/// <summary>
/// The <see cref="IResourceResult"/> implementation responsible returning Json data to clients.
/// </summary>
public class JsonResourceResult : IResourceResult
{
/// <summary>
///... |
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using Group8.SE347.L11_HelloWork.Application.Services.CommentService.Dto;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Group8.SE347.L11_HelloWork.Application.Services.CommentService
{
... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using BuildXL.Utilities;
using BuildXL.Utilities.Collections;
using TypeScript.Net.Extensions;
using TypeScript.Net.Scanning;
namespace TypeScript.Net
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace SampleWebFormsApp
{
public partial class SiteMaster : MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
} |
#nullable enable
using System;
using System.Linq;
using Content.Shared.GameObjects.Components.Movement;
using Content.Shared.Interfaces.GameObjects.Components;
using Robust.Server.GameObjects;
using Robust.Server.GameObjects.EntitySystems;
using Robust.Server.Interfaces.GameObjects;
using Robust.Shared.GameObjects;
us... |
using System.Linq;
using UnityEngine;
using NaughtyAttributes;
namespace GameplayIngredients.Actions
{
[AddComponentMenu(ComponentMenu.actionsPath + "Game Level Load Action")]
[Callable("Game", "GameManager Icon.png")]
public class GameLevelLoadAction : ActionBase
{
public enum Target
{... |
// *** 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... |
namespace Qitar.Utils.Timing
{
public interface IDateTimeRangeService
{
DateTimeRange Today { get; }
DateTimeRange Tomorrow { get; }
DateTimeRange LastMonth { get; }
DateTimeRange ThisMonth { get; }
DateTimeRange NextMonth { get; }
DateTimeRange LastYear { get; }... |
@{
Layout = "_Layout";
}
<h1>Clients</h1>
<table class="table table-bordered">
<thead>
<tr>
<th>First Name</th>
<th>Last Name</th>
</tr>
</thead>
<tbody>
@foreach(var client in Model["clients"])
{
<tr>
<td>@client.GetClientFirstName()</td>
<td>@client.GetClient... |
namespace PaketLoadScripts
#load "/home/justin/code/fsharp/GiraffeWebApp/GiraffeWebApp/.paket/load/wp81/Microsoft.AspNetCore.Diagnostics.csx"
#load "/home/justin/code/fsharp/GiraffeWebApp/GiraffeWebApp/.paket/load/wp81/Microsoft.AspNetCore.HostFiltering.csx"
#load "/home/justin/code/fsharp/GiraffeWebApp/GiraffeWebAp... |
////////////////////////////////////////////////////////////////////////////////
//NUnit tests for "EF Core Provider for LCPI OLE DB"
// IBProvider and Contributors. 12.05.2021.
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.S... |
// *****************************************************************************
// BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE)
// © Component Factory Pty Ltd, 2006-2019, All rights reserved.
// The software and associated documentation supplied hereunder are the
// propri... |
using Cosmos.Business.Extensions.Holiday.Core;
using Cosmos.I18N.Countries;
namespace Cosmos.Business.Extensions.Holiday.Definitions.Europe.Norway.Religion
{
/// <summary>
/// Christmas Day
/// </summary>
public class ChristmasDay : BaseFixedHolidayFunc
{
/// <inheritdoc />
public o... |
namespace EA.Weee.Web.Tests.Integration.RazorHelpers
{
using RazorEngine.Templating;
using System.Web.Mvc;
public class MvcTemplateBase<T> : HtmlTemplateBase<T>
{
public HtmlHelper<T> HtmlHelper { get; private set; }
public MvcTemplateBase()
{
var customWebViewPage... |
using System.Collections.Generic;
namespace Leak.Meta.Get
{
public abstract class MetamineStrategy
{
public static MetamineStrategy Sequential = new MetamineStrategySequential();
public abstract IEnumerable<MetamineBlock> Next(MetamineStrategyContext context);
}
} |
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由T4模板自动生成
// 生成时间 2019-03-23 16:38:05
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失
// 作者:Harbour CTS
// </auto-generated>
//---------------------------------------------------------------------... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace DPlayer.NET.Libs.aac
{
/// <summary>
/// The library wrapper for libfdk_aac modified from https://github.com/mstorsjo/fdk-aac
/// </summary>
internal class AACLibrary
{
[DllIm... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using Tizen.NUI;
using Tizen.NUI.Binding;
namespace Tizen.NUI.Xaml
{
internal static class VisualStateManager
{
internal class CommonStates
{
public co... |
using System;
using System.Collections.Generic;
using System.Text;
#pragma warning disable CA1034
// ReSharper disable once CheckNamespace
namespace NpgsqlTypes
{
/// <summary>
/// Represents a PostgreSQL tsquery. This is the base class for the
/// lexeme, not, or, and, and "followed by" nodes.
/// <... |
using System;
namespace Exercise6
{
class Program
{
static void Main(string[] args)
{
string[] names = new string[0];
int i = 0;
while(true)
{
Console.Write("Please enter a name:");
string nameInput = Console.Read... |
using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Xml.Schema;
using System.Xml.Serialization;
namespace Workday.BenefitsAdministration
{
[GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerS... |
namespace Model
{
public interface ISensor
{
public int Id { get; set; }
public string Name { get; set; }
public int Interval { get; set; }
public bool IsRunning { get; set; }
public double MinValue { get; set; }
public double MaxValue { get; set; }
... |
using BenchmarkDotNet.Attributes;
using TurnerSoftware.DinoDNS.Protocol;
using TurnerSoftware.DinoDNS.TestServer;
namespace TurnerSoftware.DinoDNS.Benchmarks.Internal;
[Config(typeof(DefaultBenchmarkConfig))]
public class MessageReadWriteBenchmark
{
private DnsMessage Message;
private DnsMessage ByteMessage;
#pra... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.ComponentModel;
namespace Azure.Analytics.Synapse.Spark.Models
{
/// <summary> The LivyStatementStates. </summary>
public readonly partial struct ... |
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change th... |
using UnityEngine;
[System.Serializable]
public class NoiseProperties
{
public enum NoiseFilterType
{
Basic,
Steep
}
public NoiseFilterType FilterType = NoiseFilterType.Basic;
[Min(0)]
public float Strength = 1.0f;
[Min(0.01f)]
public float Roughness = 1.0f;
publi... |
// Mileage Tracker
// Copyright (c) bfren - licensed under https://mit.bfren.dev/2022
using Jeebs.Data;
using Mileage.Persistence.Common.StrongIds;
namespace Mileage.Domain.DeleteJourney;
/// <summary>
/// Used to return a Journey that is ready to be deleted
/// </summary>
/// <param name="Id">Journey ID</param>
///... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text.Json;
using System.Threading.Tasks;
using AntDesign.Core.HashCodes;
using AntDesign.JsInterop;
using AntDesign.TableModels;
using Microsoft.AspNetCore.Components;
namespace AntDesign
{
publi... |
using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Avalonia.Input.Navigation;
using Avalonia.VisualTree;
namespace Avalonia.Input
{
/// <summary>
/// Handles keyboard navigation for a window.
/// </summary>
public class KeyboardNavigationHandler : IKeyboardNavigationHandler
... |
// *****************************************************************************
//
// © Component Factory Pty Ltd 2012. All rights reserved.
// The software and associated documentation supplied hereunder are the
// proprietary information of Component Factory Pty Ltd, 17/267 Nepean Hwy,
// Seaford, Vic 3198, A... |
//-----------------------------------------------------------------------
// <copyright file="IRunnable.cs" company="Akka.NET Project">
// Copyright (C) 2009-2020 Lightbend Inc. <http://www.lightbend.com>
// Copyright (C) 2013-2020 .NET Foundation <https://github.com/akkadotnet/akka.net>
// </copyright>
//----... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class WaypointNavigator : MonoBehaviour
{
public ChairPath currentPath;
int waypointIndex = 0;
public float moveSpeed = 1.0f;
bool isOnPath;
[HideInInspector]
public bool hasReachedChair;
public bool i... |
//------------------------------------------------------------------------------
// <auto-generated>
// Generated by the MSBuild WriteCodeFragment class.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.R... |
namespace MNote.Web.ViewModels.Settings
{
using System.Collections.Generic;
public class SettingsListViewModel
{
public IEnumerable<SettingViewModel> Settings { get; set; }
}
} |
namespace MassTransit.InMemoryTransport.Fabric
{
using System;
using System.Collections.Generic;
public class InMemoryTransportMessage
{
public InMemoryTransportMessage(Guid messageId, byte[] body, string contentType, string messageType)
{
Headers = new Dictionary<string, o... |
using System;
namespace DemoApp.Models.Test
{
public class TestModel
{
public string Name { get; set; }
public DateTime BirthDate { get; set; }
}
} |
using System;
using System.Reflection;
using System.Runtime.InteropServices;
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: Asse... |
using System.IO;
using DbMigrate.Model;
using DbMigrate.Model.Support.FileFormat;
using FluentAssertions;
using NUnit.Framework;
namespace DbMigrate.Tests.MigrateADatabase
{
[TestFixture]
public class _3B2_ExtractMigrationSpecFromFile
{
private const string ValidFileName = "3345_some_migration_name.migration.sql... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... |
using UnityEngine;
using UnityEngine.UI;
namespace JUMP
{
class JUMPStatusConnection : Photon.PunBehaviour
{
private Text ConnectionStatus = null;
#pragma warning disable 0649
[SerializeField]
private bool debugMode;
#pragma warning restore 0649
void Start()
{
... |
using Microsoft.eShopWeb.ApplicationCore.Services;
using System;
using System.Threading.Tasks;
using Xunit;
namespace Microsoft.eShopWeb.UnitTests.ApplicationCore.Services.BasketServiceTests
{
public class TransferBasket
{
[Fact]
public async Task ThrowsGivenNullAnonymousId()
{
... |
// 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.Reflection;
using System.Security;
namespace System.Xaml.Permissions
{
[Serializable]
public ... |
using SimpleJwtProvider.Interfaces;
using SimpleJwtProvider.Models;
using System;
using System.Security.Cryptography;
using System.Threading.Tasks;
namespace SimpleJwtProvider.Services.TokenService
{
public class RefreshTokenProvider : IRefreshTokenProvider
{
public async Task<RefreshToken> GetRefresh... |
namespace Neo.Plugins
{
public enum MemoryPoolTxRemovalReason : byte
{
/// <summary>
/// The transaction was ejected since it was the lowest priority transaction and the MemoryPool capacity was exceeded.
/// </summary>
CapacityExceeded,
/// <summary>
/// The tran... |
// Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System.Text;
using CefSharp.Internals;
using Microsoft.Win32.SafeHandles;
using System;
using System.Collections.Generic;
using System.Linq;... |
//Copyright (c) 2018 Yardi Technology Limited. Http://www.kooboo.com
//All rights reserved.
using System;
using System.Collections.Generic;
using System.Collections.Concurrent;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Net;
using System.Net.Sockets;
using ... |
// *** 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... |
// <auto-generated />
namespace VotingApplication.Data.Migrations
{
using System.CodeDom.Compiler;
using System.Data.Entity.Migrations;
using System.Data.Entity.Migrations.Infrastructure;
using System.Resources;
[GeneratedCode("EntityFramework.Migrations", "6.1.1-30610")]
public sealed part... |
using System.Collections.Generic;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using iSHARE.AccessToken.Args;
using iSHARE.AccessToken.Responses;
namespace iSHARE.AccessToken
{
internal class AccessTokenClient : IAccessTokenClient
{
private readonly HttpClient _httpClie... |
using System;
using System.Collections.Generic;
using UnityEngine;
namespace UnityCommon.Async.Internal
{
internal static class UnityEqualityComparer
{
public static readonly IEqualityComparer<Vector2> Vector2 = new Vector2EqualityComparer();
public static readonly IEqualityComparer<Vector3> Ve... |
using Ordering.Domain.Common;
namespace Ordering.Domain.Entities
{
public class Order: EntityBase
{
public string UserName { get; set; }
public decimal TotalPrice { get; set; }
// BillingAddress
public string FirstName { get; set; }
public string LastName { get; set; }... |
namespace ClassLib082
{
public class Class070
{
public static string Property => "ClassLib082";
}
} |
using System;
using System.Threading.Tasks;
using FinHub.Models.EntityModels;
using FinHub.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
namespace FinHub.Controllers
{
[Route("api/groups/{groupId}/users")]
[Authorize]
public class G... |
using System.Text.Json.Serialization;
namespace Essensoft.Paylink.Alipay.Response
{
/// <summary>
/// AlipayCommerceAntestReportQueryResponse.
/// </summary>
public class AlipayCommerceAntestReportQueryResponse : AlipayResponse
{
/// <summary>
/// 测试报告页url
/// </summary>
... |
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WebApplication.Models;
namespace WebApplication.Repo
{
public partial class DiabetesRepo : IDiabetes
{
}
} |
using System;
using System.Runtime.InteropServices;
namespace LibGit2Sharp.Core
{
[StructLayout(LayoutKind.Sequential)]
internal class GitSmartSubtransportStream
{
static GitSmartSubtransportStream()
{
GCHandleOffset = Marshal.OffsetOf(typeof(GitSmartSubtransportStream), "GCHan... |
using Discord;
using Discord.Commands;
using Discord.WebSocket;
using NadekoBot.Attributes;
using NadekoBot.Extensions;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace NadekoBot.Modules.Games
{
... |
@model PagedList.IPagedList<SelfServiceSearch>
@using PagedList.Mvc;
<link href="~/Content/PagedList.css" rel="stylesheet" type="text/css" />
@{
ViewBag.Title = "Busca de Comissões Self Service";
}
<h1 class="headerForm">@ViewBag.Title</h1>
@******************************************... |
using BattleTech;
using BattleTech.UI;
using CustomActivatableEquipment;
using Harmony;
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Reflection.Emit;
using UnityEngine;
namespace CustomActivatablePatches {
[HarmonyPatch(typeof(AbstractActor))]
[HarmonyPatch("StealthPipsPre... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using Sy... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AutoMapper;
using MAVN.Common.MsSql;
using MAVN.Service.SmartVouchers.Domain.Enums;
using MAVN.Service.SmartVouchers.Domain.Models;
using MAVN.Service.SmartVouchers.Domain.Repositories;
using MAVN.Service.SmartVouche... |
#if (UNITY_WINRT || UNITY_WP_8_1) && !UNITY_EDITOR && !UNITY_WP8
#region License
// Copyright (c) 2007 James Newton-King
//
// 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
// rest... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Training20200911.Algorithms;
using Training20200911.Collections;
using Training20200911.Extensions;
using Training20200911.Numerics;
... |
using System;
using System.Threading;
using System.Threading.Tasks;
using NUnit.Framework;
namespace SimMach.Sim {
public sealed class WhenEngineDisposes {
[Test]
public void DisposeIsFiredOnNormalTermination() {
var test = new TestDef();
bool run = false;
bool... |
using System.ComponentModel.DataAnnotations;
using Abp.Authorization.Roles;
using CallOfShare.Authorization.Users;
namespace CallOfShare.Authorization.Roles
{
public class Role : AbpRole<User>
{
public const int MaxDescriptionLength = 5000;
public Role()
{
}
public Ro... |
using System.Collections.Generic;
using Essensoft.Paylink.Alipay.Response;
namespace Essensoft.Paylink.Alipay.Request
{
/// <summary>
/// alipay.ebpp.instservice.order.create
/// </summary>
public class AlipayEbppInstserviceOrderCreateRequest : IAlipayRequest<AlipayEbppInstserviceOrderCreateResponse>
... |
namespace GKsWpfLib.Constants
{
public static class RegionNames
{
public static readonly string MainContent = nameof(MainContent);
public static readonly string Main = nameof(Main);
public static readonly string PluginTab = nameof(PluginTab);
}
} |
using System.Linq;
using SImpl.SearchModule.Abstraction.Queries;
using SImpl.SearchModule.Abstraction.Queries.subqueries;
namespace SImpl.SearchModule.FluentApi.Configuration.Fluent
{
public class TermsQueryConfigurator
{
public TermsQueryConfigurator()
{
_query = new Terms... |
using System.Reflection;
using System.Runtime.InteropServices;
// 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("AWSSDK.MTurk")]
[assembly: AssemblyDescrip... |
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Tsa.Coding.Submissions.WebApi.Repositories;
namespace Tsa.Coding.Submissions.WebApi.Controllers
{
[ApiController]
[Route("api/[controller]")]
public class ProblemsController : ControllerBase
{
private readonly IProblemReposito... |
// 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.Linq;
using System.Linq.Expressions;
using System.Reflection;
usi... |
namespace ExpressionCache.Core.Testing
{
public static class CacheKeyHelper
{
public static string Prefix(string key)
{
return ExpressionCacheBase.CachePrefix + key;
}
public static string Format<TResult>(TResult value)
{
return "{" + value + "}"... |
namespace AvalonStudio.Languages.CPlusPlus
{
internal class ContentTypes
{
[ExportContentType("C", ContentCapabilities.C)]
[FileExtensions(".h", ".c", ".cc")]
public object CContentType { get; }
[ExportContentType("C++", ContentCapabilities.CPP)]
[FileExtensions(".h", "... |
namespace RedisWorker
{
public class DefaultRedisWorkerNamingStrategy : IRedisWorkerNamingStrategy
{
private readonly string _prefix;
public DefaultRedisWorkerNamingStrategy(string baseName)
{
_prefix = "RedisWorker:" + baseName;
}
public string QueueName
... |
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Protos/core/contract/shield_contract.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections... |
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace UI.RunnerManagement.Common
{
internal static class Extensions
{
public static ObservableCollection<T> ToObservableCollection<T>(this IEnumerable<T> @this)
=> new ObservableCollection<T>(@this);
}
} |
/*
* 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. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*
* Copyright 2010-2014 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 "l... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data.SqlClient;
namespace Tellma.Repository.Common.Queryex
{
/// <summary>
/// A collection containing a bunch of <see cref="SqlParameter"/>s, contains a
/// method that lets you add parameters with auto-names: "Param__... |
//-----------------------------------------------------------------------
// <copyright file="ValidationError.cs" company="Endjin Limited">
// Copyright (c) Endjin Limited. All rights reserved.
// </copyright>
// <license>https://github.com/rsuter/NJsonSchema/blob/master/LICENSE.md</license>
// <author>Derived from co... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... |
using NUnit.Framework;
using System.Collections.Generic;
namespace SuperSaaS.API.Tests
{
[TestFixture()]
public class UsersTest
{
public Client Client;
[SetUp]
public void Init()
{
Configuration config = new Configuration();
config.AccountName = "ac... |
using Akka.Actor;
using Akka.Configuration;
using Neo.IO.Actors;
using Neo.Ledger;
using Neo.Network.P2P.Payloads;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
namespace Neo.Network.P2P
{
internal class TaskManager : UntypedActor
{
public cl... |
using FootShopSystem.Controllers;
using MyTested.AspNetCore.Mvc;
using Xunit;
namespace FootShopSystem.Test.Routing
{
public class ShoppingCartControllerTest
{
private const int ShoeId = 5;
[Fact]
public void GetCartShouldBeMapped()
=> MyRouting
.Configuration()
... |
using Microsoft.AspNetCore.Identity;
using System.Collections.Generic;
namespace MySchool.Data.Models
{
public class MySchoolUser : IdentityUser<string>
{
public List<IdentityRole<string>> Roles { get; set; }
}
} |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
namespace Microso... |
using System;
using System.Linq;
namespace test_reverse
{
class Program
{
static void Main(string[] args)
{
string test = Console.ReadLine();
Console.WriteLine(ReverseString(test));
}
private static string ReverseString(string test)
{
... |
namespace Norns.Destiny.Structure
{
public enum AccessibilityInfo
{
NotApplicable = 0,
Private = 1,
ProtectedAndInternal = 2,
Protected = 3,
Internal = 4,
ProtectedOrInternal = 5,
Public = 6
}
} |
using System;
using Illumina.BaseSpace.SDK.Types;
namespace Illumina.BaseSpace.SDK.ServiceModels
{
public class ListAppResultsRequest : AbstractResourceListRequest<ListAppResultsResponse, AppResultSortByParameters>
{
/// <summary>
/// List AppResults within a project
/// </summary>
... |
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace Nez.Tiled
{
public class TiledImageLayer : TiledLayer
{
public readonly Texture2D texture;
RectangleF _bounds;
public TiledImageLayer( string name, Texture2D texture ) : base( name )
{
this.texture = texture;
_bounds.w... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.