Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Gets or sets the size of the array. ///// 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; } } } } // 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
- ComboBox.cs
- oledbmetadatacolumnnames.cs
- remotingproxy.cs
- Utilities.cs
- PackagePart.cs
- TextParagraphCache.cs
- AnnotationDocumentPaginator.cs
- ProtocolInformationWriter.cs
- TabControl.cs
- FloatSumAggregationOperator.cs
- GridViewUpdatedEventArgs.cs
- SqlDataAdapter.cs
- ObjectHelper.cs
- LoadGrammarCompletedEventArgs.cs
- TextParagraphView.cs
- EventSource.cs
- SimpleColumnProvider.cs
- QueryCursorEventArgs.cs
- XmlParserContext.cs
- LinqDataSourceInsertEventArgs.cs
- TextChange.cs
- AmbiguousMatchException.cs
- SqlNodeAnnotation.cs
- CodeDefaultValueExpression.cs
- basevalidator.cs
- Baml2006ReaderFrame.cs
- _NegotiateClient.cs
- ZipIOExtraField.cs
- GiveFeedbackEvent.cs
- Control.cs
- XappLauncher.cs
- NeutralResourcesLanguageAttribute.cs
- CriticalExceptions.cs
- Material.cs
- WindowsClaimSet.cs
- DataGridCaption.cs
- IdnMapping.cs
- Win32.cs
- MsmqIntegrationProcessProtocolHandler.cs
- XmlSubtreeReader.cs
- InputLanguageSource.cs
- PlatformCulture.cs
- EntityDescriptor.cs
- SqlBuilder.cs
- EmptyReadOnlyDictionaryInternal.cs
- GestureRecognitionResult.cs
- ConfigurationException.cs
- BindingList.cs
- CollectionChangedEventManager.cs
- WhitespaceReader.cs
- WindowsMenu.cs
- DataGridViewLinkColumn.cs
- AdCreatedEventArgs.cs
- CodePropertyReferenceExpression.cs
- GenericWebPart.cs
- FrameAutomationPeer.cs
- XmlStringTable.cs
- PropertyConverter.cs
- XmlQualifiedName.cs
- CheckPair.cs
- CFGGrammar.cs
- SymbolMethod.cs
- ToolstripProfessionalRenderer.cs
- TypeBinaryExpression.cs
- TextDecorationCollection.cs
- HMACMD5.cs
- XmlLinkedNode.cs
- SchemaElement.cs
- PackagingUtilities.cs
- RequestCacheManager.cs
- AttributeData.cs
- HttpRawResponse.cs
- ResetableIterator.cs
- FormClosingEvent.cs
- FreeFormDesigner.cs
- MetadataCollection.cs
- ByteStreamGeometryContext.cs
- XhtmlTextWriter.cs
- MsmqUri.cs
- XsdBuildProvider.cs
- CodeDomDecompiler.cs
- StylusLogic.cs
- Debug.cs
- CapabilitiesSection.cs
- Operator.cs
- _Rfc2616CacheValidators.cs
- Stream.cs
- SystemColorTracker.cs
- DataBindEngine.cs
- ReadWriteObjectLock.cs
- ServiceObjectContainer.cs
- Thumb.cs
- OracleNumber.cs
- DbProviderFactoriesConfigurationHandler.cs
- KeyFrames.cs
- ConnectionInterfaceCollection.cs
- TaskFactory.cs
- MessageDroppedTraceRecord.cs
- Error.cs
- XmlHierarchicalEnumerable.cs