Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / CodeArrayCreateExpression.cs / 1 / CodeArrayCreateExpression.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; ////// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeArrayCreateExpression : CodeExpression { private CodeTypeReference createType; private CodeExpressionCollection initializers = new CodeExpressionCollection(); private CodeExpression sizeExpression; private int size = 0; ///Represents /// an expression that creates an array. ////// public CodeArrayCreateExpression() { } ////// Initializes a new instance of ///. /// /// public CodeArrayCreateExpression(CodeTypeReference createType, params CodeExpression[] initializers) { this.createType = createType; this.initializers.AddRange(initializers); } ////// Initializes a new instance of ///with the specified /// array type and initializers. /// /// public CodeArrayCreateExpression(string createType, params CodeExpression[] initializers) { this.createType = new CodeTypeReference(createType); this.initializers.AddRange(initializers); } ///[To be supplied.] ////// public CodeArrayCreateExpression(Type createType, params CodeExpression[] initializers) { this.createType = new CodeTypeReference(createType); this.initializers.AddRange(initializers); } ///[To be supplied.] ////// public CodeArrayCreateExpression(CodeTypeReference createType, int size) { this.createType = createType; this.size = size; } ////// Initializes a new instance of ///. with the specified array /// type and size. /// /// public CodeArrayCreateExpression(string createType, int size) { this.createType = new CodeTypeReference(createType); this.size = size; } ///[To be supplied.] ////// public CodeArrayCreateExpression(Type createType, int size) { this.createType = new CodeTypeReference(createType); this.size = size; } ///[To be supplied.] ////// public CodeArrayCreateExpression(CodeTypeReference createType, CodeExpression size) { this.createType = createType; this.sizeExpression = size; } ////// Initializes a new instance of ///. with the specified array /// type and size. /// /// public CodeArrayCreateExpression(string createType, CodeExpression size) { this.createType = new CodeTypeReference(createType); this.sizeExpression = size; } ///[To be supplied.] ////// public CodeArrayCreateExpression(Type createType, CodeExpression size) { this.createType = new CodeTypeReference(createType); this.sizeExpression = size; } ///[To be supplied.] ////// public CodeTypeReference CreateType { get { if (createType == null) { createType = new CodeTypeReference(""); } return createType; } set { createType = value; } } ////// Gets or sets /// the type of the array to create. /// ////// public CodeExpressionCollection Initializers { get { return initializers; } } ////// Gets or sets /// the initializers to initialize the array with. /// ////// public int Size { get { return size; } set { size = value; } } ////// Gets or sets /// the size of the array. /// ////// public CodeExpression SizeExpression { get { return sizeExpression; } set { sizeExpression = value; } } } }Gets or sets the size of the array. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- KnownBoxes.cs
- ForwardPositionQuery.cs
- WebEvents.cs
- ParseHttpDate.cs
- ExponentialEase.cs
- AsymmetricKeyExchangeDeformatter.cs
- MultiAsyncResult.cs
- Automation.cs
- WebPartUserCapability.cs
- StylusPointDescription.cs
- DataKeyCollection.cs
- SchemaElement.cs
- BinaryFormatter.cs
- DataGridViewCellStyleEditor.cs
- BasicKeyConstraint.cs
- GlobalizationSection.cs
- ConnectionStringsExpressionEditor.cs
- WebPartConnectionsCancelEventArgs.cs
- ExitEventArgs.cs
- DataControlCommands.cs
- HttpsHostedTransportConfiguration.cs
- HttpCacheVary.cs
- FormsIdentity.cs
- NativeRecognizer.cs
- XmlIlVisitor.cs
- _PooledStream.cs
- While.cs
- XsdBuilder.cs
- AllMembershipCondition.cs
- WaitHandle.cs
- FormViewUpdatedEventArgs.cs
- GregorianCalendarHelper.cs
- XmlSchemaAttribute.cs
- WorkflowPrinting.cs
- DoubleStorage.cs
- URLMembershipCondition.cs
- ControlBindingsCollection.cs
- XmlSchemaDocumentation.cs
- OperationDescriptionCollection.cs
- TextHidden.cs
- ToggleProviderWrapper.cs
- OleDbDataReader.cs
- ListMarkerLine.cs
- ListView.cs
- LinqTreeNodeEvaluator.cs
- DetailsViewDeleteEventArgs.cs
- EntryWrittenEventArgs.cs
- GridErrorDlg.cs
- NativeMethods.cs
- BamlRecordReader.cs
- Environment.cs
- WizardStepBase.cs
- tooltip.cs
- ColumnReorderedEventArgs.cs
- TextTreeInsertUndoUnit.cs
- VBIdentifierDesigner.xaml.cs
- CompositeControl.cs
- XmlnsPrefixAttribute.cs
- MSHTMLHostUtil.cs
- AssemblyAttributes.cs
- BitmapMetadataEnumerator.cs
- ByteStack.cs
- XmlSchemaAppInfo.cs
- ObjectComplexPropertyMapping.cs
- TransformCollection.cs
- TrackBar.cs
- ErrorHandler.cs
- XmlSignatureProperties.cs
- CreateUserWizard.cs
- Base64Stream.cs
- ModelTreeManager.cs
- ToolStripHighContrastRenderer.cs
- StringSource.cs
- FixedPosition.cs
- Cursors.cs
- MasterPage.cs
- ManagementScope.cs
- StrongNameKeyPair.cs
- TcpChannelListener.cs
- GraphicsContainer.cs
- Stacktrace.cs
- DataRelationCollection.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- ExceptionHandlersDesigner.cs
- BoolExpr.cs
- RoutedEventHandlerInfo.cs
- ExtendedProtectionPolicy.cs
- BezierSegment.cs
- Accessible.cs
- DataExchangeServiceBinder.cs
- DataObjectFieldAttribute.cs
- XsdCachingReader.cs
- SqlDataSource.cs
- ResourceExpressionEditorSheet.cs
- WebMessageFormatHelper.cs
- SqlInternalConnection.cs
- PlaceHolder.cs
- Label.cs
- FontSourceCollection.cs
- XamlFrame.cs