Skip to end of metadata
Go to start of metadata

Definition

public static class TypeExtensions

Summary

The following table summarizes the members exposed in this class.

Static Methods

IsClass(Type) Gets a value indicating whether the underlying type is a class. Not a value type, string, or interface.
IsCollection(Type) Gets a value indicating whether the underlying type is a collection.
IsEnumerable(Type) Gets a value indicating whether the underlying type is an Enumerable.
IsNumeric(Type) Gets a value indicating whether the underlying type is a numeric.

Static Methods

public static bool IsClass(Type type)

Gets a value indicating whether the underlying type is a class. Not a value type, string, or interface.

Parameters

type The underlying type.

Return Types

true if the underlying type is a class; otherwise, false.

public static bool IsCollection(Type type)

Gets a value indicating whether the underlying type is a collection.

Parameters

type The underlying type.

Return Types

true if the underlying type is a collection; otherwise, false.

public static bool IsEnumerable(Type type)

Gets a value indicating whether the underlying type is an Enumerable.

Parameters

type The underlying type.

Return Types

true if the underlying type is an Enumerable; otherwise, false.

public static bool IsNumeric(Type type)

Gets a value indicating whether the underlying type is a numeric.

Parameters

type The underlying type.

Return Types

true if the underlying type is a numeric; otherwise, false.
  • No labels