Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / System / compmod / system / codedom / CodeMethodReturnStatement.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="CodeMethodReturnStatement.cs" company="Microsoft">
3 // 
4 // <OWNER>Microsoft</OWNER>
5 //     Copyright (c) Microsoft Corporation.  All rights reserved.
6 // </copyright>                                                                
7 //------------------------------------------------------------------------------
8
9 namespace System.CodeDom {
10
11     using System.Diagnostics;
12     using System;
13     using Microsoft.Win32;
14     using System.Collections;
15     using System.Runtime.InteropServices;
16
17     /// <devdoc>
18     ///    <para>
19     ///       Represents a return statement.
20     ///    </para>
21     /// </devdoc>
22     [
23         ClassInterface(ClassInterfaceType.AutoDispatch),
24         ComVisible(true),
25         Serializable,
26     ]
27     public class CodeMethodReturnStatement : CodeStatement {
28         private CodeExpression expression;
29
30         /// <devdoc>
31         ///    <para>
32         ///       Initializes a new instance of <see cref='System.CodeDom.CodeMethodReturnStatement'/>.
33         ///    </para>
34         /// </devdoc>
35         public CodeMethodReturnStatement() {
36         }
37
38         /// <devdoc>
39         ///    <para>
40         ///       Initializes a new instance of <see cref='System.CodeDom.CodeMethodReturnStatement'/> using the specified expression.
41         ///    </para>
42         /// </devdoc>
43         public CodeMethodReturnStatement(CodeExpression expression) {
44             Expression = expression;
45         }
46
47         /// <devdoc>
48         ///    <para>
49         ///       Gets or sets the expression that indicates the return statement.
50         ///    </para>
51         /// </devdoc>
52         public CodeExpression Expression {
53             get {
54                 return expression;
55             }
56             set {
57                 expression = value;
58             }
59         }
60     }
61 }