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
- TileModeValidation.cs
- ZipIOExtraFieldElement.cs
- DateTimeConverter.cs
- FragmentQueryKB.cs
- GuidelineCollection.cs
- CheckBoxField.cs
- SqlWorkflowInstanceStoreLock.cs
- Size3D.cs
- GC.cs
- XmlConvert.cs
- StatusBarItem.cs
- MaterializeFromAtom.cs
- DispatcherObject.cs
- securitycriticaldata.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- GradientBrush.cs
- FormatterConverter.cs
- MsmqOutputChannel.cs
- NavigationProperty.cs
- MeasurementDCInfo.cs
- FormsAuthenticationModule.cs
- ObjectDataSourceFilteringEventArgs.cs
- PrimitiveXmlSerializers.cs
- MemoryPressure.cs
- PerformanceCounterManager.cs
- LiteralDesigner.cs
- PropertyManager.cs
- MsmqIntegrationBinding.cs
- LambdaCompiler.Generated.cs
- DbFunctionCommandTree.cs
- Funcletizer.cs
- _SslStream.cs
- DataGridViewCell.cs
- Size3DConverter.cs
- ReaderContextStackData.cs
- ServerType.cs
- PropertyInfoSet.cs
- precedingquery.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- ErrorFormatter.cs
- SecureEnvironment.cs
- SafeIUnknown.cs
- QueryCacheKey.cs
- PlatformCulture.cs
- EntityDesignerUtils.cs
- uribuilder.cs
- ObjectItemLoadingSessionData.cs
- DocumentOrderComparer.cs
- SqlResolver.cs
- QilLiteral.cs
- InkCanvasSelection.cs
- NativeMethods.cs
- DataRelation.cs
- CollectionContainer.cs
- LogRestartAreaEnumerator.cs
- TextEditorDragDrop.cs
- TypeResolvingOptions.cs
- Currency.cs
- NotImplementedException.cs
- PrintDocument.cs
- ProgressBar.cs
- TextDpi.cs
- EpmTargetTree.cs
- HttpPostServerProtocol.cs
- TraceRecord.cs
- UserPreferenceChangedEventArgs.cs
- IxmlLineInfo.cs
- cookie.cs
- ComponentConverter.cs
- InvokeCompletedEventArgs.cs
- EnumConverter.cs
- LocalsItemDescription.cs
- BamlLocalizableResourceKey.cs
- ZipPackage.cs
- SqlInfoMessageEvent.cs
- RSAPKCS1SignatureDeformatter.cs
- PropertyRecord.cs
- DiscreteKeyFrames.cs
- StylusDevice.cs
- FormViewInsertedEventArgs.cs
- NotFiniteNumberException.cs
- DiscoveryDocumentSerializer.cs
- EdmSchemaAttribute.cs
- LexicalChunk.cs
- SplitterPanelDesigner.cs
- TokenBasedSet.cs
- SystemIPAddressInformation.cs
- DCSafeHandle.cs
- JobPageOrder.cs
- UriTemplateMatch.cs
- SortQueryOperator.cs
- TextStore.cs
- PriorityItem.cs
- SqlParameterizer.cs
- ContactManager.cs
- RelationshipFixer.cs
- Help.cs
- ListViewGroup.cs
- GroupQuery.cs
- AssemblyAttributesGoHere.cs