Code:
/ 4.0 / 4.0 / 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. ///// // //----------------------------------------------------------------------------- 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
- ProcessActivityTreeOptions.cs
- BinaryParser.cs
- RijndaelCryptoServiceProvider.cs
- SimpleTextLine.cs
- Msec.cs
- DataServiceException.cs
- FontSizeConverter.cs
- DesignerLabelAdapter.cs
- DataBoundLiteralControl.cs
- Image.cs
- DecimalAnimationUsingKeyFrames.cs
- FullTextBreakpoint.cs
- CodeTypeParameterCollection.cs
- BatchWriter.cs
- ContentFilePart.cs
- AuthorizationContext.cs
- OraclePermissionAttribute.cs
- EnvelopedPkcs7.cs
- SafeHandles.cs
- WizardForm.cs
- StrokeSerializer.cs
- CommandID.cs
- ShadowGlyph.cs
- RawStylusInputReport.cs
- RoleGroup.cs
- ButtonBaseAdapter.cs
- ConsumerConnectionPointCollection.cs
- QilReference.cs
- XmlSchemaSimpleTypeUnion.cs
- TraceSection.cs
- NgenServicingAttributes.cs
- SimpleHandlerFactory.cs
- KeyFrames.cs
- IOThreadScheduler.cs
- Table.cs
- AQNBuilder.cs
- ToolStripItemCollection.cs
- OperationPickerDialog.designer.cs
- DeobfuscatingStream.cs
- ZipIOExtraFieldPaddingElement.cs
- ClientRuntimeConfig.cs
- HtmlSelect.cs
- GeneralTransformGroup.cs
- Stylesheet.cs
- PrinterResolution.cs
- HttpWriter.cs
- Solver.cs
- IfAction.cs
- ConfigurationLocation.cs
- SwitchLevelAttribute.cs
- QuotedStringWriteStateInfo.cs
- InfoCardSymmetricAlgorithm.cs
- AlphabeticalEnumConverter.cs
- GeneralTransformCollection.cs
- StylusPointPropertyInfo.cs
- ViewLoader.cs
- HtmlImage.cs
- GeneralTransform2DTo3DTo2D.cs
- ByteKeyFrameCollection.cs
- FontNamesConverter.cs
- IdentityManager.cs
- CLRBindingWorker.cs
- TransformPatternIdentifiers.cs
- HandleValueEditor.cs
- TransactionContextValidator.cs
- ToolStripItemGlyph.cs
- CellTreeNode.cs
- Triangle.cs
- GlyphRunDrawing.cs
- DataGridViewSelectedCellCollection.cs
- XmlTextReaderImpl.cs
- AssemblyHash.cs
- BehaviorService.cs
- AccessControlList.cs
- TableLayoutSettingsTypeConverter.cs
- SoapServerMessage.cs
- PtsHelper.cs
- _LocalDataStoreMgr.cs
- BaseCollection.cs
- ImmutableObjectAttribute.cs
- TrailingSpaceComparer.cs
- MsmqUri.cs
- ClrPerspective.cs
- ThousandthOfEmRealPoints.cs
- BitmapSizeOptions.cs
- MexBindingElement.cs
- Encoder.cs
- DoubleAnimationBase.cs
- AppearanceEditorPart.cs
- WebReferenceCollection.cs
- WCFServiceClientProxyGenerator.cs
- ConfigurationSectionGroupCollection.cs
- UnionExpr.cs
- DashStyles.cs
- MethodBuilder.cs
- CodeCommentStatement.cs
- EmptyEnumerable.cs
- mda.cs
- TaiwanLunisolarCalendar.cs
- RepeaterItem.cs