content stringlengths 23 1.05M |
|---|
using System.Collections.Generic;
using Nest;
namespace InvertedIndex
{
public class Importer<T> where T : class
{
private readonly IElasticClient client;
public Importer()
{
client = ElasticClientFactory.CreateElasticClient();
}
public IResponse SendBulk(... |
// =====================================================================
// This file is part of the Microsoft Dynamics CRM SDK code samples.
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
// This source code is intended only as a supplement to Microsoft
// Development Tools and/or on-line doc... |
using System;
using UnityEngine;
public enum PlayerActions
{
Jump,
Dodge,
Run,
Attack
}
public class Player : MonoBehaviour
{
public Action OnPlayerJump;
public Action OnPlayerDodge;
public Action OnPlayerRun;
public Action OnPlayerAttack;
public void Jump()
{
... |
/*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
using System;
using System.IO;
using NUnit.Framework;
namespace Tangosol.IO.Pof
{
/// <summary>
/// Unit tests of custom serializer/de... |
using System;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace IIASA.FloodCitiSense.Mobile.Core.Services.Pages
{
public interface IPageService
{
Page MainPage { get; set; }
Task<Page> CreatePage(Type viewType, object navigationParameter);
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Timers;
using zwg_china.model;
namespace zwg_china.logic
{
/// <summary>
/// 用户的登陆信息池
/// </summary>
public class AuthorLoginInfoPond
{
#region 私有字段
/// <summary>
... |
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Project.Model;
using Project.Repository;
using Project.ViewModel;
namespace Project.Service
{
public interface IPaymentService : IBaseService<Payment>
{
L... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SharpDX.Direct3D11;
using SharpDX.DXGI;
namespace KlaxRenderer.Debug
{
class CDebugLineShader : CDebugObjectShader
{
public CDebugLineShader()
{
VSFileName = "Resources/Shaders/DebugLineV... |
using System.IO;
using System.Text.Json;
using Flurl.Http.Configuration;
namespace MtgApiManager.Lib.Core
{
/// <inheritdoc />
public class SystemTextJsonSerializer : ISerializer
{
/// <inheritdoc />
public T Deserialize<T>(string s)
{
return JsonSerializer.Deserialize<... |
using System.Collections.Generic;
using System.Security.Claims;
namespace Tests.Helpers
{
public static class ClaimsData
{
public static List<Claim> GetClaims()
{
return new List<Claim>
{
new("username", "deneme"),
new("email", "test@test... |
/*
* BouncerAPI.Standard
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BouncerAPI.Standard.Http.Request;
namespace BouncerAPI.Standard
{
internal partial... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SampleSystemUnderTest.Calculator
{
public enum Operation
{
Add,
Subtract
}
}
|
#region Header
// Copyright (c) 2013 Hans Wolff
//
// 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, m... |
using UnityEngine;
using UnityEngine.AI;
/// <summary>
/// A wrapper class for movement of a bot using the A Star pathfinding.
/// </summary>
namespace KindlyBehave.Navigation
{
[RequireComponent(typeof(NavMeshAgent))]
public class NavMeshNavigationWrapper : AbstractNavigationWrapper
{
[SerializeF... |
using System.DirectoryServices.AccountManagement;
namespace Passwd.SystemDirectoryServicesImpl
{
internal class PrincipalDomainContext : IDomainContext
{
private readonly PrincipalContext principalContext;
public PrincipalDomainContext(PrincipalContext principalContext)
{
this.principalContext = principalC... |
using Lever.Dal;
using Lever.IBLL;
namespace Lever.Bll
{
public class ComponentBll: IComponentBll
{
private readonly ComponentDal _dal;
public ComponentBll(ComponentDal dal)
{
_dal = dal;
}
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace QF.GraphDesigner
{
public interface IPlatformOperations
{
void OpenScriptFile(string filePath);
void OpenLink(string link);
string GetAssetPath(object graphData);
bool MessageBox(str... |
using ms17.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;
namespace ms17.BLL.Interface
{
public interface IPhotoService
{
Photo FindPhotoById(int ID);
bool CreatePhoto(Photo newPhoto, HttpPostedFileBase... |
using UnityEngine;
using UnityEngine.AI;
public class EnemyAI : MonoBehaviour
{
private NavMeshAgent _agent;
private Transform _heart;
private void Start()
{
_agent = GetComponent<NavMeshAgent>();
_heart = GameObject.FindGameObjectWithTag("Heart").transform;
_agent.SetDestinat... |
using System;
using System.Linq;
namespace Bojo_ParkingSystem
{
class Program
{
private static bool[][] parking;
private static int rows;
private static int cols;
static void Main(string[] args)
{
int[] dimensions = Console.ReadLine()
.Split(... |
using UnityEngine;
public class AngularVelocity : MonoBehaviour {
public Vector3 angVel = new Vector3(10f, 10f, 0f);
Rigidbody body;
// Use this for initialization
void Start () {
body = GetComponent<Rigidbody>();
}
// Update is called once per frame
void Update () {
if (body != null) {
body... |
using EduCATS.Helpers.Forms.Styles;
using EduCATS.Themes;
using Xamarin.Forms;
namespace EduCATS.Controls.Pickers
{
/// <summary>
/// Groups picker view.
/// </summary>
public class GroupsPickerView : Frame
{
/// <summary>
/// Chosen group property.
/// </summary>
/// <remarks>
/// <c>"ChosenGroup"</... |
#if NETSTANDARD2_0 || NET461
using Microsoft.Extensions.DependencyInjection;
#endif
namespace RudderStack.Extensions
{
public static class ServiceCollectionExtension
{
#if NETSTANDARD2_0 || NET461
public static void AddAnalytics(this IServiceCollection services, string writeKey, RudderConfig config = n... |
namespace Photosphere.Console.Arguments.DataTransferObjects
{
public interface ICommandLineArguments {}
} |
namespace Bridge.ChartJS
{
[ObjectLiteral]
[External]
public class DataConfig
{
public Dataset[] Datasets;
public string[] Labels;
public string[] XLabels;
public string[] YLabels;
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
using Mono.Cecil;
using Mono.Cecil.Cil;
using Moq;
using NUnit.Framework;
[TestFixture]
public class WeaverInitialiserTests
{
[Test]
public void ValidProps()
{
var moduleDefinition = ModuleDefinition.CreateModule("Foo", Modu... |
using System;
using System.Net.Http;
using System.Threading.Tasks;
using Coinbase_Portfolio_Tracker.Models.Coinbase.Dto;
using Coinbase_Portfolio_Tracker.Models.Coinbase.Responses;
namespace Coinbase_Portfolio_Tracker.Services.Coinbase
{
public interface ICoinbaseBuyService
{
Task<CoinbaseBuy> GetBuyAs... |
@using SensorManagementSystem.App
@using SensorManagementSystem.App.Models
@using SensorManagementSystem.Models.Entities
@using SensorManagementSystem.App.Controllers
@using SensorManagementSystem.Common;
@using SensorManagementSystem.Models.ViewModels;
@using SensorManagementSystem.Common.Extensions;
@addTagHelper *... |
using System.Text.Json.Serialization;
namespace DotNetBungieAPI.Generated.Models.Content.Models;
public sealed class ContentTypeDefaultValue
{
[JsonPropertyName("whenClause")]
public string WhenClause { get; init; }
[JsonPropertyName("whenValue")]
public string WhenValue { get; init; }
[JsonPro... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Testing
{
class Program
{
const string CAMPAIGN_ID = "CAMPAIGN_ID";
const string ACCESS_TOKEN = "ACCESS_TOKEN";
static async Task Main(string[] args)
{... |
using System;
using System.Collections.Generic;
using System.Text;
namespace DeviousCreation.CqrsIdentity.Core.Constants
{
public enum RemoteMfaType
{
Email
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MCTuristic_Centro_Historico.GUI
{
public partial class PagPrincipal : System.Web.UI.Page
{
int id;
int idUser;
protected void Page_Load(o... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Rainnier.DesignPattern.FlyWeight
{
class Program
{
static void Main(string[] args)
{
var factory = FlyweightFactory.GetInstance();
var chess1 =... |
/****************************************************************************
Copyright (c) 2015 Lingjijian
Created by Lingjijian on 2015
342854406@qq.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to d... |
using System;
using System.Diagnostics;
using ProjBobcat.Class.Model.YggdrasilAuth;
namespace ProjBobcat.Class.Model
{
public class LaunchResult
{
public LaunchErrorType ErrorType { get; set; }
public LaunchSettings LaunchSettings { get; set; }
public ErrorModel Error { get; set; }
... |
using System;
namespace BinaryMesh.OpenXml.Internal
{
internal interface IOpenXmlDocument
{
IOpenXmlTextStyle DefaultTextStyle { get; }
IOpenXmlTheme Theme { get; }
}
}
|
using System.Collections;
using System.Collections.Generic;
using Conway;
using Johnson;
using UnityEngine;
public class MinimalExample : MonoBehaviour
{
void Start()
{
// 1. Create a starting shape
ConwayPoly poly1 = JohnsonPoly.Build(PolyHydraEnums.JohnsonPolyTypes.Prism, 4);
... |
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using Synnduit.Events;
using Synnduit.Mappings;
using Synnduit.Persistence;
namespace Synnduit
{
/// <summary>
/// Runs individual run segments of the <see cref="SegmentType.GarbageCollection" />
//... |
using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace auth
{
[Route("/")]
public class HomeController : ControllerBase
{
public IActionResult Home()
{
... |
using System.Globalization;
using System.Web;
using System.Web.Configuration;
using System.Web.Mvc;
namespace IM.Identity.Web
{
public class FilterConfig
{
private bool _useHttps;
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new Ha... |
using System.Diagnostics.CodeAnalysis;
namespace KIP_server_Auth.Constants
{
/// <summary>
/// Custom name constants.
/// </summary>
[ExcludeFromCodeCoverage]
public static class CustomNames
{
/// <summary>
/// Cabinet url.
/// </summary>
public const string Stu... |
namespace GDO.Areas.HelpPage.ModelDescriptions
{
public class KeyValuePairModelDescription : ModelDescription
{
public ModelDescription KeyModelDescription { get; set; }
public ModelDescription ValueModelDescription { get; set; }
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using PostSharp.Patterns.Contracts;
using ThreatsManager.Extensions.Panels.Roadmap;
using ThreatsManager.Extensions.Schemas;
using ThreatsManager.Interfaces.ObjectModel;
using ThreatsManager.Interfaces.ObjectModel.ThreatsMit... |
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class WinningScript : MonoBehaviour
{
GameObject[] nextGameObjects;
bool pass = false;
public int sceneNumber;
public GameObject go;
public Slider slider;
public AudioClip aclip;
public Text scoreText;
p... |
using System;
using System.Collections.Generic;
using DotNetMessenger.Model;
namespace DotNetMessenger.DataLayer.SqlServer.ModelProxies
{
public class MessageSqlProxy : Message
{
private bool _areAttachmentsFetched;
private IEnumerable<Attachment> _attachments;
private bool _isExpirat... |
using System.Diagnostics.CodeAnalysis;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Re... |
// Copyright(c) 2018 Jeff Hotchkiss
// Licensed under the MIT License. See License.md in the project root for license information.
using System;
using System.Diagnostics;
using System.Linq;
using AspNetCore.DataProtection.Aws.TestCoreWebApp.Models;
using Microsoft.AspNetCore.DataProtection;
using Microsoft.AspNetCore.... |
using Domain.Entities;
using System.Collections.Generic;
namespace Domain.Repositories
{
public interface ICartaoVirtualRepository
{
void AdicionarCartaoVirtual(CartaoVirtual cartaoVirtual);
IEnumerable<CartaoVirtual> ListarCartaoVirtual(string email);
}
}
|
//
// Copyright (c) 2017 Ricoh Company, Ltd. All Rights Reserved.
// See LICENSE for more information.
//
using System;
namespace MtpHelper
{
public class MtpHelperRuntimeException: Exception
{
public MtpHelperRuntimeException() {}
public MtpHelperRuntimeException(String message): base(messa... |
using Qowaiv.Globalization;
namespace Qowaiv.Validation.DataAnnotations.UnitTests.Models
{
public class ModelWithAllowedValues
{
[AllowedValues("", "BE", "NL", "LU")]
public Country Country { get; set; }
}
}
|
namespace AbstractIO.Netduino3
{
#region Info
// PWM on Netduino will be available for the following, if not conflicting with other use of the timers.
// The Arduiino pins D0 - D13 are connected to MCU pins using timer x for PWM
// D0 = PC7 = TIM8, channel 1
// D1 = PC6 = TIM8, channel 0
/... |
using Panosen.CodeDom.Css;
using System;
using System.Collections.Generic;
namespace Panosen.CodeDom.Less
{
/// <summary>
/// less 样式
/// </summary>
public class CodeLess : CodeCss
{
/// <summary>
/// 子 less 样式
/// </summary>
public List<CodeLess> Children { get; se... |
using ValveMultitool.Models.Formats.Lump;
namespace ValveMultitool.Models.Formats.GameStats.Legacy.Custom
{
public interface IVersion : ILumpElement
{
byte Version { get; set; }
byte Magic { get; set; }
}
}
|
<div class="text-left">
<h2>Multi-Scale Structural SIMilarity (MS-SSIM)</h2>
<div>
<p>
<a href="https://ece.uwaterloo.ca/~z70wang/publications/msssim.pdf">Multi-Scale Structural SIMilarity</a>
(MS-SSIM) is layered on SSIM. The algorithm calculates multiple SSIM
values ... |
using System.Collections.ObjectModel;
using System.Linq;
using UtilitiesBills.Models;
using UtilitiesBills.Reports;
using UtilitiesBills.Services;
using UtilitiesBills.ViewModels.Base;
using Xamarin.Forms;
namespace UtilitiesBills.ViewModels
{
public class BillsViewModel : BaseViewModel
{
public Obser... |
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
namespace CSharp9Sample
{
internal static class AwaitableExtensions
{
private static ValueTaskAwaiter<int> GetAwaiter(this int t)
{
return ValueTask.FromResult(t).GetAwaiter();
}
public static asy... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
using System.Reflection;
using Microsoft.CodeAnalysis;
namespace System.Text.Json.Reflection
{
internal class ParameterInfoWrapper : Parameter... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Bot.Schema;
namespace Bot.Builder.Community.Cards.Management.Tree
{
internal class RichCardTreeNode<T> : TreeNode<T, IEnumerable<CardAction>>
where T : class
{
public RichCardTreeNo... |
using UnityEngine;
using UnityEngine.UI;
namespace Google.MaterialDesign.Icons
{
public class MaterialIconUGUI : Text
{
[SerializeField] MDTextIcon icon;
protected override void Start()
{
base.Start();
if (string.IsNullOrEmpty(base.text))
{
... |
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
namespace Microsoft.Data.Entity.Design.Refactoring
{
internal class CodeElementRenameData
{
internal RefactorTargetType RefactorTargetType { get; private set; }
i... |
using System;
namespace DAPNet
{
/// <summary>
/// Represents a naive declicker.
/// </summary>
public class NDeclicker : Declicker
{
/// <summary>
/// Holds the default order.
/// </summary>
public const int DefaultOrder = 5;
/// <summary>
/// Hold... |
using EvernoteClone.ViewModels.Commands;
namespace EvernoteClone.ViewModels
{
public class SwitchLoginRegisterCommand : BaseCommand
{
private LoginViewModel _loginViewModel;
public SwitchLoginRegisterCommand(LoginViewModel loginViewModel)
=> _loginViewModel = loginViewModel;
... |
using System.Collections.Generic;
using CosmosApi.Serialization;
using Newtonsoft.Json;
namespace CosmosApi.Models
{
public class Deposit
{
/// <summary>
/// Initializes a new instance of the Deposit class.
/// </summary>
public Deposit()
{
}
/// <summar... |
using Ryujinx.Graphics.GAL.Multithreading.Commands.Sampler;
using Ryujinx.Graphics.GAL.Multithreading.Model;
namespace Ryujinx.Graphics.GAL.Multithreading.Resources
{
class ThreadedSampler : ISampler
{
private ThreadedRenderer _renderer;
public ISampler Base;
public ThreadedSampler(Th... |
/*
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage,
* (C) 2022 MinIO, 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... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using PuroBot.Discord.Services;
namespace PuroBot.Discord.Modules
{
public class MusicModule... |
using System;
namespace SFA.DAS.Authorization
{
public class UserContext : IUserContext
{
public long Id { get; set; }
public Guid Ref { get; set; }
public string Email { get; set; }
}
} |
namespace Lasm.UAlive
{
/// <summary>
/// A representation of X Y and Z axis. Used for selecting a single axis.
/// </summary>
public enum Axis
{
X, Y, Z
}
} |
using Codegen.CodegenAttributes;
using Codegen.CodegenAttributes.Bounds;
using UnityEngine;
namespace Sources.CommandSchemes.Common
{
[CommandToClient]
[CommandToServer]
public class TestScheme
{
[BoundedVector3(-1,1,0.01f,-1,1,0.01f,-1,-1,0.01f)]
public Vector3 Value;
public bo... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WindowsFormsApp6.Controllers;
using WindowsFormsApp6.Models;
using WindowsFormsApp6.Pr... |
using System.IO;
using System.Net.Http;
using IntegrationTests.Helpers;
using Xunit;
using Xunit.Abstractions;
namespace IntegrationTests.AspNet
{
public class AspNetTests : TestHelper
{
private static readonly string SampleDir = Path.Combine("test", "test-applications", "integrations", "aspnet");
... |
using System.Configuration;
using System.Net.Http;
using System.Threading.Tasks;
namespace Messenger.Webhook.DotNet.Sample.Services
{
/// <summary>
/// https://developers.facebook.com/docs/messenger-platform/reference/send-api/
/// </summary>
public class FacebookApi
{
private const string... |
namespace FirebaseCoreSDK.Logging
{
/// <summary>
/// FirebaseNullLogger which does not log.
/// </summary>
/// <seealso cref="FirebaseConsoleLogger" />
public class FirebaseNullLogger : FirebaseConsoleLogger
{
public FirebaseNullLogger()
: this(LogLevel.None) {}
... |
// Copyright and license at: https://github.com/MatthewMWR/MeasureTraceAutomation/blob/master/LICENSE
using System.Diagnostics;
using MeasureTraceAutomation.Logging;
namespace MeasureTraceAutomation
{
public static class Automate
{
public static void InvokeProcessingOnce(ProcessingConfig processingCo... |
using MongoDB.Driver;
namespace JobOfferBackend.ApplicationServices.Test.Base
{
public class SetupIntegrationTest
{
private readonly static MongoClient _mongoClient = new MongoClient();
private const string TestDataBaseName = "JobOfferIntegrationTests";
public static IMongoDatabase Da... |
using System;
using System.Runtime.InteropServices;
namespace WickedSick.Thea.VisualStudioInterop
{
public class ComMessageFilter : IOleMessageFilter
{
const int SERVERCALL_ISHANDLED = 0;
const int SERVERCALL_RETRYLATER = 2;
const int PENDINGMSG_WAITDEFPROCESS = 2;
... |
using System;
using System.Diagnostics;
using System.Threading.Tasks;
using Xamarin.Essentials;
using Xamarin.Forms;
using CookBook.Model;
namespace CookBook.ViewModel
{
public class RecipeDetailsViewModel : BaseViewModel
{
#region Properties
private Recipe recipe;
public Recipe Recip... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySql.Data.MySqlClient;
namespace ERP.DAL
{
public class Parameters
{
public System.Collections.Hashtable collection = new System.Collections.Hashtable();
public void Add(MySql.Data.MySqlClient.MySqlPa... |
namespace NL.HNOGames.Domoticz.Models
{
/// <summary>
/// Defines the <see cref="SunRiseModel" />
/// </summary>
public class SunRiseModel
{
#region Properties
/// <summary>
/// Gets or sets the AstrTwilightEnd
/// </summary>
public string AstrTwilightEnd { ... |
namespace Nyancat
{
partial struct AnsiConsole
{
private const string HIDE_CURSOR = "\x1b[?25l";
private const string RESET_CURSOR = "\x1b[H";
private const string SHOW_CURSOR = "\x1b[?25h";
private const string CLEAR_SCREEN = "\x1b[2J";
private const string RESET_ALL_ATT... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... |
using System;
using Netezos.Keys.Utils.Crypto;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.Crypto.Signers;
using BcEd25519 = Org.BouncyCastle.Math.EC.Rfc8032.Ed25519;
namespace Netezos.Keys.Crypto
{
class Ed25519 : ICurve
{
#region static
static readonly byte[] _AddressPre... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;
using Bakery.Models;
using System;
namespace Bakery.Tests
{
[TestClass]
public class OrderTests : IDisposable
{
public void Dispose()
{
Order.ClearAll();
}
[TestMethod]
public void OrderConstructor_Cr... |
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using Microsoft.Data.Entity.Metadata;
namespace Microsoft.Data.Entity.ChangeTracking.Internal
{
... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LogentriesCore
{
internal class LogEntryEncoder : ILogEntryEncoder
{
public LogEntryEncoder(Encoding encoding)
{
Debug.Assert(enco... |
namespace Yoba.Bot.RegularExpressions;
public class Exept : Re
{
public override string ToString()
{
throw new NotImplementedException();
}
} |
namespace Sample.Functional.Migrations
{
using FluentMigrator;
[Migration(201712261133)]
public class M201712261133_SchemaInicial : Migration
{
public override void Up()
{
Create.Table("Usuario").WithDescription("Tabela de usuários")
.WithColumn("Id").AsInt3... |
namespace Shinden.Models
{
public enum MangaStatus
{
NotSpecified,
NotYetPublished,
Publishing,
Finished,
}
}
|
// 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.
#if DEBUG
#endif
internal static partial class Interop
{
internal static partial class Gdi32
{
///... |
namespace Modular.Abstractions.Messaging
{
public interface IMessageContextProvider
{
IMessageContext Get(IMessage message);
}
} |
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using LRS.Business;
namespace LRS.Mvc.Models
{
public class ArtifactModel
{
#region Properties
public int MainId { get; set; }
public string Status => Main?.Status;
public StatusEnum? StatusEnum => ... |
using System;
namespace FakeFx.Runtime
{
// used for tracking request invocation history for deadlock detection.
[Serializable]
[Hagar.GenerateSerializer]
internal sealed class RequestInvocationHistory
{
[Hagar.Id(1)]
public GrainId GrainId { get; private set; }
[Hagar.Id(2)... |
using System;
using System.Globalization;
using System.Windows.Data;
using MahApps.Metro.IconPacks;
namespace IconPacksValueConverterSample
{
public class BatteryValueConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
... |
/*********************************************
作者:曹旭升
QQ:279060597
访问博客了解详细介绍及更多内容:
http://blog.shengxunwei.com
**********************************************/
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
using Microsoft.Practi... |
using System;
using System.Collections;
using System.Windows.Forms;
namespace ImageScraper.Utilities
{
/// <summary>
/// ListViewの項目の並び替えに使用するクラス
/// </summary>
public class ListViewItemComparer : IComparer
{
private int _column;
private SortOrder _order;
/// <summary>
... |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ------------------------------... |
using System;
namespace EntidadesGeneral
{
public class Cliente
{
public int Id { get; set; }
public string Apellido { get; set; }
public string Nombre { get; set; }
public int Dni { get; set; }
public string Domicilio { get; set; }
public string Localidad { get... |
namespace NEP.Paranoia.Managers
{
public class TickTemplate
{
public int id { get; set; }
public string name { get; set; }
public float tick { get; set; }
public float[] minMaxTime { get; set; }
public int[] minMaxRNG { get; set; }
public float insanity { get; se... |
using System;
using Captura.Base.Notification;
using Captura.Base.Services;
using Captura.Loc;
namespace Captura.Fakes
{
// ReSharper disable once ClassNeverInstantiated.Global
class FakeSystemTray : ISystemTray
{
readonly LanguageManager _loc;
public FakeSystemTray(LanguageManager loc)
... |
/*****************************************************************************
* Copyright 2016 Aurora Solutions
*
* http://www.aurorasolutions.io
*
* Aurora Solutions is an innovative services and product company at
* the forefront of the software industry, with processes and practices
* involving Domain Dri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.