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
- IntSecurity.cs
- AggregateNode.cs
- DataFormats.cs
- ComplexTypeEmitter.cs
- XmlDataFileEditor.cs
- OleCmdHelper.cs
- ConnectionsZone.cs
- EnumValAlphaComparer.cs
- InternalTypeHelper.cs
- EncoderParameter.cs
- ImageMetadata.cs
- ObjectAnimationUsingKeyFrames.cs
- TypeCollectionPropertyEditor.cs
- CmsInterop.cs
- TreeNodeStyle.cs
- oledbmetadatacolumnnames.cs
- CompilationRelaxations.cs
- ProxyDataContractResolver.cs
- HostedController.cs
- SocketPermission.cs
- ObjectCloneHelper.cs
- safex509handles.cs
- LabelDesigner.cs
- RtfToken.cs
- ParserStreamGeometryContext.cs
- WriteableOnDemandPackagePart.cs
- contentDescriptor.cs
- CompoundFileDeflateTransform.cs
- QueuePathEditor.cs
- HtmlMeta.cs
- PanelStyle.cs
- ResourceExpression.cs
- Message.cs
- DataControlImageButton.cs
- TdsParserStateObject.cs
- OpenTypeMethods.cs
- UnknownWrapper.cs
- ContentAlignmentEditor.cs
- DataBindingExpressionBuilder.cs
- UIPermission.cs
- ServiceModelEnumValidatorAttribute.cs
- AppDomainProtocolHandler.cs
- WsdlExporter.cs
- TableNameAttribute.cs
- CapabilitiesRule.cs
- DataGridViewRowHeaderCell.cs
- NewItemsContextMenuStrip.cs
- KeyboardDevice.cs
- AttachedAnnotation.cs
- ElementMarkupObject.cs
- NgenServicingAttributes.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- WebServiceClientProxyGenerator.cs
- XmlMembersMapping.cs
- UnlockInstanceCommand.cs
- IncomingWebResponseContext.cs
- EmbeddedObject.cs
- TcpStreams.cs
- FileChangesMonitor.cs
- ManagedIStream.cs
- ObjectDisposedException.cs
- HttpDictionary.cs
- ConfigXmlElement.cs
- HtmlEncodedRawTextWriter.cs
- DocumentCollection.cs
- XmlSerializerSection.cs
- Site.cs
- InputProviderSite.cs
- CapabilitiesPattern.cs
- EffectiveValueEntry.cs
- _AuthenticationState.cs
- AuthorizationRule.cs
- SqlRetyper.cs
- XsdDuration.cs
- EncryptedKey.cs
- SemaphoreSlim.cs
- SamlNameIdentifierClaimResource.cs
- RelationshipType.cs
- SmiContext.cs
- UnsafeCollabNativeMethods.cs
- Shared.cs
- ConstraintCollection.cs
- Win32MouseDevice.cs
- ReferenceEqualityComparer.cs
- KeyManager.cs
- StrongTypingException.cs
- AddValidationError.cs
- XmlException.cs
- BmpBitmapDecoder.cs
- WebUtil.cs
- ListBox.cs
- BufferModesCollection.cs
- Privilege.cs
- NameScopePropertyAttribute.cs
- TableDetailsCollection.cs
- PreviewPageInfo.cs
- ResponseBodyWriter.cs
- DataPagerCommandEventArgs.cs
- SinglePageViewer.cs
- ObjectDataSourceSelectingEventArgs.cs