Soenneker.Extensions.Array.Object
4.0.91
Prefix Reserved
dotnet add package Soenneker.Extensions.Array.Object --version 4.0.91
NuGet\Install-Package Soenneker.Extensions.Array.Object -Version 4.0.91
<PackageReference Include="Soenneker.Extensions.Array.Object" Version="4.0.91" />
<PackageVersion Include="Soenneker.Extensions.Array.Object" Version="4.0.91" />
<PackageReference Include="Soenneker.Extensions.Array.Object" />
paket add Soenneker.Extensions.Array.Object --version 4.0.91
#r "nuget: Soenneker.Extensions.Array.Object, 4.0.91"
#:package Soenneker.Extensions.Array.Object@4.0.91
#addin nuget:?package=Soenneker.Extensions.Array.Object&version=4.0.91
#tool nuget:?package=Soenneker.Extensions.Array.Object&version=4.0.91
Soenneker.Extensions.Array.Object
Returns the runtime Type of each element in an object[] while preserving array order.
Installation
dotnet add package Soenneker.Extensions.Array.Object
Usage
using Soenneker.Extensions.Array.Object;
object[] values = ["hello", 42, DateTimeOffset.UtcNow];
Type[] types = values.ToTypes();
// types[0] == typeof(string)
// types[1] == typeof(int)
// types[2] == typeof(DateTimeOffset)
ToTypes() returns the actual runtime type from GetType(), not a variable's declared type. Value types stored in the array are boxed and still produce their underlying value type. Derived instances produce the derived type.
The returned Type[] is newly allocated for a non-empty input and has the same length and ordering as the source. An empty array produces an empty result.
Every element must be non-null; a null element causes NullReferenceException because null has no runtime type. If null is valid in the source data, filter it or choose an explicit placeholder type before calling this method.
Runtime types are useful for reflection dispatch, but exact types may not match an API that expects an interface, base class, or nullable wrapper. Perform assignability checks when using the result for method or constructor selection.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 is compatible. 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 is compatible. 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. |
-
net10.0
- Soenneker.Extensions.Spans.Readonly.Objects (>= 4.0.19)
-
net8.0
- Soenneker.Extensions.Spans.Readonly.Objects (>= 4.0.19)
-
net9.0
- Soenneker.Extensions.Spans.Readonly.Objects (>= 4.0.19)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.91 | 83 | 8/30/2026 |
| 4.0.90 | 82 | 8/30/2026 |
| 4.0.89 | 76 | 8/29/2026 |
| 4.0.88 | 86 | 8/29/2026 |
| 4.0.87 | 128 | 7/28/2026 |
| 4.0.86 | 105 | 7/27/2026 |
| 4.0.85 | 109 | 7/16/2026 |
| 4.0.84 | 110 | 7/16/2026 |
| 4.0.83 | 128 | 6/19/2026 |
| 4.0.82 | 1,265 | 6/18/2026 |
| 4.0.81 | 140 | 6/5/2026 |
| 4.0.80 | 136 | 6/5/2026 |
| 4.0.79 | 147 | 4/22/2026 |
| 4.0.78 | 135 | 4/22/2026 |
| 4.0.77 | 140 | 3/14/2026 |
| 4.0.76 | 128 | 3/14/2026 |
| 4.0.75 | 135 | 3/14/2026 |
| 4.0.74 | 128 | 3/12/2026 |
| 4.0.73 | 123 | 3/12/2026 |
| 4.0.70 | 128 | 3/11/2026 |
Update dependency Soenneker.Extensions.Spans.Readonly.Objects to 4.0.19 (#116)