content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System; using System.Linq; using System.Net.Http; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; using NUnit.Framework; using Prometheus.DotNetRuntime.Metrics; using Prometheus.DotNetRuntime.Metrics.Producers; namespace Prometheus.DotNetRuntime.Tests.IntegrationTests ...
47.065421
149
0.663026
[ "MIT" ]
NetMatch/prometheus-net.DotNetRuntime
src/prometheus-net.DotNetRuntime.Tests/IntegrationTests/ThreadPoolTests.cs
5,036
C#
using BlinkHilight.Views; using Prism.Ioc; using Prism.Modularity; using Prism.Regions; using Prism.Unity; using System.Windows; namespace BlinkHilight { /// <summary> /// App.xaml の相互作用ロジック /// </summary> public partial class App : PrismApplication { protected override Window CreateShell(...
20.466667
84
0.648208
[ "MIT" ]
hsytkm/ImageCompareViewer
08_ImageFunctions/BlinkHilight/App.xaml.cs
634
C#
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v8/enums/content_label_type.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf...
37.268817
300
0.66859
[ "Apache-2.0" ]
deni-skaraudio/google-ads-dotnet
src/V8/Types/ContentLabelType.g.cs
10,398
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Threading; using System.Threading.Tasks; namespace Tests { /// <summary> /// This is a test class for TaskTest and is intended ///to contain all TaskTest Unit Tests /// </summary> [TestClass] public class TaskMember...
30.9022
93
0.505578
[ "Apache-2.0" ]
WindowsCE-Deprecated/System.Threading.Tasks
test/Tasks.Tests/TaskMembersTests.cs
12,641
C#
#region License // // Copyright (c) 2013, Kooboo team // // Licensed under the BSD License // See the file LICENSE.txt for details. // #endregion using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.Mvc; namespace Kooboo.CMS.Sites.Extension.ModuleArea.Management.Ev...
29.535714
114
0.704958
[ "BSD-3-Clause" ]
Bringsy/Kooboo.CMS
Kooboo.CMS/Kooboo.CMS.Sites/Extension/ModuleArea/Management/Events/IModuleUninstallingEvents.cs
829
C#
using System; using System.Collections.Generic; using NHapi.Base.Log; using NHapi.Model.V23.Group; using NHapi.Model.V23.Segment; using NHapi.Model.V23.Datatype; using NHapi.Base; using NHapi.Base.Parser; using NHapi.Base.Model; namespace NHapi.Model.V23.Message { ///<summary> /// Represents a SRM_S01 m...
28.413598
146
0.644965
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
afaonline/nHapi
src/NHapi.Model.V23/Message/SRM_S01.cs
10,030
C#
using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using CrystalDuelingEngine.Serialization; using CrystalDuelingEngine.States; using GoldenAnvil.Utility; namespace CrystalDuelingEngine.Conditions { public abstract class BinaryLogicCondition : ConditionBase { public ReadOnl...
28.507692
144
0.744199
[ "MIT" ]
SaberSnail/CrystalDuelingEngine
CrystalDuelingEngine/Conditions/BinaryLogicCondition.cs
1,855
C#
using SharpDX.Windows; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace D3D12HelloDepthBuffer { static class Program { /// <summary> /// The main entry point for the application. /// </su...
24.769231
66
0.451346
[ "MIT" ]
RobyDX/SharpDX_D3D12HelloWorld
D3D12HelloDepthBuffer/Program.cs
968
C#
using System; namespace T01.FruitMarket { class Program { static void Main(string[] args) { double strawberriesPrice = double.Parse(Console.ReadLine()); double bananasWeight = double.Parse(Console.ReadLine()); double orangesWeight = double.Parse(Console.Read...
37.458333
172
0.649611
[ "MIT" ]
akdimitrov/CSharp-Basics
_PB - EXAMS/Exam Prep - PB Online Exam 2-3May2019/T01.FruitMarket/Program.cs
901
C#
using System; using System.Collections.Generic; using System.Linq; using Moq; using RomanticWeb.Converters; using RomanticWeb.Entities; using RomanticWeb.Mapping.Model; using RomanticWeb.Mapping.Visitors; namespace RomanticWeb.Tests.Stubs { public class TestEntityMapping<TEntity> : IEntityMapping ...
38.640351
114
0.607719
[ "BSD-3-Clause" ]
alien-mcl/RomanticWeb
Tests/RomanticWeb.Tests/Stubs/TestEntityMapping.cs
4,407
C#
using System.IO; namespace TeleSharp.TL.Messages { [TLObject(911761060)] public class TLBotCallbackAnswer : TLObject { public override int Constructor { get { return 911761060; } } public int Flags { get; set; } pub...
23.134146
65
0.411703
[ "MIT" ]
cobra91/TelegramCSharpForward
TeleSharp.TL/TL/Messages/TLBotCallbackAnswer.cs
1,897
C#
using UnityEngine; using System.Collections; using System.Collections.Generic; using UnityEngine.UI; using UnityEngine.SceneManagement; public class GameControl : MonoBehaviour { /// <summary> /// A reference to the UI text component that displays the player's score. /// </summary> private Text score...
20.176471
105
0.55102
[ "MIT" ]
DanielD2/3DMenu
Assets/Flappy Bird Style/Scripts/GameControl.cs
2,746
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace GCC_trial_3 { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void...
22.782609
65
0.622137
[ "MIT" ]
Jaswanthjc/GCC-Compiler
user_design/Program.cs
526
C#
using System; using System.Collections.Generic; using System.Linq; using Foundation; using UIKit; namespace WeatherOnRoute.iOS { public class Application { // This is the main entry point of the application. static void Main(string[] args) { // if you want to use a differe...
23.428571
91
0.640244
[ "MIT" ]
JoanGil/weather-on-route
WeatherOnRoute/WeatherOnRoute/WeatherOnRoute.iOS/Main.cs
494
C#
using System; using System.Collections.Generic; using System.Text; namespace RequestHelper.Models { public class ParametersDictionary : List<KeyValuePair<string, string>> { public void Add(string key, string value) { var element = new KeyValuePair<string, string>(key, value); ...
22.4375
74
0.640669
[ "MIT" ]
EuFindlay/RequestHelper
Source/RequestHelper/Models/UrlDictionary.cs
361
C#
using System; using System.ServiceModel; using System.ServiceModel.Dispatcher; using System.ServiceModel.Channels; using System.ServiceModel.Web; using WcfRestContrib.DependencyInjection; using WcfRestContrib.ServiceModel.Channels; using WcfRestContrib.ServiceModel.Dispatcher; using System.Net.Mime; using Sys...
41.022222
168
0.614482
[ "MIT" ]
mikeobrien/WcfRestContrib
src/WcfRestContrib/ServiceModel/Web/WebErrorHandler.cs
5,540
C#
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Net; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; using WhatsAppApi.Settings; namespace WhatsAppApi.Register { public static class WhatsRegist...
35.025926
265
0.472454
[ "MIT" ]
paulocorcino/AutoZap
WhatsAppApi/Register/WhatsRegisterV2.cs
9,457
C#
//------------------------------------------------------------------------------ // <auto-generated> // 此代码由工具生成。 // 运行时版本:4.0.30319.18444 // // 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将会丢失。 // </auto-generated> //------------------------------------------------------------------------------ namespace M...
38.515625
185
0.590669
[ "MIT" ]
wangzhiqing999/my-csharp-project
MyMiniTradingSystem.Chart/Properties/Resources.Designer.cs
2,815
C#
using System; using System.Xml.Serialization; namespace Aop.Api.Domain { /// <summary> /// SearchToggleBoxStatusRequest Data Structure. /// </summary> [Serializable] public class SearchToggleBoxStatusRequest : AopObject { /// <summary> /// 品牌id /// </summary...
22.387097
58
0.5
[ "Apache-2.0" ]
554393109/alipay-sdk-net-all
AlipaySDKNet.Standard/Domain/SearchToggleBoxStatusRequest.cs
714
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. namespace Microsoft.Azure.WebJobs.Extensions.MicrosoftGraph.Tests { using System; using System.IO; using System.Linq.Expressions; using System.Threadin...
38.215054
159
0.586944
[ "MIT" ]
Azure/azure-functions-microsoftgraph-extension
test/MicrosoftGraph.Tests/OneDriveMockUtilities.cs
3,556
C#
// ReSharper disable UnusedMember.Global #pragma warning disable 1591 // ReSharper disable InconsistentNaming using System.ComponentModel; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace Exchange.Core.Contracts.ExchangeRates { /// <summary> /// Global Currency Codes /// </summary> [J...
21.978261
48
0.470326
[ "Apache-2.0" ]
elioseverojunior/Exchange
src/Core/Exchange.Core/Contracts/ExchangeRates/ExchangeRateCurrencyCodes.cs
2,022
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; using Live_Demo_Web_Forms.Models; namespace Live_Demo_Web_Forms.Account { ...
36.883117
183
0.607746
[ "MIT" ]
kaizer04/Telerik-Academy-2013-2014
ASP.NET WebForms/Live-Demo-Web-Forms/Live-Demo-Web-Forms/Account/TwoFactorAuthenticationSignIn.aspx.cs
2,842
C#
using MassTransit.EntityFrameworkCoreIntegration.Mappings; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Registration; namespace WorkerRoleCommandProcessor { public class OrderStateMap : SagaClassMap<OrderState> { protected override void Configure(En...
37.761905
99
0.686003
[ "Apache-2.0" ]
huy-ngoduc/ConferenceManagement
src/Conference/CommandProcessorWorker/OrderStateMap.cs
795
C#
/* * Exchange Web Services Managed API * * Copyright (c) Microsoft Corporation * All rights reserved. * * MIT License * * 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 * wit...
38.091286
144
0.600545
[ "MIT" ]
AdamMachera/ews-managed-api
Core/Requests/GetUserAvailabilityRequest.cs
9,180
C#
using System.Configuration; using Microsoft.Practices.Unity; using Microsoft.Practices.Unity.Configuration; using Nancy; using Nancy.Bootstrapper; using Nancy.Bootstrappers.Unity; namespace Chiro.Gap.UpdateApi { public class Bootstrapper : UnityNancyBootstrapper { protected override void ApplicationSt...
42.576923
117
0.669377
[ "Apache-2.0" ]
Chirojeugd-Vlaanderen/gap
Solution/Chiro.Gap.UpdateApi/Bootstrapper.cs
2,216
C#
using System; using OpenTelemetry.Trace; using Samples.AspNetCoreMvc.Controllers; namespace Samples.AspNetCoreMvc { public class OtelSdkPlugin { public TracerProviderBuilder ConfigureTracerProvider(TracerProviderBuilder builder) { var typeName = this.ToString(); Console....
26.764706
91
0.698901
[ "Apache-2.0" ]
mic-max/opentelemetry-dotnet-instrumentation
samples/Samples.AspNetCoreMvc31/OtelSdkPlugin.cs
455
C#
// // ButtonShadowEffect.cs // Creates a custom Button Shadow Effect using PlatformEffects (Android) // // Created by Steven F. Daniel on 16/07/2018. // Copyright © 2018 GENIESOFT STUDIOS. All rights reserved. // using Xamarin.Forms; using Xamarin.Forms.Platform.Android; using System; [assembly: ResolutionGroupNa...
30.918919
107
0.634615
[ "MIT" ]
PacktPublishing/Mastering-Xamarin-UI-Development---Second-Edition
Chapter08/TrackMyWalks/TrackMyWalks.Android/CustomEffects/ButtonShadowEffect.cs
1,147
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace DemoMVC { public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { Ar...
25.727273
70
0.704947
[ "MIT" ]
rombo84fx/fictional-spork
DemoMVC/DemoMVC/Global.asax.cs
568
C#
/* MIT LICENSE Copyright 2017 Digital Ruby, LLC - http://www.digitalruby.com 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, c...
39.780822
460
0.560451
[ "MIT" ]
Kukks/ExchangeSharp
ExchangeSharp/Utility/CryptoUtility.cs
58,082
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
30.891566
174
0.576248
[ "Apache-2.0" ]
test-wiz-sec/pulumi-azure-nextgen
sdk/dotnet/Automation/Latest/GetSchedule.cs
5,128
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using NUnit.Framework; using osu.Game.Rulesets.Karaoke.Edit.Dialog; using osu.Game.Tests.Visual; namespace osu.Game.Rulesets.Karaoke.Tests { ...
27.238938
94
0.472385
[ "MIT" ]
karaoke-dev/karaoke-legacy
osu.Game.Rulesets.Karaoke.Tests/TestCaseWindows.cs
2,968
C#
namespace Vidly.Web.Migrations { using System; using System.Data.Entity.Migrations; public partial class AddIsSubscribedToCustomer : DbMigration { public override void Up() { AddColumn("dbo.Customers", "IsSubscribedToNewsletter", c => c.Boolean(nullable: false)); ...
24.473684
100
0.597849
[ "MIT" ]
s-janjic/Vidly
Vidly.Web/Migrations/202105252114392_AddIsSubscribedToCustomer.cs
465
C#
using System; using System.Runtime.InteropServices; using System.Windows.Forms; // ReSharper disable UnusedMember.Local namespace MageDisplayLib { /// <summary> /// Intercepts horizontal scrollbar events, gets X position of scroll, and fires the OnScroll event /// </summary> public class L...
32.37037
106
0.599542
[ "BSD-2-Clause" ]
PNNL-Comp-Mass-Spec/Mage
MageDisplayLib/ListViewEx.cs
1,750
C#
using System; namespace Sexy { public struct _Touch { public CGPoint location; public CGPoint previousLocation; public int tapCount; public double timestamp; public _Phase phase; } }
9.125
34
0.671233
[ "MIT" ]
OptiJuegos/Plants-VS-Zombies-NET
DotNETPvZ_Shared/Sexy/_Input/_Touch.cs
221
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
36.62
335
0.637357
[ "ECL-2.0", "Apache-2.0" ]
RafalSumislawski/pulumi-aws
sdk/dotnet/Alb/Outputs/TargetGroupStickiness.cs
1,831
C#
#region License /* * WebSocketContext.cs * * The MIT License * * Copyright (c) 2012-2018 sta.blockhead * * 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, includin...
32.475556
80
0.633502
[ "MIT" ]
16it/surging
src/WebSocket/WebSocketCore/Net/WebSockets/WebSocketContext.cs
7,307
C#
namespace TrashMob.Shared.Tests { using Moq; using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using TrashMob.Shared.Engine; using TrashMob.Shared.Models; using Xunit; public abstract class UpcomingEventsInYourAreaNotifierTestsBase...
52.475728
175
0.654641
[ "Apache-2.0" ]
ambientlight/TrashMob
TrashMob.Shared.Tests/UpcomingEventsInYourAreaNotifierTestsBase.cs
16,215
C#
// Copyright 2017 the original author or authors. // // 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...
46.031915
141
0.685694
[ "ECL-2.0", "Apache-2.0" ]
DrDao/Discovery
test/Steeltoe.Discovery.EurekaBase.Test/AppInfo/LeaseInfoTest.cs
4,329
C#
// // Copyright 2010-2017 Deveel // // 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 applica...
23.972603
78
0.614286
[ "Apache-2.0" ]
deveel/deveeldb.core
src/DeveelDb.Core/BigArraySortUtil.cs
1,752
C#
using System; using System.Collections; namespace Lesnikowski.Pawel.Mail.Pop3 { public class BaseEntity { protected string header; //all header public string contentType; public string contentTransferEncoding; public string charset; public string boundary; public bool hasAttachments=false; ...
24.445255
96
0.575396
[ "MIT" ]
garethhubball/dasblog-core
source/Lesnikowski.Pawel.Mail.Pop3/BaseEntity.cs
3,349
C#
using System.Collections.Generic; using Umbraco.Cms.Core.Events; using Umbraco.Cms.Core.Models; namespace Umbraco.Cms.Core.Notifications { public class MemberTypeDeletedNotification : DeletedNotification<IMemberType> { public MemberTypeDeletedNotification(IMemberType target, EventMessages messages) : b...
28.777778
126
0.72973
[ "MIT" ]
Ambertvu/Umbraco-CMS
src/Umbraco.Core/Notifications/MemberTypeDeletedNotification.cs
518
C#
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using System; using System.Linq; namespace Workbench.DependencyInjection.Extensions { public static class ServiceCollectionExtensions { public static IServiceCollection Decorate<TInterfa...
38.232558
130
0.6618
[ "MIT" ]
Sammarquinho/Design-Patterns-Csharp-DIO
Workbench.DependencyInjection.Extensions/ServiceCollectionExtensions.cs
1,646
C#
/* --------------------------- * SharePoint Manager 2010 v2 * Created by Carsten Keutmann * --------------------------- */ using System; using Microsoft.SharePoint.Administration; using SPM2.Framework; namespace SPM2.SharePoint.Model { [AdapterItemType("Microsoft.SharePoint.Administration.SPOutboundMailService,...
24.8
169
0.604839
[ "MIT" ]
keutmann/SPM
SharePoint Manager 2010 v2/Src/Main/SPM2.SharePoint/Model/Generated/SPOutboundMailServiceNode.cs
744
C#
using System; using System.Reflection; using HotChocolate.Internal; using HotChocolate.Types.Pagination; namespace HotChocolate.PreProcessingExtensions.Pagination { /// <summary> /// A Paging Provider for HotChocolate that provides No Operation during the execution /// of the Pipeline; because all pro...
48.736111
115
0.680251
[ "MIT" ]
DJBMASTER/GraphQL.RepoDB
GraphQL.PreProcessingExtensions/Paging/CursorPaging/PreProcessedCursorPagingProvider.cs
3,511
C#
using Sharpen; namespace android.view.animation { /// <summary> /// An interpolator where the rate of change starts and ends slowly but /// accelerates through the middle. /// </summary> /// <remarks> /// An interpolator where the rate of change starts and ends slowly but /// accelerates through the middle. //...
26.03125
100
0.729892
[ "Apache-2.0" ]
Conceptengineai/XobotOS
android/generated/android/view/animation/AccelerateDecelerateInterpolator.cs
833
C#
//------------------------------------------------------------------------------ // <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...
46.769231
178
0.668586
[ "MIT" ]
hilylove/Blog-Beginner
Blog/obj/Debug/netcoreapp3.1/Blog.RazorTargetAssemblyInfo.cs
1,216
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using Minsk.CodeAnalysis; using Minsk.CodeAnalysis.Authoring; using Minsk.CodeAnalysis.Symbols; using Minsk.CodeAnalysis.Syntax; using Minsk.IO; namespace Minsk { internal sealed class MinskRepl : Repl { private bool _...
33.469697
120
0.536442
[ "MIT" ]
fedeazzato/minsk
src/msi/MinskRepl.cs
8,836
C#
#region BSD License /* * Use of this source code is governed by a BSD-style * license or other governing licenses that can be found in the LICENSE.md file or at * https://raw.githubusercontent.com/Krypton-Suite/Extended-Toolkit/master/LICENSE */ // Original license /** * MIT License * * Copyright (c) 2017 - 2018...
56.6
116
0.69122
[ "BSD-3-Clause" ]
Krypton-Suite/Extended-Toolk
Source/Krypton Toolkit/Main/Krypton.Toolkit.Suite.Extended.Navi.Suite/Classes/Colours/NaviColourTableOff7Silver.cs
7,360
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
54.120301
220
0.670464
[ "MIT" ]
gurry/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Models/Generated/DepIOSEnrollmentProfile.cs
7,198
C#
using Newtonsoft.Json; namespace CarWash.Models { public class PostSelectedOptionsAndTime { [JsonProperty("selectedOptionId")] public int[] SelectedWashServices { get; set; } [JsonProperty("timeFrom")] public string TimeFrom { get; set; } [JsonProperty("timeTo")] ...
24.333333
55
0.627397
[ "MIT" ]
NPerederiy/car-wash-2.0
CarWash/Models/PostSelectedOptionsAndTime.cs
367
C#
using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using AutoMapper; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using PortfolioGallery.API.Controllers.Resources; using PortfolioGallery.API.Core;...
32.479675
115
0.61577
[ "MIT" ]
Radek12345/PortfolioGallery
PortfolioGallery.API/Controllers/PhotosController.cs
3,995
C#
using System; using System.Collections.Generic; namespace UnityGoogleDrive.Data { /// <summary> /// A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy. /// Prototype: https://developers.google.com/drive/v3/reference/permissions#resource-r...
43.163636
127
0.564238
[ "MIT" ]
anmolbajajnet/UnityGoogleDrive
Assets/UnityGoogleDrive/Runtime/API/Data/Permission.cs
4,750
C#
using UnityEngine; namespace Main { public interface IHead : IGoalHandler, IGamePause { void LookAt(Vector3 forward); void OnBlowed(); } }
15.272727
53
0.636905
[ "MIT" ]
khayreddinebiada/Code-HC-Prototype-Example
Characters/Interfaces/IHead.cs
168
C#
//参考自http://schemingdeveloper.com/2014/12/04/serializing-delegates-unity/ //Delegate没有Serializable标记,但是可以序列化的原因是https://referencesource.microsoft.com/#mscorlib/system/rttype.cs,3830130f2931fca3 /* * 看BinaryFormatter源码时发现会调用该方法判断是否可序列化 * internal bool IsSpecialSerializableType() { RuntimeType rt =...
26.744361
119
0.570143
[ "MIT" ]
tylearymf/UnityStepPlayTool
Assets/Editor/SerializableDelegate.cs
3,637
C#
// Copyright (c) Solal Pirelli // This code is licensed under the MIT License (see Licence.txt for details) using System; namespace ThriftSharp.Utilities { /// <summary> /// Utility class for validating method parameters. /// </summary> internal static class Validation { /// <...
32.27027
153
0.554439
[ "MIT" ]
SolalPirelli/ThriftSharp
src/Utilities/Validation.cs
1,196
C#
using Microsoft.AspNetCore.Mvc; using Packt.CS7; using System.Collections.Generic; using System.Linq; namespace NorthwindService.Controllers { [Route("api/[controller]")] public class CategoriesController : Controller { private readonly Northwind db; public CategoriesController(Northwind ...
22.028571
53
0.570687
[ "MIT" ]
Narasegowda/CSharp-7.1-and-.NET-Core-2.0-Modern-Cross-Platform-Development-Third-Edition
VS2017/Part3/NorthwindService/Controllers/CategoriesController.cs
773
C#
using Microsoft.Extensions.DependencyInjection; using StockTradingAnalysis.Services.External.Interfaces; using StockTradingAnalysis.Services.External.Services; using StockTradingAnalysis.Web.Common.Interfaces; namespace StockTradingAnalysis.Web.BindingModules { /// <summary> /// Binding module for the external serv...
31.391304
91
0.783934
[ "Unlicense" ]
BenjaminBest/StockTradingAnalysisWebsite
StockTradingAnalysisWebsite/StockTradingAnalysis.Web/App_Start/BindingModules/ExternalServicesBindingModule.cs
724
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System.Collections.Immutable; namespace Pulumi.Nsxt { public static class Config { private static readonly Pulumi.Config __co...
48.363636
173
0.653061
[ "ECL-2.0", "Apache-2.0" ]
nvpnathan/pulumi-nsxt
sdk/dotnet/Config/Config.cs
3,724
C#
using UnityEngine; public class TestFunction : MonoBehaviour { Elliptical e; Vector2[] points = new Vector2[10]; // Start is called before the first frame update void Start() { e = new Elliptical(new Rect(1,1,1,3), EInflexionType.DESCANDANTE); float x = 1; float step = 1 ...
26.333333
122
0.516456
[ "MIT" ]
Renardjojo/TinyWings
Assets/Scripts/TestFunction.cs
792
C#
using AutomationIoC.Integration.Commands; using System.Management.Automation; using Xunit; namespace AutomationIoC.Tools.Command; public class AutomationCommandTests { [Fact] public void ShouldRunExternalCommands() { var environmentKey = Guid.NewGuid().ToString(); var expectedValue = Guid...
30.413793
97
0.681406
[ "MIT" ]
kenswan/AutomationIoC
test/tools/Command/AutomationCommandTests.cs
884
C#
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Linq; using LibGit2Sharp.Core; using LibGit2Sharp.Core.Handles; namespace LibGit2Sharp { /// <summary> /// Holds the result of the determination of the state of the work...
36.946588
143
0.553128
[ "MIT" ]
7b3cbaf1/GTA
LibGit2Sharp/RepositoryStatus.cs
12,453
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace spa2.Models { // Models returned by MeController actions. public class GetViewModel { public string Hometown { get; set; } } }
21.25
47
0.717647
[ "Apache-2.0" ]
gawelczyk/SpaTests
spa2/Models/MeViewModels.cs
257
C#
using System; using AssetStudio; using JetBrains.Annotations; namespace Imas.Data.Serialized.Sway { public sealed class SwayBone : SwayBase { internal SwayBone() { Colliders = Array.Empty<SwayCollider>(); } public float Radius { get; internal set; } public ColliderTy...
26.478723
67
0.595018
[ "BSD-3-Clause-Clear" ]
765Pro-Hoshimi/MLTDTools
src/Imas.Data.Serialized/Sway/SwayBone.cs
2,491
C#
// GE Common Assets 1.0 // Free asssets for using in many packages of Gold Experience Team. // // Developer: Gold Experience Team (https://www.assetstore.unity3d.com/en/#!/search/page=1/sortby=popularity/query=publisher:4162) // Support: geteamdev@gmail.com // // Please direct any bugs/comments/suggestions t...
25.42217
133
0.573244
[ "MIT" ]
DennisTDev/HackPrinceton
Assets/GE Common Assets/GE Orbit Camera/Scripts/GE_OrbitCamera.cs
10,781
C#
using System.Windows.Controls; namespace Examples.Conventions.Implementations.TabControlConventions { public partial class FirstTabView : UserControl { public FirstTabView() { InitializeComponent(); } } }
16.846154
68
0.767123
[ "MIT" ]
mahizsas/Caliburn.Micro.Telerik
Silverlight/Examples.Conventions/Implementations/TabControlConventions/FirstTabView.xaml.cs
221
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class FIreWeapon : MonoBehaviour { [SerializeField] Camera cameraController; private void Update() { if (Input.GetKeyDown(KeyCode.Mouse0)) { Shoot(); } } //fi...
21.074074
67
0.59754
[ "MIT" ]
dzc170030/FPS_Project_02
Assets/Scripts/FIreWeapon.cs
571
C#
using System; class JoroTheFootballPlayer { static void Main() { string leap = Console.ReadLine(); int hollidaysCount = int.Parse(Console.ReadLine()); int weekendsHomeCount = int.Parse(Console.ReadLine()); int weekendsInYear = 52; int normalWeekendsCount = weekendsInYe...
26
69
0.580128
[ "Apache-2.0" ]
genadi60/SoftUni
SoftUni_Exam/C# Basics Exam 10 April 2014 Morning/Problem01-Joro-The-Football-Player/01.JoroTheFootballPlayer-Solution.cs
626
C#
using AppKit; namespace VolleMoehre.App.macOS { internal static class MainClass { static void Main(string[] args) { NSApplication.Init(); NSApplication.SharedApplication.Delegate = new App(); NSApplication.Main(args); } } }
18.6875
65
0.578595
[ "MIT" ]
TopperDEL/VolleMoehre
VolleMoehre.App/VolleMoehre.App.Mobile/MacOS/Main.cs
301
C#
using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace EnemyMods.NPCs { public class iNPC : NPCInfo { public int specialTimer = 0; public int timerAI = 0; public int timerSuffix = 0; public int countSuffix = 0; public int liv...
29.961538
97
0.627728
[ "MIT" ]
Hiccup251/Prefixes-for-Enemies
NPCs/iNPC.cs
781
C#
using Moq; using NUnit.Framework; namespace Xenon.Tests.ClickTests { [TestFixture] public class XenonScreenClickTests : BaseClickTests<DummyXenonScreen> { protected override BaseXenonTest<DummyXenonScreen> CreateInstance( Mock<IXenonBrowser> browser ) { return new DummyXenonScreen( browser.Object ); } } }
22.857143
98
0.784375
[ "MIT" ]
LiquidThinking/Xenon
Xenon.Tests/ClickTests/XenonScreenClickTests.cs
320
C#
//****************************************************************************************************** // Settings.cs - Gbtc // // Copyright © 2017, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See // the NO...
43.641921
112
0.630378
[ "MIT" ]
GridProtectionAlliance/gsf
Source/Tools/GEPDataExtractor/Settings.cs
9,997
C#
// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team // // 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, co...
41.252747
129
0.729355
[ "MIT" ]
164306530/ILSpy
ICSharpCode.Decompiler/CSharp/Transforms/AddXmlDocumentationTransform.cs
3,756
C#
using InformationService.DataModels; using InformationService.Interfaces; using Moq; using NotificationService.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using InformationService.Models; using InformationService.Repositories; using InterfaceModels; using Microsoft...
92.734899
193
0.633327
[ "MIT" ]
lvanlowe/SMADTools
CoachesFunctons/TrainingNotificationWorkerTest/TextWorkerTest.cs
27,637
C#
using FluentValidation.Results; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ordering.Application.Exceptions { public class ValidationException: ApplicationException { public ValidationException() : base("One or mor...
28.482759
104
0.644068
[ "MIT" ]
alfaiz12/AspnetMicroservices
src/Services/Ordering/Ordering.Application/Exceptions/ValidationException.cs
828
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. using System; using System.IO; using System.Net.Sockets; using Xunit; namespace Steeltoe.Messaging.Handler....
31.292517
135
0.603478
[ "Apache-2.0" ]
ScriptBox99/Steeltoe
src/Messaging/test/MessagingBase.Test/Handler/Attributes/Support/AttributeExceptionHandlerMethodResolverTest.cs
4,602
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Xml.Schema; using Xunit; using Xunit.Abstractions; namespace System.Xml.Tests { // ===================== Constructor ===================== pub...
31.642857
99
0.40941
[ "MIT" ]
belav/runtime
src/libraries/System.Private.Xml/tests/XmlSchema/XmlSchemaValidatorApi/Constructor_AddSchema.cs
16,834
C#
using System.Collections.Generic; using AlbaVulpes.API.Base; namespace AlbaVulpes.API.Models.Identity { public class User : ApiModel { public string UserName { get; set; } public string Email { get; set; } public string Password { get; set; } public List<Role> Roles { get; set...
23.642857
45
0.634441
[ "Apache-2.0" ]
albavulpes/api
src/Models/Identity/User.cs
333
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace GTBDDLab4 { enum TransactionType { Optimistic, Pessimistic } }
13.5
33
0.677249
[ "MIT" ]
Andrei15193/Laboratoare-Facultate
Semestrul4/GTBDD/L4/GTBDDLab4/TransactionType.cs
191
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
36.716981
139
0.685509
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/ConfidentialLedger/V20210513Preview/Inputs/LedgerPropertiesArgs.cs
1,946
C#
/* dotNetRDF is free and open source software licensed under the MIT License ----------------------------------------------------------------------------- Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) Permission is hereby granted, free of charge, to any person obtaining a copy of this ...
40.692308
123
0.657005
[ "MIT" ]
dotnetrdf/dotNetRDF.Toolkit
Libraries/editor/Selection/WhiteSpaceSelector.cs
4,761
C#
#if UNITY_EDITOR using System.Linq; using System.Collections.Generic; using UnityEngine; using UnityEditor; using NodeCanvas.Framework; using ParadoxNotion; namespace NodeCanvas.Editor { public static class GraphEditorUtility { public static event System.Action<IGraphElement> onActiveElementChanged; public...
26.632479
131
0.654365
[ "MIT" ]
CITMUniversityExercises/AIExercises
AIVisualScripting/AIVisualScripting/Assets/ParadoxNotion/NodeCanvas/Framework/Design/PartialEditor/GraphEditorUtility.cs
3,118
C#
using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Input; using MahApps.Metro.Controls; using TogglDesktop.AutoCompletion; using Tog...
36.220551
113
0.597841
[ "BSD-3-Clause" ]
jiri/toggldesktop
src/ui/windows/TogglDesktop/TogglDesktop/ui/windows/PreferencesWindow.xaml.cs
14,454
C#
using System; using Abp; using Abp.Authorization; using Abp.Dependency; using Abp.UI; namespace Fooww.Research.Authorization { public class AbpLoginResultTypeHelper : AbpServiceBase, ITransientDependency { public AbpLoginResultTypeHelper() { LocalizationSourceName = ResearchConsts....
53.338462
143
0.645226
[ "MIT" ]
PowerDG/Hundred-Micro
PropertyTools/20190715/Old/src/Fooww.Research.Application/Authorization/AbpLoginResultTypeHelper.cs
3,469
C#
// ----------------------------------------------------------------------- // <copyright file="BatchingSqlServerEventsByPersistenceIdSpec.cs" company="Akka.NET Project"> // Copyright (C) 2013 - 2019 .NET Foundation <https://github.com/akkadotnet/akka.net> // </copyright> // ---------------------------------------...
40.326923
115
0.617072
[ "Apache-2.0" ]
Arkatufus/Akka.Persistence.SqlServer
src/Akka.Persistence.SqlServer.Tests/Batching/BatchingSqlServerEventsByPersistenceIdSpec.cs
2,099
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Mi...
53.113333
241
0.603866
[ "MIT" ]
AlanFlorance/azure-powershell
src/Kusto/generated/api/Models/Api20220201/OutboundNetworkDependenciesEndpointListResult.TypeConverter.cs
7,818
C#
using System; using System.Globalization; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using System.Web; using System.Web.Mvc; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin.Security; using ASP.NET_MVC_Template.Models; namespace ASP.NET_MV...
36.482906
173
0.559974
[ "MIT" ]
EmilMitev/Telerik-Academy
ASP.NET Web Forms/09. Identity/Demo/ASP.NET MVC Template/Controllers/AccountController.cs
17,076
C#
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; namespace Leto.Interop { public static partial class LibCrypto { [DllImport(Libraries.LibCrypto, CallingConvention = CallingConvention.Cdecl, EntryPoint = "BIO_meth_set_read")] private stati...
33.478261
119
0.728571
[ "MIT" ]
Drawaes/Leto2
src/Leto.Interop/LibCrypto/BIO/BIO_meth_set_read.cs
770
C#
using System; using SixLabors.ImageSharp; using SixLabors.ImageSharp.PixelFormats; namespace ConversionTool { class DiabloPNG { public static void SavePNG(string filename, byte[] pixels, int width, int height) { for (int i = 0; i < width * height; i++) { byte red = pixels[(i * 4) + 0]; pixels[(i * ...
26.517241
146
0.527958
[ "Unlicense" ]
jmarshall23/devilutionX
ConversionTool/DiabloPNG.cs
1,538
C#
using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace aws { [JsiiByValue(fqn: "aws.Wafv2WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody")] public class Wafv2WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchSt...
38.75
223
0.875269
[ "MIT" ]
scottenriquez/cdktf-alpha-csharp-testing
resources/.gen/aws/aws/Wafv2WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.cs
465
C#
// 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.Collections.Immutable; using System.Diagnostics; using...
49.205572
271
0.616696
[ "MIT" ]
333fred/roslyn
src/Features/Core/Portable/EditAndContinue/DebuggingSession.cs
51,225
C#
using UnityEngine; using Antares.Vizio.Runtime; using System.Collections.Generic; using System.IO; using Unibill.Demo; [VisualLogicBlock("Less Than Test", "Smart Blocks/Tests")] public class LessThanTestNode : LogicBlock { [Parameter(VariableType.In, typeof(int))] public Variable Num1; [Parameter(VariableType.In,...
19.325
58
0.708926
[ "Apache-2.0" ]
MatrixNAN/Unity-Antares-Universe-Nodes
LessThanTestNode.cs
773
C#
namespace SwedbankPay.Sdk.PaymentInstruments.Invoice { /// <summary> /// Object containing details needed for reversing a invoice payment. /// </summary> public class InvoicePaymentReversalRequest { /// <summary> /// Instantiates a new <see cref="InvoicePaymentReversalReques...
55.965517
145
0.665434
[ "Apache-2.0" ]
Nacorpio/swedbank-pay-sdk-dotnet
src/SwedbankPay.Sdk/PaymentInstruments/Invoice/InvoicePaymentReversalRequest.cs
1,625
C#
using System; using System.Collections.Generic; using System.Text; namespace MetaDslx.CodeGeneration { public class CodeBuilder { private StringBuilder _sb; private string _indent; public CodeBuilder() { _sb = new StringBuilder(); _indent = ""; ...
20.235294
68
0.486192
[ "Apache-2.0" ]
balazssimon/meta-cs
src/Main/MetaDslx.CodeAnalysis.Meta/CodeGeneration/CodeBuilder.cs
1,378
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Diagnostics.CodeAnalysis; using System.Globalization; namespace System.ComponentModel.Design { /// <summary> /// Provides access to ge...
37.473988
153
0.528716
[ "MIT" ]
C-xC-c/runtime
src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/Design/DesignerOptionService.cs
19,449
C#
using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; using UnityEngine.EventSystems; using System; public class Main : MonoBehaviour, IPointerClickHandler { // Transform and Rigidbody Variables [SerializeField] private GameObject Object; [Serial...
37.064403
194
0.542571
[ "MIT" ]
davidli731/Monopoly-Unity-Game
Assets/Scripts/Main.cs
31,653
C#
using System; using System.Linq; using Sanicball.Data; using Sanicball.Gameplay; using SanicballCore; using SanicballCore.MatchMessages; using UnityEngine; namespace Sanicball.Logic { public class RaceFinishReport { /// <summary> /// Finishing with this position means the player has been disqu...
37.136709
150
0.587566
[ "MIT" ]
migouche/SanicBall-Custom
Assets/Scripts/Logic/RacePlayer.cs
14,671
C#
using System.Collections.Generic; using System.Data; using System.Threading.Tasks; using DapperExtensionsReloaded.Internal.Sql; using DapperExtensionsReloaded.Predicates; namespace DapperExtensionsReloaded.Internal { internal interface IDapperImplementor { ISqlGenerator SqlGenerator { get; } T...
97.769231
268
0.764359
[ "MIT" ]
MisterGoodcat/Dapper-Extensions
DapperExtensionsReloaded/Internal/IDapperImplementor.cs
2,544
C#
// 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. // Copyright (c) 2007 James Newton-King // // Permission is hereby granted, free of charge, to any person // obtain...
29.93617
161
0.598525
[ "MIT" ]
939481896/dotnet-corefx
src/System.Text.Json/tests/NewtonsoftTests/EnumConverterTests.cs
11,258
C#
namespace XCLCMS.FileManager.Common { /// <summary> /// 公共方法 /// </summary> public class Library { /// <summary> /// 文件管理中的文件上传目录 /// </summary> public const string FileManager_UploadPath = "~/Upload/Files/"; /// <summary> /// 文件管理器中的临时文件上传路径 ...
23.222222
74
0.54067
[ "Apache-2.0" ]
jiangnanwoniu/XCLCMS_asp.net
XCLCMS.FileManager/Common/Library.cs
482
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
34.358974
142
0.691791
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/ApiManagement/V20201201/Outputs/BackendTlsPropertiesResponse.cs
1,340
C#