Xamarin Public Jenkins (auto-signing) e79aa3c0ed Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
2016-08-03 10:59:49 +00:00

80 lines
2.5 KiB
C#

//------------------------------------------------------------------------------
// <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;
}
}
}
}