Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodePropertyReferenceExpression.cs / 1305376 / 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
- DllNotFoundException.cs
- DoubleCollectionValueSerializer.cs
- SecurityResources.cs
- DescendantOverDescendantQuery.cs
- SchemaSetCompiler.cs
- webproxy.cs
- BuildProvider.cs
- DateTimeParse.cs
- InputElement.cs
- ChannelToken.cs
- RegisteredDisposeScript.cs
- _NetworkingPerfCounters.cs
- GridViewSortEventArgs.cs
- GenericEnumConverter.cs
- PeerName.cs
- ObjectQueryProvider.cs
- ResourceContainer.cs
- DragEventArgs.cs
- SpeechEvent.cs
- PartitionResolver.cs
- ThemeableAttribute.cs
- EventManager.cs
- linebase.cs
- XamlGridLengthSerializer.cs
- followingquery.cs
- ResourceDefaultValueAttribute.cs
- AccessedThroughPropertyAttribute.cs
- CharacterMetrics.cs
- NamespaceCollection.cs
- MemoryPressure.cs
- ImageSource.cs
- IsolatedStorage.cs
- RawStylusSystemGestureInputReport.cs
- PerformanceCounterNameAttribute.cs
- MetadataPropertyCollection.cs
- DateTime.cs
- UserControlCodeDomTreeGenerator.cs
- OdbcHandle.cs
- GraphicsState.cs
- TargetPerspective.cs
- XmlCharCheckingReader.cs
- BufferModesCollection.cs
- NullableDecimalSumAggregationOperator.cs
- LocationUpdates.cs
- PaintValueEventArgs.cs
- TypeUnloadedException.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ToolZone.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- SmiContextFactory.cs
- SystemIPv6InterfaceProperties.cs
- NativeWindow.cs
- XmlDataSourceView.cs
- MenuItem.cs
- WebServiceTypeData.cs
- DragDropHelper.cs
- OrthographicCamera.cs
- UnmanagedMarshal.cs
- SHA1CryptoServiceProvider.cs
- ValuePatternIdentifiers.cs
- ObjectDataSourceDisposingEventArgs.cs
- TextUtf8RawTextWriter.cs
- SmtpTransport.cs
- ToolStripDropDown.cs
- DtrList.cs
- SemanticResultKey.cs
- DataPagerFieldCommandEventArgs.cs
- UserControlDesigner.cs
- DescendantOverDescendantQuery.cs
- CultureInfoConverter.cs
- TextSpanModifier.cs
- DataRecordObjectView.cs
- ConfigurationStrings.cs
- PageCatalogPart.cs
- CallbackHandler.cs
- UIAgentCrashedException.cs
- PeerCollaboration.cs
- latinshape.cs
- AppSettingsExpressionBuilder.cs
- FixedSOMSemanticBox.cs
- ILGenerator.cs
- IsolatedStorageException.cs
- TrustDriver.cs
- OleDbDataAdapter.cs
- OperandQuery.cs
- XPathChildIterator.cs
- AgileSafeNativeMemoryHandle.cs
- ExpressionWriter.cs
- MultipleViewProviderWrapper.cs
- ActivationServices.cs
- WebSysDescriptionAttribute.cs
- XmlNamespaceMappingCollection.cs
- VBCodeProvider.cs
- LinkArea.cs
- NamedPipeHostedTransportConfiguration.cs
- BitFlagsGenerator.cs
- BooleanAnimationBase.cs
- ExeContext.cs
- OdbcConnection.cs
- SimpleTableProvider.cs