Click or drag to resize

MethodRefGetReturnType Method (Object, Expression)

Retrieve the return type of a code object for a method, constructor, indexer, or delegate invocation.

Namespace:  Nova.CodeDOM
Assembly:  Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax
C#
public static TypeRefBase GetReturnType(
	Object obj,
	Expression parentExpression = null
)

Parameters

obj
Type: SystemObject
The code object - can be a MethodDeclBase, MethodDefinition/MethodInfo, or ConstructorInfo; an IndexerDecl, or PropertyDefinition/PropertyInfo for an indexer; or an IVariableDecl CodeObject (PropertyDeclBase, VariableDecl), FieldDefinition/FieldInfo, PropertyDefinition/PropertyInfo, or EventDefinition/EventInfo that has a delegate type).
parentExpression (Optional)
Type: Nova.CodeDOMExpression
The parent expression of the code object for type evaluation purposes.

Return Value

Type: TypeRefBase
The TypeRefBase of the return type, or null if none exists.
See Also