Click or drag to resize

ForEachGetCollectionExpressionElementType Method

Determine the element type of the specified collection expression.

Namespace:  Nova.CodeDOM
Assembly:  Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax
C#
public static TypeRefBase GetCollectionExpressionElementType(
	Expression collectionExpression,
	LocalDecl localDecl = null
)

Parameters

collectionExpression
Type: Nova.CodeDOMExpression
The collection expression.
localDecl (Optional)
Type: Nova.CodeDOMLocalDecl
The local declaration used to store the element type (if any) - if the collection is of dynamic type, then if the local has an inferred type the element type will also be dynamic, otherwise it will be of type 'object'.

Return Value

Type: TypeRefBase
See Also