Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / CodeDOM / CodeIndexerExpression.cs / 1 / CodeIndexerExpression.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 an array indexer expression.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeIndexerExpression : CodeExpression {
private CodeExpression targetObject;
private CodeExpressionCollection indices;
///
///
/// Initializes a new instance of .
///
///
public CodeIndexerExpression() {
}
///
///
/// Initializes a new instance of using the specified target
/// object and index.
///
///
public CodeIndexerExpression(CodeExpression targetObject, params CodeExpression[] indices) {
this.targetObject = targetObject;
this.indices = new CodeExpressionCollection();
this.indices.AddRange(indices);
}
///
///
/// Gets or sets
/// the target object.
///
///
public CodeExpression TargetObject {
get {
return targetObject;
}
set {
targetObject = value;
}
}
///
///
/// Gets or sets
/// the index.
///
///
public CodeExpressionCollection Indices {
get {
if (indices == null) {
indices = new CodeExpressionCollection();
}
return indices;
}
}
}
}
// 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 an array indexer expression.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeIndexerExpression : CodeExpression {
private CodeExpression targetObject;
private CodeExpressionCollection indices;
///
///
/// Initializes a new instance of .
///
///
public CodeIndexerExpression() {
}
///
///
/// Initializes a new instance of using the specified target
/// object and index.
///
///
public CodeIndexerExpression(CodeExpression targetObject, params CodeExpression[] indices) {
this.targetObject = targetObject;
this.indices = new CodeExpressionCollection();
this.indices.AddRange(indices);
}
///
///
/// Gets or sets
/// the target object.
///
///
public CodeExpression TargetObject {
get {
return targetObject;
}
set {
targetObject = value;
}
}
///
///
/// Gets or sets
/// the index.
///
///
public CodeExpressionCollection Indices {
get {
if (indices == null) {
indices = new CodeExpressionCollection();
}
return indices;
}
}
}
}
// 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
- QueryTaskGroupState.cs
- Listbox.cs
- DesignerForm.cs
- InternalBufferOverflowException.cs
- HyperLinkField.cs
- ColorKeyFrameCollection.cs
- PtsPage.cs
- IDispatchConstantAttribute.cs
- DbgCompiler.cs
- XmlCharCheckingWriter.cs
- DocumentCollection.cs
- XmlHierarchicalDataSourceView.cs
- MinMaxParagraphWidth.cs
- BasePattern.cs
- ProxyBuilder.cs
- ArrangedElement.cs
- MsmqProcessProtocolHandler.cs
- SqlCommandSet.cs
- HttpClientProtocol.cs
- SqlTopReducer.cs
- RemoteWebConfigurationHost.cs
- EntityDataSourceStatementEditorForm.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- HostingEnvironmentSection.cs
- SQLSingleStorage.cs
- QuerySettings.cs
- XhtmlBasicTextViewAdapter.cs
- AddInServer.cs
- InkSerializer.cs
- PropertyMapper.cs
- MiniModule.cs
- TaiwanLunisolarCalendar.cs
- SecurityUtils.cs
- StringValueConverter.cs
- EntryPointNotFoundException.cs
- DbConnectionPoolCounters.cs
- SafeRightsManagementSessionHandle.cs
- FlatButtonAppearance.cs
- XmlReaderDelegator.cs
- ClientType.cs
- DataRowExtensions.cs
- IndicShape.cs
- VirtualizedContainerService.cs
- CompoundFileDeflateTransform.cs
- Variable.cs
- Misc.cs
- PropertyChangedEventManager.cs
- EmptyControlCollection.cs
- HeaderPanel.cs
- InlineUIContainer.cs
- coordinator.cs
- DiscoveryDocumentSearchPattern.cs
- ClickablePoint.cs
- DeploymentExceptionMapper.cs
- SqlNotificationRequest.cs
- ZoneButton.cs
- Faults.cs
- RequestCachingSection.cs
- CompoundFileReference.cs
- UIElementParagraph.cs
- FixedPage.cs
- TextBoxDesigner.cs
- TrustLevelCollection.cs
- SessionStateItemCollection.cs
- EditorZoneAutoFormat.cs
- PipeException.cs
- ContentDesigner.cs
- WebPartVerbsEventArgs.cs
- GenericPrincipal.cs
- NumberFormatter.cs
- IIS7WorkerRequest.cs
- OrderingInfo.cs
- QilDataSource.cs
- ToolboxSnapDragDropEventArgs.cs
- SplitterPanelDesigner.cs
- AutomationEvent.cs
- MetadataCacheItem.cs
- ColorConvertedBitmap.cs
- FixedFlowMap.cs
- CustomLineCap.cs
- FlowLayoutSettings.cs
- GreenMethods.cs
- SqlStream.cs
- PriorityRange.cs
- UnknownWrapper.cs
- CodeLabeledStatement.cs
- IteratorDescriptor.cs
- TextEditor.cs
- WebDisplayNameAttribute.cs
- FontStyle.cs
- TextTreeFixupNode.cs
- ArgumentException.cs
- webclient.cs
- WindowsProgressbar.cs
- NetworkInformationPermission.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- DesignerView.Commands.cs
- RectAnimationClockResource.cs
- AuthenticationConfig.cs
- DiagnosticTrace.cs