Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / CodePropertyReferenceExpression.cs / 1 / CodePropertyReferenceExpression.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.CodeDom {
using System.Diagnostics;
using System;
using Microsoft.Win32;
using System.Collections;
using System.Runtime.InteropServices;
///
///
/// Represents a reference to a property.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodePropertyReferenceExpression : CodeExpression {
private CodeExpression targetObject;
private string propertyName;
private CodeExpressionCollection parameters = new CodeExpressionCollection();
///
///
/// Initializes a new instance of .
///
///
public CodePropertyReferenceExpression() {
}
///
///
/// Initializes a new instance of using the specified target object and property
/// name.
///
///
public CodePropertyReferenceExpression(CodeExpression targetObject, string propertyName) {
TargetObject = targetObject;
PropertyName = propertyName;
}
///
///
/// The target object containing the property this references.
///
///
public CodeExpression TargetObject {
get {
return targetObject;
}
set {
targetObject = value;
}
}
///
///
/// The name of the property to reference.
///
///
public string PropertyName {
get {
return (propertyName == null) ? string.Empty : propertyName;
}
set {
propertyName = value;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextLine.cs
- ButtonBaseAdapter.cs
- InterleavedZipPartStream.cs
- WindowsFormsLinkLabel.cs
- OverflowException.cs
- BuildProviderAppliesToAttribute.cs
- Rule.cs
- OpacityConverter.cs
- _NetRes.cs
- SigningCredentials.cs
- Panel.cs
- BamlBinaryReader.cs
- Int16Storage.cs
- ListViewItem.cs
- WebPartUtil.cs
- TemplateBamlRecordReader.cs
- ObservableCollection.cs
- SendActivityDesignerTheme.cs
- SelectionEditor.cs
- CapabilitiesState.cs
- XmlSchemaSet.cs
- SEHException.cs
- FloaterParaClient.cs
- Function.cs
- TraceSwitch.cs
- SuppressMessageAttribute.cs
- TimeZone.cs
- ClientSettingsSection.cs
- ThaiBuddhistCalendar.cs
- DrawingCollection.cs
- CodeTypeMemberCollection.cs
- ListViewHitTestInfo.cs
- BinaryObjectWriter.cs
- RemoteWebConfigurationHostServer.cs
- KeyValueSerializer.cs
- MemoryMappedViewAccessor.cs
- SchemaConstraints.cs
- ListChunk.cs
- DropShadowEffect.cs
- FileLevelControlBuilderAttribute.cs
- ConcurrentBag.cs
- ToggleProviderWrapper.cs
- IncomingWebRequestContext.cs
- AccessDataSource.cs
- ToolStripDropDownItemDesigner.cs
- VBIdentifierName.cs
- SoapUnknownHeader.cs
- SimpleWebHandlerParser.cs
- DbModificationCommandTree.cs
- CompositeFontParser.cs
- BinHexDecoder.cs
- SrgsRulesCollection.cs
- NativeMethods.cs
- MemberDomainMap.cs
- DefaultEvaluationContext.cs
- LinkArea.cs
- DataGridViewSortCompareEventArgs.cs
- DockPanel.cs
- NodeLabelEditEvent.cs
- Geometry.cs
- PerfCounterSection.cs
- HttpHeaderCollection.cs
- MailAddress.cs
- DiscardableAttribute.cs
- WebPartConnectionCollection.cs
- CodeAttributeArgument.cs
- DesignerForm.cs
- InvalidFilterCriteriaException.cs
- WindowsSpinner.cs
- TimeStampChecker.cs
- ObjectSpanRewriter.cs
- SectionRecord.cs
- ServiceModelConfigurationSectionCollection.cs
- XmlNavigatorStack.cs
- ClientCredentialsSecurityTokenManager.cs
- designeractionbehavior.cs
- MenuScrollingVisibilityConverter.cs
- ConfigurationUtility.cs
- AnnotationComponentChooser.cs
- InstanceHandle.cs
- SqlStream.cs
- Permission.cs
- SmtpTransport.cs
- path.cs
- ToolStripTextBox.cs
- SafeEventLogReadHandle.cs
- SoapClientMessage.cs
- Resources.Designer.cs
- FontNameConverter.cs
- Block.cs
- TraceHandler.cs
- CombinedGeometry.cs
- DodSequenceMerge.cs
- Debug.cs
- HtmlProps.cs
- Keyboard.cs
- TaiwanLunisolarCalendar.cs
- ForceCopyBuildProvider.cs
- ProfilePropertySettings.cs
- FamilyMap.cs