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
- SqlCaseSimplifier.cs
- TemplateBuilder.cs
- RegexCaptureCollection.cs
- CrossContextChannel.cs
- ProtectedConfigurationProviderCollection.cs
- XmlSchemaParticle.cs
- StrokeRenderer.cs
- OrthographicCamera.cs
- UIElementAutomationPeer.cs
- SqlCachedBuffer.cs
- ParameterCollection.cs
- DictionarySectionHandler.cs
- DataTable.cs
- ExpressionNormalizer.cs
- AliasExpr.cs
- SqlClientMetaDataCollectionNames.cs
- SelectionEditor.cs
- VisualCollection.cs
- TcpChannelFactory.cs
- EventLogPermissionEntryCollection.cs
- MethodExpr.cs
- TargetPerspective.cs
- DetailsViewRow.cs
- SqlRowUpdatedEvent.cs
- InternalPolicyElement.cs
- ActivityExecutorSurrogate.cs
- Translator.cs
- Atom10FormatterFactory.cs
- DataGridViewColumnConverter.cs
- ClrProviderManifest.cs
- Monitor.cs
- ShaperBuffers.cs
- EntityProxyTypeInfo.cs
- DeviceContext.cs
- Int32AnimationUsingKeyFrames.cs
- BasicExpressionVisitor.cs
- PipeStream.cs
- BooleanStorage.cs
- TemplateInstanceAttribute.cs
- RegistryKey.cs
- WmlPhoneCallAdapter.cs
- oledbconnectionstring.cs
- ClonableStack.cs
- XslVisitor.cs
- StructuralObject.cs
- FileDialog_Vista_Interop.cs
- DeleteIndexBinder.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- Matrix.cs
- SiteMap.cs
- TraceUtils.cs
- ButtonColumn.cs
- DSACryptoServiceProvider.cs
- VBIdentifierName.cs
- XDeferredAxisSource.cs
- ParserStreamGeometryContext.cs
- FormViewPageEventArgs.cs
- ElementUtil.cs
- ColumnWidthChangedEvent.cs
- CodeTypeParameter.cs
- ProgressiveCrcCalculatingStream.cs
- Dump.cs
- MasterPageParser.cs
- SQLGuid.cs
- TcpChannelFactory.cs
- RouteTable.cs
- ImageField.cs
- XamlReaderConstants.cs
- AliasExpr.cs
- HeaderUtility.cs
- CancellationScope.cs
- AuthenticatedStream.cs
- DesignRelationCollection.cs
- BamlRecordHelper.cs
- TableDetailsCollection.cs
- SafeNativeMethods.cs
- _BaseOverlappedAsyncResult.cs
- SqlConnectionPoolGroupProviderInfo.cs
- CodeAssignStatement.cs
- GridToolTip.cs
- EventLogPermissionAttribute.cs
- ConnectionManagementElement.cs
- DecodeHelper.cs
- TraceXPathNavigator.cs
- SecUtil.cs
- NTAccount.cs
- SqlBooleanizer.cs
- TextElementCollection.cs
- Point3D.cs
- AttachmentService.cs
- XmlSchemaInferenceException.cs
- ViewManager.cs
- RequestChannelBinder.cs
- FontFamilyValueSerializer.cs
- CachedPathData.cs
- DataRelationPropertyDescriptor.cs
- MachineKeySection.cs
- prefixendpointaddressmessagefiltertable.cs
- TemplateBamlTreeBuilder.cs