Soenneker.Extensions.Array.Object 11.0.121

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Extensions.Array.Object --version 11.0.121
                    
NuGet\Install-Package Soenneker.Extensions.Array.Object -Version 11.0.121
                    
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="11.0.121" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.Array.Object" Version="11.0.121" />
                    
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 11.0.121
                    
#r "nuget: Soenneker.Extensions.Array.Object, 11.0.121"
                    
#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@11.0.121
                    
#: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=11.0.121
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.Array.Object&version=11.0.121
                    
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 net11.0 is compatible. 
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
11.0.123 53 11/18/2026
11.0.121 118 11/11/2026
11.0.120 91 11/11/2026
11.0.119 104 11/10/2026
11.0.118 91 11/10/2026
11.0.117 128 11/2/2026
11.0.116 97 11/2/2026
11.0.115 128 10/26/2026
11.0.114 116 10/26/2026
11.0.113 108 10/26/2026
4.0.111 113 10/15/2026
4.0.110 105 10/14/2026
4.0.109 98 10/14/2026
4.0.108 111 10/14/2026
4.0.103 111 10/13/2026
4.0.102 104 10/12/2026
4.0.100 108 10/12/2026
4.0.99 108 10/11/2026
4.0.98 110 10/11/2026
4.0.97 112 9/24/2026
Loading failed

Update dependency Soenneker.Extensions.Spans.Readonly.Objects to 11.0.36 (#155)