Click or drag to resize

TypeUtil Class

Extension methods for Type.
Inheritance Hierarchy
SystemObject
  Nova.UtilitiesTypeUtil

Namespace:  Nova.Utilities
Assembly:  Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax
C#
public static class TypeUtil

The TypeUtil type exposes the following members.

Methods
  NameDescription
Public methodStatic memberChangeType
Change the specified object to the specified type, forcing larger integers into smaller ones without exceptions.
Public methodStatic memberFindExtensionMethods
Search for extension methods on the type with the specified name.
Public methodStatic memberFindTypeArgument
Find a type argument for the specified type parameter.
Public methodStatic memberFindTypeArgumentInBase
Find a type argument in a base class for the specified type parameter.
Public methodStatic memberFindTypeParameterIndex
Find the index of the specified type parameter.
Public methodStatic memberGetDelegateParameters
Get the parameters for a delegate type.
Public methodStatic memberGetDelegateReturnType
Get the return type for a delegate type.
Public methodStatic memberGetEventExt
Search for an event by name. Unlike GetEvent(), searches base interfaces.
Public methodStatic memberGetIndexerExt
Search for an indexer by parameter types. Unlike GetIndexer(), does 'loose' matching on generic arameter types, and searches base interfaces.
Public methodStatic memberGetInvokeMethod
Get the 'Invoke()' method for the specified Type.
Public methodStatic memberGetLocalGenericArgumentCount
Get the number of local generic arguments for the type, NOT including arguments from any enclosing generic types.
Public methodStatic memberGetLocalGenericArguments
Get the local generic arguments for the type, NOT including arguments from any enclosing generic types.
Public methodStatic memberGetMethodExt(Type, String, Type)
Search for a method by name and parameter types. Unlike GetMethod(), does 'loose' matching on generic parameter types, and searches base interfaces.
Public methodStatic memberGetMethodExt(Type, String, BindingFlags, Type)
Search for a method by name, parameter types, and binding flags. Unlike GetMethod(), does 'loose' matching on generic parameter types, and searches base interfaces.
Public methodStatic memberGetPropertyExt
Search for a property by name. Unlike GetProperty(), searches base interfaces.
Public methodStatic memberHasSameTypeArguments
Determine if this type has the same type arguments as the specified type.
Public methodStatic memberIsBitFlagsEnum
Determine if the type is a bit-flags style enum.
Public methodStatic memberIsComImport
True if the type is a COM Import.
Public methodStatic memberIsDelegateType
Determine if the type is a delegate type.
Public methodStatic memberIsFixedBufferType
Determine if the type is a fixed-buffer type.
Public methodStatic memberIsImplementationOf
Determine if the type implements the specified interface. If a generic interface is specified, and it's not the generic type definition of the interface, then the type arguments are also compared.
Public methodStatic memberIsInternal
Return true if the type is internal, otherwise false.
Public methodStatic memberIsNullableType
Determine if the type is a nullable type.
Public methodStatic memberIsPrivate
Return true if the type is private, otherwise false.
Public methodStatic memberIsProtected
Return true if the type is protected, otherwise false.
Public methodStatic memberIsStatic
Return true if the type is static, otherwise false.
Public methodStatic memberIsUserClass
Determine if the type is a user-defined class (excludes 'object' and 'string').
Public methodStatic memberIsUserStruct
Determine if the type is a user-defined struct (excludes primitive types including 'void' and 'decimal', and enums).
Public methodStatic memberMakeArrayType
Make an array type.
Public methodStatic memberNonGenericName
Returns the name without any trailing '`' and type parameter count.
Top
Fields
  NameDescription
Public fieldStatic memberComImportAttributeName
The name of the ComImport attribute.
Public fieldStatic memberFlagsAttributeName
The name of the flags attribute.
Top
See Also