Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// 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;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RawUIStateInputReport.cs
- ImageField.cs
- ResourceExpression.cs
- OleDbDataReader.cs
- MaxSessionCountExceededException.cs
- Rotation3DAnimationBase.cs
- HMACSHA384.cs
- Int32Rect.cs
- SystemGatewayIPAddressInformation.cs
- CalendarItem.cs
- MailFileEditor.cs
- QueryExecutionOption.cs
- DispatcherHooks.cs
- PartialCachingControl.cs
- AuthenticationServiceManager.cs
- EpmCustomContentSerializer.cs
- TraceSection.cs
- TemplateParser.cs
- PositiveTimeSpanValidator.cs
- PseudoWebRequest.cs
- CompoundFileReference.cs
- ListBoxItemAutomationPeer.cs
- WebPartCloseVerb.cs
- CharacterHit.cs
- DataGridViewComboBoxCell.cs
- DynamicResourceExtensionConverter.cs
- InternalConfigEventArgs.cs
- LinkedResourceCollection.cs
- StyleCollection.cs
- FileResponseElement.cs
- NamespaceInfo.cs
- FormsAuthenticationEventArgs.cs
- RtType.cs
- DomainConstraint.cs
- TextRunCache.cs
- ClientBuildManager.cs
- EmbossBitmapEffect.cs
- AffineTransform3D.cs
- followingsibling.cs
- MetadataCollection.cs
- StreamMarshaler.cs
- XmlSchemaSequence.cs
- ListViewItemEventArgs.cs
- AxParameterData.cs
- Ticks.cs
- PenThreadWorker.cs
- FontSizeConverter.cs
- ButtonStandardAdapter.cs
- PageSetupDialog.cs
- RowParagraph.cs
- DataSourceSerializationException.cs
- CollectionViewGroupInternal.cs
- DataGridComponentEditor.cs
- TreeNodeBindingCollection.cs
- HtmlShim.cs
- HttpContextServiceHost.cs
- FormViewDeleteEventArgs.cs
- RadioButton.cs
- WebBrowserEvent.cs
- ObjectContextServiceProvider.cs
- CodeSnippetCompileUnit.cs
- XXXOnTypeBuilderInstantiation.cs
- Item.cs
- METAHEADER.cs
- Baml2006ReaderFrame.cs
- CorrelationManager.cs
- FileResponseElement.cs
- SuppressMergeCheckAttribute.cs
- HiddenField.cs
- ImplicitInputBrush.cs
- PermissionSet.cs
- ManipulationDeltaEventArgs.cs
- Triangle.cs
- SafeBitVector32.cs
- EmptyArray.cs
- BamlResourceSerializer.cs
- HtmlElementErrorEventArgs.cs
- BindingListCollectionView.cs
- SortDescription.cs
- PartialToken.cs
- SoapExtensionTypeElementCollection.cs
- webeventbuffer.cs
- SkinBuilder.cs
- Buffer.cs
- Compiler.cs
- QueryCacheManager.cs
- Scanner.cs
- CodeIdentifier.cs
- StaticResourceExtension.cs
- ContentWrapperAttribute.cs
- HostingEnvironment.cs
- UserInitiatedRoutedEventPermission.cs
- ActiveXMessageFormatter.cs
- CqlIdentifiers.cs
- PerspectiveCamera.cs
- SID.cs
- ReadOnlyCollectionBuilder.cs
- WebConfigurationFileMap.cs
- SqlTransaction.cs
- AbandonedMutexException.cs