e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
68 lines
1.9 KiB
C#
68 lines
1.9 KiB
C#
//------------------------------------------------------------------------------
|
|
// <copyright file="CodeEventReferenceExpression.cs" company="Microsoft">
|
|
//
|
|
// <OWNER>[....]</OWNER>
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace System.CodeDom {
|
|
|
|
using System.Diagnostics;
|
|
using System;
|
|
using Microsoft.Win32;
|
|
using System.Collections;
|
|
using System.Runtime.InteropServices;
|
|
|
|
/// <devdoc>
|
|
/// <para>[To be supplied.]</para>
|
|
/// </devdoc>
|
|
[
|
|
ClassInterface(ClassInterfaceType.AutoDispatch),
|
|
ComVisible(true),
|
|
Serializable,
|
|
]
|
|
public class CodeEventReferenceExpression : CodeExpression {
|
|
private CodeExpression targetObject;
|
|
private string eventName;
|
|
|
|
/// <devdoc>
|
|
/// <para>[To be supplied.]</para>
|
|
/// </devdoc>
|
|
public CodeEventReferenceExpression() {
|
|
}
|
|
|
|
/// <devdoc>
|
|
/// <para>[To be supplied.]</para>
|
|
/// </devdoc>
|
|
public CodeEventReferenceExpression(CodeExpression targetObject, string eventName) {
|
|
this.targetObject = targetObject;
|
|
this.eventName = eventName;
|
|
}
|
|
|
|
/// <devdoc>
|
|
/// <para>[To be supplied.]</para>
|
|
/// </devdoc>
|
|
public CodeExpression TargetObject {
|
|
get {
|
|
return targetObject;
|
|
}
|
|
set {
|
|
this.targetObject = value;
|
|
}
|
|
}
|
|
|
|
/// <devdoc>
|
|
/// <para>[To be supplied.]</para>
|
|
/// </devdoc>
|
|
public string EventName {
|
|
get {
|
|
return (eventName == null) ? string.Empty : eventName;
|
|
}
|
|
set {
|
|
eventName = value;
|
|
}
|
|
}
|
|
}
|
|
}
|