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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Extensions.Array.Object" Version="4.0.91" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.Array.Object" Version="4.0.91" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Extensions.Array.Object" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Extensions.Array.Object --version 4.0.91
                    
#r "nuget: Soenneker.Extensions.Array.Object, 4.0.91"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Extensions.Array.Object@4.0.91
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Extensions.Array.Object&version=4.0.91
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.Array.Object&version=4.0.91
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed

Update dependency Soenneker.Extensions.Spans.Readonly.Objects to 4.0.19 (#116)