CodeMethodReturnStatement::Expression Property

 

Gets or sets the return value.

Namespace:   System.CodeDom
Assembly:  System (in System.dll)

public:
property CodeExpression^ Expression {
	CodeExpression^ get();
	void set(CodeExpression^ value);
}

Property Value

Type: System.CodeDom::CodeExpression^

A CodeExpression that indicates the value to return for the return statement, or null if the statement is part of a subroutine.

This property should be null for subroutines and be set to something other than null for functions.

.NET Framework
Available since 1.1
Return to top
Show: