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
- SqlCacheDependencyDatabaseCollection.cs
- HttpHandlerAction.cs
- TemplateControlCodeDomTreeGenerator.cs
- UidManager.cs
- input.cs
- TokenCreationException.cs
- WebPartCancelEventArgs.cs
- PixelShader.cs
- PresentationSource.cs
- HitTestParameters.cs
- PageRouteHandler.cs
- UnSafeCharBuffer.cs
- List.cs
- Parser.cs
- Boolean.cs
- RSACryptoServiceProvider.cs
- EdmTypeAttribute.cs
- XmlNodeChangedEventArgs.cs
- X509SubjectKeyIdentifierClause.cs
- KnownBoxes.cs
- ClientScriptManagerWrapper.cs
- AssemblyBuilder.cs
- AssemblyCache.cs
- PrincipalPermission.cs
- EntryWrittenEventArgs.cs
- SharedRuntimeState.cs
- DataGridColumnHeaderAutomationPeer.cs
- ImpersonationContext.cs
- WebHostUnsafeNativeMethods.cs
- WebBrowserProgressChangedEventHandler.cs
- Base64Encoder.cs
- ListView.cs
- ControlIdConverter.cs
- ImageSourceValueSerializer.cs
- Viewport3DAutomationPeer.cs
- HttpCapabilitiesEvaluator.cs
- IssuanceLicense.cs
- ConfigUtil.cs
- ButtonColumn.cs
- ResizeGrip.cs
- ScriptingSectionGroup.cs
- DataGridViewColumn.cs
- Lock.cs
- WeakReadOnlyCollection.cs
- DebugInfoExpression.cs
- GcHandle.cs
- TransformerConfigurationWizardBase.cs
- HuffCodec.cs
- JsonReader.cs
- UMPAttributes.cs
- Select.cs
- PriorityQueue.cs
- _SecureChannel.cs
- MatrixCamera.cs
- XmlSchemaAttribute.cs
- RunClient.cs
- NavigationService.cs
- StringExpressionSet.cs
- ContentElementAutomationPeer.cs
- HitTestParameters.cs
- ImageMap.cs
- SEHException.cs
- ListViewSortEventArgs.cs
- ValueHandle.cs
- X509CertificateClaimSet.cs
- Documentation.cs
- DataTable.cs
- RotateTransform3D.cs
- ScrollItemPattern.cs
- SafeLocalMemHandle.cs
- Registry.cs
- SByteStorage.cs
- MachineKeySection.cs
- CoTaskMemHandle.cs
- Identity.cs
- ByteStorage.cs
- Size3DValueSerializer.cs
- CalendarDateChangedEventArgs.cs
- CompilationLock.cs
- followingquery.cs
- CodeArrayCreateExpression.cs
- HostVisual.cs
- BindableTemplateBuilder.cs
- DesignerTransactionCloseEvent.cs
- CommandBinding.cs
- ToolStripItem.cs
- DateTimeOffsetAdapter.cs
- FieldMetadata.cs
- TrackingDataItem.cs
- UriTemplateLiteralQueryValue.cs
- InputLangChangeEvent.cs
- EncoderParameter.cs
- HMACSHA1.cs
- ColumnMapCopier.cs
- EntityDesignerUtils.cs
- BaseTemplateCodeDomTreeGenerator.cs
- MobileTextWriter.cs
- DataGridRowHeader.cs
- DynamicValueConverter.cs
- ProfileInfo.cs