Class ValueHelpers
Provides a set of static methods related to values.
public static class ValueHelpers
- Inheritance
-
ValueHelpers
- Inherited Members
Methods
GetValues<T>(object?)
Gets the object itself if it is of the specified type, or the items of the specified type if the object is an enumerable.
public static IEnumerable<T> GetValues<T>(object? obj)
Parameters
objobject- The object.
Returns
- IEnumerable<T>
- An enumerable containing the instances of the specified type within the object.
Type Parameters
T- The type of the items.