text stringlengths 1 932k |
|---|
using NUnit.Framework;
using System;
namespace Main.Test
{
public class MainTest
{
[Test]
public void Test()
{
Assert.True(true);
} // This is here for boundary testing
[TestCase(0)]
[TestCase(1)]
public void DataDrivenTest1(int i)
{
... |
using NUnit.Framework;
[TestFixture]
public class AssemblyWithNonVoidOnPropertyChangedTests
{
[Test]
public void Simple()
{
var weavingException = Assert.Throws<WeavingException>(() => new WeaverHelper("AssemblyWithNonVoidOnPropertyNameChanged"));
Assert.AreEqual("The type ClassWithNonVoid... |
using System;
using System.Collections.Generic;
namespace ElectricViewerAPI.Models
{
// AccountController 操作返回的模型。
public class ExternalLoginViewModel
{
public string Name { get; set; }
public string Url { get; set; }
public string State { get; set; }
}
public class Man... |
using System;
using System.Collections.Generic;
namespace Karambolo.AspNetCore.Bundling.Sass.Internal.Helpers
{
internal readonly struct MultiLineTextHelper
{
private readonly List<int> _lineIndices;
private static List<int> GetLineIndices(string text)
{
var lineIndices = ... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Microsoft.CodeAna... |
using System;
namespace NewsPortal.WebAPI.Database
{
public class Photo
{
public int Id { get; set; }
public string Url { get; set; }
public string Description { get; set; }
public DateTime CreateOn { get; set; }
public string PublicId { get; set; }
public User ... |
using SkillsTest.Domain.Entities;
using System.Collections.Generic;
namespace SkillsTest.Models
{
/// <summary>
/// Данные каталога фильмов для отображения, разбитые на страницы.
/// </summary>
public class PaginatedMoviesViewModel
{
/// <summary>
/// Информация разбиении на страниц... |
using JetBrains.DataFlow;
using System;
using System.Collections.Generic;
using System.IO;
using JetBrains.Annotations;
using JetBrains.Application.Infra;
using JetBrains.Application.Threading;
using JetBrains.Lifetimes;
using JetBrains.ProjectModel;
using JetBrains.ProjectModel.ProjectImplementation;
using JetBrains.P... |
using System;
using System.Threading;
using System.Threading.Tasks;
using Domain;
using ReadSide.Products;
using ReadSide.Products.Queries;
using Xer.Cqrs.QueryStack;
namespace ConsoleApp.UseCases
{
public class DisplayProductUseCase : UseCaseBase
{
private readonly IQueryAsyncDispatcher _queryDispatch... |
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Gov.Jag.PillPressRegistry.Interfaces
{
using Models;
using System.Collections;
using System.Collections.Gene... |
// Copyright (c) Stride contributors (https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Linq;
using Stride.Core;
using Strid... |
/*
* ProcessMaker API
*
* This ProcessMaker I/O API provides access to a BPMN 2.0 compliant workflow engine api that is designed to be used as a microservice to support enterprise cloud applications. The current Alpha 1.0 version supports most of the descriptive class of the BPMN 2.0 specification.
*
* OpenAPI s... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNetCore.Server.HttpSys;
internal partial class ClientCertLoader
{
private static class Log
{
private stat... |
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.eShopWeb.ApplicationCore.Constants;
using Microsoft.eShopWeb.Web.Extensions;
using Microsoft.eShopWeb.Web.Services;
using Microsoft.eShopWeb.Web.ViewModels;
using Microsoft.Extensions.Cach... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cosmos.Blog.Commons.Utilities.Interface
{
public interface IExcelService
{
public object Export();
public object Import();
}
} |
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell... |
using System;
namespace Eshava.Core.Linq.Attributes
{
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class QueryIgnoreAttribute : Attribute
{
}
} |
namespace PaketLoadScripts
#load "/home/justin/code/fsharp/GiraffeWebApp/GiraffeWebApp/.paket/load/net463/Microsoft.AspNetCore.Http.csx" |
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CPNewbieBot
{
internal class DefinitionFinder
{
static Definition[] definitions;
public string Message { get; private set; }
public DefinitionFinder()
{
Message = "Not par... |
/*<FILE_LICENSE>
* NFX (.NET Framework Extension) Unistack Library
* Copyright 2003-2018 Agnicore Inc. portions ITAdapter Corp. 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
*
* http:/... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.PlatformAbstractions;
namespace DiscoverySample
{
public interface IDoSomething
{
void It();
}
public class Class1
{
... |
using UnityEngine;
using System.Collections;
public class MainMenuPanel : MonoBehaviour
{
[Header("References")]
[SerializeField] GameObject createRoomPanelGO;
public IEnumerator TryCreateRoom()
{
yield return new WaitForSeconds(0.5f);
gameObject.SetActive(false);
createRoomPa... |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
using System;
using System.Collections;
using System.Diagnostics;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using OpenLiveWriter.Inte... |
/* Company : Nequeo Pty Ltd, http://www.nequeo.com.au/
* Copyright : Copyright © Nequeo Pty Ltd 2012 http://www.nequeo.com.au/
*
* File :
* Purpose :
*
*/
#region Nequeo Pty Ltd License
/*
Permission is hereby granted, free of charge, to any person
obtaining a copy of th... |
using System.ComponentModel;
using Windows.Storage;
using Windows.Storage.Streams;
using Microsoft.UI.Xaml.Controls;
using QuickNote.Mvvm.Models;
using QuickNote.Mvvm.ViewModels;
using QuickNote.UI.Mvvm.ViewModels;
using QuickNote.UI.Theme;
// The User Control item template is documented at https://go.microsoft.com/fw... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Sh... |
using System;
using System.Threading;
using System.Threading.Tasks;
using Cart.Infrastructure.Configurations;
using MediatR;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using RabbitMQ.Client;
using RabbitMQ.Client.Events;
using Cart.Domain.Events;
namespace Cart.Infra... |
@using QuickIdentityServer.MvcClient
@using QuickIdentityServer.MvcClient.Models
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers |
////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 Realm 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
//
// http://www.apache.org/li... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Lokad.AzureEventStore.Projections;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Blob;
namespace Lokad.AzureEventStore.Cache
{
/// <summary> Persists the cache to a ... |
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Reflection;
namespace Maps.Data
{
/// <summary>
/// Base class responsible for parsing database types
/// </summary>
/// <typeparam name="TKey">The default key type for the db table</typeparam>
/// <typeparam name="T... |
// Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
namespace PInvoke
{
using System;
using System.Runtime.InteropServices;
/// <cont... |
using System.Collections.Generic;
using UnityEngine;
namespace Core.Utils
{
public static class TransformUtils
{
public static void ClearChild(this Transform transform)
{
var count = transform.childCount;
Transform[] childs = new Transform[count];
for (int i = 0; i < count; i++)
{
childs[i] = tr... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteInEditMode]
public class SetHitData : MonoBehaviour {
static string[] prop_names = new string[] {"_HitData0", "_HitData1", "_HitData2", "_HitData3", "_HitData4" };
public float radius = 1;
[Range(0,4)]
public int i... |
using Xamarin.Forms;
namespace XGraphics.XamarinForms
{
public class BindableObjectWithCascadingNotifications : BindableObject, INotifyObjectOrSubobjectChanged
{
public event ObjectOrSubobjectChangedEventHandler? Changed;
public void NotifySinceObjectChanged() => Changed?.Invoke();
p... |
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... |
// plist-cil - An open source library to parse and generate property lists for .NET
// Copyright (C) 2015 Natalia Portillo
//
// This code is based on:
// plist - An open source library to parse and generate property lists
// Copyright (C) 2014 Daniel Dreibrodt
//
// Permission is hereby granted, free of charge, to an... |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="OffReader.cs" company="Helix Toolkit">
// Copyright (c) 2014 Helix Toolkit contributors
// </copyright>
// <summary>
// A Geomview Object File Format (OFF) reader.
// </summar... |
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/d2d1_3.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System;
using System.Runtime.... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace tutoriales
{
public class WeaponController : ItemController
{
public virtual bool Attack(CharController character)
{
return false;
}
}
} |
namespace Smart.Navigation
{
public sealed class NavigationContext : INavigationContext
{
public object? FromId { get; }
public object ToId { get; }
public NavigationAttributes Attribute { get; }
public INavigationParameter Parameter { get; }
public NavigationContext(... |
using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Volo.Abp;
namespace Acme.DddDemo.Web
{
public class Startup
{
public IServiceProvider ConfigureServices(IServiceCollection services)
{
service... |
using UnityEngine;
using System.Collections;
public class SingletonBehavior<T> : MonoBehaviour where T : MonoBehaviour
{
private static T instance;
public static T Instance
{
get
{
if (instance == null)
{
Debug.LogErrorFormat("Trying to access {0} af... |
/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace Octopus.System.Xml
{
internal partial interface IDtdParser
{
IDtdInfo ParseInternalDtd(I... |
//
// System.Xml.XmlWriterSettingsTests.cs
//
// Authors:
// Atsushi Enomoto <atsushi@ximian.com>
//
// (C)2004 Novell Inc.
//
using System;
using System.IO;
using System.Text;
using System.Xml;
using System.Xml.Schema;
using NUnit.Framework;
namespace MonoTests.System.Xml
{
[TestFixture]
public class XmlWriterSett... |
/**
* Created on 2017/04/18 by inspoy
* All rights reserved.
*/
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using SF;
public class SFMainView : SFBaseView
{
public Text lblUid { get { return m_lblUid; } }
public Button btnLogout { get {... |
using System;
using PubNubMessaging.Core;
using NUnit.Framework;
using System.Collections.Generic;
using System.Linq;
using System.Net;
namespace PubNubMessaging.Tests
{
[TestFixture]
public class HelpersUnitTests
{
#if DEBUG
int ExceptionCode =0;
bool readCallback = false;
... |
// Copyright © 2020 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
//NOTE:Classes in the CefSharp.Core namespace have been hidden from intellisnse so users don't use them directly
using System;
using System.Collections... |
using System;
using System.Threading;
using System.Threading.Tasks;
namespace CavemanTools.Infrastructure
{
public static class MessagingMediatorStatic
{
/// <summary>
/// Specify the input of a request
/// </summary>
/// <typeparam name="TInput"></typeparam>
/// <param ... |
// Name: FormCode.cs
// Description: Dialog box for generating source code based on MVD schema
// Author: Tim Chipman
// Origination: Work performed for BuildingSmart by Constructivity.com LLC.
// Copyright: (c) 2013 BuildingSmart International Ltd.
// License: http://www.buildingsmart-tech.org/legal... |
using System;
using Xunit;
namespace ZaabeeExtensionsConfigurationEtcdTestProject
{
public class UnitTest1
{
[Fact]
public void Test1()
{
}
}
} |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.Ser... |
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.FileProviders;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CatenaX.NetworkServ... |
//===================================================================================
// Microsoft patterns & practices
// Composite Application Guidance for Windows Presentation Foundation and Silverlight
//===================================================================================
// Copyright (c) Microsoft C... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.CompilerServices;
using Pidgin.TokenStreams;
namespace Pidgin
{
/// <summary>
/// Extension methods for running parsers
/// </summary>
public static class ParserExtensions
{
/// <summary>
/// Appli... |
using System;
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class SizeAttribute : Attribute
{
public int FieldSize { get; private set; }
public SizeAttribute(int size)
{
FieldSize = size;
}
} |
//
// Program.cs: Bloque principal.
//
// Authors:
// Carlos (carlos@carlosalma.es)
//
// Copyright (C) Apache License Version 2.0 (http://www.apache.org/licenses)
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTAB... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Allegiance.Blazor.Highcharts.Constants
{
public class CursorType
{
public static string Pointer { get; } = "pointer";
}
} |
// Project: Daggerfall Tools For Unity
// Copyright: Copyright (C) 2009-2018 Daggerfall Workshop
// Web Site: http://www.dfworkshop.net
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Source Code: https://github.com/Interkarma/daggerfall-unity
// Origina... |
namespace NCloud.React.Service.FileManager
{
using System.Net.Http;
using System.Net.Http.Json;
using Microsoft.Extensions.Logging;
using NCloud.Core.Abstractions;
using NCloud.Core.Utils;
/// <summary>
/// Defines the <see cref="LocalFileManagerProvider" />.
/// </summary>
public ... |
// ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tas... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LitJson;
using ILRuntimeTest.TestFramework;
using ILRuntimeTest.TestBase;
namespace TestCases
{
class GenericMethodTest
{
class GTest
{
public void SetValue<K, ... |
@model HotelManager.Models.CreateReservationViewModel
@{
ViewData["Title"] = "Create";
}
<h1>Create</h1>
<h4>Reservation</h4>
<hr />
<div class="row">
<div class="col-md-4">
<form asp-action="Create">
@*<div asp-validation-summary="ModelOnly" class="text-danger"></div>*@
... |
using System;
using System.IO;
using BasicEC.Secret.Commands;
using BasicEC.Secret.Exceptions;
namespace BasicEC.Secret.Extensions
{
public static class FileInfoExtensions
{
public static FileInfo CheckFileExists(this string file)
{
return new FileInfo(file).CheckExists();
}... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ChatMicroservice.Models;
using ChatMicroservice.Repository;
using ChatMicroservice.DTOs;
using ChatMicroservice.IServices;
using ChatMicroservice.IRepository;
namespace ChatMicroservice.Services
{
public class Me... |
using System;
using System.Web;
using System.Web.Routing;
namespace RoutingWithAttributes
{
public class Global : HttpApplication
{
protected void Application_Start(object sender, EventArgs e)
{
RouteConfig.RegisterRoutes(RouteTable.Routes);
}
}
} |
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace UiPath.Web.Client20204.Models
{
using Newtonsoft.Json;
using System.Linq;
public partial class StartJobPara... |
using DCL;
public class LoadingHUDController : IHUD
{
internal LoadingHUDView view;
internal BaseVariable<bool> visible => DataStore.i.HUDs.loadingHUD.visible;
internal BaseVariable<string> message => DataStore.i.HUDs.loadingHUD.message;
internal BaseVariable<float> percentage =... |
/*
* SDF_API
*
* The Standard Datafeed (SDF) API provides an alternative method for users to request and retrieve SDF packages (schemas & bundles). This service is not a direct replacement and does not have 100% feature parity with the Loader. This API provides an alternative for users who are unable to utilize the ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CozyKxlol.Server.Model;
namespace CozyKxlol.Server.Manager
{
public class HappyPlayerManager
{
Dictionary<uint, HappyPlayer> PlayerDictionary = new Dictionary<uint, HappyPlayer>();
public void Add(uint... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT License.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Reactive;
using System.Reactive.Concurrency;
using Sy... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace example
{
class Program
{
static void Main(string[] args)
{
PlayerComparer plyCmp = new PlayerComparer();
var pv1 = new my.game.player_v1();
... |
using QSF.ViewModels;
using System;
using System.Collections.Specialized;
using System.Linq;
using Telerik.XamarinForms.DataControls;
using Xamarin.Forms;
namespace QSF.Views
{
public partial class GalleryExampleViewBase : ContentView
{
public static readonly BindableProperty HeaderContentProperty =
... |
using System;
using System.Collections.Generic;
using System.Linq;
using Fig.Contracts;
using Fig.Contracts.SettingDefinitions;
using Fig.Contracts.Settings;
using NUnit.Framework;
namespace Fig.Integration.Test.Client;
[TestFixture]
public class SettingsBaseTests
{
[Test]
public void ShallSetDefaultValues()
... |
using DotnetAccessControl.Application.Api.Dto;
using DotnetAccessControl.Application.common.interfaces;
using FluentValidation;
using FluentValidation.Validators;
using MediatR;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threa... |
// 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.
#nullable disable
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.Cod... |
//------------------------------------------------------------------------------
// 此代码版权(除特别声明或在RRQMCore.XREF命名空间的代码)归作者本人若汝棋茗所有
// 源代码使用协议遵循本仓库的开源协议及附加协议,若本仓库没有设置,则按MIT开源协议授权
// CSDN博客:https://blog.csdn.net/qq_40374647
// 哔哩哔哩视频:https://space.bilibili.com/94253567
// Gitee源代码仓库:https://gitee.com/RRQM_Home
// Gi... |
using System;
using System.Collections.Generic;
using System.Text;
namespace SimpleChat.Core.Helper
{
public static class Convert
{
public static bool TryParseEnum<TEnum>(this int enumValue, out TEnum retVal)
{
retVal = default(TEnum);
bool success = System.Enum.IsDefin... |
// ------------------------------------------------------------------------------
// <auto-generated>
// Generated by Xsd2Code. Version 3.4.0.18239 Microsoft Reciprocal License (Ms-RL)
// <NameSpace>Mim.V4200</NameSpace><Collection>Array</Collection><codeType>CSharp</codeType><EnableDataBinding>False</EnableDat... |
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace FVO.Customer.API.Configuration
{
public static class ApiConfig
{
public static IServiceCollect... |
// Copyright 2010 Chris Patterson
//
// 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 ... |
using System;
namespace Microsoft.Maui.Graphics.Controls
{
public static class NumericExtensions
{
public static double Clamp(this double self, double min, double max)
{
if (max < min)
{
return max;
}
else if (self < min)
{
return min;
}
else if (self > max)
{
return ma... |
using System;
using System.Linq;
using System.Text;
using Renci.SshNet.Common;
namespace Renci.SshNet
{
/// <summary>
/// Provides connection information when password authentication method is used
/// </summary>
/// <example>
/// <code source="..\..\Renci.SshNet.Tests\Classes\PasswordConnecti... |
//------------------------------------------------------------------------------
// <copyright file="StringUnit.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//-----------------------------------... |
/*
* Copyright Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fi... |
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using ESFA.DC.ILR.ValidationService.Interface;
namespace ESFA.DC.ILR.ValidationService.RuleSet
{
public class RuleSetOrchestrationService<T, U> : IRuleSetOrchestrationService<T, U>
where T : class
... |
using System.Collections.Generic;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Citrina
{
public class NewsfeedGetBannedExtendedResponse
{
public IEnumerable<UsersUserFull> Groups { get; set; }
public IEnumerable<GroupsGroupFull> Profiles { get; set; }
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Crossroads.Web.Common.MinistryPlatform;
using Newtonsoft.Json;
namespace MinistryPlatform.Translation.Models.DTO
{
[MpRestApiTable(Name = "cr_Bumping_Rules")]
public class MpBumpingRuleDto... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... |
using System.Reflection;
using SharperArchitecture.Domain.Attributes;
using FluentNHibernate.Conventions;
using FluentNHibernate.Conventions.Instances;
namespace SharperArchitecture.DataAccess.Conventions
{
public class LazyLoadAttributeConvention : AttributePropertyConvention<LazyLoadAttribute>, IReferenceConven... |
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Ictus.Data;
using Ictus.Data.Models;
namespace Ictus.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
... |
// Copyright © Wave Engine S.L. All rights reserved. Use is subject to license terms.
using System;
using WaveEngine.Components.Graphics3D;
using WaveEngine.Framework;
using WaveEngine.Framework.Graphics;
using WaveEngine.Framework.XR;
using WaveEngine.Mathematics;
using WaveEngine.MRTK.Effects;
using WaveEngine.MRTK... |
/*
* Copyright Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fi... |
/*
Government Usage Rights Notice: The U.S. Government retains unlimited, royalty-free usage rights to this software, but not ownership, as provided by Federal law.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
• Redist... |
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using ApiCrudPaginationMediatR.Commands;
using ApiCrudPaginationMediatR.Entities;
using ApiCrudPaginationMediatR.Enums;
using ApiCrudPaginationMediatR.Infrastructure.Services;
using MediatR;
namespace ApiCrudPaginati... |
using BankNetEntity.Models;
using Caliburn.Micro;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows.Input;
namespace BankNetEntity.ViewModels
{
public class B... |
using Newtonsoft.Json;
namespace VerifyTests.Http;
public class HttpCall
{
public HttpCall(HttpRequestMessage request, HttpResponseMessage response, TimeSpan? duration = null, TaskStatus? status = null)
{
Request = new(request);
Response = new(response);
if (status != TaskStatus.RanT... |
/*
* Copyright (c) 2003-2004, University of Maryland
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
* that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list... |
// 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.Diagnostics;
using System.Diagnostics.Contracts;
using System.Threading;
using System.Threading.Tasks;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.