![]() |
VOOZH | about |
dotnet add package Net20.TypeInfo --version 1.5.0.10
NuGet\Install-Package Net20.TypeInfo -Version 1.5.0.10
<PackageReference Include="Net20.TypeInfo" Version="1.5.0.10" />
<PackageVersion Include="Net20.TypeInfo" Version="1.5.0.10" />Directory.Packages.props
<PackageReference Include="Net20.TypeInfo" />Project file
paket add Net20.TypeInfo --version 1.5.0.10
#r "nuget: Net20.TypeInfo, 1.5.0.10"
#:package Net20.TypeInfo@1.5.0.10
#addin nuget:?package=Net20.TypeInfo&version=1.5.0.10Install as a Cake Addin
#tool nuget:?package=Net20.TypeInfo&version=1.5.0.10Install as a Cake Tool
Net35.TypeInfo is a small compatibility library that backports and provides higher-level reflection helpers for older .NET frameworks (including .NET 2.0, 3.5, 4.0, 4.5) while also supporting .NET Standard 2.0. It exposes convenience extensions around core reflection types (Type, MemberInfo, MethodInfo, PropertyInfo, ParameterInfo, CustomAttributeData, Assembly, etc.) to make it easier to inspect types, members and attributes in a consistent way across multiple framework versions.
Type extension helpers to enumerate and query members consistently across runtimes.MemberInfo, MethodInfo, PropertyInfo, and ParameterInfo extension methods that simplify common reflection tasks.CustomAttributeData and custom attribute inspection without forcing attribute instantiation.Install the package from NuGet (when published) or reference the project directly in your solution.
Package id: Net35.TypeInfo (see NuGet listing for the latest version)
Use the extension methods in your code. Example:
using System;
using System.Reflection;
using Net35.TypeInfo.Extensions;
// ...
Type t = typeof(MyType);
var publicInstanceProperties = t.GetPublicInstanceProperties(); // example extension
foreach (var p in publicInstanceProperties)
{
Console.WriteLine(p.Name);
}
(Refer to the source code in Net35.TypeInfo/Extensions for the exact extension API names and signatures.)
This repository uses an SDK-style project that targets multiple TFMs. To build locally you can use the .NET SDK (for the .NET Standard target) or MSBuild/Visual Studio for full multi-target builds.
To restore and build with the .NET SDK (builds netstandard target):
dotnet build Net35.TypeInfo/Net35.TypeInfo.csproj
To build all targets including legacy .NET Framework TFMs use Visual Studio or MSBuild on Windows.
The tests are located in the Net35.TypeInfo.Tests project. They are implemented to run on .NET 3.5. Use the test runner configured in your environment (for example the included test packages in the project file).
Contributions are welcome. Please open issues or pull requests with clear descriptions and tests for any behaviour changes.
This project is licensed under the Apache-2.0 license. See the LICENSE.txt file for details.
This project was created to make it easier to write reflection-based code that works across older .NET frameworks and .NET Standard. It contains code inspired by corefx and other community libraries but implemented to be small and compatible with legacy runtimes.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net20 net20 is compatible. net35 net35 is compatible. net40 net40 is compatible. net403 net403 was computed. net45 net45 is compatible. net451 net451 was computed. net452 net452 was computed. net46 net46 was computed. net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on Net20.TypeInfo:
| Package | Downloads |
|---|---|
|
Net4x.BaseTypes
Package Description |
|
|
Net35.Threading.Tasks
The Mono port of the Task Parallel Library ported to .NET 3.5 |
|
|
Net4x.AsyncBridge
Package Description |
|
|
Net4x.CoreLibrary.Classes
CoreLibrary Base |
|
|
Net35.CollectionsBridge
Missing collections types ported to .NET 3.5 |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.5.0.10 | 4,037 | 2/2/2026 |