text stringlengths 1 932k |
|---|
using UnityEngine;
using System.Collections;
namespace EA4S.ColorTickle
{
public enum eHitState
{
HIT_NONE = 0, HIT_LETTERINSIDE_AND_BODY, HIT_LETTERINSIDE, HIT_LETTEROUTSIDE
}
public class HitStateLLController : MonoBehaviour
{
// public enum eLLState
// {
... |
// 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.
namespac... |
// 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 System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace ChorusLib
{
public class ChorusApi : IChorusApi
{
private readonly string _apiUrl;
... |
using Lpp.QueryComposer;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Lpp.Dns.Portal.App_Code.Terms.DataChecker
{
public class AgeDistribution : IVisualTerm
{
public Guid TermID
{
get { return ModelTermsFactory.DC_AgeDistribution; }... |
using Moq;
using RestEase;
using RestEase.Implementation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace RestEaseUnitTests.ImplementationBuilderTests
{
public class HeaderTests
{
... |
// Copyright (c) 2010-2013 AlphaSierraPapa for the SharpDevelop Team
//
// 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... |
using ContosoUniversity.Data;
using ContosoUniversity.Models;
using ContosoUniversity.Models.SchoolViewModels;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ContosoUniversity.Controllers
{... |
namespace OpenLibraryLabelImg.Forms
{
partial class AnnotationWindow
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </s... |
namespace Lab_11_tic_tac_toe
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// ... |
using System;
using System.Diagnostics.Contracts;
using Shuttle.Esb;
namespace DotNetRevolution.ShuttleESB.Messaging
{
public class ShuttleMessageEntry : IShuttleMessageEntry
{
public Type MessageType { get; }
public Type MessageHandlerType { get; }
public IMessageHandler MessageHandle... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Linq;
namespace Opportunity.LrcParser.UnitTest
{
[TestClass]
public class TimestampTests
{
[TestMethod]
public void Create()
{
Assert.AreEqual(new DateTime(1, 1, 1, 0, 0, 1, 100), Timestamp.C... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NPoco;
using NavisionObjectImporterExporterTool.Data.Models;
using NavisionObjectImporterExporterTool.Models;
using NavisionObjectImporterExporterTool.Enum;
namespace NavisionObjectImporterExpor... |
using System.Collections.Generic;
using AmazonToo.Models;
namespace AmazonToo.Models.ViewModels {
public class ProductsListViewModel {
public IEnumerable<Product> Products { get; set; }
public PagingInfo PagingInfo { get; set; }
public string CurrentCategory { get; set; }
}
} |
// 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.Threading.Tasks;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
{
public class ValidateAntiForger... |
using System;
using System.Text;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.IdentityModel.Tokens;
namespace NetDevPack.Identity.Jwt
{
public static class Abstractions
{
public static ISe... |
using System.IO;
using System.Runtime.Serialization;
using GameEstate.Red.Formats.Red.CR2W.Reflection;
using FastMember;
using static GameEstate.Red.Formats.Red.Records.Enums;
namespace GameEstate.Red.Formats.Red.Types
{
[DataContract(Namespace = "")]
[REDMeta]
public class CMaterialBlockOutputColorDeferred : CMat... |
// <copyright file="ResolverVer1_1.cs" company="Google Inc.">
// Copyright (C) 2015 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.... |
/****************************** Module Header ******************************\
* Module Name: UICredentialsProvider.cs
* Project: CSFTPDownload
* Copyright (c) Microsoft Corporation.
*
* The Form UICredentialsProvider contains 3 textboxes that accept UserName,
* Password and Domain to initialize a NetworkCredent... |
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNet.Identity;
using Microsoft.Owin.Security;
namespace Warehouse.Models
{
public class IndexViewModel
{
public bool HasPassword { get; set; }
public IList<UserLoginInfo> Logins { get; set; }
... |
using System.Web.Mvc;
using System.Web.Routing;
using MvcThrottleImproved;
using MvcThrottleImproved.Repositories;
namespace MvcThrottle.Demo.Helpers
{
public class MvcThrottleCustomFilter : ThrottlingFilter
{
public MvcThrottleCustomFilter(ThrottlePolicy policy, IThrottleRepository throttleRepository... |
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace dz3_class_lib
{
public class FilePrinter : IPrinter
{
private string fileName;
public FilePrinter(string fileName)
{
this.fileName = fileName;
}
public void Log(st... |
#pragma checksum "C:\Users\S145\Documents\MeusProjetos\Destino_Certo\Views\_ViewImports.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "cb310cfebe6c1cc6191d57b9a3b9a4e6e0a01a2f"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(As... |
////////////////////////////////////////////////////////////////////////////////
//NUnit tests for "EF Core Provider for LCPI OLE DB"
// IBProvider and Contributors. 26.07.2021.
//
// <field>.AddHours(...)
//
using System;
using System.Linq;
using System.ComponentModel.DataAnnotati... |
@using Depanneur.App.Helpers
@inherits RazorLight.TemplatePage<Depanneur.App.Models.UserRecap>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" co... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** 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;
namespace Pulumi.Azur... |
namespace todo
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
using Microsoft.Azure.Documents;
using Microsoft.Azure.Documents.Client;
using Microsoft.Azure.Documents.Linq;
public class Document... |
using NUnit.Framework;
using System;
using System.Collections.Generic;
using WhoLivesInThisHouse;
namespace WhoLivesInThisHouseTest
{
[TestFixture()]
public class CharacterTest
{
[Test()]
public void it_should_be_constructed_with_likes_and_dislikes_as_tags()
{
List<Tag>... |
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Stratis.SmartContracts.CLR.Serialization;
using Unity3dApi;
using UnityEngine;
public class NFTWrapper
{
/// <summary>Deploys StandartToken contract and returns txid of deployment transaction.</summary>
public static async Task... |
@{
ViewData["Title"] = "Home Page";
}
<h2>Requisites</h2>
<p class="swift-css"> SWIFT BIC PJCBBY2X</p>
<p class="iban-css">IBAN BY93PJCB84311710854000287988</p>
@* Do not remove first empty style {} *@
<div class="div-with-css">
{}
.div-with-css {
display:none;
}
.iban-css {
displ... |
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
namespace SampleTableSeparator
{
class Program
{
private const string ConnectionString =
@"data source=LAPTOP-SCPOKV5J\SQL2014;initial catalog=Hydra2;integrated security=True;MultipleActiveResultSets=True;";
... |
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Prism.Wpf.Tests
{
[TestClass]
public class CollectionE... |
// Copyright (c) Josef Pihrt. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Roslynator.CSharp.CodeFixes;
using Roslynator.Testing.CSharp;
using Xunit;
namespace Roslyn... |
// 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;
namespace Iot.Device.Rtc
{
/// <summary>
/// Base class for real time clocks (RTC)
/// <... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Xrm.Framework.CI.Common
{
public class FileUtilities
{
public static string GetFileVersion(string fileName)
{
if ... |
using AutomotiveMarketSystem.Data.Base;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace AutomotiveMarketSystem.Data.Models
{
[Table("EngineTypeStatus")]
public class EngineTypeStatus : BaseEntity
{
public string EngineType { get; set; }
publ... |
namespace Sitecore.Feature.Search.Models
{
public class SearchResultsHeader
{
public SearchResultsViewModel Results { get; set; }
public SearchContext Context { get; set; }
}
} |
// ReSharper disable UnusedMethodReturnValue.Global
using System;
using JetBrains.Annotations;
namespace Backend.Fx.Logging
{
public interface ILogger
{
#region fatal
Exception Fatal(Exception exception);
[StringFormatMethod("format")]
void Fatal(string format, params object[... |
// 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 System.Windows.Forms
{
using System;
using System.Diagnostics;
using System.ComponentModel;
... |
namespace PosService.DataContracts.Pos.Responses
{
/// <summary>
/// 結果ベースクラス
/// </summary>
public abstract class ResponseBase
{
}
} |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class OverlayTest : MonoBehaviour {
void Start () {
ASCII.Instance.PutString("Hello World! 123", Color.white, 0, 0);
ASCII.Instance.PutString("Hello World! 123", Color.red, 0, 1);
ASCII.Instance.PutString("Hello World! 123"... |
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated w... |
using NUnit.Framework;
using Rhino.Mocks;
using StoryTeller.Execution;
using StoryTeller.Model;
using StoryTeller.Testing;
using StoryTeller.UserInterface.Exploring;
using StructureMap;
namespace StoryTeller.UserInterface.Testing.UI.Exploring
{
[TestFixture]
public class FixtureExplorerTester
{
#re... |
// Copyright 2013-2021 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/>
//
// Licensed under the ImageMagick License (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.imagemagick.org/script/license.php
//
// Unless req... |
using System;
using System.Xml.Serialization;
using System.ComponentModel.DataAnnotations;
using BroadWorksConnector.Ocip.Validation;
using System.Collections.Generic;
namespace BroadWorksConnector.Ocip.Models
{
/// <summary>
/// CommPilot Express Unavailable Configuration used in the context of a modify.
... |
#region Apache License Version 2.0
/*----------------------------------------------------------------
Copyright 2019 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd.
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 ... |
using App5_2.AdmissionFee.Conditions.Clock;
using App5_2.AdmissionFee.Conditions.ComplimentaryTickets;
using App5_2.AdmissionFee.Conditions.PersonType;
using App5_2.AdmissionFee.Conditions.VisitHistory;
namespace App5_2.AdmissionFee.Conditions
{
internal class Conditions
{
internal IPersonType PersonT... |
using Abp.Authorization.Users;
using Abp.Domain.Repositories;
using Abp.Domain.Uow;
using AbpKendoDemo.Authorization.Roles;
namespace AbpKendoDemo.Users
{
public class UserStore : AbpUserStore<Role, User>
{
public UserStore(
IRepository<User, long> userRepository,
IRepository<Us... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Xunit;
using System;
using System.Collections;
using System.Collections.Specialized;
using GenStrings;
namespace System.Collections.Specialized.Tests
{
publ... |
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Microsoft.Azure.II... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... |
using PlannerApp.Shared.Models;
using PlannerApp.Shared.Responses;
using System.Threading.Tasks;
namespace PlannerApp.Client.Services.Interfaces
{
public interface IAuthenticationService
{
Task<Response> RegisterUserAsync(RegisterRequest model);
}
} |
namespace Diverse
{
/// <summary>
/// A first name with some related information (like the <see cref="Origin"/> of it).
/// </summary>
public class ContextualizedFirstName
{
/// <summary>
/// Instantiates a <see cref="ContextualizedFirstName"/>.
/// </summary>
/// <p... |
//===============================================================================================================
// System : Sandcastle Help File Builder Utilities
// File : SubstitutionTagReplacement.cs
// Author : Eric Woodruff (Eric@EWoodruff.us)
// Updated : 08/28/2016
// Note : Copyright 2015-2016, Eric... |
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using IdentityServer4.Models;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
... |
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Threading;
//using System.Threading.Tasks;
//using FluentAssertions;
//using Microsoft.VisualStudio.TestTools.UnitTesting;
//namespace Alethic.Kademlia.Tests
//{
// [TestClass]
// public class KFixedRoutingTableTests
// ... |
#region License
/*
The MIT License
Copyright (c) 2008 Sky Morey
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, ... |
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using Unity.Collections;
using Unity.Collections.LowLevel.Unsafe;
using UnityEngine;
using UnityEngine.Rendering;
namespace Klak.Ndi {
//
// Frame readback entry class
//
// Stores information about single-frame readback.
//
// We n... |
using Homebrew;
using UnityEngine;
[CreateAssetMenu(fileName = "CommandsDefault", menuName = "Commands/CommandsDefault")]
public class CommandsConsoleDefault : CommandsConsole
{
[Bind]
public void TestCommand(string name)
{
Debug.Log(name);
}
} |
using EngineeringUnits.Units;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
namespace EngineeringUnits.Units
{
public class FuelEfficiencyUnit : Enumeration
{
public static readonly FuelEfficiencyUnit SI = new(LengthUnit.SI, VolumeUnit.SI);
public static rea... |
// <auto-generated />
namespace HRM.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 class depts112 ... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Immutable;
using System.Composition;
using System.Threading;
using System.Th... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using System.Xml.Serialization;
namespace Cinema.DataProcessor.ImportDto
{
[XmlType("Ticket")]
public class TicketDto
{
[XmlElement("ProjectionId")]
public int ProjectionId { get... |
using System;
using System.Collections.Generic;
using System.Reactive.Linq;
using System.Text;
using Avalonia.Reactive;
namespace Avalonia.Data.Core
{
public class AvaloniaPropertyAccessorNode : SettableNode
{
private IDisposable _subscription;
private readonly bool _enableValidation;
... |
namespace Bike.Test
{
using System;
using System.Threading;
using NUnit.Framework;
[TestFixture]
public class InteropTest : BaseInterpreterTest
{
[Test]
public void Generics()
{
Interpret(@"load 'Bike.Test';
System.Collections.Generi... |
// ***********************************************************************
// Copyright (c) 2007 Charlie Poole
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, inclu... |
using System.IO;
using System.Linq;
using System.Reflection;
namespace NorthernLight.NasdaqNordic.Test.Utils
{
public static class EmbeddedResourceUtil
{
public static string ReadFileContent(string filename)
{
var assembly = Assembly.GetExecutingAssembly();
string resou... |
using System;
using System.Data;
using Csla;
namespace SelfLoad.DataAccess.ERLevel
{
/// <summary>
/// DAL Interface for C08_Region type
/// </summary>
public partial interface IC08_RegionDal
{
/// <summary>
/// Inserts a new C08_Region object in the database.
/// </summary>... |
using System.Collections.Generic;
namespace GNS3sharp {
/// <summary>
/// Abstract class that serves as a skeleton for the routers that are defined
/// </summary>
public abstract class Router : Node{
/// <summary>
/// Routing table of the node as an object
/// </summary>
... |
using System.Collections.Generic;
//TODO: provide versions of these methods that use arrays instead of dictionaries.
namespace ISAAR.MSolve.LinearAlgebra.Matrices.Builders
{
/// <summary>
/// Facilitates the construction of large symmetric sparse matrices, usually by adding smaller submatrices.
/// The ... |
// 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... |
// *** 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.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using EfLocalDb;
using GraphQL.EntityFramework;
using GraphQL.Types;
using Microsoft.EntityFrameworkCore;
using Xunit;
using Xunit.Abstractions;
public class ConnectionConverterTests :
XunitApprovalBase
{
static C... |
namespace Mono.Linker.Tests.Cases.References.Dependencies
{
public class UsedReferencedAssembly
{
}
} |
using ApplicationCore.Specifications;
using Microsoft.eShopWeb.ApplicationCore.Entities;
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
using System.Collections.Generic;
using System.Linq;
using Xunit;
namespace UnitTests
{
public class BasketWithItems
{
private int _testBasketId =... |
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
usi... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using CIndex;
namespace ClangAggregator
{
public class ClangTU : IDisposable
{
IntPtr m_index;
IntPtr m_tu;
ClangTU(IntPtr index, IntPtr tu)
{
... |
using UnityEngine;
using UnityEditor;
using System.Text;
namespace MediaMonks
{
[CustomPropertyDrawer(typeof(OpenFontFormat.Tag))]
public class FourCharIntDrawer : PropertyDrawer
{
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
string name = OpenFontFormat.Convert... |
using System;
namespace Job.Scheduler.Job.Action
{
public interface IRetryAction
{
/// <summary>
/// Should the job be retried
/// </summary>
/// <param name="currentRetry"></param>
bool ShouldRetry(int currentRetry);
/// <summary>
/// Should there be a ... |
@using Fun2RepairMVC.Web.Areas.sysAdmin.Common.Modals
@model Fun2RepairMVC.MultiTenancy.Dto.TenantDto
@{
Layout = null;
}
@Html.Partial("~/Areas/sysAdmin/Views/Shared/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(L("EditTenant")))
<div class="modal-body">
<form name="TenantEditForm" role="form" novali... |
using MediatR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.AspNetCore.Http;
namespace DotNetCenter.Beyond.Web.Core.Common.DIContainerServices.Services
{
public class MediateRServ... |
// <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... |
namespace Naos.ServiceDiscovery.Application
{
/// <summary>
/// Service discovery configuration.
/// </summary>
public class ServiceDiscoveryConfiguration
{
public bool Enabled { get; set; } = true;
public string[] ServiceAddresses { get; set; }
public bool RouterEnabled {... |
// <auto-generated />
namespace BookingApp.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 class Mi... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StackOverflow.Model;
namespace FluentStackOverflow
{
public static class PostExtensions
{
public static IEnumerable<Post> Questions(this IEnumerable<Post> posts)
{
return posts.Where(p => p.... |
using System;
using System.Collections.Generic;
using System.Text;
namespace CustomException
{
public class StudentInvalidFormatInput : Exception
{
public StudentInvalidFormatInput(string message)
: base(message)
{
}
}
} |
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace CSCore.Test
{
[TestClass]
public class TimeConverterTests
{
[TestMethod]
public void TimeConverterAttributeTest()
{
var timeConverter = TimeConverterFactory.Instance.GetTimeConverterForSource<Fo... |
using AutoMapper;
using Microsoft.Extensions.Logging;
namespace Wicked.Favorites
{
internal class Dependencies<T> : IDependencies<T>
{
public Dependencies(IMapper mapper, ILogger<T> logger, FavoritesContext context)
{
Mapper = mapper;
Logger = logger;
Contex... |
using System.Collections;
namespace Swifter.RW
{
internal sealed class DictionaryInterface<T> : IValueInterface<T> where T : IDictionary
{
public T ReadValue(IValueReader valueReader)
{
var dictionaryRW = new DictionaryRW<T>();
if (valueReader is IMapValueReader mapR... |
namespace IntegracionCache.Controllers
{
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
public class User
{
[JsonProperty("id")]
public int Id { get; set; }
[JsonProperty("email")]
p... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DocAsCode.Build.SchemaDriven
{
using System.Collections.Generic;
using System.Composition;
using Microsoft.DocAsCode.Build.Common;
... |
namespace Repository
{
public interface ILocalContextConfiguration
{
string AccountEndPoint { get; }
string AccountKey { get; }
string DatabaseName { get; }
string DefaultContainer { get; set; }
}
public class LocalContextConfiguration : ILocalContextConfiguration
{... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - Almighty.Mall.Seller.Web</title>
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" h... |
using System;
using System.Collections.Generic;
using System.Text;
class Engine
{
//An Engine has model, power, displacement and efficiency. A Car’s weight and color and its Engine’s displacements and efficiency are optional.
private string model;
private string power;
private string displacement;
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using Microsoft.AspNetCore.Authentication.OpenIdConnect;
using Microsoft.Identity.Web.Test.Common;
using Xunit;
namespace Microsoft.Identity.Web.Test
{
public class AuthorityHelpersTests
{
[Theory]
... |
using System;
using System.Collections.Generic;
using System.Text;
using Zephyr.Core;
namespace ERP.Web.Models
{
[Module("Psi")]
public class psi_purchaseGoodsService : ServiceBase<psi_purchaseGoods>
{
}
public class psi_purchaseGoods : ModelBase
{
[PrimaryKey]
public s... |
using FluentNHibernate.Mapping;
namespace ViennaNET.Orm.Tests.LocalDatabaseTests.EntityFactoryTestData
{
internal class TestEntityMap : ClassMap<TestEntity>
{
public TestEntityMap()
{
HibernateMapping.Not.AutoImport();
Table("TestTable");
Id(x => x.Id).GeneratedBy.Identity();
Map(... |
namespace GinjaSoft.Text.Tests.StringExtensionsTests
{
using Xunit;
public class TryToEnumTests
{
private enum TestEnum
{
Foo
}
[Fact]
public void ValidString()
{
var result = "foo".TryToEnum(out TestEnum outValue);
Assert.True(result);
Assert.Equal(TestEnum.Foo... |
using Employees.BL.Contracts;
using Employees.BL.Models;
using System.Collections.Generic;
using System.Linq;
namespace Employees.BL
{
public class EmployeeService : IEmployeesService
{
private static Dictionary<int, IList<PairOfEmployees>> _pairs;
public EmployeeService()
{
... |
using HouseholdManager.Models;
namespace HouseholdManager.Logic.Contracts.Factories
{
public interface IHouseholdFactory
{
Household CreateHousehold(string name, string address, byte[] image);
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.