text stringlengths 1 932k |
|---|
using System;
using MediatR;
using SFA.DAS.ApplyService.Domain.Entities;
namespace SFA.DAS.ApplyService.Application.Organisations.GetOrganisation
{
public class GetOrganisationByApplicationIdRequest : IRequest<Organisation>
{
public Guid ApplicationId { get; }
public GetOrganisationByApplicat... |
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using TicketCore.Common;
using TicketCore.Data.Audit.Queries;
using TicketCore.Data.Usermaster.Command;
using TicketCore.Data.Usermaster.Queries;
using Ticke... |
using System.Runtime.Serialization;
using Bitmex.Client.Websocket.Messages;
namespace Bitmex.Client.Websocket.Requests;
/// <summary>
/// Base class for every request
/// </summary>
public abstract class RequestBase : MessageBase
{
/// <inheritdoc />
public override MessageType Op
{
get => Operat... |
using System;
using System.Collections.Generic;
using System.Text;
using Tensorflow;
namespace TensorFlowNET.Examples
{
/// <summary>
/// Simple hello world using TensorFlow
/// https://github.com/aymericdamien/TensorFlow-Examples/blob/master/examples/1_Introduction/helloworld.py
/// </summary>
pu... |
using System;
using System.ComponentModel;
using EfsTools.Attributes;
using EfsTools.Utils;
using Newtonsoft.Json;
namespace EfsTools.Items.Nv
{
[Serializable]
[NvItemId(6704)]
[Attributes(9)]
public class LteB1RxGain
{
[ElementsCount(16)]
[ElementType("uint16")]
[Descriptio... |
// <copyright file="UnitTests.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
// </copyright>
namespace Tests
{
using System;
using System.Collections.Gener... |
using System.Text;
using System.Runtime.Serialization;
namespace Auvik.Api.Data
{
/// <summary>
/// This network's relationships to other resources
/// </summary>
[DataContract]
public class NetworkDetailsRelationships
{
/// <summary>
/// Gets or Sets Tenant
/// </summary>
[DataMember(Name="tenant", Emit... |
//
// Copyright (c) Microsoft and contributors. 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
//
// Unless requi... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigati... |
using System;
namespace DispatcherNamespace
{
internal abstract class AbstractLogicModule
{
internal abstract void LateUpdate(float dt);
internal abstract void OnAction(Dispatcher.InternalLogicEvent ev, Action next);
}
} |
using UnityEngine;
using ChanibaL;
[RequireComponent(typeof(AudioSource))]
public class AudioEffectPlayer : MonoBehaviour {
public AudioClip[] hurt;
public AudioClip[] record;
public AudioClip[] survived;
public AudioClip[] taunt;
public AudioClip[] thrown;
RandomGenerator rng=new RandomGenerator();
void Pl... |
namespace ClassLib065
{
public class Class047
{
public static string Property => "ClassLib065";
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SumElement
{
class Program
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
double sum = 0.0;
double maxNu... |
using System.Windows;
namespace ExplorationSingleInstance
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
} |
using System.Web;
using System.Web.Mvc;
namespace Semantic_Bootstrap_2
{
public class FilterConfig
{
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new HandleErrorAttribute());
}
}
} |
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Intersect.Localization;
using Intersect.Logging;
using Newtonsoft.Json;
namespace Intersect.Server.Localization
{
public static partial class Strings
{
public sealed class AccountNamespace : LocaleNamespace
... |
using System;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;
namespace UI.Dialogs
{
[Serializable]
public class uDialog_ColorScheme
{
[SerializeField]
public string Name;
[SerializeField]
public SerializableColor TitleBackground;
[SerializeField]
... |
using AnnoSavegameViewer.Serialization.Core;
using System.Collections.Generic;
namespace AnnoSavegameViewer.Structures.Savegame.Generated {
public class ObjectGroupCollectionObjectGroupsList {
[BinaryContent(Name = "GameObjects", NodeType = BinaryContentTypes.Node)]
public GameObjects GameObjects { get; se... |
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace TestingFileUtilities.TypeGenerator
{
class FieldDeclarationSyntaxParser
{
public static IReadOnlyCollection<MyRootType> Parse(IReadOnlyCollection<FieldDeclarationSyntax> fieldDeclar... |
using AutoMapper;
using StockTradingAnalysis.Interfaces.Domain;
using StockTradingAnalysis.Web.Models;
namespace StockTradingAnalysis.Web.AutoMapperProfiles
{
/// <summary>
/// The QuotationProfile contains the auto mapper configration for <see cref="IQuotation"/>
/// </summary>
/// <seealso cref="Profile" />
pu... |
using FakeItEasy;
using FluentAssertions;
using NUnit.Framework;
using System.Collections.Generic;
namespace Kontur.Tests
{
[TestFixture]
internal class CompositeSubscriptionTagFixture
{
[Test]
public void CanGetId()
{
string id = "_id_";
var sut = new Compo... |
using System;
using Foundation;
namespace NS {
[BaseType (typeof (NSObject))]
interface C {
}
[Sealed]
[BaseType (typeof (NSObject))]
interface S {
}
[Model][Protocol]
[BaseType (typeof (NSObject))]
interface P {
}
} |
using System;
using Anvil.API.Events;
using NWN.Core;
namespace Anvil.API.Events
{
/// <summary>
/// Events for door objects.
/// </summary>
public static partial class DoorEvents
{
[GameEvent(EventScriptType.DoorOnDisarm)]
public sealed class OnDisarm : IEvent
{
/// <summary>
/// Get... |
// Url:https://leetcode.com/problems/second-highest-salary
/*
176. Second Highest Salary
Easy
SQL Schema
*/
using System;
namespace InterviewPreperationGuide.Core.LeetCode.problem176 {
// # Write your MySQL query statement below
} |
// ***********************************************************************
// Copyright (c) 2009 Charlie Poole
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, incl... |
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Net.NetworkInformation;
namespace LicenseActivationApp.DataAccess
{
public class Licenses : MasterRepository
{
public int Id { get; set; }
public int Activation { get; set; }
pu... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GraphEditor
{
public partial class krug : Component
{
public krug()
{
InitializeComponent();
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Couchbase.Configuration.Client;
namespace Couchbase.ExamplesTimeToLive
{
class Program
{
static void Main(string[] args)
{
ClusterHelper.Initialize(new ClientCo... |
using System.Web.Http;
using System.Collections.Generic;
using Swagger.Net.Dummy.Types;
namespace Swagger.Net.Dummy.Controllers
{
public class ArraysTestController : ApiController
{
[Route("list_string")]
public List<string> Get_list_string([FromUri] List<string> p)
{
retur... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using DbCode.Query;
using DbCode.Internal;
namespace DbCode.Defs {
/// <summary>
/// インデックス定義
/// </summary>
public class IndexDef : IIndexDef {
/// <summary>
/// インデックス名
/// </summary>
public string Name { get; private ... |
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
// <OWNER>[....]</OWNER>
//
//
// ICspAsymmetricAlgorithm.cs
//
namespace System.Security.Cryptography {
using System.Security.AccessControl;
using System.Security.Permissions;
[Serializable]
[System.Runtime.... |
/*
* 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 FakeItEasy;
using Microsoft.AspNetCore.Mvc;
using System.Net;
using Xunit;
namespace DFC.App.JobCategories.UnitTests.ControllerTests.PagesControllerTests
{
[Trait("Category", "Pages Controller Unit Tests")]
public class PagesControllerSideBarLeftTests : BasePagesController
{
[Theory]
... |
using System;
namespace Bing.Utils.IdGenerators.Ids
{
/// <summary>
/// 雪花算法,代码出自:https://github.com/dunitian/snowflake-net/blob/master/Snowflake.Net.Core/IdWorker.cs
/// </summary>
public class SnowflakeId
{
/// <summary>
/// 基准时间
/// </summary>
public const long T... |
/*********************************************
作者:曹旭升
QQ:279060597
访问博客了解详细介绍及更多内容:
http://blog.shengxunwei.com
**********************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace Sheng.SailingEas... |
using api.Models;
using api.SampleData.Builders;
namespace api.SampleData.Generators;
public static class SampleAssetGenerator
{
public static ProjectsBuilder initializeAssets()
{
var projectBuilder = new ProjectsBuilder()
.WithProject(spreadSheetProjectAssembledWithCase2Assets()
.... |
using System;
using System.ComponentModel.DataAnnotations;
namespace EventManagement.WebApp.Models
{
public class Client
{
public Guid Id { get; set; }
[Required]
public string Name { get; set; }
public string Secret { get; set; }
public bool Enabled { get; set; }
... |
using System;
using System.Collections.Generic;
using System.Threading;
namespace MvcContrib.FluentHtml.Behaviors
{
public class ThreadSafeDictionary<TKey, TValue> : Dictionary<TKey, TValue>
{
private ReaderWriterLockSlim cacheLock = new ReaderWriterLockSlim();
public TValue GetOrAdd(TKey key, Func<TValue> defa... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using DatabaseImporter.Importers;
using System.IO;
using UFLT.MonoBehaviours;
using System.Linq;
using UFLT.Textures;
using System;
namespace DatabaseImporter.Editor
{
public class DatabaseImporter : EditorWindow
... |
namespace Microsoft.Azure.PowerShell.Cmdlets.TimeSeriesInsights.Models.Api20180815Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.TimeSeriesInsights.Runtime.PowerShell;
/// <summary>
/// An environment is a set of time-series data available for query, and is the top level Azure Time Series Insights reso... |
using System;
using System.IO;
using System.Text;
namespace VCIGLTF
{
public enum GlbChunkType : uint
{
JSON = 0x4E4F534A,
BIN = 0x004E4942,
}
public struct GlbHeader
{
public static void WriteTo(Stream s)
{
s.WriteByte((Byte)'g');
s.WriteBy... |
using BedrockService.Service.Networking.NetworkMessageClasses;
using BedrockService.Shared.Classes;
using System.Collections.Generic;
namespace BedrockService.Service.Networking
{
public interface ITCPListener : IMessageSender
{
void StartListening();
void ResetListener();
void SetSt... |
using System;
using ElmSharp;
using EColor = ElmSharp.Color;
using EToolbarItem = ElmSharp.ToolbarItem;
namespace System.Maui.Platform.Tizen
{
public interface IShellTabs
{
ShellTabsType Type { get; set; }
EvasObject TargetView { get; }
EColor BackgroundColor { get; set; }
EToolbarItem SelectedItem { get;... |
using System;
using System.Collections.Generic;
using System.Numerics;
using ImGuiFileDialog;
using ImGuiNET;
namespace VFXSelect.VFX {
public class PapSelectDialog : SelectDialog {
private readonly List<SelectTab> GameTabs;
public PapSelectDialog(
string id,
List<S... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Discovr.Classes
{
class Location
{
public double Latitude { get; set; }
public double Longitude { get; set; }
public string Label { get; set; }
public c... |
// 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;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Li... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using Xunit;
namespace MS_vcall_cs
{
public struct VT
{
private int _v;
private static void Test(VT arg1, ref VT arg2)
{
a... |
using System;
using System.Collections.Generic;
using Should.Fluent.Model;
namespace Should.Fluent
{
public static class BeDateTimeExtensions
{
public static DateTime Today(this IBe<DateTime> be)
{
return be.Should.Apply(
(t, a) => a.AreEqual(DateTime.Today, t.Date)... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18213
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... |
using Nssol.Platypus.Infrastructure;
using Nssol.Platypus.Infrastructure.Infos;
using Nssol.Platypus.Models;
using Nssol.Platypus.Models.TenantModels;
using System.Threading.Tasks;
namespace Nssol.Platypus.Logic.Interfaces
{
/// <summary>
/// Inference系の操作で、<see cref="Controllers.spa.InferenceController"/>以外か... |
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace Assets.Chiho {
class CustomAssetDatabase {
public static string GUIDToAssetPath(string guid) {
#if UNITY_EDITOR
return AssetDatabase.GUIDToAssetPath(guid);
#else
return null;
#endif
}
public static string[] FindA... |
using System;
using Vulkan;
namespace Demo.Mesh {
public static class Util {
//public static VkResult CheckResult(this VkResult result) {
// if (result != VkResult.Success) {
// throw new InvalidOperationException("Call failed.");
// }
// return result;
... |
// This file is part of Silk.NET.
//
// You may modify and distribute Silk.NET under the terms
// of the MIT license. See the LICENSE file for details.
using System;
namespace Silk.NET.OpenGLES
{
public enum RenderbufferTarget
{
Renderbuffer = 0x8D41,
RenderbufferOes = 0x8D41,
}
} |
// 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 Microsoft.AspNetCore.Razor.Language.Intermediate;
namespace Microsoft.AspNetCore.Razor.Language.... |
using System.ComponentModel.DataAnnotations;
using Abp.Auditing;
namespace CRUDzao.Web.Models.Account
{
public class LoginViewModel
{
public string TenancyName { get; set; }
[Required]
public string UsernameOrEmailAddress { get; set; }
[Required]
[DisableAuditing]
... |
using NSubstitute.Core;
using NSubstitute.Specs.Infrastructure;
using NSubstitute.Routing.Handlers;
using NUnit.Framework;
namespace NSubstitute.Specs.Routing.Handlers
{
public class RecordCallSpecificationHandlerSpecs
{
public class When_handling_call : ConcernFor<RecordCallSpecificationHandler>
... |
//===============================================================================
// Microsoft patterns & practices Enterprise Library
// Core
//===============================================================================
// Copyright © Microsoft Corporation. All rights reserved.
// THIS CODE AND INFORMATION IS PR... |
using System.Reflection;
using System.Runtime.CompilerServices;
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("Mvc... |
using DynJson.Helpers.CoreHelpers;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
using System.Text;
namespace DynJson.Helpers.WebHelpers
{
public static class JsFilesHelper
{
private static Object lck = ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HPSocketCS
{
public class SSLPullClientEvent
{
public delegate HandleResult OnReceiveEventHandler(SSLPullClient sender, int length);
}
public class SSLPullClient : SSLClient
{
/// <sum... |
using System.Collections.Generic;
namespace LinqToDB.SchemaProvider
{
/// <summary>
/// Describes table-like objects such as tables, views, procedure or function results.
/// </summary>
public class TableSchema
{
/// <summary>
/// Gets unique table identifier, based on name, schema and database names.
/// ... |
using System;
using System.Web.Mvc;
using Biobanks.Services.Contracts;
using Biobanks.Web.Extensions;
using Biobanks.Web.Utilities;
using Biobanks.Web.Results;
namespace Biobanks.Web.Filters
{
public class AuthoriseToAdministerCapability : System.Web.Mvc.AuthorizeAttribute
{
public IBiobankReadService ... |
using FluentAssertions;
using Gybs.Results;
using System.Collections.Generic;
using Xunit;
namespace Gybs.Tests.Results
{
public class ResultFailureTests
{
[Fact]
public void ForErrorsShouldBeFailed()
{
var result = Result.Failure(new Dictionary<string, IReadOnlyCollection<s... |
namespace Market.Migrations
{
using System;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;
internal sealed class Configuration : DbMigrationsConfiguration<Market.Models.MarketContext>
{
public Configuration()
{
AutomaticMigrationsEn... |
using System.Collections.Generic;
namespace Contoso.Core.Domain
{
public class Course
{
public int CourseId { get; set; }
public string Title { get; set; }
public int Credits { get; set; }
public int? DepartmentId { get; set; }
public Department Department { get; set; ... |
using System;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace GooglePlaces.Xamarin
{
public class PlacesGeocode
{
private readonly PlacesHttpProvider httpProvider;
private readonly PlacesConfig authConfig;
private const string GooglePlacesUrl = "https://maps.googleapis.com/maps/api/geocode/jso... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace BethanysPieShop.Models
{
public class FeedbackRepository: IFeedbackRepository
{
private readonly AppDbContext _appDbContext;
public FeedbackRepository(AppDbContext appDbContext)
... |
using System;
using System.Web;
using System.Web.Routing;
using Microsoft.AspNet.FriendlyUrls.Resolvers;
#pragma warning disable SA1300 // Element should begin with upper-case letter
namespace okta_aspnet_webforms_example
#pragma warning restore SA1300 // Element should begin with upper-case letter
{
public parti... |
#pragma warning disable 108 // new keyword hiding
#pragma warning disable 114 // new keyword hiding
namespace Windows.ApplicationModel.Activation
{
#if __ANDROID__ || __IOS__ || NET46 || __WASM__
[global::Uno.NotImplemented]
#endif
public partial interface IContactPanelActivatedEventArgs
{
#if __ANDROID__ || _... |
// <auto-generated>
// automatically generated by the FlatBuffers compiler, do not modify
// </auto-generated>
namespace tflite
{
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
public struct AbsOptions : IFlatbufferObject
{
private Table __p;
public ByteBuffer ByteBuf... |
using NUnit.Framework;
using System;
namespace TestAutomationU
{
[TestFixture]
public class AdvancedOptions
{
[Test]
public void UsingWarnings()
{
var isProcessd = false;
Warn.Unless(isProcessd, Is.EqualTo(true)
.After(1).Minutes.PollEvery(10... |
namespace Example01 {
public interface IMovement : IContained {
bool CanMove { get; set; }
}
} |
using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("Exameer")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: 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.IO;
using System.Linq;
using Microsoft.Azure.WebJobs.Script.Configuration;
using Microsoft.Azure.WebJobs.Script.ManagedDependencies;
using M... |
using UnityEngine;
public class Node
{
public int X { get; set; }
public int Y { get; set; }
public Vector2 worldPosition { get; set; }
public bool isEmpty { get; set; }
public uint Id { get; set; }
public Node(Vector2 worldPos, int gridX, int gridY, uint id)
{
worldPosition =... |
using System.Linq;
using Raven.Bundles.Replication.Tasks;
using Raven.Client.Indexes;
using Raven.Tests.Common;
using Xunit;
namespace Raven.Tests.Issues
{
public class RavenDB_3629 : ReplicationBase
{
public class Foo
{
public string Id { get; set; }
public string Bar... |
// Copyright(c) Microsoft Corporation.
// All rights reserved.
//
// Licensed under the MIT license. See LICENSE file in the solution root folder for full license information
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace WebReact.Mo... |
using System.Collections.Generic;
using System.IO;
using RampantC20;
using RampantC20.Halo1;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
namespace Rampancy
{
// Actions to be called from menus or shortcuts or scripts
public static partial class Actions
{
// Import a jm... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Maticsoft.Web.m_weixin
{
public partial class error : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
... |
using System;
namespace IEB3C.WebAPI.Areas.HelpPage.ModelDescriptions
{
/// <summary>
/// Describes a type model.
/// </summary>
public abstract class ModelDescription
{
public string Documentation { get; set; }
public Type ModelType { get; set; }
public string Name { get;... |
using System;
using System.Diagnostics;
namespace Sentry.Integrations
{
internal class AppDomainUnhandledExceptionIntegration : ISdkIntegration
{
private readonly IAppDomain _appDomain;
private IHub _hub;
public AppDomainUnhandledExceptionIntegration(IAppDomain appDomain = null)
... |
#region Using Statements
using System;
using System.Collections.Generic;
using Nancy.Security;
#endregion
namespace CakeBoss.Host
{
public class UserIdentity : IUserIdentity
{
#region Constructor (2)
public UserIdentity()
{
}
public User... |
/*
* 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.Collections.Generic;
using System.Linq;
namespace Problem_4._Anonymous_Cache
{
class Program
{
static void Main(string[] args)
{
Dictionary<string, Dictionary<string, long>> data = new Dictionary<string, Dictionary<string, long>>();
Dictionary... |
// <auto-generated />
namespace ContosoUniversityModelBinding.Migrations
{
using System.CodeDom.Compiler;
using System.Data.Entity.Migrations;
using System.Data.Entity.Migrations.Infrastructure;
using System.Resources;
[GeneratedCode("EntityFramework.Migrations", "6.4.4")]
public sealed pa... |
// Copyright (c) Josef Pihrt and Contributors. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Roslynator.CSharp.CodeFixes;
using Roslynator.Testing.CSharp;
using Xunit;
namespace Roslynator... |
//
// Unit tests for GCGamepadSnapshot
//
// Authors:
// Sebastien Pouliot <sebastien@xamarin.com>
//
// Copyright 2015 Xamarin Inc. All rights reserved.
//
#if !__WATCHOS__
using System;
#if XAMCORE_2_0
using Foundation;
using UIKit;
using GameController;
#else
using MonoTouch.Foundation;
using MonoTouch.GameContr... |
using System;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Senparc.Weixin.Cache.Redis;
using Senparc.Weixin.Helpers;
using Senparc.Weixin.MP.Test.CommonAPIs;
using Senparc.Weixin.WxOpen.Containers;
namespace Senparc... |
using UnityEngine;
/*
-----------------------
MinMaxAttribute
-----------------------
*/
public class MinMaxAttribute : PropertyAttribute {
public float minDefaultVal = 1.0f;
public float maxDefaultVal = 1.0f;
public float min = 0.0f;
public float max = 1.0f;
public MinMaxAttribute( float minDefaultVal, float... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.ServiceModel;
using Cassette;
using Cassette.Configuration;
using Cassette.DependencyGraphInteration.InterationResults;
using Cassette.HtmlTemplates;
using Cassette.Scripts;
using Cassette.Styleshe... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OverheadDisplay
{
public class ConnectionInfo
{
public ConnectionAssembly connection { get; set; }
public string name { get; set; }
public Bases.BrickBase.ConnectionType type { get; set; }
... |
using Serenity.Data;
using Serenity.Testing;
using Serenity.Test.Testing;
using System;
using Xunit;
namespace Serenity.Test.Data
{
[Collection("AvoidParallel")]
public partial class RowMappingTests : SerenityTestBase
{
[Fact]
public void FaultyRowThrowsException()
{
Ex... |
using System;
using System.Xml.Serialization;
using System.ComponentModel.DataAnnotations;
using BroadWorksConnector.Ocip.Validation;
using System.Collections.Generic;
namespace BroadWorksConnector.Ocip.Models
{
/// <summary>
/// Response to the SystemDTMFTransmissionGetRequest.
/// <see cref="SystemDTMFTr... |
using System;
using System.Collections.Generic;
using System.Linq;
using Foundation;
using MediaManager;
using UIKit;
using Firebase;
namespace TheLight.iOS
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as list... |
using DCE.Data.Interface;
using DCE.Models;
using Microsoft.Data.Sqlite;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace DCE.Data
{
public class PhotoRepository : IPhotoRepository
{
public PhotoRepository()... |
// Copyright 2016 Google Inc. 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
//
// Unless required by applicabl... |
@inherits ViewPage<Northwind.Data.Services.TypedViewServices.OrdersQryCollectionResponse>
@{
ViewBag.Title = "Orders Qry Browser";
Layout = "_Layout";
}
@section Header {
<link rel="stylesheet" type="text/css" href="/css/plugins.css" />
<script>
var dtBaseUrl = '/views/ordersqry';
... |
using System.Reflection;
using System.Runtime.CompilerServices;
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("IE... |
// <auto-generated>
// 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
// re... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static System.Environment.SpecialFolder;
namespace StartMenuCleaner {
public static partial class Cleaner {
private static readonly string MACHINE_START_DIRECTORY = getStartMenuDirectory(false);
private sta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.