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
- ToolStripItemDesigner.cs
- FilterQueryOptionExpression.cs
- ColumnResizeUndoUnit.cs
- OuterGlowBitmapEffect.cs
- TextProperties.cs
- NumberAction.cs
- PublisherMembershipCondition.cs
- DataRecord.cs
- QueryAccessibilityHelpEvent.cs
- InputManager.cs
- CompoundFileReference.cs
- LinearQuaternionKeyFrame.cs
- IndexExpression.cs
- ObjectConverter.cs
- ProviderConnectionPointCollection.cs
- Hash.cs
- LoadMessageLogger.cs
- EventDescriptorCollection.cs
- documentation.cs
- WCFBuildProvider.cs
- PasswordPropertyTextAttribute.cs
- TextProviderWrapper.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- TargetPerspective.cs
- HttpCachePolicyBase.cs
- SynchronizedInputAdaptor.cs
- WorkflowMarkupSerializer.cs
- ManagementObjectCollection.cs
- glyphs.cs
- EDesignUtil.cs
- SettingsProviderCollection.cs
- TextRunCacheImp.cs
- ColorAnimationUsingKeyFrames.cs
- Vector3DAnimationBase.cs
- BaseDataBoundControl.cs
- MetafileHeader.cs
- ArcSegment.cs
- SizeFConverter.cs
- DbResourceAllocator.cs
- IsolatedStorage.cs
- ConfigurationProperty.cs
- COM2ExtendedTypeConverter.cs
- HTMLTextWriter.cs
- AdRotatorDesigner.cs
- ClickablePoint.cs
- Line.cs
- FullTextLine.cs
- DefaultTraceListener.cs
- MatrixKeyFrameCollection.cs
- StorageTypeMapping.cs
- CompressStream.cs
- RemotingConfigParser.cs
- QueryContinueDragEventArgs.cs
- ResourceLoader.cs
- PbrsForward.cs
- RightsManagementEncryptionTransform.cs
- CounterSample.cs
- DynamicQueryableWrapper.cs
- HttpProfileGroupBase.cs
- ScrollData.cs
- DropShadowBitmapEffect.cs
- RegexGroupCollection.cs
- BuildProvider.cs
- HtmlForm.cs
- ServiceBusyException.cs
- AuthenticationException.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- DrawingGroupDrawingContext.cs
- Marshal.cs
- WorkflowExecutor.cs
- DoWorkEventArgs.cs
- SQLRoleProvider.cs
- RawStylusSystemGestureInputReport.cs
- DataGridViewRowConverter.cs
- ArrayWithOffset.cs
- PartBasedPackageProperties.cs
- SessionPageStatePersister.cs
- DataSvcMapFile.cs
- Stopwatch.cs
- LogConverter.cs
- DataRowView.cs
- Common.cs
- DataReaderContainer.cs
- DeclaredTypeElement.cs
- RuntimeArgumentHandle.cs
- HyperlinkAutomationPeer.cs
- Grammar.cs
- SplitterCancelEvent.cs
- ContextMarshalException.cs
- JournalEntryListConverter.cs
- CookielessHelper.cs
- HttpCapabilitiesSectionHandler.cs
- SharedUtils.cs
- ShadowGlyph.cs
- FormatterConverter.cs
- MenuItem.cs
- XmlBinaryReader.cs
- RegexRunnerFactory.cs
- FrameworkRichTextComposition.cs
- PlatformNotSupportedException.cs