content stringlengths 23 1.05M |
|---|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;
using Umbraco.Core.Models.PublishedContent;
namespace YuzuDelivery.Umbraco.Grid
{
public static class GridExtensions
{
public static IGridItem GridPartial(this Html... |
namespace TableQueryParser.Core.Values
{
internal class StringValue : IValue
{
private readonly string _value;
public StringValue(string value)
{
_value = value;
}
public bool LessThan(object value)
{
if (value is string)
... |
using System;
using System.IO;
#if CONTRACTS_FULL_SHIM
using Contract = System.Diagnostics.ContractsShim.Contract;
#else
using Contract = System.Diagnostics.Contracts.Contract; // SHIM'D
#endif
using FA = System.IO.FileAccess;
namespace KSoft.Phoenix.Resource.ECF
{
public enum EcfFileBuilderOptions
{
... |
using Microsoft.Azure.OpenApiExtensions.Attributes;
//using System.Text.Json.Serialization;
namespace ArmResourceProviderDemo.WebModels.Traffic
{
//[JsonConverter(typeof(TrafficJsonConverter))]
[SwaggerVirtualInheritances(typeof(TrafficKindsVirtualInheritanceProvider), nameof(TrafficResource))]
public cla... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BattleNetLibrary.Models
{
public class GamesAndSubs
{
public class GameAccount
{
public class AccountUniqueId
{
pu... |
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.RazorPages;
using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using IO = System.IO;
namespace Content_Pipeline.Pages
{
public class IndexModel : PageModel
{
public void OnGet()
{
var files... |
namespace AcmeCorp.EventSourcingExampleApp.Orders.Contracts.Dto
{
public class OrderItem
{
public OrderItem(int productId, string productDescription, decimal productPrice, int quantity)
{
this.ProductId = productId;
this.ProductDescription = productDescription;
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RedditSharp.Utils
{
internal static class DateTimeExtensions
{
public static double DateTimeToUnixTimestamp(this DateTime dateTime)
{
double time = (dateTime... |
using System;
namespace IDE
{
[Serializable]
public class WireProject
{
public PointProject From;
public int FromComponent;
public int FromIndex;
public int RootComponent;
public PointProject To;
public int ToComponent;
public int ToIndex;
pu... |
using Autofac;
using IFPS.Factory.Domain.Serializers.Implementations;
using IFPS.Factory.Domain.Serializers.Interfaces;
using IFPS.Factory.Domain.Services.Implementations;
using IFPS.Factory.Domain.Services.Interfaces;
namespace IFPS.Factory.API.Bootstrap.AutofacModules
{
public class DomainAutofacModule ... |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Serialization;
namespace Microsoft.Deployment.DotNet.Releases
{
/// <summary>
/... |
//[?] 1부터 1,000까지의 정수 중 13의 배수의 개수(건수, 횟수)
using System;
using System.Linq;
/// <summary>
/// 개수 알고리즘(Count Algorithm): 주어진 범위에 주어진 조건에 해당하는 자료들의 개수
/// </summary>
class CountAlgorithm
{
static void Main()
{
//[1] Input: 1부터 1,000까지의 데이터
var numbers = Enumerable.Range(1, 1_000).ToArray();
... |
using System.Reflection;
namespace FasmCode.ViewModels
{
/// <summary>
/// Represents an about information
/// </summary>
class AboutViewModel
{
/// <summary>
/// Creates a new instance of AboutViewModel
/// </summary>
public AboutViewModel()
{
A... |
using System.ComponentModel.Composition;
using System.IO;
using CuttingEdge.Conditions;
namespace PhoenixVB6.ProjectModel.Exports
{
[Export(typeof(IProjectItemProvider))]
public class ProjectItemProvider : IProjectItemProvider
{
#region IProjectItemProvider Members
public virtual bool TryRead(IProjectContext c... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace Helpers
{
public static class UrlExtensions
{
/// <summary>
/// Strips the querystring from a url and returns the result as a string
/// </summary>
... |
using System;
using System.Linq;
using System.Threading.Tasks;
using SmartPos.Ui;
using SmartPos.Ui.Theming;
using SmartPos.Ui.Controls;
using SmartPos.Ui.Security;
using SmartPos.Ui.Components;
using SmartPos.Desktop.Security;
using SmartPos.Desktop.Interfaces;
namespace SmartPos.Desktop.Controls
{
[PosAuthoris... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
namespace ScottPlot.Statistics
{
public static class Common
{
private readonly static RNGCryptoServiceProvider Rand = new();
/// <summary>
/// Return the minimum, ... |
@using Microsoft.AspNetCore.Identity
@using MyFBPage
@using MyFBPage.Models
@using MyFBPage.Models.AccountViewModels
@using MyFBPage.Models.ManageViewModels
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
namespace Bvx
{
public class Document
{
public Document(string application, params Part[] parts)
{
this.Application = application;
this.parts.AddRange(p... |
// <copyright file="IServiceLocator.cs" company="Huy Tran">
// Copyright (c) Huy Tran. All rights reserved.
// </copyright>
namespace SpeakerAutoVolume.Presentation.Interfaces
{
/// <summary>
/// Interface for ServiceLocator.
/// </summary>
public interface IServiceLocator
{
///... |
using System.ComponentModel.DataAnnotations;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Localization;
using Quark.Localization;
namespace Quark.AppService.Dtos;
[Serializable]
public record QueryRequestDto : IValidatableObject
{
public static int DefaultMaxResultCount { get; set; } =... |
@model ProjetoCursoAspNetMVC.Models.Cliente
@{
ViewBag.Title = "Index";
}
<h2>Index</h2>
<div>
<p>@Model.Nome</p>
<p>@Model.SobreNome</p>
<p>@Model.DataCadastro</p>
</div>
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace XSmartNote.ThemeManager.Themes.Splash
{
class LoadMessage
{
public static void Load()
{
Thread.Sleep(5000);
SplashScreen.ChangeTitle("正在加载UI组件 ... ...... |
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE. IT CAN BE DISTRIBUTED FREE OF CHARGE AS LONG AS THIS HEADER
// REMAINS UNCHANGED.
... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Entities.DataTransferObjects
{
public abstract class CompanyForManipulationDto
{
[Required(ErrorMessage = "Company name is a requir... |
using System;
namespace PSTParse.NDB
{
public class BlockTrailer
{
public uint DataSize { get; set; }
public uint WSig { get; set; }
public uint CRC { get; set; }
public ulong BID_raw { get; set; }
public BlockTrailer(byte[] bytes, int offset)
{
thi... |
namespace Smart.IO.ByteMapper.Builders
{
using System.Reflection;
using Smart.IO.ByteMapper.Mappers;
public interface IMemberMapperBuilder
{
int Offset { get; set; }
PropertyInfo Property { get; set; }
int CalcSize();
IMapper CreateMapper(IBuilderContex... |
namespace AccessModifiers
{
internal class RateCalculator
{
public int Calculate(CustomerAccess customerAccess)
{
return 0;
}
}
} |
using System.Linq;
namespace Unity.MLAgents.Sensors
{
/// <summary>
/// The compression setting for visual/camera observations.
/// </summary>
public enum SensorCompressionType
{
/// <summary>
/// No compression. Data is preserved as float arrays.
/// </summary>
None,... |
using System;
namespace lp73.designPatterns.Builder
{
public class LiasseXml : Liasse
{
public override void AjouteDocument(string document)
{
if (document.StartsWith("<XML>"))
Contenu.Add(document);
}
public override void Imprime()
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace YGOPRODraft
{
public class Constants
{
public String LOTD_DAT_FILENAME = "YGO_DATA.dat";
public String LOTD_TOC_FILENAME = "YGO_DATA.toc";
public String LOTD_SAVE_FILENAME = "savegame.... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using ForgottenSchism.control;
using ForgottenSchism.engine;
using ForgottenSchism.wor... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pattern10.State
{
class Program
{
static void Main()
{
Player forrest = new Player("Forrest Gump");
forrest.Show();
forrest.Run();
... |
namespace LinkedList
{
public class SinglyLinkedList<T> : ISinglyLinkedList<T>
{
private SinglyLinkedListNode<T> _head = null;
private SinglyLinkedListNode<T> _tail = null;
private int _size = 0;
private SinglyLinkedListNode<T> _nodes;
public void AddAfter(SinglyLinkedL... |
/*
* Copyright (C) 2016-2017 Ansuria Solutions LLC & Tommy Baggett:
* http://github.com/tbaggett
* http://twitter.com/tbaggett
* http://tommyb.com
* http://ansuria.com
*
* The MIT License (MIT) see GitHub For more information
*
* Unless required by applicable law or agreed to in writing, software
* distrib... |
using System;
using System.IO.Abstractions;
using RegionOrebroLan.Localization.Reflection;
using RegionOrebroLan.Localization.Resourcing;
namespace RegionOrebroLan.Localization.Json.Resourcing
{
public class ResourceValidator : BasicResourceValidator
{
#region Fields
private const string _validExtension = ".js... |
using NUnit.Framework;
using UnityEngine;
namespace VRM
{
public class EnumUtilTest
{
[Test]
public void EnumUtilTestSimplePasses()
{
Assert.AreEqual(default(HumanBodyBones), EnumUtil.TryParseOrDefault<HumanBodyBones>("xxx"));
#if UNITY_5_6_OR_NEWER
Assert.Are... |
using Kaia.Common.DataAccess;
using System.Collections.Generic;
using System.Linq;
namespace Kaia.MultiSelect.Domain
{
/// <summary>
/// Represents the changes to one ore more suppliers
/// </summary>
public static class SupplierExtensions
{
public static SupplierModifier GetModifier(this ... |
namespace MusicXml
{
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.7.2046.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Ty... |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ExampleSignalTest.cs" company="Supyrb">
// Copyright (c) Supyrb. All rights reserved.
// </copyright>
// <author>
// Johannes Deml
// send@johannesdeml.com
// </author>
// -... |
namespace WebMoney.Services.Contracts.BusinessObjects
{
public interface IPaymentConfirmation
{
string TargetPurse { get; }
long InvoiceId { get; }
string ConfirmationCode { get; }
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DrugLibAPI.RESTModels.RxNorm
{
public class GetNdcProperties
{
#region Inner Class Models
public class Rootobject
{
public Ndcpropertylist ndcPro... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LZ78
{
class Encoded
{
int index;
char character;
public Encoded(int index, char character)
{
this.Index = index;
this.Characte... |
using UnityEngine;
[System.Serializable]
class BeamParamters
{
public float countPerMeter = 1f;
public float speed = 1f;
public float curvatureRadius = 1f;
public float damping = 0.1f;
public float impact = 1f;
}
class Beam
{
public Beam()
{
time = -float.MaxValue;
}
public void Emit(
... |
using System.Collections.Generic;
namespace MvcContrib.FluentHtml.Behaviors
{
/// <summary>
/// Contract for any class implementing a list of custom behaviors.
/// </summary>
public interface IBehaviorsContainer
{
/// <summary>
/// The collection of <see cref="IBehaviorMarker"/> objects.
/// </summary>
IE... |
using System.Diagnostics.CodeAnalysis;
namespace TaskIt.NexusUploader.Types
{
/// <summary>
/// possible exit codes / errors
/// </summary>
[SuppressMessage("Naming", "CA1707:Identifiers should not contain underscores", Justification = "<Pending>")]
public enum EExitCode
{
/// <summary... |
using System;
using MonoTouch.Foundation;
using MonoTouch.Security;
namespace BeeblexSDK
{
public partial class BBXBeeblex : NSObject
{
//TODO: Verify if this is Possible
// public SecKey PublicKey
// {
// get
// {
// IntPtr ptr = this.PublicKey_;
// return new SecKey(ptr);
// }
// }
}
}
|
using System;
using System.Collections.Generic;
using System.Text;
namespace MicroBluer.TimeTask
{
public class TimeSetting
{
public int Hour { get; }
public int Minute { get; }
}
}
|
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSDocs.Definitions.Selectors;
namespace PSDocs.Definitions
{
public abstract class Spec
{
private const string FullNameSeparator = "/";
public static string GetFullName(string apiVersion, string name)
{
... |
using UnityEngine;
namespace DevLocker.StatesManagement.SampleTanks.Garage
{
// Expose for uGUI Unity events.
public class TanksGarageStateExpose : MonoBehaviour {
public void SetState(TanksGarageStates state) {
TanksGarageLevelManager.Instance.States.SetState(state);
}
public void SetStateLobby() {
S... |
<header>
<div class="content-wrapper">
<div class="float-left">
<p class="site-title">
<a href="~/">ASP.NET Web API</a>
</p>
</div>
</div>
</header>
<div id="body">
<section class="featured">
<div class="content-wrapper">
<hgroup c... |
// 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.Data.Common;
using System.Transactions;
namespace System.Data.ProviderBase
{
internal abstract par... |
using HarmonyLib;
using VoxelTycoon.Tracks;
namespace Sandbox
{
[HarmonyPatch(typeof(VehicleUnitSharedData), nameof(VehicleUnitSharedData.BasePrice), MethodType.Getter)]
internal class VehicleBasePricePatch
{
internal static bool Prefix(ref double __result)
{
return SandboxSett... |
//------------------------------------------------------------------------------
// Copyright (c) 2014-2016 the original author or authors. All Rights Reserved.
//
// NOTICE: You are permitted to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Collections;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.Util;
using SQLite;
namespace Hookshot.Client
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using NBass.Declarations;
namespace NBass
{
//TODO implement plugin info
public class Plugin : IPlugin, IDisposable
{
bool _isDisposed = false;
internal IntPtr Hand... |
using System;
using System.Runtime.InteropServices;
namespace x360ce.Engine.Win32
{
/// <summary>
/// The structure represents a security identifier (SID) and its
/// attributes. SIDs are used to uniquely identify users or groups.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct SID_AND_ATTRI... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SomaSim.AI
{
[TestClass]
public class ActionsTest
{
public class TestAction : Action
{
public string name;
public bool stopOnStart = false;
public int countAc... |
using System.Collections.Generic;
namespace PEG.Builder
{
public class ConsumeExpressionCache
{
private static Dictionary<string, ConsumeExpression> cache = new Dictionary<string, ConsumeExpression>();
private static object lockObject = new object();
public static ConsumeExpression Get... |
using System;
using System.Collections.Generic;
using TweetinviCore.Enum;
using TweetinviCore.Interfaces.DTO;
using TweetinviCore.Interfaces.Parameters;
namespace TweetinviCore.Interfaces
{
public interface ITweetList
{
ITweetListDTO TweetListDTO { get; set; }
long Id { get; }
... |
namespace LcaDataModel
{
using Repository.Pattern.Ef6;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Spatial;
[Table("FragmentNodeProcess")]
public partial class F... |
/*
Write a simple program that lets the user manage a list of elements.
It can be a grocery list, "to do" list, etc.
Refer to Looping Based on a Logical Expression if necessary to see how to implement
an infinite loop.
Each time through the loop, ask the user to perform an operation,
and then show the curre... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace state
{
internal class CloseState : State
{
Filee f;
public CloseState(Filee f)
{
this.f = f;
}
public void close()
{
... |
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System;
class Solution
{
// Complete the pangrams function below.
static string pangrams(string s)
{
string result = string.Empty;
Queue<char> queue = new Queue<char>();
for (char x = 'a'; x <= 'z'; x++... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using DtoGenerator.TestSolution.DAL.Dto.Infrastructure;
using DtoGenerator.TestSolution.Model.Entity;
namespace DtoGenerator.TestSolution.DAL.Dto
{
public class Comput... |
using System;
using System.ComponentModel;
using System.Windows;
using System.Windows.Controls;
namespace Fork.View.Xaml2.Controls
{
public class StretchyWrapPanel : Panel
{
public static readonly DependencyProperty ItemWidthProperty = DependencyProperty.Register(nameof(ItemWidth),
typeof(... |
using System;
using UnityEngine;
namespace JCMG.Curves
{
/// <summary>
/// A serializable version of a nullable-Quaternion.
/// </summary>
[Serializable]
public struct NullableQuaternion
{
/// <summary>
/// Returns the <see cref="Quaternion"/> value.
/// </summary>
public Quaternion Value
{
get { r... |
using ExtendedXmlSerializer.Core.Sources;
namespace ExtendedXmlSerializer.ExtensionModel.References
{
interface IReferenceMap : ITableSource<ReferenceIdentity, object> {}
} |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Assignment4.Models;
using System.Net;
using System.IO;
using System.Text;
using Newtonsoft.Json;
using Microsoft.AspNetCore.Http;
namespace Assignment4.Contr... |
using System;
namespace Griddly.Mvc
{
public class GriddlyHtmlButton : GriddlyButton
{
public Func<object, object> HtmlTemplate { get; set; }
}
} |
namespace CDR.DataHolder.API.Infrastructure.Models
{
public class Health
{
public string Status { get; set; }
}
}
|
using System;
namespace IdGen
{
/// <summary>
/// Holds information about a decoded id.
/// </summary>
public struct ID
{
/// <summary>
/// Gets the sequence number of the id.
/// </summary>
public int SequenceNumber { get; private set; }
/// <summa... |
using System.Collections.Generic;
using System.IO;
using Cottle.Documents.Compiled;
namespace Cottle.Documents.Evaluated.StatementExecutors
{
internal class CompositeStatementExecutor : IStatementExecutor
{
private readonly IReadOnlyList<IStatementExecutor> _nodes;
public CompositeS... |
using AutoMapper;
using ZKWeb.MVVMPlugins.MVVM.Common.MultiTenant.src.Application.Dtos;
using ZKWeb.MVVMPlugins.MVVM.Common.MultiTenant.src.Domain.Entities;
using ZKWebStandard.Ioc;
namespace ZKWeb.MVVMPlugins.MVVM.Common.MultiTenant.src.Application.Mappings
{
/// <summary>
/// AutoMapper的配置
/// ... |
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System.Net;
using System.Net.Http;
using System.Net.Http.Formatting;
using System.Net.Http.Headers;
using System.Web.Http.SelfHost;
using Xunit;
using Xunit.Extensions;
namespace System.Web... |
using Newtonsoft.Json;
using System;
namespace Kentico.Kontent.Management.Models.Subscription;
/// <summary>
/// Represents project's environemnt.
/// </summary>
public sealed class SubscriptionProjectEnvironmentModel
{
/// <summary>
/// Gets or sets the environment's internal ID.
/// Use this as the pro... |
using System.Collections.Generic;
using Android.Content;
using Android.Support.V4.View;
using Android.Util;
using Android.Views;
using Android.Widget;
using Java.Lang;
using XCarousel.Droid.Interfaces;
using XCarousel.Droid.Models;
namespace XCarousel.Droid.Adapters
{
public class XCarouselViewAdapter : PagerAda... |
using UnityEngine;
public class PassEndCubeScript : MonoBehaviour
{
public GameFlowManagerScript gameManager;
// ensure player not win by fly to end cube
public PlayerMoveScript playerMove;
// music
public AudioSource backgroundAudioSource;
AudioSource winAudioSource;
void Start()
{... |
using LASI.Core;
using System;
using System.Linq;
using System.Collections.Generic;
using Xunit;
using NFluent;
namespace LASI.Core.Tests
{
/// <summary>
///This is a test class for IDirectObjectTakerTest and is intended
///to contain all IDirectObjectTakerTest Unit Tests
/// </summary>
public cla... |
using System.Threading.Tasks;
namespace Oxagile.Demos.Api.Services
{
public interface IBlobStorage
{
Task<string> SaveAsync(byte[] stream);
Task<byte[]> LoadAsync(string blobPath);
bool Exists(string blobPath);
}
} |
using System;
using System.Collections.Generic;
namespace Insql.Resolvers
{
public class InsqlDescriptor
{
public Type Type { get; }
public Dictionary<string, IInsqlSection> Sections { get; }
public Dictionary<Type, IInsqlMapSection> Maps { get; }
public InsqlDescriptor(Type... |
using MyProject01.Test;
using MyProject01.Util;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MyProject01
{
abstract class BasicTestParameterSet
{
protected NetworkTestParameter[] _parmArr;
protected LogWriter _logger;
pu... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PowerCode.CodeGeneration.Core
{
// ----------------------- -------------------------- ------------------- -----------------
public sealed class ClassDeclarationBuilder : DeclarationBuilderBase
{
const... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
namespace WebApplication1.Controllers
{
using Repositories;
usi... |
using Microsoft.EntityFrameworkCore;
namespace NLightning.Utils.Extensions
{
public static class DbSetExtensions
{
public static void InsertOrUpdate<T>(this DbSet<T> dbSet, T entity, DbContext db) where T : class
{
if (db.Entry(entity).State == EntityState.Detached)
{
... |
//
// BinaryExpression.cs
//
// Author:
// Aaron Bockover <abock@xamarin.com>
//
// Copyright 2015 Xamarin Inc. All rights reserved.
namespace Xamarin.Pmcs.CSharp.Ast
{
public class BinaryExpression : Expression
{
public static readonly Role LeftOperandRole = new Role (nameof (LeftOperandRole));
public static... |
namespace Common.Hosting.Configuration
{
/// <summary>
/// Kafka configuration.
/// </summary>
public class KafkaConfiguration
{
public const string Key = "Kafka";
public string ClientId { get; set; }
public string Host { get; set; }
}
} |
using System;
using System.Text;
class HelloGender
{
static void Main()
{
Console.OutputEncoding = Encoding.UTF8;
Console.WriteLine("Вашият пол е мъжки(M) или женски(F):");
string gender = Console.ReadLine();
bool isFemale = (gender == "F" || gender == "f");
boo... |
using ClArc.Async.Core;
namespace ClArc.Tests.Async
{
public class InputData : IInputData
{
}
} |
using System;
using System.Threading;
using System.Reflection;
using System.Runtime.CompilerServices;
namespace DotLiquid.Util
{
/// <summary>
/// Utility to avoid repetitive reflection calls that are found to be slow.
/// </summary>
internal class ReflectionCacheValue
{
private const TypeA... |
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Xml.Serialization;
using System.IO;
using System.Diagnostics;
using System.Drawing;
#pragma warning disable 1591
namespace OSGeo.MapGuide.Viewer
{
[ToolboxItem(true)]
public class MgView... |
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using RTSEngine.Data.Parsers;
namespace RTS.Input {
public class UICRTS {
public string Font;
public int FontSize;
public UICMinimap UICMinimap;
pu... |
#region Using
using System.Runtime.InteropServices;
#endregion
namespace Emotion.Web.Models
{
/// <summary>
/// Used for VertexAttribPointer
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct VertexAttribData
{
public uint Index;
public int Size;
publi... |
using MongoDbGenericRepository.Models;
namespace Service.Models.Data
{
public interface IGroup : IDocument
{
IQuote Quote { get; set; }
IOption Option { get; set; }
}
public class CGroup : Document, IGroup
{
public IQuote Quote { get; set; }
public IOption Option { get; set; }
... |
using System.IO;
using System.Xml;
using System.Xml.Linq;
namespace Linguist.XML
{
internal static class XDoc
{
public static XDocument Load ( Stream stream, LoadOptions options = LoadOptions.None )
{
#if ! NET35
return XDocument.Load ( stream, options );
#e... |
// Copyright (c) 2016 Nicholas Rogoff
//
// Author: Nicholas Rogoff
// Created: 2016 - 12 - 26
//
// Project: hms.ConsoleProcessorTemplate
// Filename: ConsoleProcessorTemplate.cs
using System;
using System.IO;
using CommandLine;
namespace hms.ConsoleProcessorTemplate
{
public abstract class ConsoleProcessor... |
using System;
using System.Windows.Media;
using Prism.Mvvm;
namespace Arsync.Prismatic.MinimalWindowDemo.ViewModels
{
public abstract class TabViewModelBase : BindableBase, IDisposable
{
private ImageSource _tabIcon;
private string _tabHeader;
private bool _isPinned;
protected... |
using System;
using System.Xml;
using System.Xml.Serialization;
namespace EMS.EDXL.CIQ
{
/// <summary>
/// A container of different types of electronic addresses of party (e.g. email, chat, skype, etc)
/// </summary>
[Serializable]
public class ElectronicAddressIdentifier
{
#region Private Member Vari... |
public class Wizard : Hero
{
public Wizard(string Name, int Level, string HeroType)
{
this.Name = Name;
this.Level = Level;
this.HeroType = HeroType;
}
public override string Attack()
{
return this.Name + " Lançou magia";
}
public string Attack(int Bonus)
... |
using System.Net;
namespace ApiHelper2.Models
{
/// <summary>
/// API 回傳的結果資訊
/// </summary>
public class APIResult<T>
{
/// <summary>
/// 回傳的Response 標頭
/// </summary>
public WebHeaderCollection ResponseHeaders;
/// <summary>
/// 回傳的 Response 字串
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.