content stringlengths 23 1.05M |
|---|
using System;
using System.Linq;
class Program
{
static void Main() // 100/100
{
int[] arrayToBeSorted = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
for (int currentElement = 0; currentElement < arrayToBeSorted.Length - 1; currentElement++)
{
int nextElement ... |
using System.ComponentModel;
namespace StackExchange.Opserver.Helpers
{
public enum ViewRange
{
[Description("Summary")]
Summary,
[Description("Today")]
Day,
[Description("This Week")]
Week,
[Description("This Month")]
Month,
[Description... |
using System;
namespace YiSA.Foundation.Logging
{
public class DelegateLogger : ILogger
{
private readonly Action<string, LogLevel> _action;
public DelegateLogger(Action<string, LogLevel> action)
{
_action = action;
}
public DelegateLogger(Action<string> ac... |
using System;
using Skybrud.Social.Http;
using Skybrud.Social.Sonos.Exceptions;
using Skybrud.Social.Sonos.Models.Groups;
namespace Skybrud.Social.Sonos.Responses.Groups {
/// <summary>
/// Class representing a response with a list of Sonos groups.
/// </summary>
public class SonosGetGroupsResponse :... |
namespace Abp.MultiTenancy
{
/// <summary>
/// Implements null object pattern for <see cref="ITenantIdResolver"/>.
/// </summary>
public class NullTenantIdResolver : ITenantIdResolver
{
/// <summary>
/// Singleton instance.
/// </summary>
public static NullTenantIdRe... |
namespace v1_efcore.Models
{
public class Vehicle
{
public int Id { get; set; }
public string Model { get; set; }
public int Year { get; set; }
public string Plate { get; set; }
public string Color { get; set; }
public bool Enabled { get; set; }
}
} |
namespace Kentico.Kontent.Delivery.Abstractions
{
/// <summary>
/// Represents system attributes of a language.
/// </summary>
public interface ILanguageSystemAttributes : ISystemBaseAttributes
{
}
}
|
using System;
using System.Runtime.Serialization;
using Volo.Abp;
namespace LINGYUN.Abp.Location
{
public class LocationResolveException : AbpException, IBusinessException
{
public LocationResolveException()
{
}
public LocationResolveException(string message)
: bas... |
/*
* Author: Konstantin Ivanov
*
* Official site: http://konstantini.data.bg/sharpbelot
*
* */
namespace Belot
{
/// <summary>
/// Evaluates points for a card in a specific game .
/// </summary>
public class CardPointEvaluator
{
/// <summary>
/// Evaluates points for a card in a game
/// </summary>
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
#pragma warning disable CS0649
namespace CustomReticle.Overwatch.UI
{
public class DropdownWidget : MonoBehaviour, IWidget<int>
{
[SerializeField]
private Dropdown m_Dropdown;
public ... |
#region Header
//////////////////////////////////////////////////////////////////////////////
//The MIT License (MIT)
//Copyright (c) 2013 Dirk Bretthauer
//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... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyBullet : MonoBehaviour
{
[Range(0f, 100f)]
public float enemyBulletSpeed;
[Range(0f,100f)]
public int damageToGive;
private Transform player;
private Vector3 target;
public Ga... |
using System;
using System.Linq;
using System.Net.Mail;
using Signum.Engine.Basics;
using Signum.Utilities;
using Signum.Entities.Mailing;
using Signum.Entities;
using Signum.Engine.DynamicQuery;
using Signum.Engine.Operations;
using Signum.Engine.Authorization;
using System.IO;
using Signum.Engine.Files;
using Microso... |
using System.Linq;
using System.Text.Json;
namespace bexio.net.Helpers
{
/// <summary>
/// Policy that all our Json Properties are named in snake_case.
/// </summary>
internal class SnakeCaseNamingPolicy : JsonNamingPolicy
{
public static SnakeCaseNamingPolicy Instance { get; } = new Snake... |
namespace CrawdadSharp
{
public enum ChromSmoothMethod
{
GAUSS_SMOOTHER,
SAVITZKY_GOLAY_SMOOTHER
};
}
|
using System;
using System.Threading.Tasks;
using NetRx.Store.Effects;
using actions = SampleEffects.State.Actions;
namespace SampleEffects.State.Effects
{
public class UsernameChangedEffect : Effect<actions.SetUsername>
{
public override async Task Invoke(actions.SetUsername action)
{
... |
using System;
using System.Collections.Generic;
using System.Text;
namespace CodeLibraryForDotNetCore.LinqTools.ViewModels
{
public class LocationViewModel
{
public long RoadId { get; set; }
public string CityName { get; set; }
public string CountryName { get; set; }
public str... |
using NUnit.Framework;
using System;
using FluentAssertions;
using System.Threading.Tasks;
using Newtonsoft.Json;
using RepairsApi.V2.Boundary.Response;
namespace RepairsApi.Tests.E2ETests
{
public class HubUserApiTests : MockWebApplicationFactory
{
[Test]
public async Task GetHubUser()
... |
namespace Mediwatch.Server.PayPal.Values
{
public static class CurrencyCode
{
/// <summary>
/// Great British Pounds
/// </summary>
public static string GBP { get; private set; } = "GBP";
/// <summary>
/// US Dolars
/// </summary>
public static ... |
namespace Cosmos.Optionals;
/// <summary>
/// Interface for optional <br />
/// MayBe 组件接口
/// </summary>
/// <typeparam name="T"></typeparam>
/// <typeparam name="TException"></typeparam>
public interface IOptional<T, out TException> : IOptional<T>
{
/// <summary>
/// Exception <br />
/// 异常
/// </sum... |
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Microsoft.AspNetCore.Mvc.Rendering;
using Factory.Models;
using System.Linq;
using System;
namespace Factory.Controllers
{
public class EngineerController : Controller
{
private readonly skylar_brockbankContext _db;
public EngineerC... |
using System;
using System.Diagnostics;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
using SocketLite.Services;
namespace SocketLite.UWP.Tests
{
[TestClass]
public class TcpListenerTests
{
readonly SocketLite.Services.TcpSocketListener _tcpListener = n... |
namespace ScreenManager
{
public enum ScreenType
{
Registration,
SignIn,
MainScreen,
}
} |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Purchasing;
public class IAPShop : MonoBehaviour
{
private string buy = "com.sansan33.bellum.buy";
private string buyios = "com.sansan33.bellum.buyios";
[SerializeField] public GameObject restorePurchaseBtn;
... |
using System;
namespace VKS.MHS.Elements
{
/// <summary>
/// Interface for lights that support hue/color change.
/// </summary>
public interface IColorfulLight: ILight
{
/// <summary>
/// Fades the lights off from current color to black.
/// </summary>
void FadeOff(... |
using System;
using Machine.Specifications;
namespace Quarks.Tests
{
[Subject(typeof(Instance))]
class When_getting_property_name_using_extension_method
{
It should_return_instance_property_name = () =>
new Test().MemberName(x => x.TestProperty).ShouldEqual("TestProperty");
}
[Subject(typeof(In... |
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
namespace Microsoft.Azure.Cosmos.Json
{
using System;
/// <summary>
/// Base abstract class for JSON readers.
/// ... |
using System.Collections.Generic;
using System.Linq;
using DryIoc.Facilities.NHibernate;
using NHibernate;
using NHibernate.Criterion;
using Ridics.Authentication.DataEntities.Entities;
using Ridics.Core.DataEntities.Shared.Query;
using Ridics.Core.DataEntities.Shared.Repositories;
using Ridics.Core.Shared.Exceptions;... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Web;
namespace MentorProject.WebUI.Models.Authorization
{
public class CustomPrincipal : IPrincipal
{
public IIdentity Identity { get; private set; }
public bool IsInRole(string role) { return Role... |
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Text;
namespace Backend.Services.Apis
{
public abstract class BaseController : ControllerBase
{
}
}
|
using System;
using System.ComponentModel.DataAnnotations;
using VRT.Resume.Application.Persons.Queries.GetPersonData;
namespace VRT.Resume.Mvc.Models
{
/// <summary>
/// Original VM decorator
/// </summary>
public sealed class PersonDataViewModel
{
private readonly PersonDataVM _decorated... |
using System;
using System.Text.Json;
using System.Text.Json.Serialization;
namespace Discord.Rest.Converters
{
public class JsonUlongConverter : JsonConverter<ulong>
{
public override ulong Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{
switch... |
using UnityEngine;
public class FormationPoint : MonoBehaviour
{
[SerializeField] GameObject enemy; Formation formation;
//Get the formation component from formation
void Awake() {formation = transform.parent.GetComponent<Formation>();}
//Begin spawn indicator for 2 second
void OnEnable(){Invoke("Spawn", 2... |
using MiCake.Core.Util;
using MiCake.Uow;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Storage;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace MiCake.EntityFrameworkCore.Uow
{
internal class EFCoreTransactionObject : ITransactionObject
{
publi... |
using Unity.Entities;
namespace TinyRacing
{
[GenerateAuthoringComponent]
public struct SpeedMultiplier : IComponentData
{
public float Multiplier;
public float RemainingTime;
}
} |
using LunaCommon.Message.Data.Flag;
using LunaCommon.Message.Interface;
using LunaCommon.Message.Types;
using Server.Client;
using Server.Message.Reader.Base;
using Server.System;
namespace Server.Message.Reader
{
public class FlagSyncMsgReader : ReaderBase
{
public override void HandleMessage(ClientS... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GSAKWrapper.DataTypes
{
public class ShapefileItem
{
public string FileName { get; set; }
public string TableName { get; set; }
public string CoordType { get; s... |
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using CourseLibrary.Core.Aggregates;
namespace CourseLibrary.Core.Repositories
{
public interface IStudentsRepository
{
Task<Student> GetAsync(Guid id);
Task<IEnumerable<Student>> BrowseAsync();
Task<bool> Exi... |
using Godot;
using System;
public class Keep : Building
{
static public new string Resource = "res://Scenes/Building/Keep.tscn";
Area _doorArea;
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
base._Ready();
Health = 5000;
M... |
#nullable enable
using System;
using System.Collections.Generic;
namespace BeeSharp.ApiComponents.ApiModels.JsonConverter.DirectorComponents
{
public static class DirectorRegistry
{
private static readonly Dictionary<Type, object> Directors;
static DirectorRegistry()
{
Dir... |
///////////////////////////////////////////////////////////////////////////////
//
// Microsoft Research Singularity
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
using System;
using System.Threading;
using Microsoft.Singularity.UnitTest;
namespace Microsoft.Singularity.Applications... |
using System.Diagnostics;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
namespace Tiesmaster.Dcc
{
// ReSharper disable once UseNameofExpression
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public struct RequestKey
{
private readonly string _method;
... |
namespace SimpleChatApp.Shared.Models
{
public class ChatGroup
{
public long Id { get; set; }
public string Name { get; set; }
public bool IsPrivate { get; set; }
public virtual List<Message> ChatMessages { get; set; } = new List<Message>();
public virtual List<AppUser> ... |
using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
namespace AGCSE
{
public class clsTierArea
{
Act... |
namespace DesignPatterns.CreationalPatterns
{
internal class ModernHouseBuilder : IBuilder
{
public IHouse House { get; set; }
internal ModernHouseBuilder()
{
House = new ModernHouse();
}
public void BuildWalls()
{
House.WallType = "Mode... |
using System.Collections;
namespace Cosmos.Test
{
/// <summary>
/// 事件定义类,记录了具体事件的Key
/// </summary>
public sealed class MVCEventDefine
{
public const string CMD_Inventory = "CMD_INV";
public const string CMD_Navigate = "CMD_NAV";
}
} |
using UnityEngine;
/**
* An instance of this component should be always loaded in the game.
* It is in the ManagerScene.
*/
public class GlobalGameManager : MonoBehaviour {
// static instance
public static GlobalGameManager instance {
get;
private set;
}
private void Awake() {
... |
namespace Fluxera.Extensions.Hosting.Modules.Localization
{
using Fluxera.Extensions.Hosting.Modules.Configuration;
using Fluxera.Extensions.Hosting.Modules.Localization.Contributors;
using JetBrains.Annotations;
using Microsoft.Extensions.DependencyInjection;
/// <summary>
/// A module that enables localiz... |
using Comparable;
namespace FieldIsNotIComparable
{
[Comparable]
// ReSharper disable once UnusedMember.Global
public class FieldIsNotIComparable
{
[CompareBy]
#pragma warning disable 169
private NotComparable _value;
#pragma warning restore 169
}
public class NotComparable {... |
using System;
using System.Collections.Generic;
using System.Linq;
namespace TetraPak.XP
{
/// <summary>
/// Provides convenient helper methods for working with time frames.
/// </summary>
public static class TimeFrameHelper
{
/// <summary>
/// Compares the extended <see cref="... |
using Microsoft.VisualStudio.Text.Classification;
using Microsoft.VisualStudio.Utilities;
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
namespace Nitra.VisualStudio.Brac... |
using System;
namespace Popcron.Sheets
{
[Serializable]
public class CandlestickData
{
public CandlestickSeries lowSeries;
public CandlestickSeries openSeries;
public CandlestickSeries closeSeries;
public CandlestickSeries highSeries;
}
} |
using System;
namespace ActiproSoftware.ProductSamples.NavigationSamples.Demo.NavigationBarIntro {
/// <summary>
/// Provides information about a mail item.
/// </summary>
public class MailItem {
private string from;
private bool isFlagged;
private DateTime sent;
private string subject;
/////////... |
using System;
namespace ex053
{
internal class Program
{
static void Main(string[] args)
{
//53.Write a C# program to check if an array contains an odd number.
//Test Data:
//Original array: [2, 4, 7, 8, 6]
//Check if an array contains an odd num... |
using SmartSql.Configuration;
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
namespace SmartSql.Reflection.TypeConstants
{
public static class ResultMapType
{
public static readonly Type Type = typeof(ResultMap);
public class Method
{
... |
namespace TripleTexDotNet.Interfaces
{
public interface IHourService
{
void HourSave();
void HourGetTimesheet();
void HourRemoveFromTimesheet();
}
} |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... |
using Newtonsoft.Json;
namespace Kucoin.Net.Objects.Margin
{
/// <summary>
/// Lend account
/// </summary>
public class KucoinLendAccount
{
/// <summary>
/// Currency
/// </summary>
[JsonProperty("currency")]
public string Asset { get; set; } = string.Empty;... |
using FluentAssertions;
using MongoDB.Driver;
using Moq;
using System.ComponentModel;
using Xunit;
namespace CSharpMongoMigrations.Tests
{
public class MigrationFacts
{
private class MigrationStub : Migration
{
public IMongoDatabase Db { get { return Database; } }
publ... |
using CommandLine;
using CommandLine.Text;
using System;
using System.Collections.Generic;
using System.Threading;
namespace comPort
{
class Program
{
static void Main(string[] args)
{
var parser = new CommandLine.Parser(with => with.HelpWriter = null);
var parserResult... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommonLib.Utility;
namespace CommonLib.Date
{
[Serializable]
public struct DayRange{
public DateTime Start;
public DateTime End;
public DayRange(DateTime start, DateTime end) {
this.Start = start;
this.End = en... |
using CodeModel.Graphs;
using CodeModel.Primitives;
using CodeModel.RuleEngine;
namespace CodeModel.Rules
{
[Violation(DisplayText = "Field {ViolatingField} is writable")]
public class ImmutableTypeHasWritableFieldViolation : Violation, INodeViolation
{
public FieldNode ViolatingField { get; priva... |
using System.Globalization;
using System.Threading;
using NUnit.Framework;
namespace ExcelTableConverter.Utilities.Tests
{
[TestFixture]
public class StringExtensionsTests
{
[Test]
public void IsNumeric_PositiveNumber_ReturnsTrue()
{
var result = "1234".IsNumericCurrentCulture();
Assert.... |
using UnityEditor;
[CustomEditor(typeof(Waypoint))]
public class PositionHandleExampleEditor : Editor
{
protected virtual void OnSceneGUI()
{
IWaypoint example = (IWaypoint)target;
example.DrawSignHandles();
}
} |
using Foundation;
using HockeyApp.iOS;
using UIKit;
namespace HockeyAppSampleiOS
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to
// application events from iOS.
[Re... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Runtime.Serialization.Formatters.Binary;
using System.Runtime.Serialization.Json;
using System.IO;
public class newInventory : MonoBehaviour
{
public inventorySlot invSlot;
[HideInInspector] public string filename;
... |
using Hangfire.Dashboard;
namespace Hangfire.Tags.Dashboard
{
public abstract class TagsRazorPage : RazorPage
{
private TagDashboardContext _tagContext;
private TagDashboardContext TagContext => _tagContext ?? (_tagContext = Context.ToTagDashboardContext());
public TagsOptions Option... |
/*
This code is derived from jgit (http://eclipse.org/jgit).
Copyright owners are documented in jgit's IP log.
This program and the accompanying materials are made available
under the terms of the Eclipse Distribution License v1.0 which
accompanies this distribution, is reproduced below, and is
available at http://www... |
using EF.Core.Domain;
using EF.Core.Extensions;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;
namespace Test.WebClient.Models
{
[Table("pc_purchase_manage")]
[KeyFormat(Forma... |
namespace CodeComposerLib.HTMLold.Values
{
public sealed class HtmlValueMaskUnits : HtmlStoredValue
{
public static HtmlValueMaskUnits UserSpaceOnUse { get; }
= new HtmlValueMaskUnits("userSpaceOnUse");
public static HtmlValueMaskUnits ObjectBoundingBox { get; }
= new H... |
#nullable disable
using FluentNHibernate.Mapping;
using VocaDb.Model.Domain.Tags;
namespace VocaDb.Model.Mapping.Tags
{
public class TagMappingMap : ClassMap<TagMapping>
{
public TagMappingMap()
{
Id(m => m.Id);
Map(m => m.CreateDate).Not.Nullable();
Map(m => m.SourceTag).Not.Nullable().Le... |
namespace Ticker.WpfShared.Commands
{
using System;
using System.Linq.Expressions;
public class DelegateCommand : DelegateCommandBase
{
private readonly Action executeMethod;
private Func<bool> canExecuteMethod;
public DelegateCommand(Action executeMethod)
: this(e... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
static class Grains
{
public static double Square(int sq)
{
return Math.Pow(2, sq-1);
}
public static double Total()
{
double result = 0;
for (int ... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.IO;
using System.Web;
namespace DataAccessLayer.Models
{
public class Application
{
public Application()
{
Id = Guid.NewGuid... |
using System;
namespace IteratorDemo
{
/// <summary>
/// Composite Pattern (compose number of objects
/// together to represent a single object) usage.
/// </summary>
class ProportionalPainter : IPainter
{
public TimeSpan TimePerSqMeter { get; set; }
public double DollarsPerHo... |
using System;
using System.Collections;
using System.Collections.Generic;
#if OnUnity
using UnityEngine;
using GKitForUnity.Core.Scheduler;
#elif OnWPF
using GKitForWPF.Core.Scheduler;
#else
using GKit.Core.Scheduler;
#endif
#if OnUnity
namespace GKitForUnity
#elif OnWPF
namespace GKitForWPF
#else
namespace GKit
#end... |
using AlertToCareFrontend.ViewModel;
using System.Windows;
namespace AlertToCareFrontend.Views
{
/// <summary>
/// Interaction logic for AdmitPatientPage.xaml
/// </summary>
public partial class AdmitPatientPage
{
public AdmitPatientPage(string bedId)
{
InitializeCompon... |
using System;
namespace DotNet.AzureDiagnostics.Core.Models
{
public class Range
{
public DateTime From { get; set; }
public DateTime? To { get; set; }
public override string ToString()
{
return $"'{From:u}' to '{FormatTo()}'";
string FormatTo()
... |
using Newtonsoft.Json;
using System;
using Windows.ApplicationModel;
namespace PoGo.GameServices.Configuration
{
/// <summary>
///
/// </summary>
/// <example>
// {
// "minimum_version": "1.0.29",
// "unknown25": 7363665268261374000,
// "seed1": 1634035250,
// "version_number... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WifiPasswordDecryptProxy
{
public static class DecryptProxy
{
public static readonly string ExecutablePath = System.Reflection.Assembly.GetExecutingAssembly().Location;
... |
namespace traVRsal.SDK
{
public struct EnvironmentInfo
{
public bool lowQualityMode;
public bool lowMemoryMode;
}
} |
using Badger.Common;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Badger.Deployment.Servicing {
public static class PackageExtensions {
public static string SHA1(this Package This) {
var... |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using RuneForge.Data.Units.Interfaces;
namespace RuneForge.Data.Units
{
public class InMemoryUnitRepository : IUnitRepository
{
private readonly List<UnitDto> m_units;
private readonly Dictionary<int, int> m... |
// Copyright 2020 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
namespace Events
{
public class FusionCloseEvent
{
}
} |
using System;
using System.Threading.Tasks;
using Xunit;
using Amazon.Lambda.Core;
using FakeItEasy;
using System.Reflection;
using LambdaNative.Internal;
using Shouldly;
namespace LambdaNative.Tests
{
public class AsyncHandlerRunnerTests
{
public class TestHandler : IHandler, IAsyncHandler<string, str... |
// Copyright (c) MOSA Project. Licensed under the New BSD License.
using System.Runtime.InteropServices;
namespace Mosa.Runtime
{
// Protected Region Definition Struct
[StructLayout(LayoutKind.Sequential)]
public unsafe struct MDProtectedRegionDefinition
{
private uint _startOffset;
private uint _endOffset;
... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
using CGenImaging;
using System.Diagnostics;
namespace CGenImaging.Forms... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LootSpwaner : MonoBehaviour
{
[System.Serializable]
public class LootItem
{
public GameObject item;
[Range(0,1)]
public float weight;
}
public LootItem[] lootItems;
publi... |
namespace CentralApi.Services.Models.Banks
{
using BankSystem.Common.AutoMapping.Interfaces;
using CentralApi.Models;
public class BankBaseServiceModel : IMapWith<Bank>
{
}
} |
using System.Text;
namespace Solenoid.Expressions.Parser.antlr
{
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
* Software rights: http://www.antlr.org/license.html
*/
//
// ANTLR C# Code Generator by Micheal Jordan
// Kunle Odutola : ... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using System;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
namespace Microsoft.SqlTools.Servic... |
@using OnlineGames.Web.AiPortal.Infrastructure
@model OnlineGames.Web.AiPortal.ViewModels.Battles.BattleInfoViewModel
@{
ViewBag.Title = $"Battle №{Model.Id} - {Model.FirstTeamName} vs {Model.SecondTeamName}";
}
<h1>
@ViewBag.Title
@if (User.IsAdmin())
{
<a href="/Battles/Restart/@Model.Id" c... |
using System;
using System.Collections.Generic;
namespace CometD.NetCore.Bayeux
{
/// <summary> <p>A Bayeux session represents a connection between a bayeux client and a bayeux server.</p>
/// <p>This interface is the common base interface for both the server side and the client side
/// representations of... |
namespace Roblox.Administration.Partials
{
public class LookupModel
{
public string fieldName { get; set; }
public int minLength { get; set; } = 1;
public int maxLength { get; set; } = 255;
public string fieldId { get; set; }
public string fieldType { get; set; }
}
} |
using CQL.Contexts.Implementation;
using System;
namespace CQL.Contexts
{
/// <summary>
/// Extensions for variables.
/// </summary>
public static class VariableExtensions
{
/// <summary>
/// Converts a evaluation into a validation variable.
/// </summary>
/// <para... |
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using ReqTrack.Domain.Core.Entities.ValidationHelpers;
namespace ReqTrack.Application.Web.MVC.ViewModels.Requirements
{
public class... |
using PcapDotNet.Base;
namespace PcapDotNet.Packets.IpV6
{
/// <summary>
/// RFC 5094.
/// <pre>
/// +-----+--------------+
/// | Bit | 0-7 |
/// +-----+--------------+
/// | 0 | Option Type |
/// +-----+--------------+
/// | 8 | Opt Data Len |
/// +--... |
using HtmlAgilityPack;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace DotnetCrawler.Downloader
{
public interface IDotnetCrawlerDownloader
{
DotnetCrawlerDownloaderType DownloderType { get; set; }
string DownloadPath { get; set; }
... |
using System;
using System.Linq;
using System.Security.Principal;
using Windows.Management.Deployment;
using Microsoft.Win32;
using Windows.ApplicationModel;
namespace EnumWSL
{
class Program
{
static void Main(string[] args)
{
string localAppData = Environment.GetFolderPath(Enviro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.