Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }Gets or sets the size of the array. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ellipse.cs
- documentsequencetextpointer.cs
- relpropertyhelper.cs
- XmlDocumentFragment.cs
- UnmanagedBitmapWrapper.cs
- BindingGroup.cs
- StringStorage.cs
- ThousandthOfEmRealPoints.cs
- XmlTextWriter.cs
- OneOfElement.cs
- ControlDesigner.cs
- ExtenderProvidedPropertyAttribute.cs
- Panel.cs
- SchemeSettingElementCollection.cs
- RemotingException.cs
- BinaryVersion.cs
- ControlCollection.cs
- ResXResourceWriter.cs
- OleDbTransaction.cs
- QueryStringParameter.cs
- Nullable.cs
- ExpressionBuilderContext.cs
- AdjustableArrowCap.cs
- LocationChangedEventArgs.cs
- InvokeWebServiceDesigner.cs
- SerialStream.cs
- WizardPanel.cs
- XmlProcessingInstruction.cs
- MenuItemBinding.cs
- XmlDocumentSurrogate.cs
- CompilationRelaxations.cs
- ConditionalAttribute.cs
- EntityTemplateUserControl.cs
- ByteBufferPool.cs
- ProjectionQueryOptionExpression.cs
- PrincipalPermission.cs
- Typeface.cs
- TabItemWrapperAutomationPeer.cs
- BitmapEffectDrawingContextState.cs
- DbProviderServices.cs
- PersistenceProvider.cs
- NestedContainer.cs
- TreeViewImageIndexConverter.cs
- SoapHeaderException.cs
- X509CertificateTrustedIssuerElementCollection.cs
- CatalogZoneBase.cs
- LambdaSerializationException.cs
- Pkcs7Signer.cs
- MemoryMappedFile.cs
- ProcessInputEventArgs.cs
- PrintDialog.cs
- PageClientProxyGenerator.cs
- MergeEnumerator.cs
- SyntaxCheck.cs
- ContainsRowNumberChecker.cs
- ListMarkerSourceInfo.cs
- SocketCache.cs
- IdentityReference.cs
- AutomationEventArgs.cs
- InitializerFacet.cs
- FileDataSourceCache.cs
- TemplateInstanceAttribute.cs
- ToggleButtonAutomationPeer.cs
- ListViewDataItem.cs
- TypeBinaryExpression.cs
- StreamGeometryContext.cs
- CfgSemanticTag.cs
- shaperfactory.cs
- HttpHandler.cs
- TextLineBreak.cs
- DataSourceCacheDurationConverter.cs
- Transform3DCollection.cs
- XmlLangPropertyAttribute.cs
- Calendar.cs
- Line.cs
- FileDetails.cs
- Profiler.cs
- Wildcard.cs
- WindowInteropHelper.cs
- FamilyMapCollection.cs
- VariantWrapper.cs
- DataTableNewRowEvent.cs
- IInstanceTable.cs
- XmlExpressionDumper.cs
- PropertyPath.cs
- DataGridViewCell.cs
- ThicknessKeyFrameCollection.cs
- ValidationRule.cs
- SpellerInterop.cs
- SerialReceived.cs
- SqlBuilder.cs
- WaitForChangedResult.cs
- ProcessHostFactoryHelper.cs
- NetDispatcherFaultException.cs
- FieldBuilder.cs
- SSmlParser.cs
- ServiceBuildProvider.cs
- InvokeMethodDesigner.xaml.cs
- ApplicationBuildProvider.cs
- ImageMetadata.cs