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.Collections.Generic; using System.Linq; using Foundation; using UIKit; namespace GroupingSampleListView { public class Application { // This is the main entry point of the application. static void Main (string[] args) { // if you want to use a different Application Delegate clas...
19.681818
82
0.725173
[ "Apache-2.0" ]
15217711253/xamarin-forms-samples
UserInterface/ListView/Grouping/groupingSampleListView/iOS/Main.cs
435
C#
using System; namespace mysql.demo.Models { public class Actor { private DbContext context; public int ActorId {get; set;} public string FirstName {get; set;} public string LastName {get; set;} public DateTime LastUpdate {get; set;} } }
22.230769
46
0.619377
[ "Apache-2.0" ]
bomlinh/mysql.demo
Models/Actor.cs
289
C#
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using War3Api.Object.Abilities; using War3Api.Object.Enums; using War3Net.Build.Object; using War3Net.Common.Extensions; namespace War3Api.Object.Abilities { public sealed class DreadlordInferno : Ability ...
69.577778
168
0.721575
[ "MIT" ]
YakaryBovine/AzerothWarsCSharp
src/War3Api.Object/Generated/1.32.10.17734/Abilities/DreadlordInferno.cs
12,524
C#
namespace MicroLite.Tests.Configuration { using System; using MicroLite.Configuration; using MicroLite.Dialect; using MicroLite.Driver; using Moq; using Xunit; /// <summary> /// Unit Tests for the <see cref="SQLiteConfigurationExtensions"/> class. /// </summary> pub...
41.626667
162
0.629725
[ "Apache-2.0" ]
orangesocks/MicroLite
MicroLite.Database.SQLite.Tests/Configuration/SQLiteConfigurationExtensionsTests.cs
3,050
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // Ported to managed code from c_is2022.c and related iso 2022 dll files from mlang // // Abstract: // // Managed implementation of ISO 2022 code pages, ported from the im...
40.98794
162
0.447886
[ "MIT" ]
belav/runtime
src/libraries/System.Text.Encoding.CodePages/src/System/Text/ISO2022Encoding.cs
84,968
C#
using System.ComponentModel; namespace Transloadit { public class ApiRequestMethods { #region Public enums /// <summary> /// Available request methods /// </summary> public enum RequestMethod { /// <summary> /// Used for GET requests ...
19.674419
40
0.408983
[ "MIT" ]
igofed/transloadit-csharp-sdk
src/ApiRequestMethods.cs
848
C#
using System; using System.Collections; using System.Collections.Generic; using FileHelpers; namespace ExamplesFx { //-> Name:Sort Big File with Record Class //-> Runnable:false //-> Description:Shows how to sort a big file using a record class public class BigFileSort : ExampleBa...
26.575342
119
0.557732
[ "MIT" ]
aim00ver/FileHelpers
FileHelpers.Examples/Examples/60.Sorting/10.SortBigFiles.cs
1,942
C#
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // ass...
41.446429
97
0.740629
[ "MIT" ]
keedba65/ShuffleiTunesPlaylist
ShuffleiTunesPlaylist/Properties/AssemblyInfo.cs
2,324
C#
using Hangfire; var builder = WebApplication.CreateBuilder(args); builder.Services.AddMachine() .AddMongoDataAccess(builder.Configuration.GetConnectionString("Mongo")) .AddEngineOptions(builder.Configuration.GetSection("Engine")) .AddServiceOptions(builder.Configuration.GetSection("Service")) .AddMongoBackgroundJ...
26.894737
84
0.808219
[ "MIT" ]
russellmorley/machine
src/SIL.Machine.WebApi.JobServer/Program.cs
511
C#
/* * MS 06-05-30 removed this code * * * */ //using System; //using System.Text; //using System.Collections; //namespace AjaxPro //{ // /// <summary> // /// The two directions AJAX will convert objects. // /// </summary> // internal enum JavaScriptConverterDirectionType // { // ...
34.276596
122
0.602731
[ "MIT" ]
SmartDev210/Ajax.NET-Professional
AjaxPro/JSON/JavaScriptConverter.cs
1,611
C#
// // PkzipClassic encryption // // Copyright 2004 John Reilly // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later ver...
36.034765
119
0.527496
[ "MIT" ]
BigBadChicago/hammock
src/net35/ICSharpCode.SharpZipLib.Silverlight/Encryption/PkzipClassic.cs
17,621
C#
using System.Data; namespace CloudNativeKit.Infrastructure.Data.Dapper { public interface ISqlConnectionFactory { IDbConnection GetOpenConnection(); } }
17.4
51
0.735632
[ "MIT" ]
HardikKSavaliya/coolstore-microservices
src/building-blocks/CloudNativeKit.Infrastructure.Data/Dapper/ISqlConnectionFactory.cs
174
C#
using System; using MassTransit; // Ref from https://github.com/yesmarket/MassTransit.OpenTracing namespace CRM.MassTransit.Tracing { public static class Extensions { public static void PropagateOpenTracingContext(this IBusFactoryConfigurator value) { value.ConfigurePublish(c => c.A...
30.913043
100
0.673699
[ "MIT" ]
thangchung/crm
src/BuildingBlocks/CRM.MassTransit.Tracing/Extensions.cs
711
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Autodesk.DesignScript.Interfaces; namespace Autodesk.DesignScript.Geometry { public class DSSurfaceCurvature : IDisplayable { #region DATA MEMBERS private DSCoordinateSystem mCoordinateSystem...
31.751724
129
0.561685
[ "Apache-2.0" ]
DynamoDS/designscript-archive
Libraries/DSProtoGeometry/Geometry/SurfaceCurvature.cs
4,606
C#
using System; namespace ProjectManager.ConsoleClient.Configs { public interface IConfigurationProvider { TimeSpan CacheDurationInSeconds { get; } string LogFilePath { get; } } }
17.416667
48
0.688995
[ "MIT" ]
SimeonGerginov/Telerik-Academy
06. C# Design Patterns/Exams/2017-06-15/ProjectManager.ConsoleClient/Configs/IConfigurationProvider.cs
211
C#
// The MIT License (MIT) // // Copyright (c) Andrew Armstrong/FacticiusVir 2020 // // 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 r...
37.282051
81
0.713893
[ "MIT" ]
FacticiusVir/SharpVk
src/SharpVk/PipelineCacheCreateFlags.gen.cs
1,454
C#
using System.Linq; using Elsa.Activities.Workflows; using Elsa.Contracts; namespace Elsa.Dsl.Interpreters; public partial class WorkflowDefinitionBuilderInterpreter { public override IWorkflowDefinitionBuilder VisitProgram(ElsaParser.ProgramContext context) { var stats = context.stat(); var r...
32.810811
128
0.659802
[ "MIT" ]
elsa-workflows/experimental
src/dsl/Elsa.Dsl/Interpreters/WorkflowDefinitionBuilderInterpreter/VisitFile.cs
1,216
C#
using UnityEngine; #pragma warning disable CS0649 namespace WraithavenGames.FirstSight { public class MouseController : MonoBehaviour { [Header("Dependencies")] [SerializeField] private Transform cam; [SerializeField] private InputSettings inputSettings; [Tooltip("...
27.679245
97
0.551466
[ "MIT" ]
TheDudeFromCI/FirstSight
Packages/net.wraithavengames.firstsight/Runtime/Scripts/Controls/MouseController.cs
1,467
C#
// Copyright (c) Aurora Studio. All rights reserved. // // Licensed under the MIT License. See LICENSE in the project root for license information. using Aurora.Music.Core.Extension; using Aurora.Music.Core.Models; using Aurora.Shared.MVVM; using System; using System.Collections.Generic; using System.Collections.Objec...
37.294118
127
0.535376
[ "MIT" ]
Lolle2000la/Aurora.Music
Source/Aurora.Music/ViewModels/PodcastMarketViewModel.cs
4,440
C#
using System.Reflection; using System.Runtime.InteropServices; // 有关程序集的一般信息由以下 // 控制。更改这些特性值可修改 // 与程序集关联的信息。 [assembly: AssemblyTitle("1.5.17")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("1.5.17")] [assembly: AssemblyCopyrigh...
24.833333
56
0.700224
[ "MIT" ]
xuxu66/Algorithms-4th-Edition-in-Csharp
1 Fundamental/1.5/1.5.17/Properties/AssemblyInfo.cs
1,235
C#
/* Copyright 2016 James Craig Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
40.932584
173
0.607741
[ "Apache-2.0" ]
JaCraig/BigBookOfDataTypes
src/BigBook/ExtensionMethods/ConcurrentDictionaryExtensions.cs
3,645
C#
/* Copyright (c) 2020 Samsung Electronics Co., Ltd. * * 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 la...
37.371134
111
0.621241
[ "Apache-2.0", "MIT" ]
Ali-Alzyoud/TizenFX
src/Tizen.NUI.Components/Controls/RecyclerView/RecycleAdapter.cs
3,625
C#
/* * Funds API For Digital Portals * * Search for mutual funds and ETFs using one single consolidated API, including a criteria-based screener. The API provides also base data, key figures, and holdings. A separate endpoint returns the possible values and value range for the parameters that the endpoint /fund/notat...
41.17931
1,110
0.621839
[ "Apache-2.0" ]
factset/enterprise-sdk
code/dotnet/FundsAPIforDigitalPortals/v2/src/FactSet.SDK.FundsAPIforDigitalPortals/Model/InlineResponse2004FundStrategyLevel3.cs
5,971
C#
using Esri.ArcGISRuntime.Geometry; using Esri.ArcGISRuntime.Layers; using Esri.ArcGISRuntime.Symbology; using System; using System.Collections.Generic; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Input; namespace ArcGISRuntimeSDKDotNet_DesktopSamples.Samples...
36.376812
198
0.624701
[ "Apache-2.0" ]
boonyachengdu/arcgis-runtime-samples-dotnet
src/Desktop/ArcGISRuntimeSDKDotNet_DesktopSamples/Samples/Geometry/BufferSample.xaml.cs
2,512
C#
// Copyright 2016 MaterialUI for Unity http://materialunity.com // Please see license file for terms and conditions of use, and more information. using System; using UnityEditor; using UnityEngine; using UnityEngine.UI; namespace MaterialUI { [CustomEditor(typeof(CircularProgressIndicator))] pub...
36.787879
126
0.679572
[ "Apache-2.0" ]
Ianmaster231/tabekana
Tabekana/Assets/MaterialUI/Editor/Custom Inspectors/CircularProgressIndicatorEditor.cs
2,430
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
42.862903
153
0.629915
[ "MIT" ]
GeertVL/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Generated/requests/UserExportDeviceAndAppManagementDataRequest.cs
5,315
C#
//////////////////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2009, Daniel Kollmann // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are permitted // provided that the following conditions are met: // /...
45.96875
146
0.707002
[ "MIT" ]
MattFiler/TextAdventure
Story Tool/Source/Brainiac Designer/Brainiac Designer Base/Exporters/ExporterCsUseParameters.cs
2,942
C#
using Inlämning_3_WebbShop.Views; using MyFirstEntityframProject; using System; namespace Inlämning_3_WebbShop { class Program { static void Main(string[] args) { var utils = new Utils.Utils(); utils.Menu(); } } }
16.421053
42
0.528846
[ "MIT" ]
marcusjobb/NET20D
OOPA/WebbshopProjekt/Yulia/Inlämning_3/Inlämning_3_WebbShop/Inlämning_3_WebbShop/Program.cs
316
C#
using System; using System.Collections.Generic; namespace PowerBIRestDemo.Models { // Models returned by AccountController actions. public class ExternalLoginViewModel { public string Name { get; set; } public string Url { get; set; } public string State { get; set; } } ...
22.045455
87
0.639175
[ "MIT" ]
Azure/azure-stream-analytics
Samples/SensorDataAnalytics/SourceCode/Archived/PowerBIRestDemo-master/PowerBIRestDemo/Models/AccountViewModels.cs
972
C#
using System; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace DataLayer.Migrations { public partial class Kur : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( ...
39.860465
122
0.486464
[ "MIT" ]
tedycholakova/StudentSystem
DataLayerr/Migrations/20190123074046_Kur.cs
8,572
C#
using Microsoft.EntityFrameworkCore; namespace EShop.DataLayer.Context; public interface IUnitOfWork : IDisposable { DbSet<TEntity> Set<TEntity>() where TEntity : class; void MarkAsDeleted<TEntity>(TEntity entity); int SaveChanges(); Task<int> SaveChangesAsync(CancellationToken cancellationToken =...
22.2
78
0.762763
[ "MIT" ]
pShariiati/EShop
src/EShop.DataLayer/Context/IUnitOfWork.cs
335
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // 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: Asse...
51.610169
232
0.777011
[ "Apache-2.0" ]
dorki/aws-sdk-net
sdk/src/Services/FSx/Properties/AssemblyInfo.cs
3,045
C#
using EventBusRabbitMQ; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using POC.OpenTelemetry.API.Helpers; namespace POC.OpenTelemetry.API { public class Startup ...
29.545455
129
0.610462
[ "MIT" ]
jesuscorral/poc-opentelemetry
POC.OpenTelemetry.API/Startup.cs
1,625
C#
using Newtonsoft.Json; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; namespace System.Data.Cobber { /// <summary> /// 应用文件配置 /// </summary> public abstract class AppConfigJsonFile ...
34.840237
251
0.4893
[ "MIT" ]
erikzhouxin/NDabber
src/Cobber/Crypto/AppConfigJsonFile.cs
6,328
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using CCT.NUI.Core; namespace CCT.NUI.HandTracking.Mouse { public interface ICursorMode { bool HasPoint(HandCollection handData); Point GetPoint(HandCollection handData); CursorMode EnumValue { get;...
18.388889
48
0.706949
[ "BSD-3-Clause" ]
an83/KinectTouch2
CCT.NUI.HandTracking/Mouse/ICursorMode.cs
333
C#
using System.Collections.Generic; using System.Collections.ObjectModel; namespace Dematt.Airy.ApplicationInsights.Sample.Areas.HelpPage.ModelDescriptions { public class ParameterDescription { public ParameterDescription() { Annotations = new Collection<ParameterAnnotation>(); ...
27.095238
81
0.68717
[ "MIT" ]
MatthewRudolph/Airy-ApplicationInsights-Owin
samples/Dematt.Airy.ApplicationInsights.Sample/Areas/HelpPage/ModelDescriptions/ParameterDescription.cs
569
C#
using System; using System.Threading.Tasks; using Template10.Mvvm; using Windows.UI.Xaml; namespace HamburgerUI.ViewModels { public class AboutPartViewModel : ViewModelBase { public string DisplayName => Windows.ApplicationModel.Package.Current.DisplayName; public Uri Logo => Windows.Applicatio...
31.304762
125
0.567995
[ "MIT" ]
McFunston/FileCatalogUI
HamburgerUI/ViewModels/SettingsPageViewModel.cs
3,287
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using AdventureWorks.BaseDomain.Enums; using AdventureWorks.BaseDomain.Interfaces; using AdventureWorks.BaseDomain.CustomTypes; using AdventureWorks.BaseDomain.Entities.Produc...
26.344828
78
0.736911
[ "Unlicense" ]
CodeSwifterGit/adventure-works
src/AdventureWorks.Domain/Entities/Production/ProductCostHistory.cs
764
C#
// Copyright (c) Amer Koleci and contributors. // Distributed under the MIT license. See the LICENSE file in the project root for more information. namespace Vortice.Graphics { /// <summary> /// Describes the front-facing or back-facing stencil operations of <see cref="DepthStencilDescriptor"/>. /// </sum...
54.280702
200
0.700711
[ "MIT" ]
cagr301/engine
src/engine/Vortice.Graphics/DepthStencilOperationDescriptor.cs
3,096
C#
// Accord Statistics Library // The Accord.NET Framework // http://accord-framework.net // // Copyright © César Souza, 2009-2015 // cesarsouza at gmail.com // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as p...
35.6
111
0.499213
[ "MIT" ]
kpandya3/WakeUpWithKinect
Accord.NET projects/Accord.Statistics/Models/Markov/Hybrid/HybridMarkovModel.cs
8,904
C#
using System; using Microsoft.AspNet.Identity; using essentialMix.Web.Mvc.Controllers; namespace essentialMix.Web.Mvc.Views; public abstract class WebViewPage<TModel, TKey, TUser, TUserManager, TController> : System.Web.Mvc.WebViewPage<TModel> where TKey : IEquatable<TKey> where TUser : class, IUser<TKey> where T...
29.245614
139
0.770846
[ "MIT" ]
asm2025/essentialMix
Framework/essentialMix.Web.Mvc/Views/WebViewPage.cs
1,669
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Slime : GenericMonster { public Sprite[] sprites; private int tickCounter; private int previousSlimeTile = 0; private int newSlimeTile = 0; private SpriteRenderer sr; private bool isAttacking = false...
25.472527
108
0.534944
[ "MIT" ]
Caseyfam/Rhythm-Project
Assets/Scripts/InGame/Monster Entities/Slime/Slime.cs
2,320
C#
using UnityEngine; [System.Serializable] public class Wave { public Transform enemy; public int count; public float rate; // public int health; }
13.818182
24
0.743421
[ "Unlicense" ]
Dark3nforce/TowerDefenseSurvival
Assets/Scripts/Wave.cs
152
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Collections.Generic; using System.Text.Json; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models { public partial class CouchbaseLinkedService : IU...
41.929936
245
0.532888
[ "MIT" ]
amolagar5/azure-sdk-for-net
sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CouchbaseLinkedService.Serialization.cs
6,583
C#
/* Problem 7. Quotes in Strings • Declare two string variables and assign them with following value: The "use" of quotations causes difficulties. • Do the above in two different ways - with and without using quoted strings. • Print the variables to ensure that their value was correctly defined. */ usin...
33.263158
120
0.696203
[ "MIT" ]
mpenchev86/Telerik-Academy
CSharp-Part1/Primitive-Data-Types-And-Variables-Homework/07-QuotesInStrings/QuotesInStrings.cs
640
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...
34.45
165
0.791001
[ "ECL-2.0", "Apache-2.0" ]
Otanikotani/pulumi-aws
sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryStringArgs.cs
689
C#
namespace DecoratorExample { public class Footballer: ISport { public virtual int Run() { return 1; } } }
15.4
35
0.506494
[ "MIT" ]
andreidana/DecoratorPattern
DecoratorExample/Footballer.cs
156
C#
using Relo; using SageBinaryData; public static partial class Marshaler { public static unsafe void Marshal(Node node, BeamTargetModuleData* objT, Tracker state) { if (node is null) { return; } Marshal(node, (BehaviorModuleData*)objT, state); } }
20.333333
91
0.622951
[ "MIT" ]
Qibbi/BinaryAssetBuilder
source/BinaryAssetBuilder.XmlCompiler/Marshaler.ModulesBeamTargetModule.cs
307
C#
using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Globalization; using System.Reflection; using System.Reflection.Emit; using System.Text; namespace fastJSON { /// <summary> /// This class encodes and decodes JSON strings. /// Spec. details, see h...
24.609959
140
0.560614
[ "MIT" ]
rogeralsing/linq-to-sqlxml
Source/fastJSON/JsonParser.cs
11,862
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> //--...
38.676349
245
0.57172
[ "MIT" ]
Abhith/IdentityServer4.Admin
src/Skoruba.IdentityServer4.Admin.BusinessLogic.Identity/Resources/IdentityServiceResource.Designer.cs
9,323
C#
// Copyright (c) Stride contributors (https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp) // Distributed under the MIT license. See the LICENSE.md file in the project root for more information. using System; using System.Collections.Generic; using System.Linq; using Stride.Core; using Strid...
37.201183
191
0.609512
[ "MIT" ]
Aggror/Stride
sources/presentation/Stride.Core.Presentation.Quantum/Presenters/MemberNodePresenter.cs
6,287
C#
namespace BookShop.DataProcessor.ImportDto { public class AuthorBookDTO { public int Id { get; set; } } }
18
43
0.634921
[ "MIT" ]
amartinn/SoftUni
C# DB May 2020/Entity Framework Core/exams/C# DB Advanced Exam - 13 Dec 2019/BookShop/DataProcessor/ImportDto/AuthorBookDTO.cs
128
C#
// Copyright (C) 2003-2013 Xtensive LLC. // All rights reserved. // For conditions of distribution and use, see license. using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices;
29
56
0.762931
[ "MIT" ]
SergeiPavlov/dataobjects-net
Xtensive.Orm.Weaver/Properties/AssemblyInfo.cs
234
C#
using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.ModelConfiguration; namespace AdventureWorksModel { public class SalesOrderDetailMap : EntityTypeConfiguration<SalesOrderDetail> { public SalesOrderDetailMap() { // Primary Key HasKey(t => new {...
42.510204
127
0.631781
[ "Apache-2.0" ]
Giovanni-Russo-Boscoli/NakedObjectsFramework
Samples/AWFunctional/Mapping/SalesOrderDetailMap.cs
2,083
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.EntityFrameworkCore.Cosmos.Query.Internal; /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject ...
47.9375
113
0.713331
[ "MIT" ]
ChaseKnowlden/efcore
src/EFCore.Cosmos/Query/Internal/CosmosValueConverterCompensatingExpressionVisitor.cs
6,138
C#
using System; using System.Collections.Generic; using System.Linq; using System.Security; using System.Web; namespace DocumentDbCourse.Extensions { public static class StringExtensions { public static SecureString ToSecureString(this string _self) { SecureString knox = new SecureSt...
23.636364
68
0.594231
[ "MIT" ]
mrahulshakya/DocumentDbPoc
DocumentDbCourse/Extensions/StringExtensions.cs
522
C#
using MediatR; namespace Teacher.Website.Feature.Interview.Question.Create { public class Query : IRequest<ViewModel> { } }
17.125
59
0.715328
[ "MIT" ]
PiotrWandycz/Teacher
Teacher/Teacher.Website/Feature/Interview/Question/Create/Query.cs
139
C#
/* Scenario for use Builder: We have a final product that will be builded following particular characteristics, as a stratocaster guitar and telecaster guitar For better reference, please visit https://www.dofactory.com/net/design-patterns */ using System; using System.Collections.Generic; namespace b...
24.321429
90
0.553231
[ "Apache-2.0" ]
brunoedsm/c-sharp-resources
design-patterns/creational/brunoedsm.creational.console/BuilderPlayer.cs
2,724
C#
namespace PaulasCadenza.HabboNetwork.Models { public interface ICommReadObjectDelegate { CommReadObject DeriveCommReadObject(ushort sendType); } }
19.125
55
0.823529
[ "MIT" ]
sonicmouse/PaulasCadenza
PaulasCadenza.HabboNetwork/Models/ICommReadObjectDelegate.cs
155
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace Azu...
32.945718
151
0.543241
[ "MIT" ]
sjh37/aznetsdk
src/SDKs/Azure.ApplicationModel.Configuration/data-plane/Azure.ApplicationModel.Configuration.Tests/ConfigurationLiveTests.cs
27,314
C#
using System; using System.Linq; using System.Collections.Generic; using BusterWood.Data; using System.Text; namespace BusterWood.Csv { class ToXml { public static Relation Run(List<string> args, Relation input) { try { if (args.Remove("--help")) Help();...
31.289855
99
0.459935
[ "Apache-2.0" ]
busterwood/Data
csv/ToXml.cs
2,161
C#
/* The MIT License (MIT) Copyright (c) 2013 yamamura tatsuhiko Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,...
25.583333
80
0.730004
[ "MIT" ]
ShuheiOi/AdolescenceNovel
Assets/Sources/Novel/FadeScript/Fade.cs
2,765
C#
namespace BlogWeb.Domain.Migrations { using System; using System.Data.Entity.Migrations; public partial class PostTextLengthChanged : DbMigration { public override void Up() { AlterColumn("dbo.Posts", "ShortDescription", c => c.String(nullable: false, maxLength: 500)); ...
32.428571
105
0.590308
[ "MIT" ]
AliMecidzade/WebAppBlog
WebAppBlog/BlogWeb/BlogWeb.Domain/Migrations/202108061551299_PostTextLengthChanged.cs
683
C#
namespace Notes.Services.Models.User { using Notes.Common.AutoMapping; using Notes.Models; public class LoggedInUserModel : IMapWith<User> { public int Id { get; set; } public string Username { get; set; } } }
19.153846
51
0.634538
[ "MIT" ]
msotiroff/Softuni-learning
C# Web Module/CSharp-Web-Development-Basics/09.WorkShop/NotesApplication/Notes.Services/Models/User/LoggedInUserModel.cs
251
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-generate...
38.45098
152
0.54615
[ "MIT" ]
DotNetUz/waf
src/System.Waf/Samples/Localization/LocalizationSample/Properties/Settings.Designer.cs
1,963
C#
namespace NBitcoinBTG { public class PrecomputedTransactionData { public PrecomputedTransactionData(Transaction tx) { HashOutputs = Script.GetHashOutputs(tx); HashSequence = Script.GetHashSequence(tx); HashPrevouts = Script.GetHashPrevouts(tx); } public uint256 HashPrevouts { get; set; } ...
15.392857
51
0.689095
[ "MIT" ]
LykkeCity/NBitcoinBTG
NBitcoin/PrecomputedTransactionData.cs
433
C#
namespace TimeKeeper { partial class frmTimeKeeper { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed re...
47.724346
162
0.736245
[ "MIT" ]
gyphie/time-keeper
time-keeper/MainForm.Designer.cs
47,454
C#
using System; using UnityEngine; namespace XCharts { /// <summary> /// </summary> [Serializable] public class LineArrow { public enum Position { /// <summary> /// 末端箭头 /// </summary> End, /// <summary> /// 头端箭头 ...
29.316667
91
0.486072
[ "MIT" ]
insominx/unity-ugui-XCharts
Scripts/UI/Internal/LineArrow.cs
1,837
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using DurableTask.TypedProxy; using KeyVault.Acmebot.Contracts; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Extensions.DurableTask; using ...
34
125
0.692353
[ "Apache-2.0" ]
adamgoodbar/keyvault-acmebot
KeyVault.Acmebot/GetDnsZonesFunctions.cs
1,700
C#
using System; namespace AxSoft.TemplateEmail { public static class TypeHelper { public static bool IsSimpleOrNullableType(Type type) { if (type == null) throw new ArgumentNullException("type"); if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) { type = Nullable.GetUnd...
26.958333
147
0.689335
[ "MIT" ]
blockworks-com/vstsStatusReport
StatusReport.Service/TypeHelper.cs
649
C#
#region license // Copyright 2004-2012 Castle Project, Henrik Feldt &contributors - https://github.com/castleproject // // 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...
32.108696
101
0.7109
[ "Apache-2.0" ]
Huddle/Castle.Transactions
src/Castle.IO.Tests/copying_files/locked_file.cs
1,479
C#
using System; using System.Linq.Expressions; using System.Reflection; using static Towel.Syntax; namespace Towel { /// <summary>Contains generic static numerical constant values.</summary> /// <typeparam name="T">The generic numeric type of the constants.</typeparam> public static class Constant<T> { /// <summa...
32.059603
134
0.64181
[ "MIT" ]
WhiteBlackGoose/Towel
Sources/Towel/Constant.cs
4,861
C#
using Mina.Core.Session; using Mina.Filter.Codec; namespace UCanSoft.PortForwarding.Common.Codec.Direct { public class DirectCodecFactory : IProtocolCodecFactory { private readonly DirectEncoder _encoder; private readonly DirectDecoder _decoder; public DirectCodecFactory() { ...
24.25
76
0.642121
[ "MIT" ]
UCan927/PortForwarding
Source Code/UCanSoft.PortForwarding.Common/Codec/Direct/DirectCodecFactory.cs
681
C#
/* * Copyright 2018 JDCLOUD.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.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
23.75
76
0.633835
[ "Apache-2.0" ]
jdcloud-api/jdcloud-sdk-net
sdk/src/Service/Live/Model/PlayDataStatisticResult.cs
1,350
C#
using RelhaxModpack.Database; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace RelhaxModpack.Database { /// <summary> /// A structure that is used to track the relative path of a user file (like session stats), /// and the root path between the installer and ...
42.123596
169
0.620832
[ "Apache-2.0" ]
Willster419/RelicModManager
RelhaxModpack/RelhaxModpack/Database/UserFile.cs
7,500
C#
//using System; //using System.Collections.Generic; //using System.Linq; //using System.Text; //using System.Web.Mvc; //namespace ND.MCJ.AOP.Transaction //{ // [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] // public class TransactionAttribute : ActionFilterAttribute // { // ...
30.59322
121
0.550139
[ "Apache-2.0" ]
PengXX0/ND.MCJ
Infrastructure/ND.MCJ.AOP/Transaction/TransactionAttribute.cs
1,807
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace UnitTestingAspNetMvcKata.Web.Controllers { public class HomeController : Controller { public ActionResult Index() { ViewBag.Message = "Modify this template to jump-s...
20.818182
97
0.583697
[ "MIT" ]
danilojrr/UnitTestingAspNetMvcKata
UnitTestingAspNetMvcKata.Web/Controllers/HomeController.cs
689
C#
using System; using System.Collections.Generic; using System.Text; using ESFA.DC.PeriodEnd.ReportService.Reports.Interface.AppsCoInvestment.Model; namespace ESFA.DC.PeriodEnd.ReportService.Reports.Tests.AppsCoInvestment.Builders { public class LearnerEmploymentStatusBuilder: AbstractBuilder<LearnerEmploymentStatu...
29.083333
89
0.663324
[ "MIT" ]
SkillsFundingAgency/DC-2021-PeriodEnd-ReportService
src/ESFA.DC.PeriodEnd.ReportService.Reports.Tests/AppsCoInvestment/Builders/LearnerEmploymentStatusBuilder.cs
700
C#
using SpiceSharp.General; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace SpiceSharp.ParameterSets { /// <summary> /// The default implementation of an <see cref="IParameterSetCollection"/>. This implementation /// also makes the collection itself an <...
32.295302
135
0.499792
[ "MIT" ]
Neos-Metaverse/SpiceSharp
SpiceSharp/Parameters/ParameterSetCollection.cs
4,814
C#
using System; using System.Collections.Generic; using System.Text; namespace dpz3 { /// <summary> /// 文件夹操作 /// </summary> public static class Folder { /// <summary> /// 创建文件夹 /// </summary> /// <param name="path"></param> public static void Create(string path...
26.066667
93
0.512361
[ "MIT" ]
dpzsoft/dotnet-dpz3
dpz3/Folder.cs
1,223
C#
using System; using LuaInterface; using System.Collections.Generic; using System.Collections; public class System_Collections_Generic_Dictionary_ValueCollectionWrap { public static void Register(LuaState L) { L.BeginClass(typeof(Dictionary<,>.ValueCollection), typeof(System.Object), "ValueCollection")...
31.53
139
0.584523
[ "Apache-2.0" ]
871041532/LuaProfiler-For-Unity
ToLuaClient/Assets/ToLua/BaseType/System_Collections_Generic_Dictionary_ValueCollectionWrap.cs
3,155
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("EF....
39.351351
84
0.754808
[ "MIT" ]
Meberem/EF.DbContextFactory
src/Extensions/EF.DbContextFactory.StructureMap/Properties/AssemblyInfo.cs
1,459
C#
#pragma checksum "..\..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "1323492F21F1F696196680E7BE9C4025FFE995B2" //------------------------------------------------------------------------------ // <auto-generated> // Этот код создан программой. // Исполняемая версия:4.0.30319.42000 // // Изм...
38.429032
157
0.605137
[ "MIT" ]
TviZet/HART_DLL
Wpf_Hart/Wpf_Hart/obj/Debug/netcoreapp3.1/MainWindow.g.cs
12,049
C#
using System; using TypeRegex; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace TypeRegexTest { [TestClass] public class UnicodeGroupTest { #region Helper private class Implementation : UnicodeGroup { public Implementation(string set) : base(set) ...
21.716667
77
0.57099
[ "MIT" ]
parloti/FluentRegex
TypeRegexTest/CharacterGroup/UnicodeGroupTest.cs
1,305
C#
using System.IO; using System.Text; using System.Windows.Controls; using System.Windows.Documents; namespace TextPoint { /// <summary> /// Interaction logic for WPFSpellCheck.xaml /// </summary> public partial class WpfSpellCheck : UserControl { public WpfSpellCheck() { ...
29.931818
112
0.599089
[ "MIT" ]
naxxxe/Transcriber
TextPoint/WPFSpellCheck.xaml.cs
1,319
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace AsyncInn.Migrations { public partial class AddHotelRoomsTable : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "HotelRoom", col...
32.064516
87
0.525151
[ "MIT" ]
dahlbyk-demo/AsyncInn
AsyncInn/Migrations/20200520193726_AddHotelRoomsTable.cs
996
C#
//--------------------------------------------------------- // <auto-generated> // This code was generated by a tool. Changes to this // file may cause incorrect behavior and will be lost // if the code is regenerated. // // Generated on 2020 October 09 06:06:54 UTC // </auto-generated> //--------------...
36.463158
117
0.635681
[ "MIT" ]
GridProtectionAlliance/go2cs
src/go-src-converted/vendor/golang.org/x/net/idna/idna10.0.0_ProfileStruct.cs
3,464
C#
#if !NET5_0 //----------------------------------------------------------------------- // <copyright file="BinaryFormatterWrapper.cs" company="Marimer LLC"> // Copyright (c) Marimer LLC. All rights reserved. // Website: https://cslanet.com // </copyright> // <summary>Wraps the <see cref="BinaryFormatter"/></summ...
30.795455
77
0.613284
[ "MIT" ]
Brannos1970/csla
Source/Csla/Serialization/BinaryFormatterWrapper.cs
2,710
C#
using System; namespace ChainUtils.BouncyCastle.Math.EC.Custom.Sec { internal class SecP192R1Point : AbstractFpPoint { /** * Create a point which encodes with point compression. * * @param curve * the curve to use * @param x ...
30.942446
126
0.472448
[ "MIT" ]
assinnata/ChainUtils
ChainUtils.BouncyCastle/math/ec/custom/sec/SecP192R1Point.cs
8,604
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace <%= projectName %>.Domain { public class Country : Abp.Domain.Entities.Entity<string>, Abp.Domain.Entities.IPassivable { public str...
26
94
0.70362
[ "MIT" ]
ronymaychan/generator-pln
app/templates/aspnet/aspnet-core/src/Plenumsoft.Core/Domain/Country.cs
444
C#
using AltNetworkUtility.Repositories.NetworkInterfaceRepository; using AltNetworkUtility.Services; using AltNetworkUtility.ViewModels; using Microsoft.Toolkit.Mvvm.Input; using Rotorsoft.Forms; using System; using System.Collections.ObjectModel; using System.Net.NetworkInformation; using System.Windows.Input; usi...
38.104839
98
0.609947
[ "MIT" ]
chucker/AltNetworkUtility
AltNetworkUtility/Tabs/Info/InfoPageViewModel.cs
4,727
C#
// Copyright (c) Six Labors and contributors. // Licensed under the GNU Affero General Public License, Version 3. namespace SixLabors.ImageSharp.Processing.Processors.Quantization { /// <summary> /// A palette quantizer consisting of colors as defined in the original second edition of Werner’s Nomenclature of ...
38.15625
132
0.659296
[ "Apache-2.0" ]
fahadabdulaziz/ImageSharp
src/ImageSharp/Processing/Processors/Quantization/WernerPaletteQuantizer.cs
1,223
C#
using EPlast.DataAccess.Entities; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace EPlast.BLL.DTO.Club { public class ClubAnnualReportDTO { public int ID { get; set; } public AnnualReportStatus Status { get; set; } [Required(ErrorM...
44.346154
108
0.667389
[ "MIT" ]
ita-social-projects/EPlas
EPlast/EPlast.BLL/DTO/Club/ClubAnnualReportDTO.cs
2,716
C#
// Copyright (c) Josef Pihrt. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Roslynator.CSharp.CodeFixes; using Roslynator.Testing.CSharp; using Xunit; namespace Roslyn...
20.075117
160
0.709775
[ "Apache-2.0" ]
joebone/Roslynator
src/Tests/Analyzers.Tests/RCS1159UseGenericEventHandlerTests.cs
4,278
C#
using System; using FinanceControl.Services.Users.Domain.ValueObjects; using FinanceControl.Services.Users.Infrastructure.Messages; using Newtonsoft.Json; namespace FinanceControl.Services.Users.Application.Messages.Commands { public class EditUserCommand : IAuthenticatedCommand { public Request Reque...
33.181818
87
0.628311
[ "MIT" ]
FreshBlast/FinanceControl.Services.Users
src/FinanceControl.Services.Users.Application/Messages/Commands/EditUserCommand.cs
1,097
C#
using AddressService.Core.Dto; using AddressService.Core.Utils; using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Web; using HelpMyStreet.Utils.Utils; namespace AddressService.Mappers { public class QasMapper : IQasMapper { public Pos...
41.221053
162
0.576098
[ "MIT" ]
HelpMyStreet/address-service
AddressService/AddressService.Mappers/QasMapper.cs
3,918
C#
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.SpaServices.AngularCli; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; namespace SPAHost { public class Startup { public Startup(...
30.941176
106
0.566065
[ "MIT" ]
staneee/ServiceFabricDemo
SPAHost/Startup.cs
2,104
C#
using System; using Equinox.Domain.Core.Events; namespace Equinox.Domain.Events { public class CurrencyRemovedEvent : Event { public CurrencyRemovedEvent(Guid id) { Id = id; AggregateId = id; } public Guid Id { get; set; } } }
18.5625
45
0.572391
[ "MIT" ]
duyxaoke/DEV
src/Equinox.Domain/Events/Currency/CurrencyRemovedEvent.cs
299
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Server { class Program { static void Main(string[] args) { new BackEndLogic.IO(); ...
55.319672
155
0.383316
[ "Apache-2.0" ]
joham97/letsGOServer
Server/Program.cs
6,753
C#
using System; using System.Threading; using System.Threading.Tasks; using NUnit.Framework; namespace Disruptor.Tests; public abstract class AsyncWaitStrategyTests : WaitStrategyFixture<AsyncWaitStrategy> { [Test] public void ShouldWaitFromMultipleThreadsAsync() { // Arrange var waitStrateg...
33.96
152
0.653946
[ "Apache-2.0" ]
ltrzesniewski/Disruptor-net
src/Disruptor.Tests/AsyncWaitStrategyTests.cs
4,245
C#