Code:
/ FX-1434 / FX-1434 / 1.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
- LayoutTableCell.cs
- WebPartConnectionsCancelVerb.cs
- CalendarButtonAutomationPeer.cs
- DataService.cs
- CompModHelpers.cs
- MailAddressCollection.cs
- CellParaClient.cs
- PluralizationService.cs
- HebrewCalendar.cs
- SatelliteContractVersionAttribute.cs
- XsdCachingReader.cs
- DrawingCollection.cs
- ToolBarPanel.cs
- BufferedGraphics.cs
- HttpWebResponse.cs
- MemoryMappedView.cs
- WindowsFormsHostAutomationPeer.cs
- Int32CollectionConverter.cs
- LinkDesigner.cs
- StateManagedCollection.cs
- XPathNode.cs
- IsolatedStorageFilePermission.cs
- DurationConverter.cs
- Input.cs
- MainMenu.cs
- CommandBinding.cs
- ShaderEffect.cs
- FileFormatException.cs
- Bitmap.cs
- XmlSchemaSimpleContent.cs
- StorageComplexTypeMapping.cs
- QilValidationVisitor.cs
- DataKey.cs
- ObjectManager.cs
- PagesSection.cs
- SqlAliaser.cs
- RemoteDebugger.cs
- RegistryKey.cs
- UnsettableComboBox.cs
- SqlNodeAnnotation.cs
- Util.cs
- XmlTextWriter.cs
- FunctionNode.cs
- DrawingImage.cs
- SqlExpressionNullability.cs
- HttpRuntime.cs
- Registry.cs
- XhtmlStyleClass.cs
- HWStack.cs
- Graphics.cs
- TableCellCollection.cs
- TaskFactory.cs
- _SpnDictionary.cs
- HtmlMeta.cs
- UrlMappingsModule.cs
- WorkerRequest.cs
- EntityModelBuildProvider.cs
- ExpandableObjectConverter.cs
- WarningException.cs
- ConfigXmlAttribute.cs
- WebServiceErrorEvent.cs
- Int32AnimationBase.cs
- SchemaTableColumn.cs
- TabletDevice.cs
- ErrorWebPart.cs
- FastEncoderWindow.cs
- XsdSchemaFileEditor.cs
- XmlSchemaAll.cs
- DataGridViewCellEventArgs.cs
- ConditionalAttribute.cs
- ReferenceService.cs
- UrlPath.cs
- Marshal.cs
- Int32RectConverter.cs
- SequentialOutput.cs
- FormatPage.cs
- FontStretchConverter.cs
- ReferenceAssemblyAttribute.cs
- CreateDataSourceDialog.cs
- XPathBuilder.cs
- DynamicUpdateCommand.cs
- X509Extension.cs
- RegularExpressionValidator.cs
- NavigationExpr.cs
- SinglePhaseEnlistment.cs
- CacheMemory.cs
- APCustomTypeDescriptor.cs
- SafeFileMappingHandle.cs
- BamlMapTable.cs
- ZipIOExtraFieldZip64Element.cs
- IndexedDataBuffer.cs
- HostingMessageProperty.cs
- BoundsDrawingContextWalker.cs
- WorkflowServiceHost.cs
- WebPartEditorCancelVerb.cs
- NavigationHelper.cs
- XmlSchemaAnnotation.cs
- ISO2022Encoding.cs
- FilterRepeater.cs
- IRCollection.cs