You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@ -0,0 +1,79 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="CodePropertyReferenceExpression.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>
|
||||
/// Represents a reference to a property.
|
||||
/// </para>
|
||||
/// </devdoc>
|
||||
[
|
||||
ClassInterface(ClassInterfaceType.AutoDispatch),
|
||||
ComVisible(true),
|
||||
Serializable,
|
||||
]
|
||||
public class CodePropertyReferenceExpression : CodeExpression {
|
||||
private CodeExpression targetObject;
|
||||
private string propertyName;
|
||||
private CodeExpressionCollection parameters = new CodeExpressionCollection();
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>
|
||||
/// Initializes a new instance of <see cref='System.CodeDom.CodePropertyReferenceExpression'/>.
|
||||
/// </para>
|
||||
/// </devdoc>
|
||||
public CodePropertyReferenceExpression() {
|
||||
}
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>
|
||||
/// Initializes a new instance of <see cref='System.CodeDom.CodePropertyReferenceExpression'/> using the specified target object and property
|
||||
/// name.
|
||||
/// </para>
|
||||
/// </devdoc>
|
||||
public CodePropertyReferenceExpression(CodeExpression targetObject, string propertyName) {
|
||||
TargetObject = targetObject;
|
||||
PropertyName = propertyName;
|
||||
}
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>
|
||||
/// The target object containing the property this <see cref='System.CodeDom.CodePropertyReferenceExpression'/> references.
|
||||
/// </para>
|
||||
/// </devdoc>
|
||||
public CodeExpression TargetObject {
|
||||
get {
|
||||
return targetObject;
|
||||
}
|
||||
set {
|
||||
targetObject = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>
|
||||
/// The name of the property to reference.
|
||||
/// </para>
|
||||
/// </devdoc>
|
||||
public string PropertyName {
|
||||
get {
|
||||
return (propertyName == null) ? string.Empty : propertyName;
|
||||
}
|
||||
set {
|
||||
propertyName = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user