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
namespace KraftWrapper.Interfaces.Fields { public interface ISitecoreLinkField : ISitecoreBaseCustomField { string Text { get; } string FriendlyUrl { get; } } }
21.111111
66
0.668421
[ "MIT" ]
yakonstantine/Kraft-Wrapper
KraftWrapper/KraftWrapper/Interfaces/Fields/ISitecoreLinkField.cs
192
C#
using System; using System.Collections.Generic; using Microsoft.Practices.ServiceLocation; using Ninject; namespace Purchasing.Jobs.Common { // from: https://github.com/ninject/Ninject/blob/master/src/CommonServiceLocator.NinjectAdapter/NinjectServiceLocator.cs public class NinjectServiceLocator : ServiceLoc...
36.025641
125
0.650534
[ "MIT" ]
ucdavis/Purchasing
Purchasing.Jobs.Common/NinjectServiceLocator.cs
1,407
C#
// This file is auto-generated, don't edit it. Thanks. using System; using System.Collections.Generic; using System.IO; using Tea; namespace AntChain.SDK.Deps.Models { public class SaveAppbaselineSidecarResponse : TeaModel { [NameInMap("req_msg_id")] [Validation(Required=false)] public st...
23.125
60
0.635135
[ "MIT" ]
alipay/antchain-openapi-prod-sdk
deps/csharp/core/Models/SaveAppbaselineSidecarResponse.cs
748
C#
using System; using System.Collections.Generic; namespace SchoolSystem.Framework.Core { public class SchoolSystemDataCollection<T> : ISchoolSystemDataCollection<T> { private readonly IDictionary<int, T> entities; public SchoolSystemDataCollection() { this.entities = new Di...
21.634146
79
0.537768
[ "MIT" ]
shakuu/Exams
DesignPatternsExam/DesignPatternsExam/Exam/SchoolSystem.Framework/Core/SchoolSystemDataCollection.cs
889
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Portions derived from React Native: // Copyright (c) 2015-present, Facebook, Inc. // Licensed under the MIT License. using Newtonsoft.Json.Linq; using ReactNative.UIManager; using ReactNative.UIManager.Annotations; #if WINDOWS_UWP using ReactNative.Access...
38.862745
132
0.591322
[ "MIT" ]
MikeHillberg/react-native-windows
ReactWindows/ReactNative.Shared/Views/View/ReactViewManager.cs
11,892
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Wx...
35.965517
84
0.74209
[ "Apache-2.0" ]
PervasiveDigital/AcuriteWxStation
src/WxStationNode/Properties/AssemblyInfo.cs
1,046
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
35.988636
151
0.649511
[ "Apache-2.0" ]
Murcho/aws-sdk-net
sdk/src/Services/CloudWatchLogs/Generated/Model/Internal/MarshallTransformations/DisassociateKmsKeyRequestMarshaller.cs
3,167
C#
//----------------------------------------------------------------------- // <copyright file="ActorLifeCycleSpec.cs" company="Akka.NET Project"> // Copyright (C) 2009-2019 Lightbend Inc. <http://www.lightbend.com> // Copyright (C) 2013-2019 .NET Foundation <https://github.com/akkadotnet/akka.net> // </copyrigh...
35.121951
155
0.508333
[ "Apache-2.0" ]
chrillejb/akka.net
src/core/Akka.Tests/Actor/ActorLifeCycleSpec.cs
14,402
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src...
34.449315
112
0.539685
[ "MIT" ]
belav/runtime
src/tests/JIT/HardwareIntrinsics/X86/Avx/ConvertToVector128Single.Double.cs
12,574
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...
32.369565
137
0.585964
[ "ECL-2.0", "Apache-2.0" ]
RafalSumislawski/pulumi-aws
sdk/dotnet/Mq/Inputs/BrokerLdapServerMetadataGetArgs.cs
2,980
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
21.877451
137
0.651132
[ "Apache-2.0" ]
aliyun/aliyun-openapi-net-sdk
aliyun-net-sdk-polardb/Polardb/Model/V20170801/TransformDBClusterPayTypeRequest.cs
4,463
C#
// <auto-generated> /* * OpenAPI Petstore * * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generato...
32.336134
159
0.593295
[ "Apache-2.0" ]
BitCaesar/openapi-generator
samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/Banana.cs
3,848
C#
using RestWithASPNET.Model.Base; using System.Collections.Generic; namespace RestWithASPNET.Repository { public interface IRepository<T> where T : BaseEntity { T Create(T item); T FindByID(long id); List<T> FindAll(); T Update(T item); void Delete(long id); bool...
24.823529
56
0.623223
[ "Apache-2.0" ]
dschaly/RESTWithASP-NET5
02_RestWithASPNET_Person/RestWithASPNET/RestWithASPNET/Repository/Generic/IRepository.cs
424
C#
using System.Diagnostics; using Summer.Base.Model; using Spring.Util; using UnityEditor; using UnityEngine; namespace Summer.Editor.Misc { /// <summary> /// 打开文件夹相关的实用函数。 /// </summary> public class OpenFolderTools { /// <summary> /// 打开 Data Path 文件夹。 /// </summary> ...
29.891566
151
0.545748
[ "MIT" ]
Mu-L/Tank
Assets/Summer/Editor/Misc/OpenFolderTools.cs
2,613
C#
using System; namespace VoxViewer.DesktopGL { /// <summary> /// The main class. /// </summary> public static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { using...
18.857143
53
0.479798
[ "MIT" ]
Jjagg/Bawx
VoxViewer.DesktopGL/Program.cs
398
C#
using IndicoInterface.NET.SimpleAgendaDataModel; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace t_IndicoInterface { /// <summary> /// Summary description for t_SimpleAgendaDataModel /// </summary> [TestClass] public class t_SimpleAgendaDataModel { [TestMethod] pu...
35.025641
106
0.57101
[ "MIT" ]
gordonwatts/IndicoInterface.NET
IndicoInterface.NET.Test/t_SimpleAgendaDataModel.cs
1,368
C#
using PipServices.Commons.Config; using PipServices.Commons.Validate; using System; using System.Collections.Generic; using System.Text; namespace PipServices.Settings.Data.Version1 { public class SettingsV1Schema : ObjectSchema { public SettingsV1Schema() { WithOptionalProperty("i...
27
84
0.693957
[ "MIT" ]
pip-services-infrastructure/pip-services-settings-dotnet
src/Data/Version1/SettingsV1Schema.cs
515
C#
// ---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // ---------------------------------------------------------------------------- using System; namespace Microsoft.WindowsAzure.MobileServices { /// <summary> /// Attrib...
31.228571
80
0.53065
[ "Apache-2.0" ]
AndreyMitsyk/azure-mobile-apps-net-client
src/Microsoft.Azure.Mobile.Client/Table/Serialization/CreatedAtAttribute.cs
1,095
C#
using Abstractions; using Abstractions.Navigation; using Abstractions.Stores.Content.Safety; using DataObjects; using DataObjects.DTOS.TreePlanting; using EDCORE.Helpers; using MvvmHelpers; using INavigation = Abstractions.Navigation.INavigation; namespace EDCORE.ViewModel { public class TreePlantingSearchMode...
33.746032
145
0.681562
[ "MIT" ]
GeorgeThackrayWT/GraphQLSample
ED/EDCORE/ViewModel/TreePlanting/TreePlantingSearchModel.cs
2,128
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { //code to call feature1 Program p = new Program(); Console.WriteLine...
18.375
44
0.544218
[ "MIT" ]
supreethbks26/gitvisiual
ConsoleApp1/ConsoleApp1/Program.cs
443
C#
using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using WForest.Interactions; using WForest.Props.Interfaces; using WForest.Rendering; using WForest.Utilities.Collections; using WForest.Widgets.Interfaces; namespace WForest.Utilities.WidgetUtils { public abstract class WidgetDecorator...
26.039474
89
0.578575
[ "MIT" ]
giusdp/MG-WForest
WForest/src/Utilities/WidgetUtils/WidgetDecorator.cs
1,981
C#
#region License // TableDependency, SqlTableDependency // Copyright (c) 2015-2018 Christian Del Bianco. All rights reserved. // // 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 // ...
31.646154
97
0.672825
[ "MIT" ]
GeorgeR/monitor-table-change-with-sqltabledependency
TableDependency/EventArgs/ErrorEventArgs.cs
2,059
C#
 using System; namespace StatelessIdentity.UserProviders.Discord.RestClient { public static class Defaults { public static TimeSpan HttpClientTimeout = TimeSpan.FromSeconds(10); public static string TokenUrl = "https://discord.com/api/oauth2/token"; public static string GetUserUrl = "h...
27.923077
79
0.710744
[ "MIT" ]
shawntoffel/StatelessIdentity
StatelessIdentity.UserProviders.Discord/RestClient/Defaults.cs
365
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. 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 * ...
30.291667
81
0.601559
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet
TencentCloud/Dayu/V20180709/Models/DescribeUnBlockStatisResponse.cs
2,285
C#
// // Copyright (c) Seal Report (sealreport@gmail.com), http://www.sealreport.org. // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. http://www.apache.org/licenses/LICENSE-2.0.. // using System; using System.Collections.Generic; using Sy...
42.022321
234
0.537894
[ "Apache-2.0" ]
Superdrug-innovation/Seal-Report
Projects/SealLibraryWin/Helpers/Helper.cs
47,071
C#
using System; using System.IO; namespace Bing.Utils.Helpers { /// <summary> /// 常用公共操作 /// </summary> public static class Common { /// <summary> /// 获取类型 /// </summary> /// <typeparam name="T">类型</typeparam> /// <returns></returns> public static Type...
26.075949
91
0.482039
[ "MIT" ]
ivivioutlookcom/Bing.NetCore
src/Bing.Utils/Helpers/Common.cs
2,140
C#
namespace Ding.Ui.Builders { /// <summary> /// 表单生成器 /// </summary> public class FormBuilder : TagBuilder { /// <summary> /// 初始化表单生成器 /// </summary> public FormBuilder() : base( "form" ) { } } }
19.769231
47
0.470817
[ "MIT" ]
EnhWeb/DC.Framework
src/Ding.Ui.Core/Builders/FormBuilder.cs
285
C#
using System; using CMS.FormEngine; using CMS.FormEngine.Web.UI; using CMS.Helpers; using CMS.UIControls; public partial class CMSModules_AdminControls_Controls_Class_FieldEditor_CSSsettings : CMSUserControl { #region "Variables" private FormFieldInfo ffi; #endregion #region "Parameters" //...
37.814103
180
0.708764
[ "MIT" ]
BryanSoltis/KenticoMVCWidgetShowcase
CMS/CMSModules/AdminControls/Controls/Class/FieldEditor/CSSsettings.ascx.cs
5,901
C#
// ********************************************************************* // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License // ********************************************************************* using System; using System.Collections.Generic; using System.Linq.Expressions...
45.156863
136
0.626574
[ "MIT" ]
Bhaskers-Blu-Org2/TrillSamples
TrillSamples/RulesEngine/RulesAggregate.cs
2,305
C#
using Newtonsoft.Json; namespace Discord.API { public class VoiceState { [JsonProperty("guild_id")] public ulong? GuildId { get; set; } [JsonProperty("channel_id")] public ulong? ChannelId { get; set; } [JsonProperty("user_id")] public ulong UserId { get; set; }...
29.185185
45
0.568528
[ "MIT" ]
Joe4evr/Discord.Net
src/Discord.Net/API/Common/VoiceState.cs
790
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.Collections; using System.Drawing; using System.Drawing.Imaging; using System.Globalization; using Xuni...
53.826087
152
0.640711
[ "MIT" ]
Adam25T/corefx
src/System.Windows.Extensions/tests/System/Drawing/ImageFormatConverterTests.cs
12,380
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; /// <summary> /// Summary description for Calculator /// </summary> public class Calculator { public double Add(double a, double b) { return a + b; } public double Subtract(double a, double b) { return a - b; } ...
15.4
44
0.640693
[ "MIT" ]
lizhen325/ASP.NET
ch06/App_Code/Calculator.cs
464
C#
// Copyright (c) 2014 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, cop...
34.238095
99
0.732267
[ "Apache-2.0" ]
sak9188/WinIO2
WinIO/WinIO/AvalonEdit/Rendering/TextLayer.cs
2,876
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace SAF.MM.Api { /// <summary> /// 经验值管理 /// </summary> [RoutePrefix("api/mm/exppoints")] public class ExppointsController : ApiController { } }
17.333333
52
0.669872
[ "Apache-2.0" ]
ericzzhou/SAF
SAF.MM/SAF.MM.Api/ExppointsController.cs
324
C#
using Newtonsoft.Json; using System.Collections.Generic; using System.Linq; using Wox.Plugin.Program.Programs; namespace Wox.Plugin.Program { public class Settings { [JsonIgnore] public IEnumerable<IProgramSource> ProgramSources => Sources.Cast<IProgramSource>().ToList(); public List<ProgramSource> Sou...
26.62069
95
0.654145
[ "MIT" ]
lord-executor/Wox
Plugins/Wox.Plugin.Program/Settings.cs
774
C#
namespace AVLTree { using System; public class AVL<T> where T : IComparable<T> { private Node<T> root; public Node<T> Root { get; private set; } public bool Contains(T item) { var node = this.Search(this.Root, item); return node != null; ...
24.675159
78
0.419205
[ "MIT" ]
marinakolova/CSharp-Courses
Data-Structures-Advanced-with-CSharp-October-2020/01-B-Trees-2-3-Trees-and-AVL-Trees-Lab/AVLTree/AVL.cs
3,876
C#
using System; using Aragas.Core.Data; using Aragas.Core.IO; using Aragas.Core.Packets; using ProtocolModern.Enum; namespace ProtocolModern.Packets.Client.Play { public class EntityEffectPacket : ProtobufPacket { public Int32 EntityID; public SByte EffectID; public SByte Amplifier; public Int16 Durati...
22.439024
76
0.68587
[ "MIT" ]
MineLib/ProtocolModern_1.7.10
Packets/Client/Play/0x1D_EntityEffectPacket.cs
920
C#
using NUnit.Framework; using System; namespace Azure.ApplicationModel.Configuration.Tests { public static class TestEnvironment { public static ConfigurationClient GetClient() { var connectionString = Environment.GetEnvironmentVariable("APP_CONFIG_CONNECTION"); Assert.N...
31.3125
120
0.718563
[ "MIT" ]
HanLiMS/azure-sdk-for-net
src/SDKs/Azure.ApplicationModel.Configuration/data-plane/Azure.ApplicationModel.Configuration.Tests/TestEnvironment.cs
503
C#
using System; using System.Collections.Generic; using System.Linq; using FPCSharpUnity.unity.Data; using FPCSharpUnity.core.exts; using FPCSharpUnity.unity.Functional; using FPCSharpUnity.core.reactive; using NUnit.Framework; using FPCSharpUnity.core.concurrent; using FPCSharpUnity.core.data; using FPCSharpUnity.core...
29.735652
99
0.628495
[ "MIT" ]
FPCSharpUnity/FPCSharpUnity
parts/0000-library/Assets/Vendor/FPCSharpUnity/Test/Concurrent/FutureTest.cs
17,100
C#
using System; using UnityEngine; using UnityEngine.UI; using GameNet; using LitJson; namespace Client.UI { public partial class UIModifyWindow { private void _initCenter(GameObject go) { btn_sure = go.GetComponentEx<Button> (Layout.btn_sure); btn_getRegist = go.GetComponentEx<Button> (Layou...
25.920152
92
0.648086
[ "Apache-2.0" ]
rusmass/wealthland_client
arpg_prg/nativeclient_prg/Assets/Code/Client/UI/UIModify/UIModifyWindowCenter.cs
7,053
C#
namespace ResponsiveImagePicker.Models { public class Crop { public string Name { get; set; } public int Width { get; set; } public int Height { get; set; } public int BreakPoint { get; set; } public Coordinates Coordinates { get; set; } } }
26.727273
52
0.588435
[ "MIT" ]
ryanhelmn-co-uk/Umbraco-Responsive-Image-Picker
src/ResponsiveImagePicker/Models/Crop.cs
296
C#
using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Globalization; using System.Linq; using Loretta.CodeAnalysis.Lua.Utilities; using Loretta.CodeAnalysis.Text; using static Tsu.Option; namespace Loretta.CodeAnalysis.Lua.Syntax.UnitTests.Lexical { internal static class...
38.557078
170
0.488986
[ "MIT" ]
GGG-KILLER/Loretta
src/Compilers/Lua/Test/Syntax/Lexical/LexicalTestData.cs
8,449
C#
using System; namespace Tacto.Core { public class Category { public const string EtqCategoryAll = "all"; public Category(String name) { this.name = Decode( name ); } public static string Decode(string name) { name = name.Trim().ToLower(); if ( name.Length > 0 ) { name = name.Replac...
16.780488
59
0.577035
[ "MIT" ]
Baltasarq/Tacto
Core/Category.cs
688
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNet.Mvc; using Microsoft.Framework.Caching.Memory; using Microsoft.Framework.Expiration.Interfaces; namespace MvcT...
34.16
111
0.699063
[ "Apache-2.0" ]
walkeeperY/ManagementSystem
test/WebSites/MvcTagHelpersWebSite/Components/ProductsViewComponent.cs
856
C#
using ControleDeAulas.Model.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ControleDeAulas.Model { public class Faixa { private IFaixa _faixa; public int Id { get; set; } public string NFaixa { get; set; } public str...
16.4375
40
0.686312
[ "MIT" ]
RodolfoGaspar/ControleDeAulas
Source/Movvimento.Model/Faixa.cs
528
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Crestron.SimplSharp; using Crestron.SimplSharpPro.EthernetCommunication; using PepperDash.Core; using PepperDash.Essentials.Core; namespace PepperDash.Essentials.Room.MobileControl { /// <summary> /// Represents a generic d...
19.22973
121
0.721363
[ "MIT" ]
JaytheSpazz/Essentials
PepperDashEssentials/AppServer/MobileControlDdvc01DeviceBridge.cs
2,848
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...
25.58
81
0.585614
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Media/V20180601Preview/Outputs/EnabledProtocolsResponse.cs
1,279
C#
using System; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; using NetOffice.MSFormsApi; namespace NetOffice.MSFormsApi.Behind { /// <summary> /// DispatchInterface IWHTMLOption /// SupportByVersion MSForms, 2 /// </summary> [SupportByVersion("MSForms", 2)] [EntityTyp...
22.023392
129
0.647637
[ "MIT" ]
igoreksiz/NetOffice
Source/MSForms/Behind/DispatchInterfaces/IWHTMLOption.cs
3,768
C#
using System; using System.Collections.Generic; using System.Text; using System.Data.Sql; using System.Data.SqlClient; using System.Data.SqlTypes; using System.Transactions; using NUnit.Framework; using NW = alby.northwind.codegen; namespace alby.northwind.codegen.test.view { [TestFixture] public c...
30.766355
141
0.720231
[ "MIT" ]
casaletto/alby.northwind.2015
alby.northwind.codegen.test/view/Alphabetical_list_of_productsNoTransactions.cs
3,297
C#
namespace ClothingStore.Server.Data { using ClothingStore.Server.Models; using ClothingStore.Server.Data.Models; using ClothingStore.Server.Data.Configurations; using Microsoft.EntityFrameworkCore; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; public class ClothingStoreDbContext : ...
35.5625
87
0.678969
[ "MIT" ]
deyanstoyanov10/Clothes-Store
ClothingStore.Server/ClothingStore.Server/Data/ClothingStoreDbContext.cs
1,709
C#
using System.Net.Http; namespace Telegram.Bot.Requests { public class ParameterlessRequest<TResult> : RequestBase<TResult> { public ParameterlessRequest(string methodName) : base(methodName) { } public ParameterlessRequest(string methodName, HttpMethod method) ...
26.421053
73
0.653386
[ "MIT" ]
Akshay-Gupta/Telegram.Bot
src/Telegram.Bot/Requests/ParameterlessRequest.cs
504
C#
public static class AssemblyLine { private const int ProductionRatePerHourForDefaultSpeed = 221; public static double ProductionRatePerHour(int speed) => ProductionRatePerHourForSpeed(speed) * SuccessRate(speed); private static int ProductionRatePerHourForSpeed(int speed) => ProductionRate...
25.592593
66
0.642547
[ "MIT" ]
EarthlingRich/v3
languages/csharp/exercises/concept/numbers/.meta/Example.cs
691
C#
namespace Zinnia.Data.Type.Transformation.Conversion { using System; using UnityEngine; using UnityEngine.Events; /// <summary> /// Transforms a boolean value to the equivalent float value. /// </summary> /// <example> /// false = 0f /// true = 1f /// </example> public clas...
27.850746
102
0.504287
[ "MIT" ]
ExtendRealityLtd/VRTK.Unity.Core
Runtime/Data/Type/Transformation/Conversion/BooleanToFloat.cs
1,868
C#
namespace Be.Vlaanderen.Basisregisters.Shaperon { using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using Albedo; using AutoFixture; using AutoFixture.Idioms; using Xunit; public class DbaseDoubleTests { private re...
32.915423
120
0.477706
[ "MIT" ]
Informatievlaanderen/shaperon
test/Be.Vlaanderen.Basisregisters.Shaperon.Tests/DbaseDoubleTests.cs
13,232
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using WslManager.Models; namespace WslManager.External { static class DistroManager { public static WindowsVersionManager windowsVersionManager = new WindowsVersionManager()...
31.995614
124
0.568197
[ "MIT" ]
anaymalpani/WSLMANAGER
src/WslManager/External/DistroManager.cs
7,297
C#
// // Etheria Emergent Behaviour Framework. // // Copyright (C) 2018 Isaac Dart (www.linkedin.com/in/isaacdart) // // 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, inc...
33.27439
127
0.596298
[ "MIT" ]
Mann1ng/EtheriaEmergentBehaviourFramework
Assets/Etheria/Scripts/FlockingBehaviour.cs
5,459
C#
using System; using System.Threading.Tasks; using System.Windows.Forms; using appInfo = Aneejian.PowerPoint.Downsizer.AddIn.Fickles.AppInfo; namespace Aneejian.PowerPoint.Downsizer.AddIn { public partial class AboutBox : Form { public AboutBox() { InitializeComponent(); ...
34.025641
99
0.628485
[ "MIT" ]
kannansuresh/PowerPoint-Downsizer-Add-In
src/Aneejian.PowerPoint.Downsizer.AddIn/AboutBox.cs
1,329
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Ru...
37.583333
84
0.746489
[ "Apache-2.0" ]
mehrandvd/Tralus
Selonia/Selonia.Accounting/Runner.Web/Properties/AssemblyInfo.cs
1,356
C#
using System; using System.IO; using System.Linq; using System.Threading.Tasks; using DotNetOpen.FileService; using DotNetOpen.FileService.Configuration; namespace DotNetOpen.FileService { /// <inheritdoc/> public class FileService : IFileService { private readonly IFileServiceConfig _fileServiceC...
41.926247
334
0.566691
[ "MIT" ]
DaniAsh551/DotNetOpen
FileService/DotNetOpen.FileService/FileService.cs
19,330
C#
// Ball.cs // A simple class to encapsulate the game ball using System; using System.Collections.Generic; using System.Text; using Microsoft.Xna.Framework; namespace Chapter13 { class Ball : GameObject { protected float m_DX; public float DX { get { return m...
17.9
47
0.506518
[ "MIT" ]
MoreOnCode/MyXnaBookSource
XNA-2.x/Part 2 - Genre Studies/CH13 - Ping Pong/Ball.cs
537
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. using System; using System.Collections.Generic; using System.Drawing; using BGSObjectDetector; namespace LineDetector { class DetectionLine { public static int MIN_BOX_SIZE = 1000;//smaller boxes than this will go. p...
30.954839
115
0.484368
[ "MIT" ]
AshishVale/live-video-analytics
ref-apps/rocket/csharp/src/VAP/LineDetector/DetectionLine.cs
4,800
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.CompilerServices; using System.Threading.Tasks; using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.Editor; namespace lpubsppop01.AnyTextFilterVSIX { class FilterRunner ...
37.290657
149
0.56899
[ "MIT" ]
lpubsppop01/AnyFilterVSIX
AnyTextFilterVSIX/UserInput/FilterRunner.cs
10,779
C#
using System.Collections.Generic; using System; namespace ClassLibrary { public class clsCustomerCollection { //Private data member for the list List<clsCustomer> mCustomerList = new List<clsCustomer>(); //Private data member for ThisCustomer clsCustomer mThisCustomer = new c...
38.853503
115
0.58459
[ "Apache-2.0" ]
IMAT2207/Dawn-Johnston
ClassLibrary/clsCustomerCollection.cs
6,102
C#
using System; using System.Collections.Generic; using System.ComponentModel; using Windows.Foundation.Metadata; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using WBrush = Windows.UI.Xaml.Media.Brush; using WSolidColorBrush = Windows.UI.Xaml.Media.SolidColorBrush; namespace Xamarin.Forms.Platform.UWP { [Wi...
32.288591
148
0.755699
[ "MIT" ]
BenLampson/maui
src/Platform.Renderers/src/Xamarin.Forms.Platform.UAP/Shell/ShellRenderer.cs
14,435
C#
namespace Jambo.Producer.UI.Filters { using Jambo.Domain.Exceptions; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; ...
31.071429
91
0.664368
[ "Apache-2.0" ]
Baldotto/jambo-event-sourcing
source/Producer/Jambo.Producer.UI/Filters/DomainExceptionFilter.cs
872
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.Collections.Generic; using Microsoft.Azure.Management.EventGrid; using Microsoft.Azure.Management.EventGrid.Models; using Microsoft.Res...
46.409091
147
0.713026
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/eventgrid/Microsoft.Azure.Management.EventGrid/tests/Tests/ScenarioTests.TopicTypeTests.cs
2,042
C#
using UnityEngine; using System.Collections; public class Plank2 : MonoBehaviour { private bool mB; private int mDecr; // Use this for initialization void Start () { mB=false; } // Update is called once per frame void Update () { if (!mB) if (Light2.mL) { ...
15.83871
42
0.480652
[ "MIT" ]
Cosmin96/HackEscape
Assets/Plank2.cs
493
C#
namespace ClassLib109 { public class Class042 { public static string Property => "ClassLib109"; } }
15
55
0.633333
[ "MIT" ]
333fred/performance
src/scenarios/weblarge2.0/src/ClassLib109/Class042.cs
120
C#
/**********************************************************\ | | | XXTEA.cs | | | | XXTEA encryption algorithm library for .NET. | | ...
31.505085
173
0.425651
[ "MIT" ]
FDKPIBC/Taiwu_Mods_Tools
unity-mod-manager/UnityModManager/xxtea.cs
9,296
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
33.486957
114
0.632563
[ "Apache-2.0" ]
amazon-archives/aws-sdk-xamarin
AWS.XamarinSDK/AWSSDK_Android/Amazon.CognitoIdentity/Model/UnlinkDeveloperIdentityRequest.cs
3,851
C#
using System; using Bisner.Mobile.Core.ViewModels.Booking; using MvvmCross.Binding.iOS.Views; using UIKit; namespace Bisner.Mobile.iOS.Views.ItemViews { public partial class TimeLineItemView : MvxCollectionViewCell { public TimeLineItemView(IntPtr handle) : base(handle) { } pub...
23.571429
65
0.421549
[ "MIT" ]
phoenix214/BisnerXamarin
Bisner.Mobile.iOS/Views/ItemViews/TimeLineItemView.cs
1,485
C#
namespace ProgressBarDemos; public partial class App : Application { public App() { InitializeComponent(); MainPage = new NavigationPage(new MainPage()); } }
14
48
0.720238
[ "MIT" ]
davidbritch/dotnet-maui-samples
UserInterface/Views/ProgressBarDemos/ProgressBarDemos/App.xaml.cs
170
C#
namespace _5.Mordor_sCrueltyPlan.FoodModels { public class Other : Food { public Other() : base(-1) { } } }
14.272727
44
0.484076
[ "MIT" ]
V-Uzunov/Soft-Uni-Education
07.C#OOPBasic/03.Inheritance/05.MordorCrueltyPlan/FoodModels/Other.cs
159
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _01.SumOfAllElementsOfMatrix { class SumOfAllElementsOfMatrix { static void Main(string[] args) { var size = Console.ReadLine().Split(new[] { ',' }, StringS...
29.473684
134
0.529464
[ "MIT" ]
deathstardestoryer/Soft-Uni
C# Advanced/Multidimensional Arrays - Lab/01. SumOfAllElementsOfMatrix/SumOfAllElementsOfMatrix.cs
1,122
C#
using System; using System.Collections.Generic; using System.Text; namespace BlogDemo.Core.Interfaces { public interface IEntity { int Id { get; set; } } }
14.833333
34
0.668539
[ "Apache-2.0" ]
corewithharry/ASP.NETCoreWebAPI
BlogDemo/BlogDemo.Core/Interfaces/IEntity.cs
180
C#
namespace TheBookProject.Web { using System.Reflection; using System.Web; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; using App_Start; using Infrastructure.Mapping; #pragma warning disable SA1649 // File name must match first type name public class M...
32.151515
70
0.679548
[ "MIT" ]
The-Book-Project/The-Book-Project
Web/TheBookProject.Web/Global.asax.cs
1,063
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.Text; using System.Reflection; using System.Diagnostics; using System.Globalization; usi...
36.870192
198
0.625896
[ "MIT" ]
LaudateCorpus1/corert
src/System.Private.Reflection.Core/src/System/Reflection/Runtime/PropertyInfos/NativeFormat/NativeFormatRuntimePropertyInfo.cs
7,671
C#
using System; class Program { static void Main(string[] args) { string expression = "(((3.5 * 4.5) / (1 + 2)) + 5)"; Console.WriteLine(string.Format("{0} = {1}", expression, new Expression.ExpressionTree(expression).Value)); Console.WriteLine("\nShow's over folks, press a key to exit"); Console.Rea...
21.109541
111
0.490793
[ "MIT" ]
dockerian/go-shuati
ds/exp/eval.cs
5,974
C#
namespace Bitmischief.Meridios.SmugMug.Entities { public enum FlipEnum { None, Horizontal, Vertical } }
10.285714
47
0.576389
[ "MIT" ]
zurfluha/SmugMugApiV2
Bitmischief.Meridios.SmugMug.Entities/Enums/FlipEnum.cs
144
C#
using System; using System.Collections; using System.Collections.Generic; namespace rm.Extensions { /// <summary> /// Defines circular queue methods. /// </summary> public interface ICircularQueue<T> { /// <summary> /// Enqueues <paramref name="x"/> into queue. /// </summary> void Enqueue(T x); /// <s...
16.650246
80
0.58284
[ "MIT" ]
SammyEnigma/csharp-extensions
src/rm.Extensions/CircularQueue.cs
3,382
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("pro...
38
84
0.750356
[ "MIT" ]
meviktor/Microsoft-Exam-Ref-70-483
programmingincsharp/programmingincsharp/Properties/AssemblyInfo.cs
1,409
C#
// Copyright 2017 DAIMTO ([Linda Lawton](https://twitter.com/LindaLawtonDK)) : [www.daimto.com](http://www.daimto.com/) // // 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.apa...
45.957831
182
0.610958
[ "Apache-2.0" ]
AhmerRaza/Google-Dotnet-Samples
Samples/DLP API/v2beta1/ContentSample.cs
7,631
C#
using System; using System.Collections.Generic; using System.Linq; using System.ComponentModel; using System.Threading.Tasks; using System.Collections.Concurrent; namespace LionFire.Trading.Workspaces { public class SignalViewModelBase : INotifyPropertyChanged { public Session Session { get; set; } ...
24.712121
123
0.632128
[ "MIT" ]
LionFire/Trading
src/LionFire.Trading/Workspaces/Sessions/Signals/SignalViewModelBase.cs
1,633
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.DocAsCode.Build.Common { using System; using System.Collections.Generic; using System.Linq; using System.IO; using Sys...
39.276923
176
0.568939
[ "MIT" ]
Algorithman/docfx
src/Microsoft.DocAsCode.Build.Common/Reference/OverwriteDocumentReader.cs
4,979
C#
using System.Collections.Generic; using System.Threading.Tasks; using WebWallet.ViewModels.Goal; namespace WebWallet.Services.GoalServices { public interface IGoalService { Task<bool> Create(GoalVM goalVM, string username); Task<bool> Update(GoalVM goalVM); Task<bool> Delete(string go...
23.157895
58
0.702273
[ "MIT" ]
VangelHristov/WebWallet
WebWallet.Services/GoalServices/IGoalService.cs
440
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace QuestLike { public class CollectionManager: IHaveCollections { private List<ICollection> collections = new List<ICollection>(); ...
21.521127
72
0.498037
[ "MIT" ]
Liam-Harrison/QuestLike
QuestLike/Game/Collection System/CollectionManager.cs
1,530
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; namespace Daliboris.Slovniky.Svoboda { public class Heslar : Slovniky.Heslar { public void HeslarXml(string strVstupniSoubor, string strVystupniSoubor) { Dictionary<string, ZpracovatTagProHeslarXml> gdZpraco...
36.625
118
0.760239
[ "BSD-3-Clause" ]
RIDICS/ITJakub
UJCSystem/ITJakub.Xml.Conversion/Daliboris.Texty.Export.Slovniky.Svoboda/Heslar.cs
1,174
C#
// 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 GeoAPI.Geometries; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using NetTopologySuite.IO; namespace Microsoft.EntityFrameworkCo...
40.896552
111
0.674536
[ "Apache-2.0" ]
Alecu100/EntityFrameworkCore
src/EFCore.Sqlite.NTS/Storage/ValueConversion/Internal/GeometryValueConverter.cs
1,188
C#
using ResultFunctional.Models.Enums; using ResultFunctional.Models.Interfaces.Errors.Base; namespace ResultFunctional.Models.Interfaces.Errors.DatabaseErrors { /// <summary> /// Ошибка таблицы базы данных /// </summary> public interface IDatabaseAccessErrorResult : IDatabaseErrorResult { } }
28.545455
70
0.757962
[ "MIT" ]
rubilnik4/ResultFunctional
ResultFunctional/Models/Interfaces/Errors/DatabaseErrors/IDatabaseAccessErrorResult.cs
339
C#
using App.Model.Base; using System.ComponentModel.DataAnnotations.Schema; namespace App.Model { [Table("Vacation.Availability")] public class VacationAvailability : EEntityBase { } }
20.777778
52
0.786096
[ "MIT" ]
zagorec92/VacationCalendar
API/App.Domain/VacationAvailability.cs
189
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls.Primitives; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using PWPlanner...
30.397059
133
0.605225
[ "MIT" ]
ColdUnwanted/PWPlanner
PWPlanner/Core/TileHistory.cs
2,069
C#
namespace Buildings.Domain.Exceptions { public class BuildingTypeNotSetInPrefabException : BuildingException { public BuildingTypeNotSetInPrefabException(string message = null) : base(message) {} } }
31.428571
92
0.754545
[ "MIT" ]
ananttheant/dynamic-walls-demo
Assets/Scripts/Buildings/Domain/Exceptions/BuildingTypeNotSetInPrefabException.cs
222
C#
using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Collections.Generic; using System.Linq; using System.Text; using Dexter.Analyzer.Tests.Helpers; namespace Dexter.Analyzer.Tests.Helpers { //...
50.970588
197
0.579919
[ "BSD-2-Clause" ]
SRPOL/Dexter
project/dexter-vs/Dexter/Analyzer/Tests/Helpers/DiagnosticVerifier.cs
13,866
C#
namespace KitchenGeeks { partial class frmPlayerResults { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
46.930556
165
0.58501
[ "Apache-2.0" ]
DeusInnomen/LuciusIncidentLogbook
LuciusIncidentLogbook/frmPlayerResults.Designer.cs
13,518
C#
namespace ShowCastApi.Settings { public class FunctionSettings { public string CosmosDbAccountEndpoint { get; set; } public string CosmosDbAccountKey { get; set; } } }
21.888889
59
0.670051
[ "MIT" ]
evilpilaf/TvMaze
src/Hosts/ShowCastApi/Settings/FunctionSettings.cs
199
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
43.860465
175
0.65836
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/KinesisAnalyticsV2/Generated/Model/Internal/MarshallTransformations/AddApplicationOutputResponseUnmarshaller.cs
5,658
C#
using System.Collections.Generic; using Core.Entities.Products; namespace API.Dtos.Product { public class ProductToReturnDto { public int Id { get; set; } public string Name { get; set; } public string Description { get; set; } public decimal Price { get; set; } public ...
36.347826
78
0.633971
[ "MIT" ]
ZakariaDjebbes/DzTechly
API/Dtos/Product/ProductToReturnDto.cs
838
C#
using System; namespace XP.SDK.XPLM { /// <summary> /// <para> /// XPLM Texture IDs name well-known textures in the sim for you to use. This /// allows you to recycle textures from X-Plane, saving VRAM. /// </para> /// <para> /// *Warning*: do not use these enums. The only remaining u...
26.809524
82
0.603908
[ "MIT" ]
fedarovich/xplane-dotnet
src/XP.SDK/XPLM/TextureID.Generated.cs
563
C#
// Copyright (c) Gregg Miskelly. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.Text; namespace BaseballParser.Retrosheet { public enum EventLogRecordKind { /// <su...
26.189873
125
0.559207
[ "MIT" ]
gregg-miskelly/baseball
src/BaseballParser/Retrosheet/EventLogRecordKind.cs
2,071
C#
using System; using System.Collections.Generic; using System.Text; using ProtoBuf; using UnityEngine; namespace NetWorkingCSharp { public enum EType : Int32 { Error = 0, WELCOME, MSG, UPDATENAME, BEGINPLAY, PLAYERREADY, DISCONNECT, ...
32.924051
156
0.549404
[ "MIT" ]
natheu/UnoNetWorking
UnoNetWorkingJudicaelNathan/Assets/Script/Networking/Header.cs
2,603
C#