1 //------------------------------------------------------------------------------
2 // <copyright file="CodeMethodReturnStatement.cs" company="Microsoft">
4 // <OWNER>Microsoft</OWNER>
5 // Copyright (c) Microsoft Corporation. All rights reserved.
7 //------------------------------------------------------------------------------
9 namespace System.CodeDom {
11 using System.Diagnostics;
13 using Microsoft.Win32;
14 using System.Collections;
15 using System.Runtime.InteropServices;
19 /// Represents a return statement.
23 ClassInterface(ClassInterfaceType.AutoDispatch),
27 public class CodeMethodReturnStatement : CodeStatement {
28 private CodeExpression expression;
32 /// Initializes a new instance of <see cref='System.CodeDom.CodeMethodReturnStatement'/>.
35 public CodeMethodReturnStatement() {
40 /// Initializes a new instance of <see cref='System.CodeDom.CodeMethodReturnStatement'/> using the specified expression.
43 public CodeMethodReturnStatement(CodeExpression expression) {
44 Expression = expression;
49 /// Gets or sets the expression that indicates the return statement.
52 public CodeExpression Expression {