Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- TagPrefixCollection.cs
- SqlStatistics.cs
- XmlBinaryReader.cs
- CodeAccessPermission.cs
- VectorCollectionConverter.cs
- RangeValuePattern.cs
- SqlSelectStatement.cs
- NativeMethods.cs
- UrlPath.cs
- SQLBytesStorage.cs
- MissingManifestResourceException.cs
- NamedElement.cs
- X509SecurityTokenAuthenticator.cs
- TreeViewImageIndexConverter.cs
- TreeNodeCollection.cs
- TemplateBuilder.cs
- MobileControlsSection.cs
- UniformGrid.cs
- SQLResource.cs
- ListViewItem.cs
- NativeMethods.cs
- ConsoleTraceListener.cs
- Single.cs
- FormsAuthenticationEventArgs.cs
- CookieParameter.cs
- QuaternionAnimation.cs
- RegexGroup.cs
- QuestionEventArgs.cs
- ClientFormsAuthenticationCredentials.cs
- XmlILOptimizerVisitor.cs
- SoapProtocolImporter.cs
- NotFiniteNumberException.cs
- CurrencyWrapper.cs
- RetrieveVirtualItemEventArgs.cs
- DataGridSortCommandEventArgs.cs
- PrintPreviewGraphics.cs
- RunInstallerAttribute.cs
- OracleBinary.cs
- InternalConfigSettingsFactory.cs
- SqlProfileProvider.cs
- ExtendedPropertyInfo.cs
- ProcessHostFactoryHelper.cs
- XmlKeywords.cs
- MenuItemStyleCollectionEditor.cs
- FocusTracker.cs
- ThreadAttributes.cs
- ConfigXmlCDataSection.cs
- NavigatorInput.cs
- Utils.cs
- EffectiveValueEntry.cs
- HtmlShimManager.cs
- SHA512Managed.cs
- TransformCryptoHandle.cs
- ModuleElement.cs
- TraceHwndHost.cs
- ClientSession.cs
- IncrementalCompileAnalyzer.cs
- PackagePartCollection.cs
- CodeMemberMethod.cs
- StateBag.cs
- SiteMembershipCondition.cs
- InternalEnumValidatorAttribute.cs
- GeneratedView.cs
- ControlCollection.cs
- GradientStop.cs
- StorageEntityContainerMapping.cs
- PrimarySelectionGlyph.cs
- XmlMapping.cs
- ImageUrlEditor.cs
- SqlDependencyListener.cs
- XmlTextReader.cs
- URLString.cs
- ActivityDesigner.cs
- PersianCalendar.cs
- RangeValuePattern.cs
- TreeNode.cs
- HtmlInputReset.cs
- PreProcessor.cs
- EnumConverter.cs
- GraphicsContext.cs
- DataStorage.cs
- EntityCommandCompilationException.cs
- SpnegoTokenAuthenticator.cs
- XsdValidatingReader.cs
- UpdateManifestForBrowserApplication.cs
- Rotation3DAnimationBase.cs
- PartialCachingControl.cs
- XmlTextEncoder.cs
- ComponentChangingEvent.cs
- Accessible.cs
- Composition.cs
- ObservableDictionary.cs
- ReaderWriterLock.cs
- XmlSchemaElement.cs
- Timeline.cs
- SynchronizedKeyedCollection.cs
- DataGridTablesFactory.cs
- ToolStripContentPanelRenderEventArgs.cs
- ScrollProperties.cs