Code:
/ DotNET / DotNET / 8.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
- PageAsyncTask.cs
- ProfileModule.cs
- CorrelationManager.cs
- CompoundFileDeflateTransform.cs
- ListSortDescriptionCollection.cs
- SqlRetyper.cs
- BatchParser.cs
- BrowserInteropHelper.cs
- DocumentXmlWriter.cs
- TreeNodeStyleCollection.cs
- TreeSet.cs
- WindowsGraphics.cs
- ConstructorArgumentAttribute.cs
- ColorConverter.cs
- RootBrowserWindow.cs
- NativeMethods.cs
- DependencyObjectPropertyDescriptor.cs
- SamlNameIdentifierClaimResource.cs
- IntPtr.cs
- ColumnResizeAdorner.cs
- SchemaImporterExtensionsSection.cs
- SparseMemoryStream.cs
- _Connection.cs
- XamlClipboardData.cs
- SortedList.cs
- RepeaterItemCollection.cs
- listitem.cs
- ConfigurationManagerInternalFactory.cs
- EventLogWatcher.cs
- FileSecurity.cs
- AudioSignalProblemOccurredEventArgs.cs
- AccessViolationException.cs
- RSAPKCS1SignatureDeformatter.cs
- InstanceData.cs
- InvokeGenerator.cs
- UnSafeCharBuffer.cs
- XmlChildEnumerator.cs
- ZipIOLocalFileBlock.cs
- UICuesEvent.cs
- MultiView.cs
- IndependentlyAnimatedPropertyMetadata.cs
- ControlIdConverter.cs
- Operand.cs
- StreamGeometry.cs
- AddInServer.cs
- AllMembershipCondition.cs
- Single.cs
- ForceCopyBuildProvider.cs
- BuildResult.cs
- PrinterResolution.cs
- InspectionWorker.cs
- StrongName.cs
- CollectionEditorDialog.cs
- WebPartMinimizeVerb.cs
- SelectionPatternIdentifiers.cs
- Int16AnimationBase.cs
- SimpleTableProvider.cs
- RenderData.cs
- SecurityContext.cs
- BitmapEffectOutputConnector.cs
- streamingZipPartStream.cs
- ElementUtil.cs
- MaterialCollection.cs
- GroupDescription.cs
- DataGridLengthConverter.cs
- TableRow.cs
- StylusButton.cs
- StrokeRenderer.cs
- ValidationVisibilityAttribute.cs
- X509ChainPolicy.cs
- ByteAnimation.cs
- DockingAttribute.cs
- SpinLock.cs
- SafeRegistryHandle.cs
- XPathNavigator.cs
- UpdateManifestForBrowserApplication.cs
- RenderContext.cs
- PageWrapper.cs
- CustomCategoryAttribute.cs
- HostingEnvironment.cs
- ChtmlSelectionListAdapter.cs
- ProtectedProviderSettings.cs
- FontEmbeddingManager.cs
- KnownTypesHelper.cs
- DocumentOrderComparer.cs
- SequenceDesignerAccessibleObject.cs
- PersonalizationStateInfo.cs
- TextTreeNode.cs
- SqlDataSource.cs
- XPathParser.cs
- RuntimeConfigurationRecord.cs
- SelectionItemProviderWrapper.cs
- GC.cs
- BuildProvider.cs
- BCLDebug.cs
- TraceListener.cs
- InkCanvasSelection.cs
- DecoderReplacementFallback.cs
- FileDialog.cs
- CharUnicodeInfo.cs