Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / System / compmod / system / codedom / CodeEventReferenceExpression.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="CodeEventReferenceExpression.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>[To be supplied.]</para>
19     /// </devdoc>
20     [
21         ClassInterface(ClassInterfaceType.AutoDispatch),
22         ComVisible(true),
23         Serializable,
24     ]
25     public class CodeEventReferenceExpression : CodeExpression {
26         private CodeExpression targetObject;
27         private string eventName;
28
29         /// <devdoc>
30         ///    <para>[To be supplied.]</para>
31         /// </devdoc>
32         public CodeEventReferenceExpression() {
33         }
34
35         /// <devdoc>
36         ///    <para>[To be supplied.]</para>
37         /// </devdoc>
38         public CodeEventReferenceExpression(CodeExpression targetObject, string eventName) {
39             this.targetObject = targetObject;
40             this.eventName = eventName;
41         }
42
43         /// <devdoc>
44         ///    <para>[To be supplied.]</para>
45         /// </devdoc>
46         public CodeExpression TargetObject {
47             get {
48                 return targetObject;
49             }
50             set {
51                 this.targetObject = value;
52             }
53         }
54
55         /// <devdoc>
56         ///    <para>[To be supplied.]</para>
57         /// </devdoc>
58         public string EventName {
59             get {
60                 return (eventName == null) ? string.Empty : eventName;
61             }
62             set {
63                 eventName = value;
64             }
65         }
66     }
67 }