CompuMaster.Reflection
1.0.2025.1229
dotnet add package CompuMaster.Reflection --version 1.0.2025.1229
NuGet\Install-Package CompuMaster.Reflection -Version 1.0.2025.1229
<PackageReference Include="CompuMaster.Reflection" Version="1.0.2025.1229" />
<PackageVersion Include="CompuMaster.Reflection" Version="1.0.2025.1229" />
<PackageReference Include="CompuMaster.Reflection" />
paket add CompuMaster.Reflection --version 1.0.2025.1229
#r "nuget: CompuMaster.Reflection, 1.0.2025.1229"
#:package CompuMaster.Reflection@1.0.2025.1229
#addin nuget:?package=CompuMaster.Reflection&version=1.0.2025.1229
#tool nuget:?package=CompuMaster.Reflection&version=1.0.2025.1229
Reflection
Reflection simplified for all-days-purposes
When you need this COM interop library
- Access to public members of COM objects when not type libraries ("interop assemblies") are present and late-binding doesn't work (e.g. a late-binding-call to Excel.Quit failed)
- Access to private/non-public members of .NET assemblies
Sample implementation
// SAMPLE: access to public property from unknown object (e.g. COM objects)
var o = new System.Object();
System.Console.WriteLine(
PublicInstanceMembers.InvokeFunction<String>(o, o.GetType(), "ToString")
);
// SAMPLE: access to non-public (private/internal) field from .NET object
var r = new System.Random();
r.Next(10, 20); //increase internal counter
r.Next(10, 20); //increase internal counter
System.Console.WriteLine(
NonPublicInstanceMembers.InvokeFieldGet<Int32>(r, r.GetType(), "inext")
);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.8
- No dependencies.
-
.NETStandard 2.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on CompuMaster.Reflection:
| Package | Downloads |
|---|---|
|
CompuMaster.ComInterop
Safe design pattern for creating and closing COM interop instances + support e.g. MS Office/Excel/Word/Powerpoint Interop without Microsoft's interop assemblies + access to COM object's public members with Reflection (instead of late binding (which often fails)) |
|
|
CompuMaster.Excel.FreeSpireXls
Just as a reminder for usage of FreeSpire.Xls: the manufacturer has limited the feature set for this component. Free version is limited to 5 sheets per workbook and 150 rows per sheet. |
|
|
CompuMaster.Excel.SpireXls
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.2025.1229 | 121 | 12/29/2025 |
| 1.0.2024.1204 | 507 | 12/4/2024 |
| 1.0.4 | 2,991 | 2/21/2023 |
| 1.0.3 | 336 | 2/20/2023 |
| 1.0.2 | 1,300 | 2/7/2023 |
| 1.0.1 | 374 | 2/3/2023 |
| 1.0.0 | 2,806 | 2/3/2023 |