Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeArrayCreateExpression.cs / 1305376 / CodeArrayCreateExpression.cs
//------------------------------------------------------------------------------ //// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Gets or sets the size of the array. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpCacheVaryByContentEncodings.cs
- ContentIterators.cs
- XmlToDatasetMap.cs
- HttpCookieCollection.cs
- PropertyGrid.cs
- HttpCachePolicy.cs
- CompositeFontParser.cs
- XmlSchemaComplexContentExtension.cs
- ArgumentNullException.cs
- FixedTextView.cs
- _IPv6Address.cs
- LexicalChunk.cs
- WindowsIdentity.cs
- WmlPageAdapter.cs
- TabRenderer.cs
- Win32.cs
- TraceXPathNavigator.cs
- XPathDocument.cs
- LabelAutomationPeer.cs
- LeaseManager.cs
- EnumCodeDomSerializer.cs
- GetPageCompletedEventArgs.cs
- SharedConnectionInfo.cs
- QueryCacheManager.cs
- TdsParserHelperClasses.cs
- SafeNativeMethodsOther.cs
- StrokeCollectionDefaultValueFactory.cs
- ImplicitInputBrush.cs
- BinaryFormatter.cs
- Visual3D.cs
- CaretElement.cs
- AsynchronousChannel.cs
- FontClient.cs
- ColumnWidthChangedEvent.cs
- ErrorProvider.cs
- EventManager.cs
- XslUrlEditor.cs
- StaticExtensionConverter.cs
- EncryptedPackage.cs
- SubMenuStyleCollection.cs
- TableItemStyle.cs
- BrowserCapabilitiesCodeGenerator.cs
- ReferentialConstraint.cs
- IdentityModelStringsVersion1.cs
- InputGestureCollection.cs
- UnicastIPAddressInformationCollection.cs
- XmlSchemaComplexType.cs
- SqlGenericUtil.cs
- MethodCallExpression.cs
- XmlMessageFormatter.cs
- BinaryWriter.cs
- CombinedGeometry.cs
- LogEntryHeaderv1Deserializer.cs
- LogStream.cs
- SmtpNetworkElement.cs
- UIElement3D.cs
- ExpandCollapsePattern.cs
- DoubleAnimation.cs
- Pair.cs
- Registry.cs
- DynamicRouteExpression.cs
- SignatureGenerator.cs
- ParagraphVisual.cs
- AmbientProperties.cs
- EnterpriseServicesHelper.cs
- PickDesigner.xaml.cs
- SqlUserDefinedTypeAttribute.cs
- QueryOperationResponseOfT.cs
- QilInvokeLateBound.cs
- Parser.cs
- ControlCollection.cs
- Wizard.cs
- SqlFacetAttribute.cs
- DataGridViewColumnHeaderCell.cs
- Win32.cs
- DefaultValueTypeConverter.cs
- DocumentSequence.cs
- ProcessInfo.cs
- baseshape.cs
- ReadOnlyDataSourceView.cs
- VariantWrapper.cs
- Range.cs
- SystemBrushes.cs
- View.cs
- autovalidator.cs
- ProcessHost.cs
- Walker.cs
- Emitter.cs
- Stylesheet.cs
- UnhandledExceptionEventArgs.cs
- PromptStyle.cs
- ChangeProcessor.cs
- JapaneseCalendar.cs
- GradientBrush.cs
- DigitalSignature.cs
- FixedPosition.cs
- TdsParserSessionPool.cs
- ScrollableControl.cs
- ContentType.cs
- XmlSerializer.cs