Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SystemParameters.cs
- WebBrowser.cs
- ValidatorUtils.cs
- _SpnDictionary.cs
- __ConsoleStream.cs
- TraceContextRecord.cs
- SynchronizedInputAdaptor.cs
- XmlBaseReader.cs
- SettingsAttributes.cs
- EntityDataSourceDesignerHelper.cs
- ManagedCodeMarkers.cs
- NonBatchDirectoryCompiler.cs
- DesignerValidatorAdapter.cs
- TemplateField.cs
- streamingZipPartStream.cs
- NaturalLanguageHyphenator.cs
- DecoratedNameAttribute.cs
- PageEventArgs.cs
- BeginSelectCardRequest.cs
- DrawingContextWalker.cs
- TextFindEngine.cs
- FixedSOMFixedBlock.cs
- GeneralTransform2DTo3DTo2D.cs
- AppDomainAttributes.cs
- XPathSingletonIterator.cs
- StreamInfo.cs
- BitmapImage.cs
- LinqDataSourceView.cs
- ToolStripSeparatorRenderEventArgs.cs
- InvalidOleVariantTypeException.cs
- TagNameToTypeMapper.cs
- SoapMessage.cs
- MemberRelationshipService.cs
- WebPartZone.cs
- TdsParserStateObject.cs
- ConfigXmlAttribute.cs
- PathGradientBrush.cs
- ServicePointManagerElement.cs
- HttpSocketManager.cs
- DragDeltaEventArgs.cs
- Soap.cs
- ErrorHandler.cs
- HotCommands.cs
- XmlSchemaParticle.cs
- RemotingClientProxy.cs
- InertiaRotationBehavior.cs
- DbProviderFactory.cs
- NavigationPropertyAccessor.cs
- ContentPresenter.cs
- DataGridViewBand.cs
- SafeWaitHandle.cs
- FixedSOMTextRun.cs
- XamlTypeMapper.cs
- PauseStoryboard.cs
- NonSerializedAttribute.cs
- UnauthorizedWebPart.cs
- Rotation3D.cs
- Int32RectConverter.cs
- CacheMemory.cs
- AttributeAction.cs
- RewritingSimplifier.cs
- DataSourceGroupCollection.cs
- BufferedGraphics.cs
- ToolTipAutomationPeer.cs
- Selection.cs
- ThreadStaticAttribute.cs
- CapabilitiesAssignment.cs
- BaseDataListComponentEditor.cs
- Vector3DValueSerializer.cs
- NavigationEventArgs.cs
- DataRecordObjectView.cs
- MetadataCacheItem.cs
- DataControlReferenceCollection.cs
- MetadataPropertyCollection.cs
- GifBitmapDecoder.cs
- PropertySourceInfo.cs
- DBSchemaRow.cs
- MessageQueueKey.cs
- AdRotator.cs
- CustomWebEventKey.cs
- LayoutTable.cs
- SelectManyQueryOperator.cs
- ProxyManager.cs
- TriggerActionCollection.cs
- PreviewKeyDownEventArgs.cs
- UTF32Encoding.cs
- ClientOptions.cs
- NamespaceCollection.cs
- FloaterParagraph.cs
- CacheOutputQuery.cs
- Geometry3D.cs
- CqlParser.cs
- RawStylusSystemGestureInputReport.cs
- WebResourceAttribute.cs
- ObjectFullSpanRewriter.cs
- FileEnumerator.cs
- TableLayoutSettings.cs
- CompositeActivityDesigner.cs
- FormView.cs
- InkCanvas.cs