content stringlengths 23 1.05M |
|---|
using System;
using Windows.Foundation;
using Windows.Networking;
using Windows.Networking.Sockets;
using Windows.Storage.Streams;
using System.Diagnostics;
namespace RobotApp
{
public static class NetworkCmd
{
// if no host, be client, otherwise be a host
private static String hostName = "";
... |
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Fail : MonoBehaviour
{
public GameObject Player;
Animator animator;
public bool FailCheck;
public GameObject FailPanel;
CanvasGroup canvasGroup;
Vector3 startPos; //초기위치
Quaternion StartRot; //초기회전 ... |
using System;
using Timetable.Test.Data;
using Xunit;
namespace Timetable.Test
{
public class ResolvedAssociationStopTest
{
private ResolvedStop TestStop = new ResolvedStop(TestScheduleLocations.CreateStop(
TestLocations.Surbiton,
TestSchedules.Ten), DateTime.Today);
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
namespace Azure.ResourceManager.Dynatrace.Models
{
/// <summary> Dynatrace Account Information. </summary>
public partial class AccountInfo
{
/// <summary> Initia... |
using System;
using System.IO;
using NerdyMishka.Security.Cryptography;
using NerdyMishka.Windows;
namespace Kryptos
{
public class Setup
{
}
} |
// Copyright (c) zhenlei520 All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.IO;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
namespace EInfrastructure.Core.Tools
{
/// <sum... |
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
namespace ECommerce.Monitoring.Abstractions
{
public class MonitoringRule
{
[Key]
public string Id { get; set; }
[JsonProperty("rule")]
public string Rule { get; set; }
[JsonProperty("isEnabled")]
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Xunit;
namespace Amazon.Lambda.RuntimeSupport.UnitTests
{
public class LambdaExceptionHandlingTests
{
[Fact]
public void WriteJsonForUserCodeException()
{
Exception exception = ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Web;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;
namespace WebApi.Attributes
{
/// <summary>
/// 注意:对于所有 OPTIONS 请求,必须在 Action 上标记 HttpOptions ,否则根本不会进过滤器,而是先会被 asp.net webapi 内部拦截,因为没有... |
namespace FastFoodWorkshop.Service
{
using AutoMapper;
using Contracts;
using Data;
using Common.WebConstants;
using Microsoft.Extensions.Logging;
using Models;
using ServiceModels.Manager;
using System.Collections.Generic;
using System.Threading.Tasks;
using System;
using S... |
using Plus.Configuration;
namespace Plus.RedisCache
{
/// <summary>
/// DefaultRedisCacheSettings
/// </summary>
public class DefaultRedisCacheSettings : SettingsBase
{
public DefaultRedisCacheSettings()
{
}
/// <summary>
/// DatabaseId
/// </summar... |
// Copyright (c) Peter Vrenken. All rights reserved. See the license on https://github.com/vrenken/EtAlii.Ubigia
namespace EtAlii.Ubigia.Api.Transport.Grpc
{
using global::Grpc.Core;
using System.Threading.Tasks;
using EtAlii.Ubigia.Api.Transport.Grpc.WireProtocol;
using Account = EtAlii.Ubigia.Accoun... |
using System;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using Avalonia.Platform.Interop;
namespace Avalonia.OpenGL
{
public class GlInterfaceBase : GlInterfaceBase<object>
{
public GlInterfaceBase(Func<string, IntPtr> getProcAddress) : base(getProcAddress, null)
... |
using PseudoScript.Interpreter.Types;
using PseudoScript.Parser;
namespace PseudoScript.Interpreter.Operations
{
class Literal : Operation
{
public readonly new AstProvider.Literal item;
public CustomValue value;
public Literal(AstProvider.Literal item) : base(item) { }
public... |
using System.ComponentModel.DataAnnotations;
namespace Netptune.Core.Requests
{
public class UpdateTagRequest
{
[Required]
[MinLength(2)]
[MaxLength(128)]
public string CurrentValue { get; set; }
[Required]
[MinLength(2)]
[MaxLength(128)]
public ... |
using Convience.Util.Helpers;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.Extensions.Logging;
using System.Linq;
using System.Threading.Tasks;
namespace Convience.Util.Filters
{
public class SafeApiFilter : IAsyncActionFilter
{
private readonly ILogger<Saf... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Zoo.Classes
{
public abstract class Mammal : Animal
{
// backing stores
// redirect targets for unwanted property 'set' inputs
private string _garbageString = "";
// inherited properties o... |
using ChatApp.Domain.Models;
namespace ChatApp.Consumer
{
public interface IChatConsumer
{
void ConsumeChat(Team team);
}
}
|
using System;
using System.Collections.Generic;
using System.Reflection.Emit;
using System.Text;
namespace Wodsoft.Protobuf
{
/// <summary>
/// Protobuf message field definition.
/// </summary>
public interface IMessageField
{
/// <summary>
/// Get field number.
/// </summa... |
namespace Lua4Net.Types
{
public abstract class LuaType
{
}
} |
/*
* [The "BSD licence"]
* Copyright (c) 2011 Terence Parr
* All rights reserved.
*
* Conversion to C#:
* Copyright (c) 2011 Sam Harwell, Pixel Mine, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following co... |
using System;
using System.Collections;
using System.Windows;
using System.Windows.Input;
using System.Windows.Controls;
using System.Windows.Media;
namespace SDKSample
{
public partial class Window1 : Window
{
ArrayList hitResultsList = new ArrayList();
public Window1()
{
... |
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
namespace BlazeBin.Client.Pages;
public partial class ActionButtons : IDisposable
{
[Inject] private BlazeBinStateContainer? State { get; set; }
[Inject] private NavigationManager? Nav { get; set; }
private bool _s... |
//############################################################
// https://github.com/yuzhengyang
// author:yuzhengyang
//############################################################
using System;
namespace Azylee.Core.ReflectionUtils.AttributeUtils
{
[AttributeUsage(AttributeTargets.Field | AttributeTar... |
using QQChannelFramework.Api.Base;
using QQChannelFramework.Api.Types;
namespace QQChannelFramework.Api;
/// <summary>
/// QQ频道机器人OpenApi
/// </summary>
public sealed partial class QQChannelApi {
private ApiBase apiBase {
get {
var ret = new ApiBase(OpenApiAccessInfo);
switc... |
namespace AsmResolver.DotNet.TestCases.Types
{
public abstract class AbstractClass
{
public abstract void AbstractMethod();
}
} |
namespace Scheduler.Services.Interfaces
{
using System.Collections.Generic;
using System.Threading.Tasks;
using Scheduler.Data.Models;
using Scheduler.Web.ViewModels.EventViewModel;
public interface IEventService
{
public Task<Event> GetEvent(string eventId);
public Task<IEnu... |
using Nordlys.Game.Sessions;
using System.Threading.Tasks;
namespace Nordlys.Communication.Messages
{
public interface IMessageEvent
{
Task RunAsync(Session session, ClientMessage message);
}
}
|
using System;
using System.Linq;
using Sandbox;
using Sandbox.UI;
using Sandbox.UI.Construct;
namespace Facepunch.Minigolf.UI;
public partial class WaitingScreenClient : Panel
{
public Client Client { get; set; }
public Image Avatar { get; set; }
public bool Loaded { get; set; }
public WaitingScreenClient( Cli... |
using Cool.Normalization.Permissions;
using System.Collections.Generic;
namespace Cool.Normalization.Permissions
{
public interface IPermissionRegister
{
void Register(string name, string displayName, IEnumerable<CoolPermission> permissions);
}
}
|
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace DyeHard.Dyes.Flame
{
public class BrightCyanGradientDye : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Bright Cyan Gradient Dye");
}
public override void SetDefaults()
{
item.width = 20;
item.... |
public class DualWorkSetup : MonoBehaviour // TypeDefIndex: 8329
{
// Fields
[SerializeField] // RVA: 0x16EDE0 Offset: 0x16EEE1 VA: 0x16EDE0
private ActorImporter MainActor; // 0x18
[SerializeField] // RVA: 0x16EDF0 Offset: 0x16EEF1 VA: 0x16EDF0
private ActorImporter SubActor; // 0x20
[CompilerGeneratedAttribute]... |
using PontoDigital_final.Models;
namespace PontoDigital_final.ViewModels
{
public class UsuarioViewModel
{
public Usuario Usuario {get;set;}
}
} |
namespace Autofac.Extensions.FluentBuilder.Tests.Generics
{
public class GenericClass : IGenericType
{
}
} |
public interface IUINavigationMediator {
IUIActiveReceiver SetNavigationReceiver {
set;
}
void NavigationActive();
void NavigationInactive();
}
|
@page
@model TroydonFitnessWebsite.Pages.Gallery.IndexModel
@{
ViewData["Title"] = "Gallery";
}
<h1>Gallery</h1>
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class DataObject {
//*** Properties
public List<float> speeds;
public float speedY;
}
|
// Copyright (c) Nate McMaster.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
namespace McMaster.Extensions.CommandLineUtils
{
internal class Constants
{
public static readonly object[] EmptyArray
#if NET45
= ... |
using NetworkToolkit.Connections;
using System.Diagnostics;
using System.Net;
using System.Threading.Tasks;
namespace NetworkToolkit.Tests.Http.Servers
{
internal sealed class Http1TestServer : HttpTestServer
{
private readonly ConnectionListener _listener;
public override EndPoint? EndPoint ... |
//------------------------------------------------------------------------------
// <copyright file="ICodeGenerator.cs" company="Microsoft">
//
// Copyright (c) 2006 Microsoft Corporation. All rights reserved.
//
// The use and distribution terms for this software are contained in the file
// ... |
using JetBrains.Annotations;
namespace ITGlobal.CommandLine.Parsing
{
/// <summary>
/// Default value provider for command line options
/// </summary>
[PublicAPI]
public delegate bool DefaultValueProvider<T>(out T value);
} |
//===================================================================================
// Microsoft patterns & practices
// Guidance Automation Extensions
//===================================================================================
// Copyright (c) Microsoft Corporation. All rights reserved.
// THIS CODE... |
using System.Collections.Generic;
using System.Linq;
namespace Kifa.Markdown.Elements {
public class HeadingElement : MarkdownElement {
public int Level { get; set; }
public List<MarkdownElement> TitleElements { get; set; }
public override string ToText() =>
$"{new string('#', ... |
using System;
using System.Threading.Tasks;
using MediatR;
using Raven.Client;
using Shrew.Web.Models.Domain;
namespace Shrew.Web.Infrastructure.SuggestionsBox
{
public class DetailsCommandHandler : AsyncRequestHandler<DetailsCommand>
{
private readonly Func<IAsyncDocumentSession> session;
pu... |
using System.Windows.Controls;
namespace Vulnerator.View.Validation
{
class BlankFieldValidationRule : ValidationRule
{
public override ValidationResult Validate(object value, System.Globalization.CultureInfo cultureInfo)
{
string fieldText = value.ToString();
if (strin... |
/*
* Copyright © 2012-2016 VMware, 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 applic... |
public interface IJeweller
{
IGem Cut(string[] gemInfo);
}
|
using AbhsChinese.Code.Common;
using AbhsChinese.Domain.Enum;
using AbhsChinese.Domain.JsonEntity.Answer;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AbhsChinese.Domain.Dto.Response.Student
{
public class DtoStudentWrongSubjectInfo
... |
using System.Collections.Generic;
using Entitas;
[Game]
public class WeatherEffectComponent : IComponent{
public Weather Type;
public WeatherDisplayEffect Effect;
}
|
/*
Copyright © Bryan Apellanes 2015
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Bam.Net.ServiceProxy;
namespace Bam.Net.Server
{
public interface IRequestHandler
{
void HandleRequest(IHttpContext context);
}
}
|
using GM.FileDataRepositories;
using System;
using System.IO;
namespace GM.ProcessTranscript
{
public class TranscriptProcess
{
/* ProcessTranscript process new transcript files that arrive.
* It performs the following steps:
* 1. If PDF file, convert to plain text.
... |
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build darwin dragonfly freebsd netbsd openbsd
// package route -- go2cs converted at 2020 October 09 04:51:40 UTC
// import "golang.org/x/net/route" ==> us... |
using System.Collections.Generic;
namespace LeadershipProfileAPI.Data.Models.ProfileSearchRequest
{
public class ProfileSearchYearsOfPriorExperience
{
public ICollection<Range> Values { get; set; }
public class Range
{
public Range() { }
public Range(int min, ... |
using System;
namespace _9.PadawanEquipment
{
class Program
{
static void Main(string[] args)
{
double money = double.Parse(Console.ReadLine());
int studentCount = int.Parse(Console.ReadLine());
double saberPrice = double.Parse(Console.ReadLine());
... |
using System;
using System.Collections.Generic;
using System.Text;
namespace ChristmasPi.Data.Exceptions {
class TypeMismatchException : Exception {
public TypeMismatchException() : base() { }
public TypeMismatchException(Type offendA, Type offendB) : base($"{offendA} != {offendB}") { }
}
}
|
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using Tensorflow;
using Tensorflow.Keras.Utils;
using Tensorflow.NumPy;
using static Tensorflow.Binding;
namespace TensorModel
{
public struct TensorFlowModelSettings
{
/... |
namespace System.Web.Mvc.Test {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Web.Mvc;
using System.Web.TestUtil;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
public class ActionMethodSelectorTest {
... |
using System;
using SeventhServices.Client.Common.Enums;
using SeventhServices.Client.Network.Models.Response.Shared;
using SeventhServices.Resource.Common.Abstractions;
namespace Seventh.Bot.Common
{
public class RobotStatus : ConfigureFile
{
public DateTime LastEventBorderDateTime { get; set; }
... |
using JGL.Globals.Contracts.Validations;
using MealPlanner.Data.Auth.CustomValidations;
using MealPlanner.Data.Auth.Definitions;
using System.ComponentModel.DataAnnotations;
namespace JGL.Security.Auth.Data.Requests
{
/// <summary>
/// Recipe returns recipe model.
/// </summary>
public class CreateUse... |
/*
Copyright 2018 Esri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraControl : MonoBehaviour {
public List<Camera> Cameras;
public int CurrentCameraIndex = 0;
private void Start()
{
Cameras[CurrentCameraIndex].depth = 999;
}
// Update is called once per f... |
// SPDX-License-Identifier: MIT
// Copyright © 2021 Oscar Björhn, Petter Löfgren and contributors
using System;
namespace Daf.Core.LanguageServer.Services
{
public class HoverRequest
{
public string? RootNodeName { get; set; }
public bool RootNodeSet { get { return RootNodeName != null; } }
public string? Par... |
namespace CloseTabs;
[Command(PackageIds.CloseAllTabsNotOfFileType)]
internal sealed class CloseAllTabsNotOfFileTypeCommand : BaseCommand<CloseAllTabsNotOfFileTypeCommand>
{
private IEnumerable<IVsWindowFrame> _framesToClose = Enumerable.Empty<IVsWindowFrame>();
protected override void Execute(object sender,... |
using LINQPad;
using System;
using System.Linq;
using Tessin.Bladerunner.Controls;
namespace Tessin.Bladerunner.Blades
{
public class SelectBlade : IBladeRenderer
{
private Option[] _options;
private Action<Option> _onSelect;
public SelectBlade(Option[] options, Action<Option> onSel... |
@{
Layout = "_Layout";
}
@await Html.PartialAsync("_navbarRegister");
<div class="container mt-5">
<h3 class="text-secondary">Yetkisiz Alana Giriş Yapmaya Çalıştınız. Anasayfaya yönlendiriliyorsunuz...</h3>
</div>
@section Scripts{
<script>
window.setTimeout(function(){
window.location... |
using Eto.Forms;
namespace Clarity.Ext.Gui.EtoForms
{
public static class FlagExtensions
{
public static bool HasFlagFast(this MouseButtons val, MouseButtons flag) { return (val & flag) != 0; }
}
} |
namespace WinLLDPService
{
using System.ComponentModel;
using System.Configuration.Install;
using System.ServiceProcess;
/// <summary>
/// The project installer.
/// </summary>
[RunInstaller(true)]
public class ProjectInstaller : Installer
{
/// <summary>
/// The se... |
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 System.Runtime.InteropServices;
using System.Threading;
namespace PaintTouchBoardWindow
{
clas... |
using Amica.Models;
using FluentValidation;
namespace Amica.Validation
{
public class PaymentMethodValidator : AbstractValidator<Models.PaymentMethod>
{
public PaymentMethodValidator()
{
RuleFor(method => method.Name).NotEmpty();
RuleFor(method => method.Code)
... |
using UnityEngine;
using UnityEngine.UI;
using Netherlands3D.LayerSystem;
using Netherlands3D.ObjectInteraction;
namespace Netherlands3D.Interface.SidePanel
{
public class SelectionOutliner : MonoBehaviour
{
private string id = "";
private string title = "";
[SerializeField]
private Text titleText;
priv... |
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Nuuvify.CommonPack.Domain.Interfaces;
using Nuuvify.CommonPack.Extensions.Notificator;
namespace Nuuvify.CommonPack.Domain
{
public abstract class BaseValidation<TEntity, TValidation> : NotifiableR,
IValidation<TEntit... |
using System.Text.RegularExpressions;
namespace SmartHomeWWW.Core.Utils
{
public static class RegexExtensions
{
public static bool TryMatch(this Regex regex, string text, out Match match)
{
match = regex.Match(text);
return match.Success;
}
public stati... |
using System.Collections.Generic;
using UnityEngine;
public class HeroManager : MonoBehaviour
{
public float FOV;
public float attackRange;
[HideInInspector]
public static Dictionary<string, Color> fieldDebugColors;
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Timers;
namespace Website.Components.DataTable
{
public partial class DataTable<TItem>
{
public OrderByModel CurrentOrder { get; set; } = new OrderByModel();
public class OrderByModel... |
@model Sporty.ViewModel.ExerciseDetailsView
@{
ViewBag.Title = "Neue Einheit";
}
<h2>Neue Einheit</h2>
@Html.Partial("_Edit") |
using System.Linq;
using System.Threading.Tasks;
using Marten.Testing.Documents;
using Marten.Testing.Harness;
using Shouldly;
using Weasel.Core;
using Weasel.Postgresql;
using Xunit;
namespace DocumentDbTests.Bugs
{
public class Bug_336_completely_remove_crosses_schema_lines : BugIntegrationContext
{
... |
//
// Encog(tm) Core v3.2 - .Net Version
// http://www.heatonresearch.com/encog/
//
// Copyright 2008-2014 Heaton Research, 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
/... |
using System;
using Argotic.Common;
namespace Argotic.Syndication.Specialized
{
/// <summary>
/// Represents the permissible types of a web log post.
/// </summary>
[Serializable()]
public enum BlogMLPostType
{
/// <summary>
/// No post type specified.
/// </summary>
... |
using day_4_part_1;
List<string> input = File.ReadAllLines(args[0]).ToList();
var numbers = input[0].Split(',').Select(x => int.Parse(x));
List<BingoBoard> bingoBoards = new();
for(int i = 2; i + BingoBoard.BINGO_SIZE <= input.Count; i+= BingoBoard.BINGO_SIZE + 1)
{
var bingoLines = input.GetRange(i, Bing... |
namespace TasksEverywhere.DataLayer.Context.Abstract
{
public interface IConnection
{
T GetProperty<T>(string key);
}
} |
using System.Reflection;
namespace SocketFlow
{
public struct HandlerInfo
{
public MethodInfo Method;
public object Target;
public HandlerInfo(MethodInfo method, object target)
{
Method = method;
Target = target;
}
}
}
|
using GVFS.Common;
using GVFS.Tests.Should;
using GVFS.UnitTests.Category;
using GVFS.UnitTests.Mock.Common;
using GVFS.UnitTests.Windows.Mock.Upgrader;
using NUnit.Framework;
using System;
using System.Collections.Generic;
namespace GVFS.UnitTests.Windows.Upgrader
{
public abstract class UpgradeTests
... |
using System.Collections.Generic;
using NCore.Demo.Domain;
using NCore.Demo.Utilities;
using NCore.Extensions;
using NCore.Web.Commands;
using NCore.Web.Utilities;
using NHibernate;
namespace NCore.Demo.Commands
{
public class OrderLineUpdater : BaseUpdater<OrderLine>
{
private readonly IPropertyHelper... |
using FlightReportApp.API.Model;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace FlightReportApp.API.Controllers
{
[ApiController]
[Route("api/v1/[controller]")]
public class FlightControl... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Methods
{
class Program
{
static void Main(string[] args)
{
Add();
Add2(20, 30);
var result = Add3(20, 20);
Console.Writ... |
namespace Nodsoft.Wargaming.Api.Common.Data.Responses;
public record ResponseMeta
{
public int? Count { get; init; }
} |
using System;
using TrackMyWristAPI.Models;
namespace TrackMyWristAPI.Dtos.Watch
{
public class AddWatchDto
{
public string Manufacturer { get; set; }
public string ModelName { get; set; }
public string ModelNumber { get; set; }
public string Mechanism { get; set; }
... |
using MiniFac.Contract;
using MiniFac.Core.Lifetime;
using System;
using System.Linq;
namespace MiniFac.Core.Registration
{
public class ComponentRegistration : IComponentRegistration
{
public Guid Id { get; }
public IInstanceActivator Activator { get; }
public IComponentLifetime Lif... |
using CoderCMS.Alogrithm.Common;
namespace ReverserFullLinkedList206
{
/// <summary>
/// 206. Reverse Linked List: https://leetcode.com/problems/reverse-linked-list/
/// </summary>
public class Solution
{
/// <summary>
/// Solution #1: Recursive.
/// </summary>
/// <... |
using System;
using System.Collections.Generic;
using Csla;
using Codisa.InterwayDocs.DataAccess;
namespace Codisa.InterwayDocs.Business
{
/// <summary>
/// EditOnDemandBase (base class).<br/>
/// This is a generated <see cref="EditOnDemandBase{T}"/> base classe.
/// </summary>
[Serializable]
... |
namespace DXPlus;
/// <summary>
/// Valid image content types which may be inserted into a
/// document.
/// </summary>
public static class ImageContentType
{
/// <summary>
/// Tiff
/// </summary>
public static string Tiff => "image/tif";
/// <summary>
/// PNG
/// </summary>
public sta... |
@model OperationDetails
@{
string colorClass = Model.Status == OperationStatus.Success ? "alert-success" : "alert-danger";
}
<div class="notification alert alert-dismissible fade in @colorClass">
<button class="close" type="button" data-dismiss="alert">
<span>×</span>
</button>
@Model.Mes... |
/*
* Identity role repository interface.
*
* @author Michel Megens
* @email michel.megens@sonatolabs.com
*/
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using SensateIoT.API.Common.IdentityData.Models;
namespace SensateIoT.API.Common.Core.Infrastructure.R... |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Totem
{
/// <summary>
/// Describes a context in which events occur on the same timeline
/// </summary>
public interface IClock : IClean
{
DateTime Now { get; }
}
} |
using UnityEngine;
using System.Collections;
public class Tile : MonoBehaviour {
//Types 1 : Straight, 2 : Right, 3 : Left, 4 Straight Right, 5 Straight Left, 6 Left Right, 7 All
public int Turns;
public int GetTurns () {
return Turns;
}
}
|
namespace SpaceEngineers.Core.DataAccess.Orm.Model
{
using AutoRegistration.Api.Abstractions;
/// <summary>
/// IModelValidator
/// </summary>
public interface IModelValidator : IResolvable
{
/// <summary>
/// Validates database model
/// </summary>
/// <param n... |
// 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.
//
// Copyright (c) 2006 Microsoft Corporation. All rights reserved.
using System;
... |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace WeeklyXamarin.Core.Models
{
public record Index
{
public DateTime UpdatedTimeStamp { get; init; }
public List<Edition> Editions { get; init; }
public DateTime FetchedDate { get; set; }
[JsonIgno... |
using System.IO.Abstractions;
namespace Ingestor.MacOS;
public class MacOsDriveAttachedNotifier : IDriveAttachedNotifier
{
public event EventHandler<DriveAttachedEventArgs>? DriveAttached;
public MacOsDriveAttachedNotifier(ILogger<MacOsDriveAttachedNotifier> logger, IFileSystem fileSystem)
{
var w... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.