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
- SafeLibraryHandle.cs
- EntityDataSourceDataSelection.cs
- AddInDeploymentState.cs
- ECDiffieHellmanCngPublicKey.cs
- CatalogPart.cs
- ServiceModelConfigurationElementCollection.cs
- CaseInsensitiveComparer.cs
- TimeSpanValidatorAttribute.cs
- OdbcCommand.cs
- SubqueryRules.cs
- XmlNodeChangedEventArgs.cs
- DynamicDocumentPaginator.cs
- CacheOutputQuery.cs
- WebPartDesigner.cs
- SamlAuthenticationStatement.cs
- FrugalList.cs
- DataServiceHostFactory.cs
- TextFormatterHost.cs
- DataGridCaption.cs
- RowsCopiedEventArgs.cs
- WebServiceHost.cs
- AsyncCompletedEventArgs.cs
- Registry.cs
- PropertySourceInfo.cs
- HttpCachePolicyWrapper.cs
- HandlerBase.cs
- StickyNoteAnnotations.cs
- ImageButton.cs
- _AuthenticationState.cs
- HttpCapabilitiesEvaluator.cs
- TextRunCacheImp.cs
- StorageAssociationTypeMapping.cs
- CodeDomConfigurationHandler.cs
- mediaeventshelper.cs
- FixedTextBuilder.cs
- SignatureHelper.cs
- RangeValueProviderWrapper.cs
- PassportIdentity.cs
- XsdValidatingReader.cs
- BindingContext.cs
- BamlResourceContent.cs
- ClickablePoint.cs
- ProbeMatchesMessage11.cs
- BitmapMetadataEnumerator.cs
- ToolStripDropDownItemDesigner.cs
- Char.cs
- TextLine.cs
- storepermissionattribute.cs
- ListItemCollection.cs
- HostExecutionContextManager.cs
- TcpSocketManager.cs
- DetailsViewRowCollection.cs
- SocketPermission.cs
- _Connection.cs
- ToolConsole.cs
- DataGridViewBand.cs
- SqlError.cs
- Geometry3D.cs
- ExceptionHelpers.cs
- DeviceOverridableAttribute.cs
- Typeface.cs
- HostingPreferredMapPath.cs
- ImageButton.cs
- DataBoundControlParameterTarget.cs
- ModulesEntry.cs
- TimeEnumHelper.cs
- EncoderFallback.cs
- ClientData.cs
- FormsAuthenticationTicket.cs
- NamespaceInfo.cs
- RemoteHelper.cs
- TableRowCollection.cs
- EnumMember.cs
- BitmapEffectrendercontext.cs
- RangeValueProviderWrapper.cs
- ImageListStreamer.cs
- ParentQuery.cs
- ColumnTypeConverter.cs
- SectionVisual.cs
- InkCollectionBehavior.cs
- PiiTraceSource.cs
- RegexGroup.cs
- ListMarkerSourceInfo.cs
- DrawingCollection.cs
- SplineKeyFrames.cs
- GeneralTransform.cs
- CompoundFileStreamReference.cs
- SimpleType.cs
- ToolStripControlHost.cs
- SimpleBitVector32.cs
- GroupBoxRenderer.cs
- BaseTemplatedMobileComponentEditor.cs
- AssemblySettingAttributes.cs
- CmsUtils.cs
- ScriptingProfileServiceSection.cs
- AlphabetConverter.cs
- SafeLocalAllocation.cs
- ThreadExceptionEvent.cs
- BorderGapMaskConverter.cs
- OutOfProcStateClientManager.cs