content stringlengths 23 1.05M |
|---|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Data;
using Common;
using Entity;
namespace Service
{
[ServiceContract]
public interface IStudent
{
[OperationContract]
List<Student> GetInfo(string strWhere);
... |
using System;
using System.Threading;
using System.Threading.Tasks;
namespace FastRange;
public interface IRangeSearch<TObject, TIndex>
where TIndex : IComparable
{
Task<CheckResult> CheckAsync(Action<IRangeCheck<TIndex>> check, CancellationToken cancellationToken);
Task AddAsync(TObject toAdd, IRangeEle... |
namespace SprinklerApi.AppLogic
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using AzureBlob;
using Configuration;
using Models;
public class DataBackupRestoreLogic
{
private readonly AzureBlobClient _azureBlobClient;
... |
using System;
using AutoMapper.Configuration;
using DeviceManager.Api.Data.Model;
using DeviceManager.Api.Model;
namespace DeviceManager.Api.Mappings
{
/// <summary>
/// Contains objects mapping
/// </summary>
/// <seealso cref="AutoMapper.Configuration.MapperConfigurationExpression" />
public cla... |
using UnityEngine;
using TMPro;
using System.Collections.Generic;
namespace IronManUI {
public static class IMExtensions {
public static AbstractIMComponent GetIronManComponent(this Collider collider) {
return collider.gameObject.GetComponent<AbstractIMComponent>();
}
public ... |
namespace BohoTours.Services.Data.Transports
{
using System.Collections.Generic;
using System.Linq;
using BohoTours.Data.Common.Repositories;
using BohoTours.Data.Models;
using BohoTours.Services.Mapping;
public class TransportsService : ITransportsService
{
private readonly IDele... |
using EIS.AppBase;
using System;
using System.Runtime.CompilerServices;
namespace EIS.WebBase.ModelLib.Model
{
public class BBSTopic : AppModelBase
{
public string AttachId
{
get;
set;
}
public string BBSType
{
get;
set;
}
public string BizId
{
get;
set;
}
public string BizNa... |
@page
@model Swrith.Pages.IndexModel
@{
ViewData["Title"] = "Home page";
}
<partial name="Shared/_PostsDisplay.cshtml"/>
<div class="pagination-display">
@if(Model.CurrentPage != 1)
{
<a class="recent-articles" asp-route-pageNumber=@Model.OldPage>Newer stories</a>
}
@if(Model.TotalPages > M... |
using JumpingFrog.Interfaces;
namespace JumpingFrog.Rules
{
internal class GreenFrogSlideRule : IRules
{
int Space = 0;
int BrownFrog = 2;
public bool FollowThisRule(List<int> state, int turnIndex)
{
int Last = state.Count - 1;
if (Last != tur... |
<!--Manage the user account details GUI-->
@{
ViewBag.Title = "ManageAccount";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="home">
<!--banner and breadcrums-->
<div class="home_overlay"></div>
<div class="home_content d-flex flex-column align-items-center justify-content-center">
... |
using Xunit;
using HelpDesk.Core.ArchitecturalUtilities;
using HelpDesk.Core.BusinessLayer;
using HelpDesk.Core.Interface;
using HelpDesk.Core.Mock.DataRepository;
namespace HelpDesk.Core.Test;
public class MainBusinessLayerTests
{
[Fact]
public void InstantiateBusinessLayer()
{
Depen... |
using System;
using MediatR;
using SFA.DAS.CommitmentsV2.Types;
namespace SFA.DAS.CommitmentsV2.Application.Commands.TriageDataLocks
{
public sealed class TriageDataLocksCommand : IRequest
{
public long ApprenticeshipId { get; set; }
public TriageStatus TriageStatus { get; set; }
publi... |
#if WINDOWS_CERTIFICATE_STORE_SUPPORT
#nullable disable
using System;
using System.Runtime.InteropServices;
using System.Text;
using Microsoft.Win32.SafeHandles;
namespace Calamari.Integration.Certificates.WindowsNative
{
internal static class WindowsX509Native
{
[DllImport("Crypt32.dll", SetLastError... |
namespace Messi.Endpoints
{
using System;
public interface IInputEndpoint
{
Messi.Message NextMessage();
}
}
|
using System;
using GB.IO;
namespace GB
{
public class Tile
{
private byte[] byteArr;
public Shade GetPixel(int x, int y)
{
byte pixelValOne = (byte)((byteArr[y*2] >> (7-x)) & 1);
byte pixelValTwo = (byte)((byteArr[(y*2)+1] >> (7-x)) & 1);
return (Sha... |
namespace Naos.Foundation.Domain
{
public enum OrderDirection
{
Ascending = 10,
Descending = 20
}
} |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics.CodeAnalysis;
namespace System.Collections.Generic
{
/// <summary>Equality comparer for hashsets of hashsets</summary>
internal sealed class HashSet... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Repo1.Core.ns11.Configuration;
using Repo1.Core.ns11.R1Models.D8Models;
using Repo1.Core.ns11.R1Models.D8Models.D8ViewsLists;
using Repo1.WPF45.SDK.Archivers;
using Repo1.WPF45.SDK.Clients;
using Rep... |
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.Text;
namespace LambdaForum.Common.Models
{
public class Post : Entity, IHasCreationTime
{
public string Title { get; set; }
public string Content { get; set; }
p... |
namespace StrawberryShake.CodeGeneration.CSharp
{
public class CSharpDocument
{
public CSharpDocument(string name, string source)
{
Name = name;
SourceText = source;
}
public string Name { get; }
public string SourceText { get; }
}
}
|
using System;
namespace UnicornHack.Utils
{
public struct TransientReference<T> : IDisposable where T : IReferenceable
{
public TransientReference(T referenced)
{
referenced.AddReference();
Referenced = referenced;
}
public T Referenced { get; private se... |
using System;
using System.Collections.Generic;
using System.Net.Http;
using Microsoft.Extensions.Configuration;
using Microsoft.IdentityModel.Clients.ActiveDirectory;
using Microsoft.Rest;
using Newtonsoft.Json;
namespace Gov.Lclb.Cllb.Interfaces.GeoCoder
{
public partial class GeocoderClient
{
... |
// 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.Collections.Generic;
using System.IO.Packaging;
using DocumentFormat.OpenXml.Packaging;
using DocumentFormat.OpenXml;
namespace DocumentForm... |
using System.Collections.Generic;
using System.Threading.Tasks;
using Supermercado.API.Domain.Models;
namespace Supermercado.API.Domain.Services
{
public interface ICategoriaService
{
Task<IEnumerable<Categoria>> ListAsync();
}
} |
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using System;
public class exercicio_mecanica_1 : MonoBehaviour {
public string[] exe = new string[6];
public string[] responder = new string[2];
public Text[] alternativa = new Text[5];
public int numb, x,quest,aux,resultado_real,resu... |
namespace Stranne.BooliLib.Models
{
/// <summary>
/// Box coordinates.
/// </summary>
public class BoxCoordinates
{
/// <summary>
/// Gets or sets latitude south west.
/// </summary>
public double LatitudeSouthWest { get; set; }
/// <summary>
/// Gets... |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace BBGamelib.flash.imp{
public class TagDefineMovie: TagDefineDisplay
{
ITag[] _tags;
public ITag[] tags{ get { return _tags; } }
int _maxDepth;
public int maxDepth{get{return _maxDepth;} }
Frame[] _frames;
public F... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using ImGuiNET;
public class ImGuiDemo : MonoBehaviour
{
private bool _show = false;
void toggle()
{
_show = !_show;
if(_show)
ImGuiUn.Layout += OnLayout;
else
ImGuiUn.Layout -= OnLayout;
}
public void U... |
using System;
using AnotherCM.Library.Common;
using AnotherCM.Library.Import.Common;
namespace AnotherCM.Library.Import.Character {
public class Defenses {
private Stats stats;
public Defenses (Stats stats) {
if (stats == null) {
throw new ArgumentNullException("stats"... |
namespace SizeMattersFishingLib.Spearfishing;
public enum SpearfishingRow
{
Row01,
Row02,
Row03
}
|
namespace IGDB.Models
{
public class GameVersionFeatureValue : IIdentifier, IHasChecksum
{
public string Checksum { get; set; }
public IdentityOrValue<Game> Game { get; set; }
public IdentityOrValue<GameVersionFeature> GameFeature { get; set; }
public long? Id { get; set; }
public IncludedF... |
#region CPL License
/*
Nuclex Framework
Copyright (C) 2002-2012 Nuclex Development Labs
This library is free software; you can redistribute it and/or
modify it under the terms of the IBM Common Public License as
published by the IBM Corporation; either version 1.0 of the
License, or (at your option) any later... |
namespace Company.ConsoleApplication1.Hello
{
public interface IHelloCommand : ICommand {}
} |
using UnityEngine;
using System.Collections;
public class playersbodygenerater : Photon.MonoBehaviour {
/*
public GameObject player1;
public GameObject player2;
public GameObject player3;
public GameObject player4;
public GameObject player5;
*/
public bool color = false;
// Use this ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
using M3PlusMicrocontroller;
namespace ConsoleTestSimulation {
class Program {
const int to = 100000000;
static void Main(string[] args) {
//St... |
using System;
namespace Simplic.Package
{
// TODO: Think of better name.
/// <summary>
/// Represents an unpacked ObbjectListItem with information regarding the installation of the content.
/// </summary>
public class InstallableObject
{
/// <summary>
/// Gets or sets the targe... |
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;
namespace MyCal2
{
public partial class Form1 : Form
{
public Form1()
{
... |
using UnityEngine;
public class WallEntity : Entity
{
override public void OnBodyCollisionEnter(Collider2D coll)
{
EventKit.Broadcast("player touching wall", true);
}
override public void OnBodyCollisionStay()
{
EventKit.Broadcast("player touching wall", true);
}
override public void OnBodyCollisionExit()... |
using System;
using Armature.Core;
using FluentAssertions;
using NUnit.Framework;
using Tests.Util;
namespace Tests.UnitTests;
public class BuildChainTest
{
[Test]
public void Length()
{
// --arrange
const int arrayLength = 3;
const int startIndex = 1;
var array = new UnitId[arrayLength];... |
namespace CUE4Parse.UE4.Assets.Exports.Material
{
public enum EMobileSpecularMask
{
MSM_Constant,
MSM_Luminance,
MSM_DiffuseRed,
MSM_DiffuseGreen,
MSM_DiffuseBlue,
MSM_DiffuseAlpha,
MSM_MaskTextureRGB,
MSM_MaskTextureRed,
MSM_MaskTextureGr... |
using System;
using System.ComponentModel.DataAnnotations;
using McMaster.Extensions.CommandLineUtils;
namespace NeinTile.Shell
{
[Command("play", Description = "Play a new game")]
public class PlayGame
{
[Option(Description = "Edition to play (defaults to 'Classic')")]
public GameEdition E... |
/* Copyright (C) 2004 - 2011 Versant Inc. http://www.db4o.com */
using System.IO;
using System.Text;
using Db4objects.Db4o.Foundation;
using Db4objects.Db4o.Internal.Encoding;
using Db4objects.Db4o.Internal.Handlers;
using Db4objects.Db4o.Internal.Slots;
using Sharpen.IO;
namespace Db4objects.Db4o
{
//... |
using System;
using System.Collections.Generic;
using ESRI.ArcGIS.Geodatabase;
using ProSuite.Commons.Essentials.Assertions;
using ProSuite.Commons.Essentials.CodeAnnotations;
using Ao = ESRI.ArcGIS.Geometry;
namespace ProSuite.QA.Container.PolygonGrower
{
public abstract class LineListPolygon
{
private readonly L... |
using System;
using System.Collections;
using UnityEngine;
namespace SpaceWar
{
public class PooledMonoBehaviour : MonoBehaviour
{
[SerializeField] private int initialPoolSize = 25;
public UnityEngine.Events.UnityEvent OnDisabled;
public event Action<PooledMonoBehaviour> OnReturnToPoo... |
using GutenTag;
namespace GutenTag.Hspi
{
public class Ruby : Tag
{
public Ruby() : base("ruby")
{
}
}
} |
using MKProject.UdemyBlog.DataAccess.Interfaces;
using MKProject.UdemyBlog.Entities.Concrete;
using System;
using System.Collections.Generic;
using System.Text;
namespace MKProject.UdemyBlog.DataAccess.Concrete.EntityFrameworkCore.Repositories
{
public class EfBlogRepository : EfGenericRepository<Blog>,IBlogDal
... |
using System;
namespace AppRopio.ECommerce.Products.Core.ViewModels.ProductCard.Items.Switch
{
public interface ISwitchPciVm : IProductDetailsItemVM, ISelectableProductCardItemVM
{
bool Enabled { get; }
}
}
|
//-----------------------------------------------------------------------------
// <copyright file="IEdmObject.cs" company=".NET Foundation">
// Copyright (c) .NET Foundation and Contributors. All rights reserved.
// See License.txt in the project root for license information.
// </copyright>
//--------------... |
using UnityEngine;
namespace Main
{
class HomeZone : MonoBehaviour
{
public ETeam Team = ETeam.A;
private float m_SqrRadius;
void Start()
{
m_SqrRadius = Match.instance.GlobalSetting.HomeZoneRadius * Match.instance.GlobalSetting.HomeZoneRadius;
}
vo... |
/*
* Copyright (c) 2018 Samsung Electronics Co., Ltd 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 requi... |
using System.Collections.Generic;
using System.Linq;
using Blish_HUD;
using Blish_HUD.Controls;
using Blish_HUD.Input;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace Events_Module {
public class NotificationMover : Control, IWindow {
// This is all very kludgy. I wouldn... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
namespace Content.Shared.Text
{
public static class Names
{
public static readonly IReadOnlyList<string> MaleFirstNames;
public static readonly IReadOnlyList<string> FemaleFirstNames;
public stati... |
//Do not edit! This file was generated by Unity-ROS MessageGeneration.
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;
namespace RosMessageTypes.Sensor
{
[Serializable]
public class CompressedImageMsg : Message
{
... |
using System;
using System.Text.Json.Serialization;
namespace Nu.Plugin
{
internal class PluginConfiguration
{
private PluginConfiguration() { }
private PluginConfiguration(string name, string usage, bool isFilter, int[] positional, object named)
{
IsFilter = isFilter;
... |
using OpenQA.Selenium;
namespace Core.Elements.BaseElements
{
public class TextInputElement : Element, ITextInputElement
{
public TextInputElement(IWebElement element, IWebDriver webDriver) : base(element, webDriver)
{
}
public string Value
{
get => GetAttr... |
using RimWorld;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using Verse;
namespace MTW_Treasures
{
public class StockGenerator_Treasures : StockGenerator
{
private Thing TryMakeForStockSingle(ThingDef thingDef)
{
ThingDef stuff = null;
... |
namespace GenericEvolutionaryFramework
{
class Program
{
static void Main(string[] args)
{
new EvolutionaryAlgorithm(
new Population(),
new Evaluator(),
new Crossover(),
new Selector(),
new Mutator()).Run... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Fungus;
using BaseFungus = Fungus;
namespace CGTUnity.Fungus.SaveSystem
{
/// <summary>
/// Contains much of the state of a Flowchart.
/// </summary>
public class FlowchartData : SaveData
{
... |
using System;
namespace AndroidXml.Res
{
[Serializable]
public class ResXMLTree_namespaceExt
{
public ResStringPool_ref Prefix { get; set; }
public ResStringPool_ref Uri { get; set; }
}
} |
// Another shape-centric namespace.
using System;
namespace My3DShapes
{
// 3D Circle class.
public class Circle { }
// 3D Hexagon class.
public class Hexagon { }
// 3D Square class.
public class Square { }
}
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GoblinWriter : MonoBehaviour {
public TMPro.TextMeshProUGUI textMesh;
public List<string> goblinJobs;
public int goblinMaxAge = 200;
// Start is called before the first frame update
void Start()
{
... |
namespace test.sacs
{
/// <summary>
/// Create a DomainParticipant and register it by the TestCase as
/// "participant1" with a default qos.
/// </summary>
/// <remarks>
/// Create a DomainParticipant and register it by the TestCase as
/// "participant1" with a default qos.
/// </remarks... |
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using System.Web;
using SI.Mobile.RPMSGViewer.Lib;
using OpenMcdf;
using System.IO;
using Ionic.Zlib;
using System.Security;
namespace SI.Mobile.RPMSGViewer.Lib
{
public class MessageRpmsg
{
public PublishingL... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Controls.Primitives;
namespace DesignScript.Editor
{
using ProtoCore.CodeModel;
using System.D... |
using SolastaModApi.Infrastructure;
using static RuleDefinitions;
namespace SolastaModApi.Extensions
{
/// <summary>
/// This helper extensions class was automatically generated.
/// If you find a problem please report at https://github.com/SolastaMods/SolastaModApi/issues.
/// </summary>
[TargetTy... |
using GenericSearch.UnitTests.Data.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
namespace GenericSearch.UnitTests.Data
{
public class TestContext : DbContext
{
public static readonly ILoggerFactory Factory = LoggerFactory.Create(x => x.AddConsole());
publi... |
#region Using Statements
using MarkLight.Views.UI;
using System;
using UnityEngine.EventSystems;
#endregion
namespace MarkLight.Views.UI
{
/// <summary>
/// Item selection action data.
/// </summary>
public class ItemSelectionActionData : ActionData
{
#region Fields
public readonl... |
using Dapper;
using PredicateBuilder.Test.Data;
using PredicateBuilder.Test.Model;
using System.Data;
using System.Data.SqlClient;
namespace PredicateBuilder.IntegrationTest.Data
{
public class PersonData
{
private static readonly string CreateIfNotExistsSql = @"
if not exists (SELECT 1 FROM sysobject... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Drawing;
using System.Windows.Media.Imaging;
using SnipInsight.Util;
using Rectangle = System.Drawing.Rectangle;
namespace SnipInsight.ImageCapture
{
/// <summary>
/// This class is to man... |
using System;
using System.Text;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Linq;
namespace GenericNEAT.Samples.NeuralNets.Tests
{
[TestClass]
public class TXORFitness
{
XORFitness fit = new XORFitness();
[TestMethod]
public ... |
namespace UniModules.UniContextData.Runtime.Entities
{
using System;
using UniGame.Context.Runtime.Context;
using UniGame.Core.Runtime.Interfaces;
using UnityEngine;
public class EntityComponent : MonoBehaviour
{
[NonSerialized] private EntityContext _context = new EntityContext();
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
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 System.Windows.Navigati... |
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace clientcreds.Loggers
{
public class ConsoleLoggerConfig
{
public int EventId { get; set; }
public Dictionary<LogLevel, ConsoleColor>... |
using System;
using System.Collections;
using Weborb.Util;
#if FULL_BUILD
using Weborb.Util.Cache;
#endif
using Weborb.Util.Logging;
using Weborb.Writer;
namespace Weborb.V3Types
{
public class BodyHolderWriter : AbstractUnreferenceableTypeWriter
{
#region ITypeWriter Members
public ove... |
using FinancialTransactionsApi.V1.Boundary.Response;
using FinancialTransactionsApi.V1.Domain;
using System.Threading.Tasks;
namespace FinancialTransactionsApi.V1.UseCase.Interfaces
{
public interface IUpdateSuspenseAccountUseCase
{
public Task<TransactionResponse> ExecuteAsync(Transaction transaction)... |
namespace Taller.Dtos
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
//
public class CreateMechanicDto
{
public string Cedula { get; set; }
[Required]
public string Nombre { get; set; }
[Required]
public... |
using System;
namespace SistemaClinica.BackEnd.API.Models
{
public class Pacientes
{
public string CedulaPaciente { get; set; }
public string NombrePaciente { get; set; }
public string Apellidos { get; set; }
public string Telefono { get; set; }
public int Edad { get; set; }
public bool Activo { ge... |
using System.Collections.Generic;
using System.Threading.Tasks;
using Project_OLP_Rest.Domain;
namespace Project_OLP_Rest.Data.Interfaces
{
public interface IRecordService : IGenericService<Record>
{
Task<IEnumerable<Record>> GetAll();
}
}
|
namespace LoESoft.GameServer.realm.mapsetpiece
{
internal class MountainTemple : MapSetPiece
{
public override int Size => 5;
public override void RenderSetPiece(World world, IntPoint pos)
{
Entity cube = Entity.Resolve("Encounter Altar");
cube.Move(pos.X + 2.5f... |
using DevChatter.Bot.Core.Commands;
namespace DevChatter.Bot.Core.Data.Model
{
public class ChatUser : DataEntity
{
public string UserId { get; set; }
public string DisplayName { get; set; }
public UserRole? Role { get; set; }
public int Tokens { get; set; }
public bool... |
using System;
namespace Reddit.Inputs.LinksAndComments
{
[Serializable]
public class LinksAndCommentsSubmitInput : APITypeInput
{
/// <summary>
/// boolean value
/// </summary>
public bool ad { get; set; }
/// <summary>
/// string value
/// </summar... |
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Common.Operations;
namespace CommonTests
{
[TestClass]
public class MethodResultTests
{
[TestMethod]
public void DefaultConstructorTest()
{
var def = new MethodResult();
isSuccess(def);... |
// Python Tools for Visual Studio
// Copyright(c) Microsoft Corporation
// 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
//... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* 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 app... |
using System;
namespace ImpromptuNinjas.ZStd.Utilities {
public sealed partial class MemoryRegionStream {
private static void ValidateReadWriteArgs(byte[] array, int offset, int count) {
if (array == null)
throw new ArgumentNullException(nameof(array));
if (offset < 0)
throw new Arg... |
using AutoMapper;
using HistoricalMysteryAPI.Contracts;
using HM.DataAccess.DB.Models;
namespace HistoricalMysteryAPI.Util
{
public class MappingProfile : Profile
{
public MappingProfile()
{
CreateMap<ArticleItemDto, ArticleItem>().ReverseMap();
CreateMap<ArticleContent... |
using System;
namespace MathVenture.SequenceGen
{
public struct Digit : IComparable<Digit>, IEquatable<Digit>
{
public Digit(int number, int @base = 10)
{
Base = @base;
if (number < 0 || number > @base - 1) {
throw new ArgumentOutOfRangeException($"Digit must be 0-{@base-1}");
}
Value = number;
... |
using System.Collections.Generic;
using System.Linq;
using Deptorygen.Generator.Interfaces;
using Deptorygen.Utilities;
using Microsoft.CodeAnalysis;
namespace Deptorygen.Generator.Definition
{
public class ResolverDefinition : IDefinitionRequiringNamespace, IAccessibilityClaimer, IResolverContext
{
public string... |
// See https://aka.ms/new-console-template for more information
using MathNet.Numerics;
// Doing this explicitly would not be needed, but we want to force it here so it fails if there is a problem
Control.UseNativeOpenBLAS();
Console.WriteLine(Control.Describe());
|
using System;
using NUnit.Framework;
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
namespace DemiCode.Logging.log4net.Test
{
[TestFixture]
public class SomeTest
{
[Test]
public void Will_This_Work()
{
Assert.Pass("Yes this works");
... |
using System;
namespace Matrix.Framework.Api.Response
{
public class DevelopmentResponseFactory : ProductionResponseFactory
{
public override IResponse GetErrorResponse(Exception exception)
{
var result = base.GetErrorResponse(exception) as ErrorResponse;
if ... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace ServiceExample.Web.Utils
{
/// <summary>
/// Contains utilities for file handling.
/// </summary>
public class FileTools
{
/// <summary>
/// Helps appending n... |
namespace mc.CodeAnalysis.Syntax
{
public class SyntaxTree
{
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AspnetVnBasics.Entities;
using AspnetVnBasics.Repositories.Interfaces;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace AspnetVnBasics.Pages
{
public class ProductModel : Page... |
using System.Collections.Generic;
namespace SlrrLib.Model
{
public class BinaryInnerPhysEntry : FileEntry
{
protected static readonly int sigantureOffset = 0;
protected static readonly int sizeOffest = 4;
protected static readonly int firstChunkCountOffset = 8;
protected static... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
using App1_Vagas.Modelos;
using App1_Vagas.Banco;
namespace App1_Vagas.Paginas
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class ... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Shared.Contract.Options
{
public class StuffPackerConfigurationOptionNames
{
public const string Prefix = "StuffPacker:";
public static string SiteOptions => Prefix + "SiteOptions";
public static string Storage... |
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace Microsoft.PowerToys.Settings.UI.OOBE.Enums
{
public enum PowerToysModulesEnum
{
Overview = 0,
... |
using System;
using Microsoft.AspNetCore.Mvc;
namespace Excepticon.Examples.AspNetCore.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class ErrorsController
{
[HttpGet]
public IActionResult Get()
{
// Any errors thrown in the app during... |
using System.Collections.Generic;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;
namespace IATA.AIDX
{
public sealed class AirportResources : IXmlSerializable
{
public string Usage { get; set; }
[XmlElement]
public ICollection<IAirportResource> Resource { g... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.