text stringlengths 3 1.02M |
|---|
using FluentAssertions;
using Grumpy.SmartPower.Core.Consumption;
using Grumpy.SmartPower.Core.Infrastructure;
using Grumpy.SmartPower.Core.Model;
using Grumpy.SmartPower.Core.Production;
using Grumpy.TestTools.Extensions;
using NSubstitute;
using System;
using System.Collections.Generic;
using System.Linq;
using Xuni... |
using System;
using System.Collections.Generic;
using ElasticNest.Controller;
using ElasticNest.Models;
using Nest;
namespace ElasticNest.Utils
{
public class PostDocument<T> where T : class
{
private readonly string index;
private readonly IElasticClient client;
public PostDocument(st... |
//-----------------------------------------------------------------------
// <copyright file="JsonSchema4.cs" company="NJsonSchema">
// Copyright (c) Rico Suter. All rights reserved.
// </copyright>
// <license>https://github.com/RicoSuter/NJsonSchema/blob/master/LICENSE.md</license>
// <author>Rico Suter, mail@rs... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace Newsletter
{
public class Program
{
public sta... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace RobofestWTECore.Pages
{
public class AboutModel : PageModel
{
public string Message { get; set; }
public void OnGet()
{
Mes... |
using Bitmex.NET.Models;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
namespace Bitmex.NET.IntegrationTests.Tests
{
[TestClass]
[TestCategory("REST")]
public class BitmexApiServiceFundingApiTests : IntegrationTestsClass<IBitmexApiService>
{
[TestMe... |
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using LWLCX.ModernUI.Properties;
using ModernUI.UIHelper;
namespace ModernUI.Windows
{
/// <summary>
/// Loads XAML files using Application.LoadComponent.
/// </summary>
public class DefaultContentLoa... |
using System.Collections.Generic;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Logging;
using Abp.Authorization;
using Abp.Authorization.Roles;
using Abp.Domain.Repositories;
using Abp.Domain.Uow;
using Abp.Organizations;
using Abp.Runtime.Caching;
using Abp.Zero.Configuration;
using LeesStore.Author... |
using Senparc.CO2NET;
using Senparc.Scf.Core.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Senparc.Service
{
//public partial interface IEncryptionService : IEncryptionServiceBase
//{
// string CommonEncrypt(string str);
// string Common... |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using ClearHl7.Extensions;
using ClearHl7.Helpers;
using ClearHl7.Serialization;
using ClearHl7.V250.Types;
namespace ClearHl7.V250.Segments
{
/// <summary>
/// HL7 Version 2 Segment PES - Product Experience Sender.... |
// 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 BenchmarkDotNet.Attributes;
using Microsoft.Extensions.Primitives;
namespace Microsoft.AspNetCore.Http
{
public class RequestCookieCollection... |
using Android.App;
using Android.Content;
using Android.Util;
using Firebase.Messaging;
using Newtonsoft.Json;
using WebJobHealthNotifier.Entities.Notifications;
namespace WebJobHealthNotifier.App.ListenerServices
{
[Service]
[IntentFilter(new[] { "com.google.firebase.MESSAGING_EVENT" })]
public class NotificationS... |
using System.Xml.Serialization;
using Inventor.Semantics.Localization;
namespace Inventor.Semantics.Mathematics.Localization
{
public interface ILanguageMathematicsModule
{
ILanguageAttributes Attributes
{ get; }
ILanguageStatements Statements
{ get; }
ILanguageQuestions Questions
{ get; }
ILangua... |
using GRA.Domain.Model;
using GRA.Domain.Model.Filters;
using GRA.Domain.Repository;
using GRA.Domain.Service.Abstract;
using Microsoft.Extensions.Logging;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace GRA.Domain.Service
{
public class SchoolService : BaseUserService<SchoolService>
... |
namespace zipkin4net.Annotation
{
public sealed class WireSend : IAnnotation
{
internal WireSend()
{
}
public override string ToString()
{
return GetType().Name;
}
public void Accept(IAnnotationVisitor visitor)
{
... |
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Graphics;
using osu.Game.Overlays.Settings.Sections.Gameplay;
using osu.Game.Ruleset... |
using ChatAPI.Models;
using ChatAPI.Models.DTO.SystemParam;
using Microsoft.Extensions.Logging;
using MongoDB.Driver;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ChatAPI.Services
{
public interface ISystemParamService
{
Task<SystemParamLis... |
#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "3B9A74120D3B5106CD78C68FB76152D7E71D0D0C556A5BBF29A0CAC844D72C73"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.4... |
using PCAxis.Paxiom;
using PCAxis.Paxiom.Operations;
using PCAxis.Query;
using PCAxis.Web.Controls;
using PCAxis.Web.Core.Management;
using PXWeb.Management;
using PXWeb.Views;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Routing;
using System.W... |
/*
Copyright (c) 2019 SaladBadger
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, including without limitation the rights
to use, copy, modify, merge, pub... |
using HitRefresh.HitGeneralServices.CasLogin;
using HtmlAgilityPack;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace HitRefresh.HitGeneralServices.Jwts
{
/// <summary>
/// 访问Jwts的服务
/// </... |
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Microsoft Public License (MS-PL)
//
// This license governs use of the accompanying software. If you use the
// software, you accept this license. If you do not accept the license, do not
// use the software.
//
// 1. Definitions
//
// The te... |
using System.Collections.Generic;
namespace LocalAppVeyor.Engine.Configuration
{
public class ScriptBlock : List<ScriptLine>
{
public ScriptBlock()
: this(new ScriptLine[0])
{
}
public ScriptBlock(IEnumerable<ScriptLine> scriptLines)
: base(scriptLines)... |
/* Copyright (c) Citrix Systems Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms,
* with or without modification, are permitted provided
* that the following conditions are met:
*
* * Redistributions of source code must retain the above
* copyright notice,... |
using System;
using BasicRender;
using BasicWindows;
namespace ITOS_CSHARP {
public class Program{
public static void Main(string[] args) {
Console.Title="ITOS EMULATOR [Verison 4.0]";
Console.BackgroundColor=ConsoleColor.Black;
Console.ForegroundColor=Conso... |
namespace Planex.Web
{
using System;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin;
using Planex.Data;
using Planex.Data.Models;
public class ApplicationUserManager : UserManager<User>
{... |
using System;
namespace SharpCifs.Util.Sharpen
{
// Token: 0x0200005C RID: 92
internal class PipedOutputStream : OutputStream
{
// Token: 0x0600024C RID: 588 RVA: 0x0000A8E0 File Offset: 0x00008AE0
public PipedOutputStream()
{
}
// Token: 0x0600024D RID: 589 RVA: 0x0000A8EA File Offset: 0x00... |
using System;
namespace Spencer.NET
{
public interface IServiceRegistrationGenerator
{
IServiceRegistration Generate(ServiceFlags flags, Type type, object instance = null, IConstructorParameters constructorParameters = null);
}
} |
#pragma warning disable 169, 465
using System;
using UltimateOrb;
using static Supercell.Globals;
namespace Supercell.IpcServices.Nn.Ntc.Detail.Service {
[IpcService("ntc")]
public unsafe partial class IStaticService : _Base_IStaticService {}
public unsafe class _Base_IStaticService : IpcInterface {
public ov... |
private class TypeIdentifiers.Display : TypeNames.ATypeName, TypeIdentifier, TypeName, IEquatable<TypeName> // TypeDefIndex: 421
{
// Fields
private string displayName; // 0x10
private string internal_name; // 0x18
// Properties
public override string DisplayName { get; }
public string InternalName { get; }
//... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... |
using System;
using System.Threading.Tasks;
namespace XamarinEvolve.Clients.Portable
{
public interface IPushNotifications
{
Task<bool> RegisterForNotifications();
bool IsRegistered { get; }
void OpenSettings();
}
}
|
using System.Reflection;
using System.Resources;
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("EddiCrimeMonitor")... |
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("03E... |
using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Aop.Api.Domain;
namespace Aop.Api.Response
{
/// <summary>
/// AlipayDaoweiOrderQueryResponse.
/// </summary>
public class AlipayDaoweiOrderQueryResponse : AopResponse
{
/// <summary>
... |
@page "{id}"
@model DemoMvc.Pages.RPFamily.DetailsModel
@{
ViewData["Title"] = "Details";
}
<h1>Details</h1>
<div>
<h4>Family</h4>
<hr />
<dl class="row">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Family.Name)
</dt>
<dd class="col-sm-10">
... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.Contracts;
using System.Runtime.CompilerServices;
using HandlebarsDotNet.Compiler;
using HandlebarsDotNet.Pools;
namespace HandlebarsDotNet
{
/// <summary>
/// Mimics <see cref="Array... |
using Polly;
namespace Amethyst.Subscription.Configurations
{
public sealed class HandlerConfiguration
{
public HandlerConfiguration(
bool isLoggingEnabled = false,
int retryAttempts = 10,
IAsyncPolicy retryPolicy = default,
bool runHandlersInParallel = f... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class LevelManager : MonoBehaviour
{
public int travelTime;
//TODO Set a delay on loading level, when ready to add animated scenes.
public void LoadLevelStart(string name)
{
SceneManager.... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using MediatR;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using XtraUpload.Domain;
using XtraUpload.StorageManager.Common;
namespace XtraUpload.StorageServer.Controllers
{
publi... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PieceKnight : MonoBehaviour
{
}
|
using System;
using System.Collections.Generic;
using System.Text;
namespace Core.Entities.Concrete
{
public class User:IEntity
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
pub... |
#region Copyright Syncfusion Inc. 2001-2021
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
// Use of this code is subject to the terms of our license.
// A copy of the current license can be obtained at any time by e-mailing
// licensing@syncfusion.com. Any infringement will be prosecuted under
// applica... |
using ExplicitInterfaces.Interfaces;
using System;
using System.Collections.Generic;
using System.Text;
namespace ExplicitInterfaces
{
public class Citizen : IPerson, IResidental
{
public string Name { get; set; }
public string Country { get; set; }
public int Age { get; set; }
... |
@model SistemaLoja.Models.ManageLoginsViewModel
@using Microsoft.Owin.Security
@{
ViewBag.Title = "Manage your external logins";
}
<h2>@ViewBag.Title.</h2>
<p class="text-success">@ViewBag.StatusMessage</p>
@{
var loginProviders = Context.GetOwinContext().Authentication.GetExternalAuthenticationTypes();
... |
using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using MVCbug.Models;
using Sy... |
// ==++==
//
//
// Copyright (c) 2006 Microsoft Corporation. All rights reserved.
//
// The use and distribution terms for this software are contained in the file
// named license.txt, which can be found in the root of this distribution.
// By using this software in any fashion, you are agreeing to b... |
using System.Data;
namespace Samples.DatabaseHelper
{
public class DbCommandFactory
{
public IDbCommand GetCreateTableCommand(IDbConnection connection)
{
var command = connection.CreateCommand();
command.CommandText = "DROP TABLE IF EXISTS Employees; CREATE TABLE Employe... |
/*
*
* (c) Copyright Ascensio System Limited 2010-2020
*
* 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 applicable la... |
using Handelabra.Sentinels.Engine.Controller;
using Handelabra.Sentinels.Engine.Model;
using System;
using System.Collections;
namespace Cauldron.LadyOfTheWood
{
public class MeadowRushCardController : CardController
{
public MeadowRushCardController(Card card, TurnTakerController turnTakerController) : base(card... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;
namespace Renci.SshNet.Common
{
/// <summary>
/// Base ssh data serialization type
/// </summary>
public abstract class SshData
{
private static readonly Encoding _ascii = new ... |
//
// Methods.cs: Information about a method and its mapping to a SOAP web service.
//
// Author:
// Miguel de Icaza
// Lluis Sanchez Gual (lluis@ximian.com)
//
// (C) 2003 Ximian, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated document... |
using System;
using System.Collections.Generic;
namespace Phonix
{
public class ScalarFeature : Feature
{
private readonly List<ScalarFeatureValue> _list = new List<ScalarFeatureValue>();
public readonly int Min = 0;
public readonly int? Max;
public ScalarFeature(string name)
... |
// Copyright (c) MicroElements. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace MicroElements.Functional.Errors
{
/// <summary>
/// Represents KeyNotFound error.
/// </summary>
/// <typeparam name="TKey">The key type.... |
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace NetCoreJwt.Controllers
{
[Authorize]
public class HomeController : ControllerBase
{
[HttpGet]
[Route("")]
public IActionResult Get()
{
return new OkObjectResult(new { message = "w... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HDF.PInvoke;
using System.Runtime.InteropServices;
using System.IO;
using static HDF.PInvoke.H5T;
namespace Hdf5DotNetTools
{
#if HDF5_VER1_10
using hid_t = System.Int64;
#else
using hid_t... |
// Copyright (c) Jan Škoruba. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.
using System.IdentityModel.Tokens.Jwt;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft... |
using System;
using NetOffice;
namespace NetOffice.MSComctlLibApi.Enums
{
/// <summary>
/// SupportByVersion MSComctlLib 6
/// </summary>
[SupportByVersionAttribute("MSComctlLib", 6)]
[EntityTypeAttribute(EntityType.IsEnum)]
public enum TextPositionConstants
{
/// <summary>
/// SupportByVers... |
// ----------------------------------------------------------------------------------
//
// 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://w... |
using System.Configuration;
using System.Data.SqlClient;
namespace Pattern_Creator
{
class Tools
{
private static SqlConnection SQL { get; set; }
public static SqlConnection sql
{
get
{
if (SQL == null)
SQL = new SqlConnectio... |
namespace BESL.Application.TournamentTables.Queries.GetTournamentTables
{
using System.Collections.Generic;
public class TournamentTablesViewModel
{
public int TournamentId { get; set; }
public IEnumerable<TournamentTableLookupModel> Tables { get; set; }
}
}
|
using System;
namespace ASP.NETDemo.Models
{
public class ErrorViewModel
{
public string RequestId { get; set; }
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
}
} |
// CS0460: `C.Test<T>()': Cannot specify constraints for overrides or explicit interface implementation methods
// Line: 11
abstract class A
{
protected abstract int Test<T>() where T : class;
}
class C : A
{
protected override int Test<T>() where T : new()
{
}
}
|
// ZipNameTransform.cs
//
// Copyright 2005 John Reilly
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
/... |
//******************************************************************************************************
// ServiceInstall.Designer.cs - Gbtc
//
// Copyright © 2011, Grid Protection Alliance. All Rights Reserved.
//
// Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements.... |
#pragma checksum "C:\Users\talit\OneDrive\Área de Trabalho\ProjetoFinal2\ProjetoFinal2\Views\Atuacaos\Delete.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "c5a5250c2a869c69400a37eb944c6180d30d8800"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledIt... |
using AutoMapper;
using BellRichM.Administration.Api.Models;
using BellRichM.Api.Controllers;
using BellRichM.Logging;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace BellRichM.Administration.Api.Controllers
{
/// <summary>
/// The logging level controller.
/// </summary... |
// ****************************************************************
// Copyright 2002-2018, Charlie Poole
// This is free software licensed under the NUnit license, a copy
// of which should be included with this software. If not, you may
// obtain a copy at https://github.com/nunit-legacy/nunitv2.
// *****************... |
namespace OpenMVVM.Core.Pages
{
using System.Collections.ObjectModel;
using System.Threading.Tasks;
using OpenMVVM.Core.PlatformServices.Navigation;
public class MultiPageViewModel<TParam> : PageViewModel<TParam>
{
private readonly ObservableCollection<PageItemViewModel<TParam>> pageItems... |
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace au.UI.CaptionedPictureBox {
/// <summary>
/// Captioned PictureBox control
/// </summary>
[ToolboxItem(true)]
[ToolboxBitmap(typeof(PictureBox))]
public partial class CaptionedPictureBox : UserControl {
/// ... |
/* Copyright 2020-present MongoDB 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 applicable law or agreed to in wr... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
namespace Microsoft.CommonDataModel.ObjectModel.Tests.Cdm
{
using Microsoft.CommonDataModel.ObjectModel.Tests.Utilities;
using Microsoft.VisualStudio.Test... |
namespace VoidCore.Test.Model.Workflow
{
public class Revoke
{
public int Id { get; set; }
public string Revoker { get; set; }
}
}
|
// Copyright 2017 Quintonn Rothmann
// 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, including without limitation the rights to use, copy, modify, merge, publish, distrib... |
//---------------------------------------------------------
// <auto-generated>
// This code was generated by a tool. Changes to this
// file may cause incorrect behavior and will be lost
// if the code is regenerated.
//
// Generated on 2020 October 09 04:53:43 UTC
// </auto-generated>
//--------------... |
using NBXplorer.Logging;
using System.Linq;
using Microsoft.Extensions.Logging;
using NBitcoin;
using NBitcoin.Protocol;
using NBitcoin.Protocol.Behaviors;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Collections.Concurrent;
using System.Threading.Tasks;
using... |
/*
* 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 DemoSqlForms.Database.Model;
using Platz.SqlForms;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace DemoSqlForms.App.Forms
{
public class StudentHeaderForm : DynamicEditFormBase<SchoolContext>
{
protected override void Define(DynamicFormB... |
using System;
using System.Xml.Serialization;
using System.ComponentModel.DataAnnotations;
using BroadWorksConnector.Ocip.Validation;
using System.Collections.Generic;
namespace BroadWorksConnector.Ocip.Models
{
/// <summary>
/// Request a list of available Mobile Subscriber Directory Numbers not yet assigned ... |
using UnityEngine;
public class MouseInput : MonoBehaviour
{
private Rigidbody rb;
private void Awake()
{
rb = GetComponent<Rigidbody>();
}
private void FixedUpdate()
{
float xPos = Mathf.Clamp(rb.position.x + Input.GetAxis("Mouse X"), -4.4f, 4.5f);
rb.MovePosition(n... |
using System;
using System.Threading.Tasks;
using FluentAssertions;
using Xunit;
using Nut.Results.FluentAssertions;
// ReSharper disable CheckNamespace
namespace Nut.Results.Test
{
public class TapErrorTest
{
[Fact]
public void SyncSync_Errorパラメーターが指定されていない場合は例外が発生する()
{
A... |
using System;
using System.Dynamic;
using System.Linq;
namespace Threeuple
{
public class StartUp
{
static void Main(string[] args)
{
string[] input = Console.ReadLine()
.Split(' ', StringSplitOptions.RemoveEmptyEntries)
.ToArray();
st... |
using DAL;
using Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mail;
using System.Web;
using System.Web.Mvc;
namespace ums.Controllers
{
public class UserController : Controller
{
// POST: LOGIN
[HttpPost]
public ActionResult Login()
... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... |
//
// SpeedMonitor.cs
//
// Authors:
// Alan McGovern alan.mcgovern@gmail.com
//
// Copyright (C) 2010 Alan McGovern
//
// 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 restrictio... |
// 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 System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Internal;
namespace Microsoft.AspNetCore.Intern... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using Umbraco.Web;
namespace Umbraco.Tests.FrontEnd
{
[TestFixture]
public class UmbracoHelperTests
{
[Test]
public void Truncate_Simple()
... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//-----------------------------------------... |
using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.Drawing.Text;
using OpenTK.Graphics.OpenGL;
using DIKUArcade.Entities;
using DIKUArcade.Math;
using OpenTK.Mathematics;
namespace DIKUArcade.Graphics {
public class Text {
// TODO: Add method for centering text (vertically, hor... |
using System.Collections.Immutable;
using System.Composition;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Xunit.Analyzers.CodeActions;
namespace Xunit.Analyzers
{
[ExportCodeFixProv... |
using System;
namespace Abide
{
public class OffsetAttribute : Attribute
{
public OffsetAttribute(int offset)
{
Offset = offset;
}
public int Offset { get; set; }
}
} |
//------------------------------------------------------------------------------
// <copyright file="TextureBrush.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//-----------------------------... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Runtime.Diagnostics;
namespace System.ServiceModel.Diagnostics
{
internal class Activity : IDisposable
{
protected Guid parentId;
... |
using NetCasbin.Rbac;
using Xunit;
using static NetCasbin.UnitTest.Util.TestUtil;
namespace NetCasbin.UnitTest
{
public class GroupRoleManagerTest
{
[Fact]
public void TestGroupRoleManager()
{
var e = new Enforcer("examples/group_with_domain_model.conf", "examples/group_wit... |
// SPDX-License-Identifier: Apache-2.0
// Licensed to the Ed-Fi Alliance under one or more agreements.
// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
// See the LICENSE and NOTICES files in the project root for more information.
using System.Linq;
using EdFi.Common.Extensions;
u... |
//***********************************************
//* (C) ColorfulSoft, 2019. Все права защищены.
//***********************************************
//-> Структура данных декодера.
using System;
using System.IO;
namespace NeuralArt
{
///<summary>Тип декодирующей сети(по её глубине).</summary>
p... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DDDSample.Domain.Location;
namespace DDDSample.Domain.Cargo
{
/// <summary>
/// Contains information about a route: its origin, destination and arrival deadline.
/// </summary>
#pragma warning disable 661,660 //Equals... |
// ----------------------------------------------------------------------------------
// Copyright daenet Gesellschaft für Informationstechnologie mbH
// 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 ... |
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/WebServices.h in the Windows SDK for Windows 10.0.19041.0
// Original source is Copyright © Microsoft. All rights reserved.
namespace TerraFX.Interop
{
... |
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("Ha... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.