text stringlengths 1 932k |
|---|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.TemplateEngine.Core.Contracts;
using Microsoft.TemplateEngine.Core.Matching;
namespace Microsoft.TemplateEngine.Core.Util
{
public class TokenTrieEvaluator : Tri... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.... |
/*
* 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;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
namespace NAudio.Gui
{
/// <summary>
/// Graph control
/// </summary>
public class Graph : System.Windows.Forms.Control
{
/// <summary>
/// Required designer variable.
//... |
using Microsoft.Xna.Framework.Input;
using System;
namespace Mindvolving.Visualization.Engine.Input
{
public class KeyEventArgs : EventArgs
{
public Keys Key { get; private set; }
public KeyboardState State { get; private set; }
public KeyEventArgs(Keys key, KeyboardState state)
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Hiraya.Domain.MongoDBCollections.Enumerations
{
public enum TransactionType
{
Registration = 100,
Amendment = 200,
Payment = 300
}
} |
using UnityEngine;
using System.Collections;
public class TurretBullet : MonoBehaviour {
[SerializeField]
private float speed = 10f;
[SerializeField]
private GameObject explosion;
private Vector3 player = Vector3.zero;
void Update()
{
PerformMove();
}
public void Move(V... |
using System;
namespace _2fa.Models
{
public class ErrorViewModel
{
public string RequestId { get; set; }
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
}
} |
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNet.Identity;
using Microsoft.Owin.Security;
namespace SportEvents.Models
{
public class IndexViewModel
{
public bool HasPassword { get; set; }
public IList<UserLoginInfo> Logins { get; set; }
... |
using System;
using Xamarin.Forms;
namespace PickerBinding
{
public partial class PickerBindingPage : ContentPage
{
public PickerBindingPage()
{
InitializeComponent();
}
}
} |
namespace DataObjects.DTOS
{
public class StructureConditionDto : IComboBoxValue
{
public string Description { get; set; }
public int ID { get; set; }
public string Name { get; set; }
}
} |
/*
* 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 ... |
using System;
using System.Collections.Generic;
using System.Linq;
using NAudio.Wave;
namespace NoteLib
{
public class NoteSampleProvider : ISampleProvider
{
public const float MasterVolume = 0.7071f;
/// <summary>
/// The metronome marking for the piece. This
/// defines the ... |
using Classic.World.Extensions;
namespace Classic.World.Packets.Server
{
public class SMSG_ATTACKERSTATEUPDATE : ServerPacketBase<Opcode>
{
private readonly ulong playerId;
private readonly ulong targetId;
public SMSG_ATTACKERSTATEUPDATE(ulong playerId, ulong targetId) : base(Opcode.S... |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Pathfinding;
using Pathfinding.RVO;
[System.Serializable]
public class Actor {
[Describe("actor唯一id")]
public long ActorId { get; set; }
[Describe("服务器id")]
public int ServerId { get; set; }
[Describe("队伍id")]
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace PizzaShop.Repositories.Interfaces
{
public interface IEntityRepository<T>
{
IEnumerable<T> Elements { get; }
T GetById(int? id);
Task<T> GetByIdAsync(int? id);
bool Exis... |
using System;
using Microsoft.EntityFrameworkCore;
using Monifier.BusinessLogic.Auth;
using Monifier.DataAccess.EntityFramework;
namespace Monifier.Tools.Accounts
{
class AccountInfo
{
public string Name { get; set; }
public string Login { get; set; }
public string Password { get; set;... |
using System;
using System.ComponentModel.DataAnnotations;
namespace Domain.MedicalFiles.MedicalNotes
{
public class EvolutionSheet
{
[Key]
public Guid Id { get; set; } = Guid.NewGuid();
public string Description { get; set; }
public EvolutionSheet(string description)
... |
#pragma warning disable 108 // new keyword hiding
#pragma warning disable 114 // new keyword hiding
namespace Windows.Media.Core
{
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
#endif
public enum MediaDecod... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SchedulerUI.Data
{
class Participant
{
[Key, DatabaseGenerated(DatabaseGenerate... |
using System.Collections;
using System.Linq.Expressions;
using System.Text;
using Microsoft.EntityFrameworkCore.Storage;
using NpgsqlTypes;
namespace Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Mapping
{
/// <summary>
/// The type mapping for the PostgreSQL bit string type.
/// </summary>
/... |
// Copyright (c) Alium Fx. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Alium.Features
{
using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Hosting;
/// <s... |
/// <copyright file="EquidistantCylindricalProjection.cs" company="Eötvös Loránd University (ELTE)">
/// Copyright (c) 2011-2019 Roberto Giachetta. Licensed under the
/// Educational Community License, Version 2.0 (the "License"); you may
/// not use this file except in compliance with the License. You may... |
using Microsoft.AspNetCore.Mvc.Rendering;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace CDT.Cosmos.Cms.Models
{
public class CreatePageViewModel
{
public CreatePageViewModel()
{
Templates = new List<SelectListItem>();
}
[K... |
using Artemis.Core;
using JetBrains.Profiler.SelfApi;
namespace Artemis.Plugins.Profiling
{
[PluginFeature(Icon = "Ruler", Name = "CPU Profiler")]
public class CpuProfiler : PluginFeature
{
public static string ProfilerDirectory = "JetBrains";
public static string SubDirectory = "dotTrace"... |
namespace SlnGen.Core.Utils
{
public sealed class NetFrameworkPlatform : NetPlatform
{
public static readonly NetFrameworkPlatform v2_0 = new NetFrameworkPlatform(".NET Framework 2.0", "v2.0", "v2.0.50727", null);
public static readonly NetFrameworkPlatform v3_0 = new NetFrameworkPlatform(".NET... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using Carbon.Data;
using Carbon.Json;
using Carbon.Data.Annotations;
using Carbon.Data.Sequences;
namespace Amazon.DynamoDb
{
public sealed class DbValueConverterFactory
{
private static readonly Dictionary<Type, IDb... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using VRC.Core;
public partial class VRCSdkControlPanel : EditorWindow
{
private static GUIStyle SettingsImage;
bool UseDevApi
{
get
{
return VRC.Core.API.GetApiUrl() == VRC.Core.... |
/* _BEGIN_TEMPLATE_
{
"id": "FB_Toki_IncreaseHealthEnch",
"name": [
"增强现实",
"Augmented Reality"
],
"text": [
"攻击力提高。",
"Attack increased."
],
"cardClass": "NEUTRAL",
"type": "ENCHANTMENT",
"cost": null,
"rarity": null,
"set": "TB",
"collectible": null,
"dbfId": 50829
}
_END_TEMPL... |
using System;
using System.Runtime.InteropServices;
namespace RemoteControlSystem.ClientMessage
{
[Guid("F3B5D2EE-A02A-4c8c-89A1-319B525DD1C7")]
[Serializable]
public sealed class ControlEnterMessage
{
}
} |
// <auto-generated>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DragonSouvenirs.Data.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace DragonSo... |
#region COPYRIGHT© 2009-2013 Phillip Clark.
// For licensing information see License.txt (MIT style licensing).
#endregion
using System;
using System.Collections.Concurrent;
using System.Data.Common;
using System.Data.SqlClient;
using System.Diagnostics.CodeAnalysis;
using FlitBit.Data.SqlServer;
namespace FlitBit... |
using System;
namespace Troublemaker.Xml
{
[XPath("self::Variable[@Type='TeamInteractionUseCount']")]
public sealed class StageVariableTeamInteractionUseCount : StageVariable
{
[XPath("@Linked")] public Boolean Linked;
[XPath("@Team")] public String Team;
[XPath("@Interaction")] pu... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using FDMC.Data;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using Microsoft.Azure.Test;
using Microsoft.Rest.ClientRuntime.Azure.TestFramework;
using System;
namespace DataLakeAnalytics.Tests
{
public class CommonTest... |
//namespace P06_CodeTracker
//{
using System;
public class StartUp
{
static void Main(string[] args)
{
var tracker = new Tracker();
tracker.PrintMethodsByAuthor();
}
}
//} |
using Microsoft.EntityFrameworkCore.Migrations;
namespace HomeAccounting.Data.Migrations
{
public partial class CategoryIndexFix : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_category_user_id_name... |
using Microsoft.Extensions.Logging;
namespace Kickstart.Build.Services.Infrastructure
{
public static class LogEvents
{
public static readonly EventId Generic = new EventId(1000, "generic");
}
} |
using Halforbit.DataStores.Facets;
using Halforbit.DataStores.FileStores.Facets;
using Halforbit.DataStores.FileStores.GoogleDrive.Facets;
using Halforbit.DataStores.FileStores.GoogleDrive.Implementation;
using Halforbit.DataStores.FileStores.Implementation;
using Halforbit.DataStores.FileStores.Serialization.Json.Face... |
namespace Movin.Exception
{
public class WrongTypeTestException : System.Exception
{
public WrongTypeTestException(string msg) : base(msg)
{
}
}
} |
#region Using directives
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
#endregion
namespace AlkaronEngine.Graphics
{
/// <summary>
/// TangentVertex, custom format with postition, ... |
// Copyright 2020 The Tilt Brush Authors
//
// 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 ... |
/*
* 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 IGamer.Web.ViewModels.Administration.Suggestions;
@model AllSuggestionsForAdminViewModel
@{
ViewData["Title"] = "Suggestions";
var suggestions = Model.Suggestions.ToList();
}
<section class="breadcrumb breadcrumb_bg">
<div class="container">
<div class="row">
<div class="col-lg-1... |
using CxxDemangler.Parsers;
namespace CxxDemangler
{
internal interface IParsingResult
{
void Demangle(DemanglingContext context);
}
internal interface IParsingResultExtended : IParsingResult
{
TemplateArgs GetTemplateArgs();
}
} |
// 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.Text;
using Microsoft.EntityFrameworkCore.Infrastructure;
namespace Microsoft.EntityFrameworkCore.Metadata
{
/// <summary>
/// Represents a da... |
using System;
using System.Collections.Generic;
namespace CodingInterview {
public class BuildTree {
public static TreeNode? Build(int[] preorder, int[] inorder) {
if (preorder.Length == 0 || inorder.Length == 0) {
return null;
}
if (preorder.Length != ... |
using System.Collections.Generic;
using System.Threading.Tasks;
namespace EosSharp.Core.Interfaces
{
/// <summary>
/// Signature provider Interface to delegate multiple signing implementations
/// </summary>
public interface ISignProvider
{
/// <summary>
/// Get available public ke... |
namespace Weathering
{
public class PlantationOfMango
{
}
} |
// 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.Globalization;
namespace NuGetGallery
{
[Serializable]
public class EntityException
: Exception
{
... |
using System;
using System.Collections.Generic;
using NBitcoin;
using Xels.Bitcoin.Features.PoA.IntegrationTests.Common;
using Xels.Bitcoin.IntegrationTests.Common;
using Xels.Bitcoin.IntegrationTests.Common.EnvironmentMockUpHelpers;
using Xels.Bitcoin.Tests.Common;
namespace Xels.SmartContracts.Tests.Common.MockChai... |
namespace NKnife.Win.Forms.GroupboxPro
{
partial class CheckGroupBox
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if manag... |
using Contoso.Forms.Parameters.Bindings;
using Contoso.Parameters.Expressions;
using LogicBuilder.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Contoso.Forms.Parameters.ListForm
{
public class ListFormSettingsParameters
{
public ListFormSettingsParameters
(
[N... |
@{
Layout = "~/Views/Shared/Layouts/_Root.cshtml";
} |
// Copyright 2021 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
using Windows.UI.Xaml.Controls;
namespace AppStudio.Uwp.Samples
{
public sealed partial class VirtualBoxSettings : Page
{
public VirtualBoxSettings()
{
this.InitializeComponent();
}
}
} |
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using static System.Console;
using System.Data;
using System.Linq;
namespace Importer
{
[Serializable]
public class AggDamgLookupList
{
#region Fields
private AggDamgLookup _funcLookup;
private List... |
using System;
public class DeadCode {
public static void Main ()
{
SomeFunc ("...");
}
static public string SomeFunc (string str)
{
return str;
int i = 0, pos = 0;
}
} |
using Bridge;
namespace N3208_1_AndreyReview1
{
public class App
{
public static void Main()
{
var welcomer = new N3208_TestModuleScope.Welcomer();
welcomer.Hello("world");
}
}
[Module(ModuleType.UMD, "N3208_TestModule")]
public static class N3208_T... |
using System;
using System.Runtime.InteropServices;
namespace ManagedBass.Enc
{
public static partial class BassEnc
{
/// <summary>
/// ACM codec name to give priority for the formats it supports (e.g. 'l3codecp.acm').
/// </summary>
public static string ACMLoad
{
... |
using System;
using System.Collections.Generic;
using System.Text;
using Autofac;
using Infrastructure.DomainEvents;
using Invoices.Common.DomainEvents;
namespace Invoices.Application.Configuration.Processing
{
public class ProcessingModule : Autofac.Module
{
protected override void Load(ContainerBuil... |
using System.IO;
using CP77.CR2W.Reflection;
using FastMember;
using static CP77.CR2W.Types.Enums;
namespace CP77.CR2W.Types
{
[REDMeta]
public class worldTrafficCompiledNodeInstance : worldINodeInstance
{
public worldTrafficCompiledNodeInstance(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, ... |
namespace AgileObjects.AgileMapper.ObjectPopulation.MapperKeys
{
using System;
using Members.Sources;
internal abstract class ObjectMapperKeyBase : SourceMemberTypeDependentKeyBase, ITypedMapperKey
{
protected ObjectMapperKeyBase(MappingTypes mappingTypes)
{
MappingTypes = m... |
using AutoMapper;
using HaberSitesi.Data.Context;
using HaberSitesi.Domain.DomainModel;
using HaberSitesi.Service;
using HaberSitesi.Web.Areas.Admin.Models;
using HaberSitesi.Web.Controllers;
using System;
using System.Linq;
using System.Linq.Dynamic;
using System.Web.Mvc;
namespace HaberSitesi.Web.Areas.Admin.Contro... |
// MvxBindingTouchTableViewController.cs
// (c) Copyright Cirrious Ltd. http://www.cirrious.com
// MvvmCross is licensed using Microsoft Public License (Ms-PL)
// Contributions and inspirations noted in readme.md and license.txt
//
// Project Lead - Stuart Lodge, @slodge, me@slodge.com
using System;
using System.Coll... |
#region License
// Pomona is open source software released under the terms of the LICENSE specified in the
// project's repository, or alternatively at http://pomona.io/
#endregion
using System;
using System.Collections.Generic;
namespace Pomona.TypeSystem
{
public class SubclassComparer : IComparer<Type>
{... |
namespace PluginUI
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be d... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class LevelManager : MonoBehaviour
{
public float respawnDelay = 0f;
public PlayerController player;
public int coins = 0;
public Text coinText;
// Start is called before the first frame ... |
//------------------------------------------------------------------------------
// <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>
//---... |
// <auto-generated />
namespace MewPipe.Logic.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 partial class... |
using System;
using System.Drawing;
using System.Numerics;
using GLFW;
using SharpUI.Input;
using SkiaSharp;
namespace SharpUI.Utils
{
/// <summary>
/// Provides an interface for creating window and receiving events from SO
/// </summary>
public class SharpWindow : IDisposable
{
/// <summa... |
// Copyright 2020 Brian Allred
//
// 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, di... |
using Fs6502.Assembler;
using Fs6502.Emulator;
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Win... |
namespace WindowsService.MultiThread
{
partial class MultiThreadService
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// <... |
//------------------------------------------------------------------------------
// <auto-generated>
// O código foi gerado por uma ferramenta.
// Versão de Tempo de Execução:4.0.30319.42000
//
// As alterações ao arquivo poderão causar comportamento incorreto e serão perdidas se
// o código for gerado ... |
using System;
using System.Collections.Generic;
namespace Onnx.Collections
{
/// <summary>Convenience extension methods for <see cref="IReadOnlyList{T}"/>.</summary>
public static class ReadOnlyListExtensions
{
/// <summary>Compute the product of all values.</summary>
public static long Pr... |
// 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.IO;
using System.Text;
using System.Security;
using System.Diagnostics;
using System.Collections;
using... |
@{
ViewData["Title"] = "Product";
}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Main content -->
<section class="content">
<!-- Default box -->
<div class="box">
<div class="box-header with-border">
<h3 class="box-title te... |
using Deployf.Botf;
using Telegram.Bot.Types.Enums;
class Program : BotfProgram
{
public static void Main(string[] args) => StartBot(args);
readonly ILogger<Program> _logger;
public Program(ILogger<Program> logger)
{
_logger = logger;
}
[Action("Start")]
[Action("/start", "start ... |
namespace ApiTemplate.Options
{
/// <summary>
/// All options for the application.
/// </summary>
public class ApplicationOptions
{
public CacheProfileOptions CacheProfiles { get; set; }
public CompressionOptions Compression { get; set; }
public KestrelOptions Kestrel { get... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2021 Denis Kuzmin <x-3F@outlook.com> github/3F
* Copyright (c) Conari contributors https://github.com/3F/Conari/graphs/contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation ... |
using System;
using System.Collections.Generic;
using System.Text;
namespace oop.model
{
/// <summary>
/// Hűtőszekrény
/// </summary>
class Fridge
{
/// <summary>
/// Raktáros
/// </summary>
private string storekeeper;
/// <summary>
/// Konstruktor
... |
namespace IndiaRose.WebAPI.Sdk.Runner
{
public class SettingsModel
{
public string TopBackgroundColor { get; set; }
public string BottomBackgroundColor { get; set; }
public string ReinforcerColor { get; set; }
public string TextColor { get; set; }
public int SelectionAreaHeight { get; set; }
public ... |
// 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 System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
usin... |
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace HR.Models
{
using Sy... |
using NUnit.Framework;
using System;
namespace Tests
{
public class WarriorTests
{
private const int MIN_ATTACK_HP = 30;
private Warrior warrior;
private const string Name = "Varian";
private const int Damage = 105;
private const int Hp = 150;
[SetUp]
pu... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Data;
using System.Diagnostics;
using System.Xml.XPath;
#pragma warning disable 618 // ignore obsolete warning about XmlDataDocument
namespace System.Xml
{
interna... |
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Azure.ServiceBus;
using Microsoft.Azure.ServiceBus.Core;
using Storage.NetCore.Messaging;
using IMessageReceiver = Storage.Net... |
using System.Collections.Generic;
namespace bands_repository_csharp.Repositories
{
public interface IBandRepository<T>
{
List<T> ListRepository();
T ReturnBandId(int id);
void InsertBand(T band);
void UpdateBand(int id, T band);
void Delete(int id);
int NextId();... |
using System.Configuration;
namespace Kinetix.Search.Config {
/// <summary>
/// DataSource de moteur de recherche.
/// </summary>
public class SearchDataSourceElement : ConfigurationElement {
/// <summary>
/// Nom de la DataSource.
/// </summary>
[ConfigurationPropert... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace SVR_WPF
{
public static class NotifyPropertyChangedExtension
{
public static void MutateVerbose<TField>(this INotifyPropertyChanged instance, ref TField field, TField newValue,... |
#region << 版 本 注 释 >>
/*----------------------------------------------------------------
* 项目名称 :Hikari.Integration.Models
* 项目描述 :
* 类 名 称 :MapColumn
* 类 描 述 :
* 命名空间 :Hikari.Integration.Models
* CLR 版本 :4.0.30319.42000
* 作 者 :jinyu
* 创建时间 :2019
* 版 本 号 :v1.0.0.0
***************************************************... |
/*
* 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 mcc.Util
{
/// <summary>
/// Simple range.
/// </summary>
public sealed class Range
{
public int Minimum { get; set; }
public int Maximum { get; set; }
public int Length => Maximum - Minimum;
public Range(int minimum, int maximum)
{
Mi... |
namespace DotNetInterceptTester.My_System.IO.DirectoryInfo
{
public class MoveTo_System_IO_DirectoryInfo_System_String
{
public static bool _MoveTo_System_IO_DirectoryInfo_System_String( )
{
//Parameters
System.String destDirName = null;
//Exception
Exception exception_Real = null;
Exception exception_... |
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class PilotYearAnimation : MonoBehaviour {
public Image background;
public Text text;
public void Animate (float animationTime) {
text.text = DataManager.GetUIText ("copy_pilot_year");
StartCoroutine (CoAnimate (animationTime));
}
I... |
// <auto-generated />
namespace WhenItsDone.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.3-40302")]
public sealed partial cl... |
using System;
using System.ComponentModel.Composition;
namespace PocoGen.Common
{
[MetadataAttribute]
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
public sealed class ColumnNameGeneratorAttribute : ExportAttribute
{
public string Name { get; private set; }... |
using System.Text.Json.Serialization;
namespace Csrs.Interfaces
{
/// <summary>
/// SharePoint returns error with this format
/// {"error":{"code":"-2146232832, Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"The parameter Name cannot be empty or bigger than 255 characters."}}}
//... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"]</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" />
</head>
<body>
<div class="co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.