Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ExpressionEditor.cs
- HTTPAPI_VERSION.cs
- PointConverter.cs
- TraceInternal.cs
- EngineSiteSapi.cs
- EditingCommands.cs
- ProtocolsConfiguration.cs
- AutomationPatternInfo.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- LocatorManager.cs
- XmlSchemaSimpleTypeRestriction.cs
- ExpressionVisitor.cs
- ObjectTag.cs
- MobileControlDesigner.cs
- WebPartDisplayModeCollection.cs
- EncodingInfo.cs
- KeyedPriorityQueue.cs
- RequestTimeoutManager.cs
- SqlRewriteScalarSubqueries.cs
- WindowsPen.cs
- CompiledELinqQueryState.cs
- SymLanguageVendor.cs
- Stroke2.cs
- ActivityXamlServices.cs
- ConfigXmlComment.cs
- StateMachine.cs
- RewritingSimplifier.cs
- Environment.cs
- COM2ExtendedTypeConverter.cs
- SystemIPInterfaceProperties.cs
- RewritingValidator.cs
- FormsAuthenticationUser.cs
- HttpCookie.cs
- XmlCharacterData.cs
- FormattedTextSymbols.cs
- TrustDriver.cs
- FontFamilyValueSerializer.cs
- ButtonFieldBase.cs
- DocumentViewerBase.cs
- GPPOINTF.cs
- XamlSerializationHelper.cs
- GifBitmapEncoder.cs
- BooleanKeyFrameCollection.cs
- FrameAutomationPeer.cs
- SimpleBitVector32.cs
- CompileXomlTask.cs
- SafeEventLogWriteHandle.cs
- Fault.cs
- VectorKeyFrameCollection.cs
- AppDomain.cs
- XmlQualifiedName.cs
- AnnotationService.cs
- ProfileManager.cs
- OleDbInfoMessageEvent.cs
- DataColumnSelectionConverter.cs
- ScaleTransform3D.cs
- ADMembershipProvider.cs
- SpellCheck.cs
- AuthenticationService.cs
- PrintDialog.cs
- UseLicense.cs
- OSFeature.cs
- ParameterBuilder.cs
- DispatcherOperation.cs
- LogEntrySerializationException.cs
- StrokeNodeOperations2.cs
- ScrollChrome.cs
- UnsafeCollabNativeMethods.cs
- RegistryPermission.cs
- ManagementEventWatcher.cs
- TypeNameHelper.cs
- IndicFontClient.cs
- ErrorProvider.cs
- Unit.cs
- BinaryCommonClasses.cs
- GroupStyle.cs
- LookupBindingPropertiesAttribute.cs
- ReachDocumentSequenceSerializerAsync.cs
- DetailsViewPageEventArgs.cs
- Catch.cs
- Popup.cs
- DataContractSerializerSection.cs
- LocationChangedEventArgs.cs
- UnmanagedMemoryStream.cs
- TransformGroup.cs
- SqlClientWrapperSmiStreamChars.cs
- CodeConstructor.cs
- DataKeyCollection.cs
- XmlEnumAttribute.cs
- CurrentTimeZone.cs
- EventPropertyMap.cs
- ServiceHostFactory.cs
- BuilderPropertyEntry.cs
- SortedList.cs
- SoapExtension.cs
- RijndaelManaged.cs
- XslUrlEditor.cs
- MetadataArtifactLoaderFile.cs
- SqlWriter.cs
- GeometryGroup.cs