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 |
|---|---|---|---|---|
Protocol/FileOperationRegistrationOptions.cs | kaby76/lsp-types | 13 | 7063797 | <reponame>kaby76/lsp-types<filename>Protocol/FileOperationRegistrationOptions.cs
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace LspTypes
{
/**
* The options to register for file operations.
*
* @since 3.16.0
*/
[DataContract]
public class FileOperationRegistration... |
src/Multiblog.Repository/Database/MongoDatabasetOOL.cs | fredrikstrandin/Miniblog.Core | 0 | 7063798 | <gh_stars>0
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using MongoDB.Driver;
using Multiblog.Core.Model.Setting;
using Multiblog.Core.Repository;
using Multiblog.Core.Repository.MongoDB.Model;
using Multiblog.Service.Interface;
using System.Threading.Tasks;
namespace Multiblog.Repository.... |
MyEvernote/MyEvernote.WebApp/Global.asax.cs | emreakturk1125/myevernoteproject | 3 | 7063799 | using MyEvernote.Common;
using MyEvernote.WebApp.Init;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace MyEvernote.WebApp
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Applicatio... |
SpotifyAPI.Web.Examples/Example.UWP/Views/LoginView.xaml.cs | Timmaaaa/SpotifyAPI-NET | 1,198 | 7063800 | <reponame>Timmaaaa/SpotifyAPI-NET
using Example.UWP.ViewModels;
using MvvmCross.Platforms.Uap.Presenters.Attributes;
using MvvmCross.Platforms.Uap.Views;
using MvvmCross.ViewModels;
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
namespace Example.UWP.Views
{
/// <sum... |
ErplyAPI/Other/Calls.cs | Kedireng/ErplyApi | 1 | 7063801 | using System.Collections.Generic;
namespace ErplyAPI.Other
{
public static class OtherCalls
{
/// <summary>
/// Retrieve appliances or vehicles.
/// This API call is related to the Assignments module. Depending on configuration, your Assignments module may be set up either for applianc... |
src/PSReptile.Build/GenerateHelp.cs | trondr/ps-reptile | 4 | 7063802 | using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
using System;
using System.IO;
using System.Management.Automation;
using System.Reflection;
namespace PSReptile.Build
{
using Maml;
using Utilities;
/// <summary>
/// MSBuild task that generates help for a PowerShell Core binary mod... |
TrackMyTime/Services/AccruedHoursCalculator.cs | katycodesstuff/track-my-time | 1 | 7063804 | using TrackMyTime.Tools;
namespace TrackMyTime.Services
{
internal class AccruedHoursCalculator : IAccruedHoursCalculator
{
private const int ExpectedHoursPerWeek = 40;
public double Calculate(IList<HoursData> data)
{
if (data is null || !data.Any()) return 0;
... |
Assets/Scripts/Graphics/ResizeSpriteToScreen.cs | jcaspick/mindmend | 0 | 7063805 | <reponame>jcaspick/mindmend
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ResizeSpriteToScreen : MonoBehaviour
{
private Vector3 cameraPosition;
void Start() {
SpriteRenderer renderer = gameObject.GetComponent<SpriteRenderer>();
if (rendere... |
Assets/ARLocation/Experimental/World Voxel Craft/WorldVoxelController.cs | ObradovicNikola/Bogovnik | 0 | 7063806 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace ARLocation
{
public class WorldVoxelController : MonoBehaviour
{
// Start is called before the first frame update
public PrefabDatabase PrefabDatabase;
[System.Serializable]
... |
src/Client/Web/Bit.Client.Web.BlazorUI/Components/Notifications/BitMessageBar.razor.cs | HamedMoghadasi/bitframework | 0 | 7063807 | <reponame>HamedMoghadasi/bitframework
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
namespace Bit.Client.Web.BlazorUI
{
public partial class BitMessageBar
{
private MessageBarStyle messageBarStyle = MessageBarStyle.Default;
[Parameter] public RenderFragment... |
source/Core/Validation/NativeLoginRequestValidator.cs | DomainGroupOSS/IdentityServer3 | 0 | 7063808 | <reponame>DomainGroupOSS/IdentityServer3<filename>source/Core/Validation/NativeLoginRequestValidator.cs<gh_stars>0
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.... |
Led-Api/Controllers/LedController.cs | TomasVaro/Raspberry-pear-project | 0 | 7063809 | <filename>Led-Api/Controllers/LedController.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Device.Gpio;
using System.Threading;
using System.Diagnostics;
namespace Led_Api.Controllers
{
... |
src/DotGet.Core/Resolvers/Resolver.cs | tsolarin/dotGet | 39 | 7063811 | <filename>src/DotGet.Core/Resolvers/Resolver.cs
using System;
using System.Collections.Generic;
using DotGet.Core.Configuration;
using DotGet.Core.Logging;
namespace DotGet.Core.Resolvers
{
internal abstract class Resolver
{
protected string Source { get; private set; }
protected ResolutionTyp... |
src/Infrastructure/AspNetCore/BaseContentControllerClient.cs | optivem/optivem-commons-cs | 6 | 7063812 | <gh_stars>1-10
using Atomiv.Core.Common.Http;
namespace Atomiv.Infrastructure.AspNetCore
{
public class BaseContentControllerClient
{
private BaseContentControllerClient(IContentControllerClient client)
{
Client = client;
}
public BaseContentControllerClient(IConte... |
TobEngine/EntityComponentPattern/Components/Transform.cs | Tobogganeer/Tobengine-csharp | 0 | 7063813 | using System;
using System.Collections.Generic;
using System.Numerics;
using System.Text;
namespace TobEngine.EntityComponentPattern.Components
{
class Transform : Component
{
public Transform()
{
position = Vector3.Zero;
rotation = Quaternion.Identity;
scal... |
CWSBot/CWSBot/Modules/Public/ModeratorModule.cs | CHT5/Sparky | 0 | 7063814 | <gh_stars>0
using System;
using System.Threading.Tasks;
using Discord;
using Discord.WebSocket;
using Discord.Commands;
using Microsoft.Extensions.DependencyInjection;
using System.Linq;
using Microsoft.Extensions.Configuration;
using CWSBot.Entities;
using CWSBot.Interaction;
using Discord.Rest;
using Humanizer;
usin... |
src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs | Manny27nyc/stripe-dotnet | 557 | 7063815 | <gh_stars>100-1000
// File generated from our OpenAPI spec
namespace Stripe
{
using System.Collections.Generic;
using Newtonsoft.Json;
public class SubscriptionPaymentSettings : StripeEntity<SubscriptionPaymentSettings>
{
/// <summary>
/// Payment-method-specific configuration to provid... |
XCode/Accessors/HttpEntityAccessor.cs | NewLifeX/X_NET20 | 5 | 7063816 | <reponame>NewLifeX/X_NET20
using System;
using System.Web;
using XCode.Configuration;
using XCode.Exceptions;
namespace XCode.Accessors
{
/// <summary>Http实体访问器,只读不写。</summary>
public class HttpEntityAccessor : EntityAccessorBase
{
#region 属性
/// <summary>种类</summary>
p... |
Autodesk.ADN.RevitDxfExporter/MainApp.cs | yiskang/DA4R-DxfExporter | 0 | 7063817 | // (C) Copyright 2022 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software
// in object code form for any purpose and without fee is hereby
// granted, provided that the above copyright notice appears in
// all copies and that both that copyright notice and the limited
// warranty and... |
Windows9xClassic/Converters/CaptionButtonConverter.cs | EjiHuang/Windows9xClassicWpf | 6 | 7063818 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using System.Windows;
using System.Windows.Data;
namespace Windows9xClassic.Converters
{
public sealed class MaximizeCaptionButtonContentConverter : IValueConverter
{
public object Convert(obj... |
SRC/EasyXMLSerializer/Validation/XmlXsdValidator.cs | ITAgnesmeyer/EasyXMLSerializer | 2 | 7063819 | using System.Xml;
namespace EasyXMLSerializer.Validation
{
/// <summary>
/// Class to execute a Xsd-Validation
/// </summary>
public class XmlXsdValidator : XmlValidatorBase
{
/// <inheritdoc/>
protected override ValidationType ValidationType => ValidationType.Schema;
/// <... |
src/Tests/TestSamples_Painting_Focus/00_DemoBase/DemoHelper.cs | danieloff/PixelFarm | 131 | 7063820 | <filename>src/Tests/TestSamples_Painting_Focus/00_DemoBase/DemoHelper.cs<gh_stars>100-1000
//MIT, 2014-present, WinterDev
using System;
using PixelFarm.DrawingGL;
namespace Mini
{
public delegate void SetupPainterDel(GLPainter painter);
public class GLDemoContext
{
Mini.DemoBase _demo;
i... |
Models/Pesquisa.cs | linolino/RestauranteOn | 0 | 7063821 | <filename>Models/Pesquisa.cs
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace RestauranteOnline.Models
{
public class Pesquisa
{
public int IDGenero { get; set; }
public int IDBairro { get; set; }
}
... |
src/YandexCloudDotNet/cloudapi/yandex/cloud/resourcemanager/v1/FolderServiceGrpc.cs | mifopen/YandexCloudDotNet | 2 | 7063822 | // <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/resourcemanager/v1/folder_service.proto
// </auto-generated>
#pragma warning disable 0414, 1591
#region Designer generated code
using grpc = global::Grpc.Core;
namespace Yandex.Cloud.Resourcemanager.V1 {
... |
Design Patterns/FlyWeight/Contracts/INota.cs | mkhuu123/Csharp | 1 | 7063823 | using System;
using System.Collections.Generic;
using System.Text;
namespace FlyWeight.Contracts
{
public interface INota
{
int Frenquencia { get; }
}
}
|
src/StartR.Lib/Messaging/Handlers/Commands/QualifyNewClientCommandHandler.cs | keithelder/StartR | 19 | 7063824 | using RabbitMQ.Client;
using StartR.Domain;
using StartR.Lib.Messaging.Commands;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using XSerializer;
namespace StartR.Lib.Messaging.Handlers.Commands
{
public class QualifyNew... |
Code/Unity/IntelligentPool/Assets/Utils/GraphUtilsManager.cs | JLSND/MediaAI | 48 | 7063825 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using AaltoGames;
public class GraphUtilsManager : MonoBehaviour {
public Material materialZTestOff;
public Material materialZTestOn;
// Use this for initialization
void Start () {
GraphUtils.setMaterials(materialZTestOf... |
Server/Amazon.Server/Data/Models/ValidationConstants.cs | AtanasovAtanas/amazon | 0 | 7063826 | <filename>Server/Amazon.Server/Data/Models/ValidationConstants.cs<gh_stars>0
namespace Amazon.Server.Data.Models
{
public class ValidationConstants
{
public class Category
{
public const int NameMinLength = 3;
public const int NameMaxLength = 50;
public const... |
src/StandardMessages/schemas/eu/driver/model/mlp/Alt.cs | DRIVER-EU/csharp-test-bed-adapter- | 0 | 7063827 | // ------------------------------------------------------------------------------
// <auto-generated>
// Generated by avrogen.exe, version 0.9.0.0
// Changes to this file may cause incorrect behavior and will be lost if code
// is regenerated
// </auto-generated>
// --------------------------------------------... |
Framework/Pipeline/Geometry/OwSquare.cs | OrganicaWild/OrganicaWild | 15 | 7063828 | using UnityEngine;
namespace Framework.Pipeline.Geometry
{
/// <summary>
/// Implements an axis aligned Square as an IGeometry
/// </summary>
public class OwSquare : OwRectangle
{
public OwSquare(Vector2 start, float sideLength) : base(start, start + new Vector2(sideLength, sideLength))
... |
CarRepairTracker/RepairForms/ModRepair.Designer.cs | woodrdk/CarRepairTracker | 1 | 7063829 | namespace CarRepairTracker
{
partial class frmModRepair
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... |
src/Polished.net.tests/Types/Contrast.cs | chanan/Polished.net | 7 | 7063830 | using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Polished.Tests.Types
{
[TestClass]
public class Contrast
{
[TestMethod]
public void Hex()
{
RgbColor rgb1 = RgbColor.Parse("#444");
RgbColor rgb2 = RgbColor.Parse("#fff");
Assert.AreEq... |
MVCGridExample/Views/Demo/Multiple.cshtml | JasonLoKiSmith/MVCGrid.Net | 3 | 7063831 | <gh_stars>1-10
@using MVCGrid.Web
@{
ViewBag.Title = "Multiple Grids";
}
<h2>@ViewBag.Title</h2>
<p>To have more than 1 grid on a page and still do sorting/paging/filtering, set a <code>GridDefinition.QueryStringPrefix</code> to something unique for each grid.</p>
<h3>Grid 1</h3>
@Html.MVCGrid("Multiple1")
<h3... |
CommunityToolkit.Mvvm/Messaging/WeakReferenceMessenger.cs | Nirmal4G/appkit-dotnet | 612 | 7063832 | // 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.Runtime.CompilerServices;
using System.Runtime.InteropS... |
FlubuCore.Azure/Tasks/Iot/AzureIotHubModuleIdentityTask.cs | flubu-core/FlubuCore.Azure | 1 | 7063833 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Text;
using FlubuCore.Context;
using FlubuCore.Tasks;
using FlubuCore.Tasks.Process;
namespace FlubuCore.Azure.Tasks.Iot
{
public partial class AzureIotHubModuleIdentityTask : ExternalProcessTaskBase<AzureIotHubModuleIdentityTask>
{... |
CA1/CA1/Deck.cs | redista/blackjack | 0 | 7063834 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CA1
{
class Deck
{
public List<Card> Cards { get; set; }
public Deck()
{
// Create a new list of 52 cards
... |
project/csharp/.netcore-sample/foundation.core/Configurations/SwaggerConfig.cs | Alice52/c | 0 | 7063835 | <gh_stars>0
namespace Edu.Ntu.Foundation.Core.Configurations
{
public class SwaggerConfig
{
/// <summary>
/// Determines whether we expose swagger document to outside.
/// </summary>
public bool IsEnabled { get; set; }
}
}
|
src/EdFi.SampleDataGenerator.Core.UnitTests/Serialization/Output/StudentDataOutputBufferTester.cs | jamessmckay/Ed-Fi-SampleDataGenerator | 1 | 7063836 | <reponame>jamessmckay/Ed-Fi-SampleDataGenerator
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using EdFi.SampleDataGenerator.Core.Helpers;
using EdFi.SampleDataGenerator.Core.Serialization.Output;
using EdFi.SampleDataGenerator.Core.Serialization.Output.Interchanges;
using NUnit.Framewo... |
src/Sharp.CSS/Types/Border.SideStyle.cs | BerserkerDotNet/Sharp.CSS | 0 | 7063837 | namespace Sharp.CSS.Types
{
public class BorderSideStyle : BaseCssValue
{
public BorderSideStyle(string value)
: base(value)
{
}
public static implicit operator BorderSideStyle(string value) => new BorderSideStyle(value);
/// <summary>
/// Default v... |
Parse/Internal/Operation/ParseDeleteOperation.cs | naosoft/Parse-SDK-dotNET | 0 | 7063838 | using System.Collections.Generic;
namespace Parse.Core.Internal
{
public class ParseDeleteOperation : IParseFieldOperation
{
internal static object DeleteToken { get; } = new object { };
public static ParseDeleteOperation Instance { get; } = new ParseDeleteOperation();
ParseDeleteOper... |
MVC/MVC/Models/PageTypes/Footer.cs | KenticoDevTrev/Kentico13CoreBaseline | 11 | 7063839 | <filename>MVC/MVC/Models/PageTypes/Footer.cs<gh_stars>10-100
//--------------------------------------------------------------------------------------------------
// <auto-generated>
//
// This code was generated by code generator tool.
//
// To customize the code use your own partial class. For more info about... |
src/lib/Interop/Client/HubGameOptions.cs | crasshacker/STak | 1 | 7063841 | <gh_stars>1-10
using System;
namespace STak.TakHub.Client
{
public class HubGameOptions
{
public int TrackingRate { get; set; } = 10; // notifications per second
public bool UseLocalAI { get; set; } = false; // local AI vs. remote AI (for testing purposes)
}
}
|
RvtVa3c/Util.cs | baoquylan/RevitExporter | 1 | 7063842 | #region Namespaces
using System;
using System.Collections.Generic;
using System.Diagnostics;
using Autodesk.Revit.UI;
using Autodesk.Revit.DB;
using WinForms = System.Windows.Forms;
#endregion // Namespaces
namespace RvtVa3c
{
class Util
{
const string _caption = "vA3C";
/// <summary>
... |
CodeSaw.Db.Migrations/2018_06_07_17_42_AddComments.cs | ChainsawDevelopment/CodeSaw | 0 | 7063843 | using FluentMigrator;
namespace CodeSaw.Db.Migrations
{
[Migration(2018_06_07_17_42)]
public class Migration_2018_06_07_17_42_AddComments : Migration
{
public override void Up()
{
Create.Table("Comments")
.InSchema("dbo")
.WithColumn("Id").AsGuid... |
src/Apps/DesktopApp/NavigationTreeviewModelItem.cs | orbital7/orbital7.mygames | 1 | 7063844 | <reponame>orbital7/orbital7.mygames<gh_stars>1-10
using Orbital7.MyGames;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace DesktopApp
{
public enum NavigationTreeviewModelItemType
{
Platforms,
P... |
CELA-Knowledge_Management_Data_Services/DataUtilities/IGraphConfiguration.cs | Bhaskers-Blu-Org2/CELA-Tag-Processing-Service | 4 | 7063845 | using System;
using System.Collections.Generic;
using System.Text;
namespace CELA_Knowledge_Management_Data_Services.DataUtilities
{
public interface IGraphConfiguration
{
string GetGraphDatabaseHostname();
string GetGraphDatabaseAccessKey();
string GetGraphDatabaseCollectionName();
... |
Database/Helpers/LivingPatternVariationCreator.cs | kyleniemeyer/LoadProfileGenerator | 0 | 7063846 | <filename>Database/Helpers/LivingPatternVariationCreator.cs
using System;
using System.Collections.Generic;
using System.Linq;
using Automation.ResultFiles;
using Database.Tables.BasicElements;
using Database.Tables.BasicHouseholds;
using Database.Tables.ModularHouseholds;
using JetBrains.Annotations;
namespace Datab... |
BulletSharpPInvoke/BulletSharp/Dynamics/Hinge2Constraint.cs | xtom0369/BulletPhysicsForUnity | 0 | 7063847 | using BulletSharp.Math;
using System;
using static BulletSharp.UnsafeNativeMethods;
namespace BulletSharp
{
public class Hinge2Constraint : Generic6DofSpring2Constraint
{
public Hinge2Constraint(RigidBody rigidBodyA, RigidBody rigidBodyB, Vector3 anchor,
Vector3 axis1, Vector3 axis2)
{
IntPtr native = btHi... |
src/DotNet.Plus.Test/Pattern/ObjectPoolTests.cs | tcunning/DotNet.Plus | 1 | 7063849 | using System;
using DotNet.Plus.Pattern;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Shouldly;
namespace DotNet.Plus.Test.Pattern
{
[TestClass]
public class ObjectPoolTests
{
private static int _testObjectCount = 0;
class TestObject : CommonDisposable
{
... |
CSharpEOrientacaoAObjetos/5-Bytebank/Empresa.cs | marcieleadivincula/csharp | 0 | 7063850 | <reponame>marcieleadivincula/csharp<gh_stars>0
using System;
using System.Collections.Generic;
using System.Text;
namespace _05_Bytebank
{
class Empresa
{
public string razaoSocial;
public string cnpjs;
public Endereco endereco;
// public Endereco endereco = new Endereco();
... |
api/netcoreauth.model/Prediction.cs | SaurabhLpRocks/yatra | 0 | 7063851 | <filename>api/netcoreauth.model/Prediction.cs
using System;
using System.Collections.Generic;
using System.Text;
namespace netcoreauth.model
{
public class Prediction
{
public string Class { get; set; }
public int Accuracy { get; set; }
}
}
|
src/Compilers/Core/Portable/Compilation/SyntaxTreeOptionsProvider.cs | Fiusen/Loretta | 0 | 7063852 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Threading;
namespace Loretta.CodeAnalysis
{
public abstract class SyntaxTreeOptionsProvider
{
/// <summary>
/// Get whether the given tree is g... |
src/FasTnT.Host/Infrastructure/EpcisRequestModelBinder.cs | jnoruzi/fastnt | 1 | 7063853 | using FasTnT.Formatters;
using FasTnT.Formatters.Xml;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using System;
using System.Threading.Tasks;
namespace FasTnT.Host.Binders
{
public class EpcisRequestModelBinder : IModelBinder
{
public Task BindModelAsync(ModelBindingC... |
tests/benchmarks/ModelToHex.cs | phnx47/-FingerprintBuilder | 1 | 7063854 | <filename>tests/benchmarks/ModelToHex.cs
using System;
using System.Security.Cryptography;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Engines;
using BenchmarkDotNet.Jobs;
namespace FingerprintBuilder.BenchmarkTests
{
[MeanColumn, MinColumn, MaxColumn, MedianColumn]
[SimpleJob(RunStrategy.Throughpu... |
Faraboom.Framework/UI/Bootstrap/TagHelpers/Dropdown/DropdownDividerTagHelper.cs | faraboom/framework | 0 | 7063855 | namespace Faraboom.Framework.UI.Bootstrap.TagHelpers.Dropdown
{
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Razor.TagHelpers;
using Microsoft.Extensions.Options;
[DataAnnotation.Injectable]
[HtmlTargetElement("frb-dropdown-divider")]
public class DropdownDividerTagHelper : TagHe... |
Parky/ParkyApi/Controllers/NationalParkV2Controller.cs | Amphibian007/MyDotnetProjects-2021 | 0 | 7063856 | using AutoMapper;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using ParkyApi.Data;
using ParkyApi.Models;
using ParkyApi.Models.Dtos;
using ParkyApi.Repository.IRepository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ParkyApi.Controll... |
Exam Preparations/DataBase/03. EntityFramework-Code-first/SocialNetwork/SocialNetwork.Models/Message.cs | dushka-dragoeva/TelerikSeson2016 | 5 | 7063857 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace SocialNetwork.Models
{
public class Message
{
[Key]
public int Id { ge... |
Wabbajack.DTOs/ModList/Directives/IgnoredDirectly.cs | wabbajack-tools/wabbajack | 389 | 7063858 | <filename>Wabbajack.DTOs/ModList/Directives/IgnoredDirectly.cs
using Wabbajack.DTOs.JsonConverters;
namespace Wabbajack.DTOs.Directives
{
[JsonName("IgnoredDirectly")] // Should never make it into a JSON file
public class IgnoredDirectly : Directive
{
public string Reason = string.Empty;
}
} |
AstroBit/Svg/PathCommandExtensions.cs | IngvarKofoed/astro-bit | 0 | 7063859 | using System;
using System.Collections.Generic;
using System.Linq;
namespace AstroBit.Svg
{
public static class PathCommandExtensions
{
public static string ToPathString(this IEnumerable<IPathCommand> commands) =>
commands.Aggregate(string.Empty, (a, c) => a == string.Empty ? c.ToString() ... |
Services/Games/GameGenreServiceModel.cs | Peshkata99/GameStore | 0 | 7063860 | <filename>Services/Games/GameGenreServiceModel.cs
namespace GameStore.Service.Games
{
public class GameGenreServiceModel
{
public int Id { get; set; }
public string Name { get; set; }
}
}
|
06.Loops/10.OddAndEvenProduct/Program.cs | baretata/CSharpPartOne | 1 | 7063861 | <reponame>baretata/CSharpPartOne<filename>06.Loops/10.OddAndEvenProduct/Program.cs
using System;
class OddAndEvenProduct
{
static void Main()
{
Console.Write("Enter how much numbers to calculate: ");
int n = int.Parse(Console.ReadLine());
int[] numbers = new int[n];
int oddSum ... |
TrainModel/DiabetesData.cs | jwood803/MLNET_CosmosDB | 1 | 7063862 | using System;
using System.Collections.Generic;
using System.Text;
namespace TrainModel
{
public class DiabetesData
{
public string Id { get; set; }
public string Age { get; set; }
public string Gender { get; set; }
public string Plyuria { get; set; }
public string Poly... |
src/Cake.AzureCLI/AzTool.cs | DefiantCode/Cake.AzureCLI | 0 | 7063863 | using Cake.Core;
using Cake.Core.IO;
using Cake.Core.Tooling;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
namespace Cake.AzureCLI
{
public abstract class AzTool<TSettings, TResult> : Tool<TSettings> where TSettings : AzSettings where TResult : AzT... |
app007_logicheskie_operatori_i_operacii/Program.cs | llgiant/csharp | 0 | 7063864 | <reponame>llgiant/csharp
using System;
class Program
{
static void Main()
{
Console.WriteLine("========================================================================");
Console.WriteLine("Логические операторы");
Console.WriteLine("========================================================================");
... |
ApiControleMedico/Modelos/Procedimento.cs | mdsavian/ApiControleMedico | 0 | 7063865 | using System;
using MongoDB.Bson.Serialization.Attributes;
using Newtonsoft.Json;
namespace ApiControleMedico.Modelos
{
[Serializable, JsonObject]
[BsonDiscriminator(Required = true)]
[BsonKnownTypes(typeof(Procedimento))]
public class Procedimento : Entidade
{
[BsonElement("Descricao")]
... |
Bebruhal/Bebruhal.cs | Bronuh/Bebruhal | 0 | 7063866 | <gh_stars>0
using Bebruhal.Utils.Config;
using Config.Net;
using NLog;
namespace Bebruhal;
/// <summary>
/// Точка входа в программу
/// </summary>
public class Bebruhal
{
static IBebruhalConfig config = new ConfigurationBuilder<IBebruhalConfig>()
.UseIniFile("bebruhal.ini")
.Build();
private static bool runn... |
agsxmpp/protocol/extensions/html/Body.cs | gouri1shankar/JabberClient-with-roster-user | 2 | 7063867 | <gh_stars>1-10
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright (c) 2003-2012 by AG-Software *
* All Rights Reserved. *
* Contact information for AG-Software is available at http://www.ag-software.de *
* *
* Li... |
src/PokemonGBTASToolForm.Designer.cs | CasualPokePlayer/Gen2TASTool | 0 | 7063868 | namespace PokemonGBTASTool
{
public partial class PokemonGBTASToolForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing... |
KN_Loader/Updater.cs | Xiloe/kino | 0 | 7063870 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using BepInEx;
namespace KN_Loader {
public static class Updater {
private static readonly string ScriptPath = Path.GetTempPath() + Path.DirectorySeparatorChar + "KN_Updater.ps1";
private static read... |
BechdelTonight/Models/Channel.cs | fordprefect480/bechdeltonight | 0 | 7063871 | <reponame>fordprefect480/bechdeltonight
using System.ComponentModel;
namespace BechdelTonight.Models
{
public enum Channel
{
[Description("Channel 7")]
Seven,
[Description("7TWO")]
SevenTwo,
[Description("7flix")]
SevenFlix,
[Description("7mat... |
02 Algorithm Reference/07 Trading and Orders/04 Order Events/01 code.cs | Jay-Jay-D/Documentation | 0 | 7063872 | <filename>02 Algorithm Reference/07 Trading and Orders/04 Order Events/01 code.cs<gh_stars>0
// Override the base class event handler for order events
public override void OnOrderEvent(OrderEvent orderEvent)
{
var order = Transactions.GetOrderById(orderEvent.OrderId);
Console.WriteLine("{0}: {1}: {2}", Time, or... |
EAAddinFramework/EAWrappers/Action.cs | Helmut-Ortmann/Enterprise-Architect-Add-in-Framework | 0 | 7063873 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using UML=TSF.UmlToolingFramework.UML;
namespace TSF.UmlToolingFramework.Wrappers.EA {
/// <summary>
/// Description of Action.
/// </summary>
public class Action: ElementWrapper,UML.Actions.BasicActions.Action
{
public Action(Mode... |
Assets/Scripts/AdventureGame.cs | AndersonVr/nightmare | 0 | 7063874 | <reponame>AndersonVr/nightmare
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class AdventureGame : MonoBehaviour
{
[SerializeField] public Text textComponent;
[SerializeField] public Image imageComponent;
[SerializeField] public M... |
MaterialDesignThemes.Wpf.AddOns.Tests/Utils/Filtering/TextFilterTests.cs | davidlebourdais/MaterialDesignInXamlToolkitAddOns | 4 | 7063875 | using System.ComponentModel;
using System.Linq;
using MaterialDesignThemes.Wpf.AddOns.Utils.Filtering;
using NUnit.Framework;
namespace MaterialDesignThemes.Wpf.AddOns.Tests.Utils.Filtering
{
public class TextFilterTests
{
private PropertyDescriptor[] _testDataProperties;
[SetUp]
... |
osu.Game.Rulesets.Vitaru/Ruleset/HitObjects/Drawables/DrawableVitaruJudgement.cs | Shawdooow/osu-symcol | 2 | 7063876 | #region usings
using System;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.Objects.Drawables;
using osu.Game.Rulesets.Scoring;
using osu.Game.Rulesets.Vitaru.Ruleset.Scoring.Judgements;
using osuTK;
#endregion
// ReSharper disable SpecifyACultureInStringConver... |
Ynab/Authentication/YnabOptions.cs | id0001/ynab | 0 | 7063877 | using Microsoft.AspNetCore.Authentication.OAuth;
using Microsoft.AspNetCore.Http;
namespace Ynab.Authentication
{
public class YnabOptions : OAuthOptions
{
public YnabOptions()
{
CallbackPath = new PathString("/signin-ynab");
AuthorizationEndpoint = YnabDefaults.AuthorizationEndpoint;
TokenEndpoint = Y... |
Assets/Scripts/MenuScripts/EndMenuController.cs | yungwym/GAME2014_A1_WymerRobert | 0 | 7063878 | /*
* Program Header: End Menu Controller
* <NAME> - 101070567
* Last Date Modified - Oct 3, 2021
* Version 1.0
*
* Basic Scene Navigation for Start Menu
*
*
*
*/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class EndMenuContro... |
Pacman/Enums/PacmanElement.cs | Malpp/TP2-Pacman | 0 | 7063879 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pacman
{
public enum PacmanElement
{
Pacman = 'P',
//World
Jail = 'J',
Wall = 'W',
Empty = '0',
//Ghosts
Blinky = 'B',
Pinky = 'G',
Inky = 'I',
Clyde = 'C',
//Eleme... |
Purchasing.Mvc/Controllers/ReportController.cs | ucdavis/Purchasing | 1 | 7063880 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web.Mvc;
using Lucene.Net.Analysis.Standard;
using Lucene.Net.QueryParsers;
using Lucene.Net.Search;
using Lucene.Net.Util;
using Purchasing.Core;
using Purchasing.Core.Domain;
us... |
ODataLib/OData/Silverlight/Microsoft/Data/OData/ReadOnlyEnumerableOfT.cs | BrightstarDB/odata-sparql | 4 | 7063881 | // Copyright 2011 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://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... |
Libraries/BrnShop.Core/Random/RandomImage.cs | leafcxy/BrnShop | 2 | 7063882 | <gh_stars>1-10
using System;
using System.IO;
using System.Drawing.Imaging;
namespace BrnShop.Core
{
/// <summary>
/// 随机图片
/// </summary>
public class RandomImage
{
private string _contenttype;
private byte[] _image;
/// <summary>
/// 图片输出类型
/// </summary>... |
Assets/Scripts/IntroNarrative.cs | zeidanbm/Surviving-Mars-Unity-VR-Game | 1 | 7063883 | <filename>Assets/Scripts/IntroNarrative.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class IntroNarrative : MonoBehaviour
{
public Transform target;
public AudioSource stormSound;
void Update()
{
... |
StockScreener/StockFunctions/UtilityFunctions.cs | JamesBoadi/StockScreener | 0 | 7063884 | <filename>StockScreener/StockFunctions/UtilityFunctions.cs<gh_stars>0
using System;
namespace StockScreener // https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_server For the database (https://gist.github.com/kevinswiber/1390198)
{
// Utility functions
public abstract class Ut... |
source/MSI.Keyboard.Backlight.Manager.Settings/IoC/SettingsModule.cs | dpozimski/msi-keyboard-backlight-manager | 0 | 7063885 | <gh_stars>0
using Autofac;
using Autofac.Extras.DynamicProxy;
using MSI.Keyboard.Backlight.Manager.Analytics;
namespace MSI.Keyboard.Backlight.Manager.Settings.IoC
{
public class SettingsModule : Module
{
protected override void Load(ContainerBuilder builder)
{
builder.RegisterType... |
src/Snap.Genshin.HutaoAPI/Services/Abstraction/StatisticCalculator.cs | DGP-Studio/Snap.Genshin.Website | 2 | 7063886 | // Copyright (c) DGP Studio. All rights reserved.
// Licensed under the MIT license.
namespace Snap.HutaoAPI.Services.Abstraction
{
/// <summary>
/// 统计计算器
/// </summary>
/// <typeparam name="TResult">计算结果的类型</typeparam>
public abstract class StatisticCalculator<TResult> : IStatisticPipeline
... |
Assets/AppMain.cs | qazDebug/UnityLearning | 0 | 7063887 | <reponame>qazDebug/UnityLearning
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using OT.Foundation;
public class AppMain : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
Debuger.EnableLog = true;
Debuger.Log("AppMain", "Hell... |
sources/Leak.Common/FileHashCollection.cs | sora-jp/leak | 76 | 7063889 | <gh_stars>10-100
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace Leak.Common
{
public class FileHashCollection : IEnumerable<FileHash>
{
private readonly List<FileHash> hashes;
public FileHashCollection(params FileHash[] items)
{
th... |
API/v1/Dto/Input/Outgoings/OutgoingsDto.cs | Forbury/Integrations | 7 | 7063890 | using Forbury.Integrations.Helpers.Converters;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace Forbury.Integrations.API.v1.Dto.Input.Outgoings
{
public class OutgoingsDto
{
[JsonConverter(typeof(DateFormatConverter), JsonFormats.DateFormat)]
public DateTime? Ou... |
05. Exercise Graph Theory, Traversal and Shortest/BreakGraph/Program.cs | dimitarkole/Algorithms | 0 | 7063891 | using System;
using System.Collections.Generic;
using System.Linq;
namespace BreakGraph
{
public class Edge
{
public Edge(string first, string second)
{
First = first;
Second = second;
}
public string First { get; set; }
public string Second { ... |
samples/snippets/csharp/VS_Snippets_WebNet/Classic HttpCookie.Expires Example/CS/source.cs | hamarb123/dotnet-api-docs | 421 | 7063892 | <filename>samples/snippets/csharp/VS_Snippets_WebNet/Classic HttpCookie.Expires Example/CS/source.cs
using System;
using System.Web;
using System.Web.UI;
public class Page1: Page
{
protected HttpCookie MyCookie;
private void Page_Load(Object sender, EventArgs e)
{
// <Snippet1>
DateTime dt = DateTime.N... |
DesktopWidgets/Events/LaunchEvent.cs | danielchalmers/DesktopWidgets | 6 | 7063893 | <filename>DesktopWidgets/Events/LaunchEvent.cs
using System.Collections.Generic;
using System.ComponentModel;
namespace DesktopWidgets.Events
{
public class LaunchEvent : IEvent
{
[DisplayName("System Start")]
public bool SystemStartup { get; set; } = false;
[DisplayName("Parameters")... |
src/Spear.Framework/ExceptionHandler.cs | jl632541832/spear | 51 | 7063894 | using Microsoft.Extensions.Logging;
using Spear.Core;
using Spear.Core.Dependency;
using Spear.Core.Exceptions;
using Spear.Core.Extensions;
using Spear.Core.Serialize;
using System;
using System.Net.Sockets;
using System.Threading.Tasks;
namespace Spear.Framework
{
/// <summary> 异常处理类 </summary>
public stati... |
EulerSolutions/EulerSolutions/Solutions/Problem-1.cs | nguyenxbj/euler-solutions | 0 | 7063895 | using System;
using System.Collections.Generic;
using System.Text;
namespace EulerSolutions.Solutions
{
public class Problem_1
{
public static int Solution()
{
int maxNumber = 1000;
int sum = 0;
for (int i = 1; i < maxNumber; i++)
{
if (i % 3 == 0 || i % 5 == 0)
{
sum += i;
}
}
... |
src/Commands/Modules/ModerationModule.cs | Duxez/brackeys-bot | 35 | 7063896 | using System;
using System.Collections.Generic;
using System.Text;
using BrackeysBot.Services;
using Discord.Commands;
namespace BrackeysBot.Commands
{
[Summary("Provides tools to moderate the server.")]
[ModuleColor(0xd95d5d)]
public partial class ModerationModule : BrackeysBotModule
{
publ... |
src/Interfaces/IConverter.cs | kalleantero/strava-to-fhir | 0 | 7063897 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Text;
namespace StravaActivityToFhir.Interfaces
{
public interface IConverter<TSource, TDestination>
{
TDestination Convert(TSource source_object);
}
}
|
e2e/Forms/tests/HelloWorld.UITests/Pages/ViewA.cs | Danghor/Prism | 5,639 | 7063898 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Query = System.Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery>;
namespace HelloWorld.UITests.Pages
{
public class ViewA : BasePage
{
readonly Query navigateT... |
TRexIfcUI/Export/UnitScaleNodeModel.cs | bekraft/BitubTRexDynamo | 4 | 7063899 | <reponame>bekraft/BitubTRexDynamo
using System;
using System.Linq;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Dynamo.Graph.Nodes;
using ProtoCore.AST.AssociativeAST;
using Newtonsoft.Json;
using TRex.Internal;
namespace TRex.Export
{
/// <summary>
/// Unit scale node.
... |
Assets/Remake/BezierEditor.cs | SingularBeing/Test | 0 | 7063900 | <filename>Assets/Remake/BezierEditor.cs
using UnityEngine;
using System.Collections;
using UnityEditor;
/// <summary>
/// Used to draw the bezier curves in the scene view
/// </summary>
[CustomEditor (typeof(BezierScene))]
public class BezierEditor : Editor
{
/// <summary>
/// Raises the scene GU event.
/// </summ... |
UISinoidMovement.cs | jacobrave/Sloth | 0 | 7063901 | using UnityEngine;
public class UISinoidMovement : MonoBehaviour {
public Vector2 movementScale;
public float speed;
RectTransform rt;
Vector2 pos;
void Start () {
rt = GetComponent<RectTransform>();
pos = rt.localPosition;
}
void Update () {
rt.localPosition = pos + (M... |
Poster.Tcp.Examples.Chat/Program.cs | CTAPbIuKODEP/Poster | 4 | 7063902 | using Poster.Freud;
using Signals;
using System;
using System.Net;
using System.Net.Sockets;
namespace Poster.Tcp.Examples.Chat
{
class Program
{
public static ISerializationProvider serializer = new FreudSerializationProvider();
private static bool leave;
static void Main(string[] ar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.