max_stars_repo_path stringlengths 3 255 | max_stars_repo_name stringlengths 5 116 | max_stars_count int64 0 107k | id stringlengths 1 7 | content stringlengths 63 1.05M |
|---|---|---|---|---|
SharedProjects/GltfExport.Entities/GLTFSkin.cs | Mu-L/Exporters | 445 | 7048649 | <filename>SharedProjects/GltfExport.Entities/GLTFSkin.cs<gh_stars>100-1000
using System.Runtime.Serialization;
namespace GLTFExport.Entities
{
[DataContract]
public class GLTFSkin : GLTFIndexedChildRootProperty
{
/// <summary>
/// The index of the accessor containing the floating-point 4x4 ... |
hypertext/Assets/WidgetFromHtml/Core/Runtime/internal/ops/tag_ruby.cs | dianchu/HypertextForUnity | 10 | 7048650 | <filename>hypertext/Assets/WidgetFromHtml/Core/Runtime/internal/ops/tag_ruby.cs<gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Linq;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.widgets;
namespace WidgetFromHtml.Core
{
internal class TagRuby
{
public BuildOp op;
... |
Swizzle.Core/Services/IngestionService.cs | abock/swizzle | 0 | 7048651 | using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.IO;
using System.Text.RegularExpressions;
using System.Threading;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using HashidsNet;
using Swizzle.Models;
namespace Swizzle.Services
{
public e... |
src/Nucleo.UnitTests.40.MS/Web/Filters/AjaxOnlyRequestAttributeTest.cs | brianmains/Nucleo.NET | 2 | 7048652 | using System;
using System.Reflection;
using System.Web.Mvc;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TypeMock.ArrangeActAssert;
namespace Nucleo.Web.Filters
{
[TestClass]
public class AjaxOnlyRequestAttributeTest
{
#region " Tests "
[TestMethod]
public void CheckingForValidRequestReturnsF... |
DiagramDesigner/ViewModel/OrthogonalLinePathFinder.cs | lingyunyumo/DiagramDesigner | 0 | 7048653 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
using System.Windows;
namespace DiagramDesigner.ViewModel
{
public class OrthogonalLinePathFinder : IPathFinder
{
public IList<Point> FindPath(PortViewModel portFrom, PortViewModel portTo... |
Assets/Script/LeafWave.cs | Raindropgame/Ev_game | 6 | 7048654 | using UnityEngine;
using System.Collections;
public class LeafWave : MonoBehaviour {
public float scale = 0;
public AnimationCurve Curve;
private MaterialPropertyBlock MBlock;
private SpriteRenderer SR;
private float _time0 = 0;
void Start () {
MBlock = new MaterialPropertyBlock();
... |
S7/TheBookStore/TheBookStore/Infrastructure/Extensions.cs | blackviper05701/PacktPublishing-RESTful-Services-with-ASP.NET-Web-API | 2 | 7048655 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using TheBookStore.DataTransferObjects;
using TheBookStore.Models;
namespace TheBookStore.Infrastructure
{
public static class Extensions
{
public static string AsString(this IEnumerable<Book... |
Shuhari.Framework.Common/Utils/StringParts.cs | shuhari/Shuhari.Framework | 0 | 7048656 | <filename>Shuhari.Framework.Common/Utils/StringParts.cs
using System.Collections.Generic;
namespace Shuhari.Framework.Utils
{
/// <summary>
/// Manage string in parts which can be easily configured and joined
/// </summary>
public class StringParts
{
/// <summary>
/// Initialize
... |
TeXextension/OutliningTaggerProvider.cs | cc4966/TeXextension | 0 | 7048657 | <filename>TeXextension/OutliningTaggerProvider.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Text.Outlining;
using Microsoft.VisualStudio.Text.Tagging;
using Microsoft.VisualStudio.Utilities;
using Microsof... |
dnx-dev/src/Microsoft.Dnx.Runtime.Sources/Impl/RuntimeEnvironmentHelper.cs | cemoses/aspnet | 0 | 7048658 | // 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;
namespace Microsoft.Dnx.Runtime
{
internal static class RuntimeEnvironmentHelper
{
private static Lazy<bool> _isMono = n... |
Konsole/K.cs | johnmbaughman/konsole | 1 | 7048659 | namespace Konsole
{
// (K) Konsole shortcut options
public enum K
{
// coming soon
// -----------
// really simple shortcut settings for windows
//TL, // Top left 50% wide and high
//TR, // Top Right 50% wide and high
//BL, // Bottom left 50% wide and high
... |
AutoPlayerStats/playerPanel.cs | EthanHarv/APS | 0 | 7048660 | 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;
namespace AutoPlayerStats
{
public partial class PlayerPanel : Panel
{
public PlayerPane... |
FTX.Net/Objects/LeveragedTokens/FTXLeveragedTokenCreationRequest.cs | wclark17/FTX.Net | 23 | 7048661 | using System;
using System.Collections.Generic;
using System.Text;
namespace FTX.Net.Objects.LeveragedTokens
{
/// <summary>
/// Leveraged token creation request
/// </summary>
public class FTXLeveragedTokenCreationRequest
{
/// <summary>
/// Id of the request
/// </summary... |
Sample/Koudai/Server/src/ZyGames.Tianjiexing.BLL/Action/Action1501.cs | wenhulove333/ScutServer | 2 | 7048662 | <reponame>wenhulove333/ScutServer
/****************************************************************************
Copyright (c) 2013-2015 scutgame.com
http://www.scutgame.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Sof... |
E-StoreSolution/E-Store.Services/Services/Interface/IProductOrderService.cs | martinst93/ASP.NET-MVC | 0 | 7048663 | using E_Store.Domain.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace E_Store.Services.Services.Interface
{
public interface IProductOrderService
{
List<Product> GetAllProducts();
List<Order> GetOrders();
... |
Views/Grid/DragAndDropWithInGrid.cshtml | ESA-Security-Group/ej2-aspnetmvc-samples | 0 | 7048665 |
@{
ViewBag.Title = "DragAndDropWithInGrid";
}
@using Syncfusion.EJ2
@section ControlsSection{
<div class="control-section">
@Html.EJS().Grid("DragAndDropWithInGrid").DataSource((IEnumerable<object>)ViewBag.dataSource).Columns(col =>
{
col.Field("OrderID").HeaderText("Order ID").TextAlign(Syncfusion... |
src/ToDoListApi/Repositories/UserRepository.cs | szymenn/ToDoListApp | 0 | 7048666 | using System;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AutoMapper;
using Microsoft.AspNetCore.Identity;
using ToDoListApi.Email;
using ToDoListApi.Entities;
using ToDoListApi.Exceptions;
using ToDoListApi.Helpers;
using ToDoListApi.Models;
using ToDoListApi.Services;
using S... |
src/Ninject.Web.AspNetCore/NinjectServiceProviderIsService.cs | lord-executor/Ninject.Web.WebApiCore | 0 | 7048667 | using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
namespace Ninject.Web.AspNetCore
{
#if NET6_0_OR_GREATER
public class NinjectServiceProviderIsService : IServiceProviderIsService
{
private readonly IKernel _kernel;
public NinjectServiceProviderIsService(IKernel ke... |
src/Build.UnitTests/Construction/SolutionFilter_Tests.cs | mruxmohan-msft/msbuild | 4,343 | 7048668 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Microsoft.Build.BackEnd.Logging;
using Microsoft.Build.Construction;
using Microsoft.Build.... |
src/Disqord.Gateway/Entities/Cached/Channels/Guild/CachedCategoryChannel.cs | moriyahiroaki/Disqord | 1 | 7048669 | using Disqord.Models;
namespace Disqord.Gateway
{
public class CachedCategoryChannel : CachedGuildChannel, ICategoryChannel
{
public CachedCategoryChannel(IGatewayClient client, ChannelJsonModel model)
: base(client, model)
{ }
}
}
|
Assets/Scripts/FCAlibrary/Extensions.cs | zraul123/FCAVR | 0 | 7048670 | using System.Collections.Generic;
using System.Linq;
namespace Ganter.Algorithm
{
/// <summary>
/// A static class defining extension methods for the Ganter algorithm objects.
/// </summary>
public static class Extensions
{
/// <summary>
/// Compares two sets of formal attributes.
... |
DAL.VRP/Core/IRepository.cs | trahim4ik/VRP | 1 | 7048671 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using VRP.Core.Interfaces;
namespace VRP.DAL.Core {
public interface IRepository<TEntity> where TEntity : class, IEntity {
/// <summary>
/// Create includes for query
/// </summary>
/... |
Insya.NetDash/Views/Shared/main.cshtml | madhoonu/NetDash | 63 | 7048672 | <filename>Insya.NetDash/Views/Shared/main.cshtml
@using Insya.NetDash
<!DOCTYPE html>
<html>
<head>
<title>@ViewBag.Title</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="@Url.Content("~/static/img/favicon.i... |
sdk/src/Services/IoTSiteWise/Generated/Model/BatchGetAssetPropertyAggregatesSuccessEntry.cs | Hazy87/aws-sdk-net | 0 | 7048673 | /*
* 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... |
Simian Plugin/Simian Plugin/Output.cs | GrosuMihaiAlexandru/Simian-DX-Plugin | 0 | 7048674 | using System;
using System.Collections.Generic;
using System.Text;
namespace Simian_Plugin
{
public class DxProperties
{
public List<Property> properties = new List<Property>();
public void PrintProperties()
{
foreach (var prop in properties)
{
... |
src/Trezor.Net/Manager/FailureException.cs | ThatSlyGuy/Trezor.Net | 0 | 7048675 | using System;
namespace Trezor.Net
{
[Serializable]
public class FailureException<T> : Exception
{
public T Failure { get; }
public FailureException(string message, T failure) : base($"{message}\r\n{(failure as dynamic)?.Message}")
{
Failure = failure;
}
}
... |
src/NuGetGallery/Infrastructure/Authentication/ICredentialValidator.cs | chrno1209/NuGetGallery | 0 | 7048676 | // 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.Collections.Generic;
using System.Linq;
namespace NuGetGallery.Infrastructure.Authentication
{
public interface ICredentialValidator
... |
src/AppMotor.CliApp/CommandLine/Hosting/DefaultHostBuilderFactory.cs | skrysmanski/AppMotor | 1 | 7048677 | #region License
// Copyright 2021 AppMotor Framework (https://github.com/skrysmanski/AppMotor)
//
// 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/lice... |
Assets/Scripts/SSControlAI.cs | kostasvs/Alkis | 0 | 7048678 | <reponame>kostasvs/Alkis<filename>Assets/Scripts/SSControlAI.cs<gh_stars>0
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SSControlAI : MonoBehaviour
{
private SSFlight flight;
private SSTeam team;
private SSLaser laser;
private Transform target;
/// <summary>
/// ... |
Assets/TemDex/Scripts/Editor/EditorHelper.cs | vaxkun/TemDex | 1 | 7048679 | using System;
using UnityEngine;
using System.Collections;
using System.IO;
using System.Linq;
using System.Net;
using System.Text.RegularExpressions;
using UnityEditor;
using UnityEngine.UI;
public class EditorHelper : Editor
{
public const string UiMaterialPath = "Assets/POKEDEXX/Graphics/Materials/UI.mat";
... |
packages/GeoAPI.Core.1.7.5/src/Geometries/OgcGeometryType.cs | JeyssonXD/Sistema-Alerta-OT | 150 | 7048680 | <gh_stars>100-1000
namespace GeoAPI.Geometries
{
/// <summary>
/// Enumeration of OGC Geometry Types
/// </summary>
public enum OgcGeometryType
{
/// <summary>
/// Point.
/// </summary>
Point = 1,
/// <summary>
/// LineString.
/// </summary>
... |
src/Services/Foody.Services.DataServices/Models/Publishing/CommentBindingModel.cs | klubenov/Foody | 0 | 7048681 | using System.ComponentModel.DataAnnotations;
namespace Foody.Services.DataServices.Models.Publishing
{
public class CommentBindingModel
{
public string ArticleId { get; set; }
[StringLength(1000, MinimumLength = 20, ErrorMessage = "Comment too long or too short, should be between 20 and 1000 ... |
XPlat/CardIO/iOS/source/CardIO.iOS/ApiDefinition.cs | SaViGnAnO/XamarinComponents | 1 | 7048682 | using System;
using Foundation;
using UIKit;
using ObjCRuntime;
using CoreGraphics;
namespace Card.IO
{
// @interface CardIOCreditCardInfo : NSObject <NSCopying>
[BaseType (typeof (NSObject), Name="CardIOCreditCardInfo")]
interface CreditCardInfo : INSCopying {
// @property (readwrite, copy, no... |
Factory/Views/Engineers/Details.cshtml | jwtill/SillyStringz.Solution | 0 | 7048683 | <filename>Factory/Views/Engineers/Details.cshtml
@{
Layout = "_Layout";
}
<h2>Engineer Details</h2>
@model Factory.Models.Engineer;
<div class="main">
<h3>@Html.DisplayNameFor(model => model.Name): @Html.DisplayFor(model => model.Name)</h3>
@if (@Model.JoinEntities.Count == 0)
{
<p>This engineer is not app... |
RepositoryLayer/Infrastructure/AzureDBContext.cs | joshisachin675/SocialMediaBroadcast | 0 | 7048684 | <filename>RepositoryLayer/Infrastructure/AzureDBContext.cs
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Data;
using System.Data.Entity.Infrastructure;
using Core.Domain;
using AppInterfaces.Infrastructure;
using... |
src/PsDac/ImportPackageCommand.cs | abbgrade/PsDac | 1 | 7048685 | using Microsoft.SqlServer.Dac;
using System;
using System.IO;
using System.Management.Automation;
namespace PsDac
{
[Cmdlet(VerbsData.Import, "Package")]
[OutputType(typeof(DacPackage))]
public class ImportPackageCommand : PSCmdlet
{
[Parameter(
Position = 0,
... |
School/School.Web/Models/SearchSubmitModel.cs | encounter12/AspNet-Mvc-School | 4 | 7048686 | <reponame>encounter12/AspNet-Mvc-School
namespace School.Web.Models
{
using System.ComponentModel.DataAnnotations;
public class SearchSubmitModel
{
[Display(Name = "Search:")]
public string NameSearch { get; set; }
}
} |
BringDownClient/BringDownClient.Logic/Core/IClient.cs | pradeep-pioneer/BringDown | 0 | 7048687 | /*
* Interface: IClient
* Author: <NAME>
* Date: 2 July 2016
* Change Log:
* 2 July 2016: Created the interface.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace BringDownClient.Logic.Core
{
/// <summary>
... |
src/Views/Sakuno.ING.Views.Desktop/Homeport/LockedRepairDockView.xaml.cs | amatukaze/ing | 56 | 7048688 | using ReactiveUI;
using Sakuno.ING.Game.Models;
using System.Reactive.Disposables;
namespace Sakuno.ING.Views.Desktop.Homeport
{
[ViewContract(nameof(RepairDockState.Locked))]
public partial class LockedRepairDockView
{
public LockedRepairDockView()
{
InitializeComponent();
... |
Libraries/Slf/Ast/Ast/Members/TypedLocalMember.cs | AlexanderMorou/AbstractionProject | 0 | 7048689 | <reponame>AlexanderMorou/AbstractionProject
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AllenCopeland.Abstraction.Slf.Abstract;
using AllenCopeland.Abstraction.Slf.Ast.Expressions;
using AllenCopeland.Abstraction.Slf.Ast.Statements;
/*----------------------------... |
Core.Arango/Protocol/ArangoSort.cs | JTOne123/ArangoDB | 0 | 7048690 | using Newtonsoft.Json;
namespace Core.Arango.Protocol
{
public class ArangoSort
{
[JsonProperty(PropertyName = "field")] public string Field { get; set; }
[JsonProperty(PropertyName = "direction")]
public string Direction { get; set; }
}
} |
TravellerTracker/TravellerTracker/Views/SelectCargo.xaml.cs | COliver988/Traveller | 6 | 7048691 | <reponame>COliver988/Traveller
using System.Collections.Generic;
using Traveller.Models;
using Windows.UI.Xaml.Controls;
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
namespace TravellerTracker.Views
{
/// <summary>
/// An empty page that can be used on its o... |
SdvCode/SdvCode/Areas/Administration/Services/DeleteEmoji/IDeleteEmojiService.cs | biproberkay/SdvCodeWebsite | 37 | 7048692 | <gh_stars>10-100
// Copyright (c) SDV Code Project. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace SdvCode.Areas.Administration.Services.DeleteEmoji
{
using System;
using System.Collections.Generic;
using System.Linq;
... |
server/DgBar/src/Infra/DgBar.Infra.CrossCutting.Bus/InMemoryBus.cs | paulocampez/DgBar | 0 | 7048694 | using DgBar.Domain.Core.Bus;
using DgBar.Domain.Core.Commands;
using MediatR;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace DgBar.Infra.CrossCutting.Bus
{
public class InMemoryBus : IBusHandler
{
private readonly IMediator _mediator;
... |
Concurrency in C# - Cookbook/Synchronization/11. 2. Async Locks/MainEntryPoint.cs | ferrerooo/books-coding-horror | 16 | 7048695 | <filename>Concurrency in C# - Cookbook/Synchronization/11. 2. Async Locks/MainEntryPoint.cs<gh_stars>10-100
namespace AsyncLocks
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading.Tasks;
using Nito.AsyncEx;
public class MainEntryPoint
{
... |
Runtime/00.Tool/RectTransformExtension.cs | KorStrix/Unity_UIFramework | 3 | 7048696 | #region Header
/* ============================================
* 작성자 : Strix
* 작성일 : 2019-10-31 오후 2:30:11
* 개요 :
*
* 원본 링크 : https://answers.unity.com/questions/1225118/solution-set-ui-recttransform-anchor-presets-from.html
============================================ */
#endregion Header
using UnityEngine;... |
MyExpression.Core/OpenCloseInterval.cs | prekel/MyExpression | 0 | 7048697 | <filename>MyExpression.Core/OpenCloseInterval.cs
// Copyright (c) 2021 <NAME>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyExpression.Core
{
public class OpenCloseInterval : Interval
{
public bool IsLeftOpen { get; set; }
publi... |
source/Octopus.Client/Repositories/BuiltInPackageRepositoryRepository.cs | pstephenson02/OctopusClients | 113 | 7048698 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using Octopus.Client.Exceptions;
using Octopus.Client.Features;
using Octopus.Client.Logging;
using Octopus.Client.Model;
using Octopus.Client.Util;
namespace Octopus.Client.Repositories
{
public... |
src/CSharpToTypeScript.Core/Services/SyntaxTreeConverter.cs | sergey-buturlakin/CSharpToTypeScript | 0 | 7048699 | using System;
using System.Collections.Generic;
using System.Linq;
using CSharpToTypeScript.Core.Models;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace CSharpToTypeScript.Core.Services
{
internal class SyntaxTreeConverter
{
priv... |
LooseLeaf.DataAccess/User.cs | 2102-feb08-net/team1-p2 | 0 | 7048700 | <filename>LooseLeaf.DataAccess/User.cs
using System;
using System.Collections.Generic;
#nullable disable
namespace LooseLeaf.DataAccess
{
public partial class User
{
public User()
{
LoanBorrowers = new HashSet<Loan>();
LoanLenders = new HashSet<Loan>();
Loa... |
VendorTracker/Views/Orders/Show.cshtml | tayphill13/VendorTracker.Solution | 0 | 7048701 | <reponame>tayphill13/VendorTracker.Solution
@{
Layout = "_Layout";
}
<h1>Order details: </h1>
<h2>@Model["order"].Description</h2>
<h4>Notes: @Model["order"].Notes</h4>
<h3>Vendor: @Model["vendor"].Name</h3>
<a href='/vendors/@Model["vendor"].Id/orders/new'>Add another order for vendor</a><br>
<a href='/vendors'>V... |
src/Bottles/Services/BottleService.cs | RyanHauert/bottles | 1 | 7048702 | using System;
using System.Threading.Tasks;
using Bottles.Diagnostics;
using Bottles.Services.Messaging;
using Bottles.Services.Remote;
using FubuCore;
namespace Bottles.Services
{
public interface IBottleService
{
void Start();
void Stop();
Task ToTask();
}
p... |
GitCandy/Views/Repository/Tree.cshtml | wayjet/GitCandy | 1 | 7048703 | @model GitCandy.Models.TreeModel
@{
ViewBag.Title = string.Format(SR.Shared_TitleFormat, string.Format(SR.Repository_TreeTitle, Model.RepositoryName, Model.ReferenceName ?? Model.Commit.Sha.ToShortSha(), Model.Path));
}
<h4>@Html.ActionLink(Model.RepositoryName, "Tree", Html.OverRoute(new { path = "" }))</h4>
@... |
src/NTccTransaction.Oracle/Options/DbContextOptionsFactory.cs | wzl-bxg/NTcc-TransactionCore | 21 | 7048705 | <reponame>wzl-bxg/NTcc-TransactionCore
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using NTccTransaction.Oracle;
using System;
using System.Collections.Generic;
using System.Text;
namespace NTccTransaction... |
src/LY.DDDPaasNet.Core/Serializer/DefaultObjectSerializer.cs | jackyuan2010/LY.DDDPaasNet | 7 | 7048706 | using System.Text;
using System.Text.Json;
namespace LY.DDDPaasNet.Core.Serializer;
public static class DefaultObjectSerializer
{
public static byte[] Serialize<T>(T obj)
{
if (obj == null)
{
return null;
}
return JsonSerializer.SerializeToUtf8Bytes(obj);
}
... |
src/DKZKV.ServiceSample/DKZKV.BookStore.Persistence/Mapping/AuxiliaryModels/AuthorAuxiliaryModel.cs | dkzkv/DKZKV.ServiceSample | 1 | 7048707 | <filename>src/DKZKV.ServiceSample/DKZKV.BookStore.Persistence/Mapping/AuxiliaryModels/AuthorAuxiliaryModel.cs
using DKZKV.BookStore.Application.Queries.QueryModels;
#pragma warning disable CS8618
namespace DKZKV.BookStore.Persistence.Mapping.AuxiliaryModels;
internal class AuthorAuxiliaryModel : IAuthor
{
public ... |
src/IL2C.Core.Test.ILConverters/Conv_u1/Conv_u1.cs | kekyo/IL2C.InlineIL-Migration | 2 | 7048708 | /////////////////////////////////////////////////////////////////////////////////////////////////
//
// IL2C - A translator for ECMA-335 CIL/MSIL to C language.
// Copyright (c) 2016-2019 <NAME> (@kozy_kekyo, @kekyo2)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file exc... |
Zektor.Control/MultiZoneCommand.cs | zzattack/zektor | 1 | 7048709 | <gh_stars>1-10
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Zektor.Protocol {
/// <summary>
/// Many commands take a number of zones and some specific kind of parameter.
/// This can serve as base class for parsing and formatting such commands.
/// </summary>
... |
NOpenCL/BuildStatus.cs | dsoronda/NOpenCL | 65 | 7048710 | <filename>NOpenCL/BuildStatus.cs<gh_stars>10-100
// Copyright (c) Tunnel Vision Laboratories, LLC. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace NOpenCL
{
#pragma warning disable CS1574 // XML comment has cref attribute that could ... |
tests/EF6TempTableKit.Test.Web/Global.asax.cs | zblago/EF6TempTableKit | 2 | 7048711 | <filename>tests/EF6TempTableKit.Test.Web/Global.asax.cs<gh_stars>1-10
using EF6TempTableKit.Test.Web.Entities;
using System.Data.Entity;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace EF6TempTableKit.Test.Web
{
public class MvcApplication : System.Web.HttpApplication
... |
Core.Clang/Diagnostics/DiagnosticSeverity.cs | libimobiledevice-win32/Core.Clang | 3 | 7048712 | namespace Core.Clang.Diagnostics
{
/// <summary>
/// Describes the severity of a particular diagnostic.
/// </summary>
[EnumMapping(typeof(CXDiagnosticSeverity), Prefix = "CXDiagnostic_")]
public enum DiagnosticSeverity
{
/// <summary>
/// A diagnostic that has been suppressed, ... |
TonoGuiWinForm/IFeatureEventListener.cs | tmctono/Tono | 1 | 7048713 | // (c) 2019 <NAME>
// Licensed under the MIT license.
namespace Tono.GuiWinForm
{
/// <summary>
/// IFeatureEventListener の概要の説明です。
/// フィーチャークラスが持つイベントインターフェース
/// </summary>
public interface IFeatureEventListener
{
/// <summary>
/// イベントの転送先となるフィーチャークラスのインスタンスを指定する
//... |
src/Core.Plugins/Configuration/PluginConfiguration.cs | relay-dev/core-plugins | 0 | 7048714 | using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Reflection;
namespace Core.Plugins.Configuration
{
public class PluginConfiguration : ApplicationConfiguration
{
public string GlobalUsername { get; set; }
public List<Type> CommandHand... |
src/StorageSync/StorageSync/Common/Converters/CloudEndpointLastChangeEnumerationStatusConverter.cs | pavel-petrenko/azure-powershell | 0 | 7048715 | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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://w... |
AddressesAPI.Tests/V2/E2ETests/SearchAddressIntegrationTests.cs | LBHackney-IT/addresses-api | 1 | 7048716 | using System;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using AddressesAPI.Infrastructure;
using AddressesAPI.Tests.V2.Helper;
using AddressesAPI.V2.Boundary.Responses.Data;
using AddressesAPI.V2.Boundary.Responses.Metadata;
using AutoFixture;
using Bogus;
using FluentAssertions;
using NUn... |
Net.Http.OData/Query/Parsers/UnaryOperatorKindParser.cs | Net-Http-OData/Net.Http.OData | 1 | 7048717 | // -----------------------------------------------------------------------
// <copyright file="UnaryOperatorKindParser.cs" company="Project Contributors">
// Copyright Project Contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the L... |
Hallo.Sample/Models/PagedList.cs | jchannon/hallo | 0 | 7048718 | using System.Collections.Generic;
namespace Hallo.Sample.Models
{
public class PagedList<T>
{
public int CurrentPage { get; set; }
public int TotalPages { get; set; }
public int TotalItems { get; set; }
public IEnumerable<T> Items { get; set; }
}
} |
Project Mastermind/Assets/Scripts/Utilities/AnimatorHook.cs | KingNemesis/ProjectMastermind | 5 | 7048719 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//v1.1
public class AnimatorHook : MonoBehaviour
{
//Helper Class for animations
Controller controller;
bool isAI;
Animator animator;
public Vector3 deltaPosition;
public bool canRotate;
public bool canDoCombo... |
src/Common/SIPackages/SourceInfoList.cs | wurunduk/SI | 97 | 7048720 | using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Xml.Serialization;
namespace SIPackages
{
[CollectionDataContract(Name = "Sources", Namespace = "")]
public sealed class SourceInfoList : List<SourceInfo>, IXmlSerializable
{
public System.Xml.Schema.XmlSchema GetSc... |
Spiker-old/Assets/Prefabs/Player/Scripts/PlayerSystem.cs | Andebugan/spiker-master | 0 | 7048721 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class PlayerSystem : MonoBehaviour
{
public bool active = false; // Is player active/inactive
public GameObject playerUI;
GameObject playerModel;
Transform spawnPoint;
Transfor... |
Project/Test/AddIns/CSharp/Parser/CSharpParserSampleFilesTest/TestData/CodeBoxBugs/17737.cs | sarvex/StyleCop | 0 | 7048722 | <gh_stars>0
namespace Foo
{
using System.Runtime.InteropServices;
using System.ComponentModel;
using System.Diagnostics;
using System;
using System.Threading;
using System.IO;
using System.ServiceProcess;
using System.Reflection;
using System.Security;
using System.Se... |
src/EventStore/EventStore.Projections.Core/ProjectionWorkerNode.cs | eleks/EventStore | 1 | 7048724 | <reponame>eleks/EventStore
// Copyright (c) 2012, Event Store LLP
// 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 not... |
src/Notifications/Grpc.Dotnet.Notifications.Server/Domain/Commands/SendPushNotificationCommand.cs | kkoziarski/grpc-dotnet-enterprise | 22 | 7048725 | <reponame>kkoziarski/grpc-dotnet-enterprise
using System.Collections.Generic;
using MediatR;
namespace Grpc.Dotnet.Notifications.Server.Domain.Commands
{
public class SendPushNotificationCommand : IRequest
{
public string Notification { get; set; }
public IList<string> Recipients { get; set; }... |
src/dotnet/Micky5991.Samp.Net.Framework/Extensions/ServiceCollectionExtensions.cs | Micky5991/samp-dotnet | 0 | 7048726 | using System;
using Dawn;
using Micky5991.Samp.Net.Framework.Utilities.Gamemodes;
using Microsoft.Extensions.DependencyInjection;
namespace Micky5991.Samp.Net.Framework.Extensions
{
/// <summary>
/// Extensions used to simplify adding services to the service collection.
/// </summary>
public static cla... |
SourceCode/FlashDownForm.cs | future-flash/FlashDown | 0 | 7048727 | using AutoUpdaterDotNET;
using Microsoft.Win32;
using FlashDown.Properties;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Net.Sockets;
using System.Net;
using System.Net.NetworkInformation;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Windows... |
src/EasyAbp.Abp.EntityUi.Application/EasyAbp/Abp/EntityUi/EntityUiApplicationAutoMapperProfile.cs | EasyAbp/Abp.EntityUi | 16 | 7048728 | using EasyAbp.Abp.EntityUi.Entities;
using EasyAbp.Abp.EntityUi.Entities.Dtos;
using EasyAbp.Abp.EntityUi.Modules;
using EasyAbp.Abp.EntityUi.Modules.Dtos;
using AutoMapper;
namespace EasyAbp.Abp.EntityUi
{
public class EntityUiApplicationAutoMapperProfile : Profile
{
public EntityUiApplicationAutoMapp... |
src/Dotnet.JsonIdentityProvider/Controllers/AuthController.cs | wihary/dotnet.JsonIdentityProvider | 1 | 7048729 | namespace Dotnet.JsonIdentityProvider.Controllers
{
using System;
using System.IdentityModel.Tokens.Jwt;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Micros... |
src/Wikiled.Text.Inquirer/Lasswell/LasswellDescription.cs | AndMu/Wikiled.Text.Inquirer | 1 | 7048730 | <filename>src/Wikiled.Text.Inquirer/Lasswell/LasswellDescription.cs
using Wikiled.Text.Analysis.Reflection;
namespace Wikiled.Text.Inquirer.Lasswell
{
/// <summary>
/// his dictionary divides language into four deference domains: power, rectitude, respect, affiliation,
/// and four welfare domains: wealt... |
src/MediatR.CommandQuery/Definitions/ITenantResolver.cs | loresoft/EntityFrameworkCore.CommandQuery | 1 | 7048731 | using System;
using System.Security.Principal;
using System.Threading.Tasks;
namespace MediatR.CommandQuery.Definitions;
/// <summary>
/// <c>Interface</c> for extracting tenant key from <see cref="IPrincipal" /> instance
/// </summary>
/// <typeparam name="TKey">The type of the key.</typeparam>
public interface IT... |
Assets/Scripts/Game/Systems/NamePlate/NamePlate.cs | jfmc/FPSSample | 3 | 7048732 | <filename>Assets/Scripts/Game/Systems/NamePlate/NamePlate.cs
using UnityEngine;
using UnityEngine.UI;
public class NamePlate : MonoBehaviour
{
public Transform namePlateRoot;
public Text nameText;
public RawImage icon;
public Color friendColor = Color.cyan;
public Color enemyColor = Colo... |
TestWpfPowerBI/ViewModels/PbiMetadataTreeViewModel.cs | sql-bi/VertiPaq-Analyzer | 33 | 7048733 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.PowerBI.Api.Models;
using System.ComponentModel.Composition;
using TestWpfPowerBI.Model;
using Caliburn.Micro;
using Serilog;
namespace TestWpfPowerBI.ViewModels
{
[PartCreationPolic... |
ngxsis.Repository/PenjadwalanRepo.cs | myusuf011/NGXSIS | 0 | 7048734 | <filename>ngxsis.Repository/PenjadwalanRepo.cs
using ngxsis.DataModel;
using ngxsis.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ngxsis.Repository
{
public class PenjadwalanRepo
{
// Bagian Penjadwalan - Rencan... |
src/Microsoft.DncEng.SecretManager/SecretTypes/GitHubOAuthSecret.cs | rayneboes1/arcade-services | 0 | 7048735 | using Microsoft.DncEng.CommandLineLib;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using System.Linq;
namespace Microsoft.DncEng.SecretManager.SecretTypes
{
[Name("github-oauth-secret")]
public class GitHubOAuthSecret : SecretType<GitHubOAuthSecret.Para... |
Templates/C#-Full/Winterleaf.Demo.Full/Models.User/GameCode/Tools/WorldEditor/gui/CodeBehind/EVisibility.cs | RichardRanft/OmniEngine.Net | 1 | 7048736 | // WinterLeaf Entertainment
// Copyright (c) 2014, WinterLeaf Entertainment LLC
//
// All rights reserved.
//
// The use of the WinterLeaf Entertainment LLC OMNI "Community Edition" is governed by this license agreement ("Agreement").
//
// These license terms are an agreement between WinterLeaf Entertainmen... |
GrantEquipment.cs | iriszero48/RR2Share | 0 | 7048737 | [Server]
private void GrantEquipment(CharacterBody body, Inventory inventory)
{
if (!NetworkServer.active)
{
Debug.LogWarning("[Server] function 'System.Void RoR2.GenericPickupController::GrantEquipment(RoR2.CharacterBody,RoR2.Inventory)' called on client");
return;
}
this.waitStartTime = Run.FixedTimeStamp.now... |
BeyondTrust.SecureStore/BeyondTrust.BeyondInsight.API/Extensions.cs | UiPath-Services/CredentialStorePlugins | 0 | 7048738 | <gh_stars>0
using System.Net.Http;
namespace BeyondTrust.BeyondInsight.PasswordSafe.API.Client
{
static class Extensions
{
/// <summary>
/// Adds a new (or updates an existing) header on the HttpClient.DefaultRequestHeaders.
/// </summary>
/// <param name="name">The ... |
benchmarks/Sight.IoC.Benchmarks/ResolutionBenchmarks.cs | LePtitDev/Sight | 0 | 7048739 | <filename>benchmarks/Sight.IoC.Benchmarks/ResolutionBenchmarks.cs
using Autofac;
using Autofac.Core.Activators.Reflection;
using Autofac.Features.ResolveAnything;
using DryIoc;
using Microsoft.Extensions.DependencyInjection;
namespace Sight.IoC.Benchmarks
{
[SimpleJob(RuntimeMoniker.Net60)]
public class Resol... |
src/Threax.AspNetCore.Halcyon.Ext/JsonSchemaMultiExtensionDataAttribute.cs | thereclusive/Threax.AspNetCore.Hypermedia | 2 | 7048740 | using System;
using System.Collections.Generic;
using System.Text;
namespace Threax.AspNetCore.Halcyon.Ext
{
/// <summary>
/// Add multiple extension data attributes to the schema with one attribute.
/// </summary>
public class JsonSchemaMultiExtensionDataAttribute : Attribute
{
private Di... |
src/Timewaster.Web/ViewModels/IssueViewModel.cs | zsra/Timewaster | 0 | 7048741 | using System.ComponentModel.DataAnnotations;
using Timewaster.Core.Entities.Boards;
namespace Timewaster.Web.ViewModels
{
public class IssueViewModel
{
public int? Id { get; set; }
public string PartitionKey { get; set; }
[Required]
[MaxLength(30)]
public string Title {... |
source/PALAST.RSM.Service/FormMain.cs | Pixinger/PALAST | 5 | 7048742 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace PALAST.RSM.Service
{
public partial class FormMain : Form
{
#region nLog instance (LOG)
... |
sample-apps/xamarin/acquaint-crm/App/Common/Acquaint.Abstractions/DataSyncErrorEventArgs.cs | thomlucc/appcenter | 18 | 7048743 | <gh_stars>10-100
using System;
using Acquaint.ModelContracts;
namespace Acquaint.Abstractions
{
/// <summary>
/// A generically-typed EventArgs class.
/// Contains the local item queued to be pushed, and the backend service item that the local item is in conflict with.
/// </summary>
public class DataSyncErrorE... |
Phaber.Infrastructure/Models/FallibleBodyResponse.cs | VallanDeMorty/phaber | 2 | 7048744 | <reponame>VallanDeMorty/phaber<filename>Phaber.Infrastructure/Models/FallibleBodyResponse.cs
using System.Collections.Generic;
using System.Linq;
using Optional;
using Phaber.Unsplash.Errors;
using Phaber.Unsplash.Models;
namespace Phaber.Infrastructure.Models {
public class FallibleBodyResponse<TV> : IFallibleBod... |
src/Rebus.Tests/Contracts/Transports/TestSendAndReceive.cs | dev4ce/Rebus | 0 | 7048746 | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using NUnit.Framework;
using Rebus.Bus;
using Rebus.Tests.Contracts.Transports.Factories;
using Shouldly;
namespace Rebus.Tests.Contracts.Transports
{
[TestFixture(typeof(MsmqTransportFactory))]
[TestFixture... |
src/ReactiveUI.Tests/Mocks/MockBindListItemViewModel.cs | harvinders/ReactiveUI | 6,297 | 7048747 | // Copyright (c) 2021 .NET Foundation and Contributors. All rights reserved.
// 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 full license information.
namespace ReactiveUI.Tests
{
... |
src/Frontend/App/Core/Views/SettingsPage.cs | vividos/HikingPathFinder | 0 | 7048748 | using Xamarin.Forms;
namespace HikingPathFinder.App.Views
{
/// <summary>
/// Page to set settings specific to the app
/// </summary>
public class SettingsPage : ContentPage
{
/// <summary>
/// Creates a new settings page
/// </summary>
public SettingsPage()
... |
Sygic.Corona.Application/Queries/GetRotatedExposureKeysQuery.cs | slovensko-help/ekarantena-app-backend | 5 | 7048749 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using MediatR;
using Sygic.Corona.Domain;
namespace Sygic.Corona.Application.Queries
{
public class GetRotatedExposureKeysQuery : IRequest<IEnumerable<ExposureKey>>
{
public DateTime ToDate { get; }
public GetRotatedExposureKeysQu... |
Revelator.io24.Api/Models/Inputs/VirtualB.cs | oddbear/Revelator.io24.Api | 8 | 7048750 | <filename>Revelator.io24.Api/Models/Inputs/VirtualB.cs
using Revelator.io24.Api.Attributes;
namespace Revelator.io24.Api.Models.Inputs
{
[RoutePrefix("return/ch3")]
public class VirtualB : InputChannel
{
public VirtualB(RawService rawService)
: base(rawService)
{
//... |
src/FTServer/Resources/MapQuest/ChallengeBase.cs | alexandru-bagu/ftsemu | 0 | 7048751 | namespace FTServer.Resources.MapQuest
{
public class ChallengeBase : Tutorial
{
public int Level { get; set; }
public int LevelRestriction { get; set; }
public GameMode GameMode { get; set; }
}
}
|
src/Core/Impl/Text/StringSpan.cs | shayash22/python-language-server | 695 | 7048752 | // 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
/... |
StokiPoKatalog_FINAL/WebAppStokiCatalog/Views/Products/Details.cshtml | kursa2018/School_Repo_XII | 0 | 7048753 | <filename>StokiPoKatalog_FINAL/WebAppStokiCatalog/Views/Products/Details.cshtml
@model WebAppStokiCatalog.Models.Products
@{
ViewData["Title"] = "Details";
}
<h2>Details</h2>
<div>
<h4>Products</h4>
<hr />
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.Number... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.