text stringlengths 1 932k |
|---|
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System.Linq;
using EnterpriseLibrary.PolicyInjection.Configuration;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Unity;
using Unity.Attributes;
using Unity.Interception.PolicyIn... |
using Avalonia.Controls;
using Xunit;
namespace Avalonia.Input.UnitTests
{
public class KeyboardNavigationTests_Custom
{
[Fact]
public void Tab_Should_Custom_Navigate_Within_Children()
{
Button current;
Button next;
var target = new CustomNavigatingSt... |
namespace Typin.Tests.Data.CustomDirectives.Invalid
{
using System.Threading;
using System.Threading.Tasks;
using Typin.Attributes;
[Directive("invalid-no-interface", Description = "No interface directive.")]
public sealed class NoInterafaceDirective
{
public ValueTask OnInitializedAsy... |
using UnityEngine;
namespace RFG.Platformer
{
[CreateAssetMenu(fileName = "New Down Thrust State", menuName = "RFG/Platformer/Character/States/Movement State/Down Thrust")]
public class DownThrustState : State
{
}
} |
using System;
using Android.App;
using Android.Content;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Microsoft.AppCenter;
using Microsoft.AppCenter.Analytics;
using Microsoft.AppCenter.Crashes;
namespace UITestDemo.Droid
{
[Activity(Label = "... |
using Microsoft.AspNetCore.Components;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BlazorComponent
{
public partial class BCounter : IThemeable
{
[Parameter]
public StringNumber Value { get; set; } = "";
... |
using System;
namespace Paper.Core.Messaging
{
public class BasicEvent
{
public Guid ID { get; internal set; }
public object Sender { get; internal set; } = null;
public BasicEvent(object sender)
{
ID = Guid.NewGuid();
Sender = sender;
}
}
... |
// 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.Runtime.CompilerServices;
using System.Buffers;
namespace System
{
//
// This pattern of easil... |
using System;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using RongCloud.Server.models;
using RongCloud.Server.models.response;
using RongCloud.Server.util;
namespace RongCloud.Server.methods.chatroom.whitelist
{
public class Messages
{
private static readonly Encoding UTF8 = ... |
using System.Diagnostics;
namespace Microsoft.Services.Tools.BizTalkOM.Diagnostics
{
/// <summary>
/// This is a replacement for the default <see cref="System.Diagnostics.TraceSwitch"/> class. This class
/// publishes the Level as an int rather than as an enum as with the default implementation. This all... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CloseEnoughEquality.Tests.Classes.Basic
{
public enum TestEnum
{
TestValue = 1,
TestValue2 = 2
}
} |
using Juce.Utils.Singletons;
using UnityEditor;
namespace Juce.Feedbacks
{
internal class UndoHelper : Singleton<UndoHelper>
{
private int currGroupId;
public void BeginUndo(string name)
{
Undo.IncrementCurrentGroup();
Undo.SetCurrentGroupName(name);
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Xml;
using TeamCityApi.Clients;
using TeamCityApi.Helpers;
using TeamCityApi.Logging;
namespace TeamCityApi.Domain
{
public interface IBuildConfigXml
{
XmlDocument Xml { get; set; }
st... |
namespace InvestmentReporting.Meta.Dto {
public record DashboardConfigTagDto(string Tag, decimal Target);
} |
using System.ComponentModel.DataAnnotations.Schema;
namespace Pims.Dal.Entities
{
/// <summary>
/// PropertyType class, provides an entity for the datamodel to manage a list of property types.
/// </summary>
public partial class PimsPropertyType : ITypeEntity<string>
{
#region Properties
... |
using OA.Ultima.Core.Network.Packets;
namespace OA.Ultima.Network.Client
{
public class TalkRequestPacket : SendPacket
{
public TalkRequestPacket(byte speechType, short color, short font, string message)
: base(0x03, "Talk Request")
{
Stream.Write((byte)speechType);... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FluentBootstrap
{
public enum FormInputType
{
[Description("text")]
Text,
[Description("password")]
Password,
[Desc... |
using Amazon.JSII.Runtime.Deputy;
#pragma warning disable CS0672,CS0809,CS1591
namespace Amazon.JSII.Tests.CalculatorNamespace
{
/// <summary>Even friendlier classes can implement this interface.</summary>
/// <remarks>
/// <strong>Stability</strong>: Experimental
/// </remarks>
[JsiiTypeProxy(nat... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("NuGet.VisualStudio")]
[assembly: AssemblyDescription("APIs for invoking NuGet services in Visual Studio.")]
[assembly: InternalsVisibleTo("NuGet.VisualStudio.Test")]
[assembly: InternalsVisi... |
using JikanDotNet.Extensions;
using JikanDotNet.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JikanDotNet.Helpers;
namespace JikanDotNet
{
/// <summary>
/// Model class of search configuration for advanced anime search.
/// </summary>
public class AnimeSea... |
using System.Windows.Controls;
namespace Hs.Hypermint.HyperspinFile.Controls
{
/// <summary>
/// Interaction logic for FilesList.xaml
/// </summary>
public partial class UnusedFilesList : UserControl
{
public UnusedFilesList()
{
InitializeComponent();
}
}
} |
namespace ArduinoUploader.BootloaderProgrammers.Protocols
{
internal interface IMessage
{
byte[] Bytes { get; set; }
}
} |
using CleanArchitectureTemplate.Infrastructure.Persistence.EF.Repositories;
using CleanArchitectureTemplate.Infrastructure.Persistence.Types;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
namespace CleanArchitectureTemplate.Infrastructure.Persistence.EF
{
public static class Exte... |
using RabbitMQ.Client;
using Sukt.Common;
using System;
using System.Collections.Generic;
using System.Text;
namespace Sukt.RabbitMQPublish
{
class Program
{
static void Main(string[] args)
{
//for (int i = 0; i < 1000; i++)
//{
// if (i % 7 == 0)
... |
@using System.Text
@using Microsoft.AspNetCore.Mvc.ModelBinding
@if (!ViewData.ModelState.IsValid)
{
<div class="govuk-error-summary" aria-labelledby="error-summary-title" role="alert" tabindex="-1" data-module="error-summary">
<h2 class="govuk-error-summary__title" id="error-summary-title">
... |
using System;
using System.Linq;
using System.Reactive;
using System.Reactive.Linq;
using System.Threading.Tasks;
using Acr.UserDialogs;
using Microsoft.Reactive.Testing;
using Moq;
using NUnit.Framework;
using Prism.Navigation;
using SparkyStudios.TrakLibrary.Model.Response;
using SparkyStudios.TrakLibrary.Model.Sett... |
using System;
using System.Collections.Generic;
using System.Text;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace swe_mtcg.Card
{
public interface ICard
{
Guid Id { get; }
string Name { get; }
double Damage { get; }
[JsonConverter(typeof(StringEnumConverter)... |
// 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.
namespace Microsoft.ML.Probabilistic.Distributions.Automata
{
internal struct CondensationStateInfo
{
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PuzzleTwo : MonoBehaviour
{
[SerializeField] GameObject plataformL, plataformR, plPOINT, prPOINT, whell, doorclosed, dooropen, loki, b1, b2, b3, player;
[SerializeField]private bool islocked, roll, solved, activate;
... |
using System.Collections.Generic;
using System.Text.RegularExpressions;
using MDS.ColorCode;
namespace MDS.Markdig.SyntaxHighlighting
{
public class LanguageTypeAdapter {
private readonly Dictionary<string, ILanguage> languageMap = new Dictionary<string, ILanguage> {
{"csharp", Languages.CSha... |
/// MyContenxMenu.cs Agosto 22/2016 MoonPincho
///
using UnityEngine;
namespace MoonPincho
{
#if UNITY_5_4
public class MyContenxMenu : MonoBehaviour
{
[ContextMenuItem("Add","AddMethod")]
[ContextMenuItem("Subtract", "RemoveMethod")]
[ContextMenuItem("Reset", "ResetMethod")]
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HTTPHandler
{
public class HTTPRequest
{
public string URL { get; set; } = "";
public string ContentType { get; set; } = "";
public string RequestString { get; set; } = "";
public Re... |
using System.Collections.Generic;
namespace Eklee.Azure.Functions.GraphQl
{
public static class QueryStepExtensions
{
/// <summary>
/// Specifically used the clone query steps.
/// </summary>
/// <param name="queryStep">queryStep.</param>
/// <returns>QueryStep</returns>
/// <remarks>Anytime we need to ... |
using System.Data;
using System.IO;
using OfficeOpenXml;
using System.Linq;
using System.Collections.Generic;
using Vit.Extensions;
namespace Vit.Db.Util.Excel
{
public class ExcelHelp
{
#region SaveDataReader
public static int SaveDataReader(string filePath, IDataReader dr,string tableName... |
#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
// restriction, including without limitation the rights to use,
// copy,... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
names... |
using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using Chell.Internal;
namespace Chell
{
/// <summary>
/// Represents the execution task of a process.
/// </summary>
public class ProcessTask
{
... |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="DisconnectedMessage.cs" company="Adamand MUD">
// Copyright (c) Adamant MUD
// </copyright>
// <summary>
// Defines the DisconnectedMessage type.
// </summary>
// ------------... |
using Android.Content;
using System;
using System.Linq;
using Microsoft.Maui.Controls;
using Microsoft.Maui.Controls.Compatibility.ControlGallery.Android;
using Microsoft.Maui.Controls.Compatibility.Platform.Android;
using Microsoft.Maui.Controls.Compatibility;
using Microsoft.Maui.Controls.Platform;
[assembly: Expor... |
// *****************************************************************************
// BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE)
// © Component Factory Pty Ltd, 2006 - 2016, All rights reserved.
// The software and associated documentation supplied hereunder are the
// prop... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace SimplestPlanningSystem.Model
{
static class SPSExtensionMethods
{
static public void SPSChangeItem(this List<SPSTask> list, SPSBox box)
... |
using _02.Collection.Generics;
using System;
using System.Collections.Generic;
using System.Linq;
namespace _02.Collection
{
public class Program
{
public static void Main()
{
List<string> createCommand = Console.ReadLine().Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using PKISharp.WACS.Clients.DNS;
using PKISharp.WACS.Services;
using PKISharp.WACS.UnitTests.Mock.Services;
using System.Linq;
using LogService = PKISharp.WACS.UnitTests.Mock.Services.LogService;
namespace PKISharp.WACS.UnitTests.Tests.DnsValidationTests
{
[Test... |
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("AS... |
using Cores.Entities.Abstract;
namespace Entitiess.Concrete
{
public class AutoBasket : IEntity
{
public int Id { get; set; }
public int Uretilen { get; set; }
}
} |
namespace EasyCrypto
{
/// <summary>
/// Allowed sizes of RSA keys
/// </summary>
public enum RsaKeySizes
{
/// <summary>
/// 2048 bits
/// </summary>
Rsa2048 = 0x4,
/// <summary>
/// 4096 bits
/// </summary>
Rsa4096 = 0x5,
/... |
using System;
using System.Collections.Generic;
using System.Text;
namespace SharpMock.Library.Engine.Setup
{
public static class SetupDoExtensions
{
public static TChild Do<TChild, TFunc>(this ISetupDo<TChild, TFunc> setup, TFunc func) where TChild : ISetupDo<TChild, TFunc>
{
retu... |
//
// AssignRole.cs
//
// Copyright (c) Christofel authors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Remora.Rest.Core;
namespac... |
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
//
// To add a suppression to this file, right-click the message in the ... |
using System.Text.Json;
#nullable enable
namespace Examples.DDD.Microsoft.Domain.SeedWork
{
public static class JsonConverterExtension
{
public static void WritePropertyName(this Utf8JsonWriter writer, string propertyName, JsonSerializerOptions options)
{
writer.WritePropertyName(
... |
using System;
using System.Collections.Generic;
using System.IO;
using SPModelImporter.Editor;
using UnityEditor;
using UnityEngine;
namespace SPModelImporter.Editor
{
public class SPModelImporter : AssetPostprocessor
{
private static readonly List<string> ProcessedList = new List<string>();
/... |
/*
* 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... |
// <auto-generated />
using System;
using AppBoilerplate.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace BcsAnalysisWeb.ViewModels
{
public class SyntaxNodeViewModel
{
public string NodeName { get; set; }
public string Dispaly { get; set; }
public bool HasErrors => Errors.Any();
public L... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyGUIPlugin;
using Engine.Editing;
using Engine;
namespace Anomalous.GuiFramework.Editor
{
class PropertiesFormVector2 : ConstrainableFormComponent
{
private SingleNumericEdit x;
private SingleNumericEd... |
using System;
using Couchbase.Core.Retry;
namespace Couchbase.KeyValue
{
public class NotMyVBucketException : CouchbaseException, IRetryable
{
public NotMyVBucketException()
{
}
public NotMyVBucketException(string message)
: base(message)
{
}
... |
#define QUANTIFIER_WARNINGS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Boogie;
using System.Diagnostics.Contracts;
namespace Microsoft.Dafny.Triggers {
class QuantifierWithTriggers {
internal QuantifierExpr quantifier;
internal List<TriggerTerm> Ca... |
using Hitmu.Abstractions.Interactions.Decorators;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Linq;
using System.Reflection;
namespace Hitmu.Abstractions.Interactions
{
internal static class AssemblyScanner
{
public static void InitializeDecorator(this IServiceCollection... |
using MediatR;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
namespace ELearning.WebUI.Controllers
{
[ApiController]
[Route("api/[controller]/[action]")]
public abstract class BaseController : ControllerBase
{
private IMediator _mediator;
protected IM... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Microsoft.Extensions.Configuration
{
/// <summary>
/// Options class used by the <see cref="ConfigurationBinder"/>.
/// </summary>
public class FastBinderO... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Runtime.InteropServices;
using System.Globalization;
using System.Windows.Forms;
namespace AIEdit
{
public abstract class TriggerTypeOption
{
protected string name;
private int sortOrder;
... |
// 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.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using DM___Client.Animations;
namespace DM___Client.GUIPages
{
public partial class GUIGameRoom : Page
{
// Start Turn
priva... |
// 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 Microsoft.EntityFrameworkCore.Internal;
using Microsoft.EntityFrameworkCore.TestUtilities.Xunit;
using Xunit;
namespace Microsoft.E... |
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System;
using System.Runtime.... |
// 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.IO;
using System.Collections.Generic;
using System.Linq;
#if MS_IO_REDIST
using Microsof... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text.Encodings.Web;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.UI.Services;
using Microsoft.AspNetCore.Mvc;
usi... |
namespace SpectrumLook.Views
{
partial class SLPlot
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
///... |
/*
* 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.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace LuaProfiler
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main(... |
//------------------------------------------------------------------------------
// <auto-generated>
// このコードはツールによって生成されました。
// ランタイム バージョン:2.0.50727.8009
//
// このファイルへの変更は、以下の状況下で不正な動作の原因になったり、
// コードが再生成されるときに損失したりします。
// </auto-generated>
//----------------------------------------------------------... |
// 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.Runtime.InteropServices;
using TestLibrary;
#region Sequential
#region sequential struct... |
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
namespace osu.Game.Rulesets.Taiko.Objects
{
public class DrumRollTick : TaikoHitObject
{
/// <summary>
/// Whether this is the first (initial) t... |
//------------------------------------------------------------------------------
// <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 System.Collections;
using UnityEngine.SceneManagement;
public enum GameScreen {
Title=0,
Clinician=1,
Speak=2,
Game=3
}
public class ScreenManager : MonoBehaviour {
public static void LoadScreen(GameScreen newScreen) {
SceneManager.LoadScene((int)newScreen);
... |
/*
* 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 Microsoft.AspNetCore.Mvc;
using Abp.AspNetCore.Mvc.Authorization;
using TomsAbp.Controllers;
namespace TomsAbp.Web.Controllers
{
[AbpMvcAuthorize]
public class AboutController : TomsAbpControllerBase
{
public ActionResult Index()
{
return View();
}
}
} |
using Lattice.L2Core.Network;
using Lattice.L2Core.Network.Packet;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace Lattice.L2PlayerServer.Network.GamePacket.Server
{
internal class S_0x08_DeleteObject : SendablePacket<GameClient>
{
public const byte Opcode... |
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fi... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Tests
{
[TestClass]
public class ATests
{
const int TimeLimit = 2000;
const double RelativeError = 1e-9;
[TestMethod, Timeout(TimeLimit)]
public void Test1()
{
const string input = @"10 3 5
";... |
// 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 Microsoft.EntityFrameworkCore.Diagnostics;
namespace Microsoft.EntityFrameworkCore
{
/// <summary>
/// Provides CLR met... |
// 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
namespace DotNetNuke.Common.Utilities
{
using System.Data.SqlClient;
using System.Text;
/// ------------... |
/*
* OR-M Data Entities v3.0
* License: The MIT License (MIT)
* Code: https://github.com/jdemeuse1204/OR-M-Data-Entities
* Email: james.demeuse@gmail.com
* Copyright (c) 2016 James Demeuse
*/
using System;
using System.Configuration;
using System.Linq;
namespace OR_M_Data_Entities.Configuration
{
public se... |
// Copyright 2015-2020 Design Engineering Lab
// This file is a part of TVGL, Tessellation and Voxelization Geometry Library
// https://github.com/DesignEngrLab/TVGL
// It is licensed under MIT License (see LICENSE.txt for details)
using System;
using System.Collections.Generic;
using System.Linq;
using TVGL.Numerics;... |
namespace KontrolSystem.TO2.AST {
public enum IndexSpecType {
Single
}
public class IndexSpec {
public readonly IndexSpecType indexType;
public readonly Expression start;
public IndexSpec(Expression index) {
indexType = IndexSpecType.Single;
start = ... |
// <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... |
// -------------------------------------------------------------------------------------------------
// Start Menu Manager - © Copyright 2020 - Jam-Es.com
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
// ------------------------------------------------------------------... |
namespace csharpcore
{
public class Item
{
private const int MAX_QUALITY = 50;
public static class SpecialCase
{
public const string AgedBrie = "Aged Brie";
public const string Backstage = "Backstage passes to a TAFKAL80ETC concert";
public const str... |
namespace ConferenceService.Services
{
using System.Collections.Generic;
using System.Linq;
using global::ConferenceService.Configuration;
using Models;
using MongoDB.Driver;
/// <summary>
/// An implementation of IConferenceService.
/// </summary>
public class ConferenceServic... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... |
// 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... |
using System.Runtime.Serialization;
using System.Text;
using Newtonsoft.Json;
namespace AdobeSignClient.V5.Model
{
/// <summary>
/// </summary>
[DataContract]
public class Document
{
/// <summary>
/// Id of the document
/// </summary>
/// <value>Id of the documen... |
// ShuffleBagCollection<T>
using Fabric;
using System;
using System.Collections.Generic;
public sealed class ShuffleBagCollection<T>
{
private List<T> m_data = new List<T>();
private int m_cursor = -1;
private T m_current = default(T);
private Random m_generator => Generic._random;
public T Current => m_curre... |
/**
* @File : Sein_imageBasedLightingExtension.cs
* @Author : dtysky (dtysky@outlook.com)
* @Link : dtysky.moe
* @Date : 2019/10/13 0:00:00PM
*/
using GLTF.Math;
using GLTF.Schema;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
namespace SeinJS
{
public class Sein_... |
using System;
using System.Diagnostics;
using System.Collections.Generic;
namespace grammlator {
/* A partition of a set M is a set P. The elements of P are (nonempty) subsets (classes) of M,
* where each element of M is contained exactly in one class.
*
* Classes of a partition can be combined t... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Android.App;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Azure.AI.MetricsAdvisor.Models;
using Azure.Core;
using Azure.Core.Pipeline;
namespace Azure.AI.MetricsAdvisor.Ad... |
#region Copyright & License
/*
Copyright (c) 2022, Integrated Solutions, 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, t... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.IO;
namespace AccessIO {
/// <summary>
/// Helper class to load custom objects from text files to Access
/// </summary>
public class ImportObject {
/// <summary>
/// ... |
/*Write a program that calculates the greatest common divisor (GCD) of given two integers a and b.
Use the Euclidean algorithm (find it in Internet).*/
using System;
class CalculateGCD
{
static void Main()
{
Console.Write("a = ");
int a = int.Parse(Console.ReadLine());
Console.Write("... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.