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
- DataGridTable.cs
- Propagator.JoinPropagator.cs
- SubclassTypeValidatorAttribute.cs
- ConfigurationSection.cs
- System.Data_BID.cs
- EdmItemCollection.cs
- ProtectedConfigurationProviderCollection.cs
- BoundPropertyEntry.cs
- SmiEventSink_Default.cs
- ServiceModelActivity.cs
- HighlightVisual.cs
- PerformanceCountersElement.cs
- DocumentPageTextView.cs
- KoreanCalendar.cs
- CatalogZoneBase.cs
- Size.cs
- ListViewTableRow.cs
- AppAction.cs
- XsdDuration.cs
- EntityDataSourceDataSelectionPanel.cs
- TrackingDataItemValue.cs
- ComboBox.cs
- HelpHtmlBuilder.cs
- WebEventTraceProvider.cs
- keycontainerpermission.cs
- UndirectedGraph.cs
- PointKeyFrameCollection.cs
- Logging.cs
- X509CertificateRecipientServiceCredential.cs
- uribuilder.cs
- ReliabilityContractAttribute.cs
- AuthenticationService.cs
- TreeNode.cs
- FigureParaClient.cs
- DisplayMemberTemplateSelector.cs
- Terminate.cs
- RecognizerInfo.cs
- FrameworkReadOnlyPropertyMetadata.cs
- WindowsComboBox.cs
- FixedFindEngine.cs
- RIPEMD160.cs
- OutputCacheProfileCollection.cs
- GradientBrush.cs
- MemberPath.cs
- XhtmlBasicValidationSummaryAdapter.cs
- DataTableMappingCollection.cs
- SQLInt16Storage.cs
- IndependentAnimationStorage.cs
- EnvelopedPkcs7.cs
- PageFunction.cs
- HtmlTableRow.cs
- MailHeaderInfo.cs
- Evidence.cs
- SystemIPAddressInformation.cs
- ResourceReferenceExpression.cs
- BuildDependencySet.cs
- ExtensionFile.cs
- Event.cs
- ExtensionFile.cs
- DivideByZeroException.cs
- IssuanceLicense.cs
- DataBindingHandlerAttribute.cs
- AxHost.cs
- AgileSafeNativeMemoryHandle.cs
- HashRepartitionStream.cs
- StringSource.cs
- CurrentTimeZone.cs
- WebPartCollection.cs
- GcHandle.cs
- MultiPartWriter.cs
- ComponentDispatcher.cs
- _HeaderInfo.cs
- DWriteFactory.cs
- SelectionChangedEventArgs.cs
- ThrowOnMultipleAssignment.cs
- TypeUnloadedException.cs
- PerfCounters.cs
- Interlocked.cs
- DataRelationCollection.cs
- DataMemberConverter.cs
- CharAnimationUsingKeyFrames.cs
- Resources.Designer.cs
- ReflectionHelper.cs
- PolyBezierSegmentFigureLogic.cs
- Range.cs
- clipboard.cs
- ParameterExpression.cs
- BitmapInitialize.cs
- BackStopAuthenticationModule.cs
- SelectionPatternIdentifiers.cs
- AttachmentService.cs
- DataChangedEventManager.cs
- RenderData.cs
- X509ChainElement.cs
- SspiNegotiationTokenAuthenticatorState.cs
- CodeRegionDirective.cs
- DataSourceHelper.cs
- LineBreakRecord.cs
- SecurityRuntime.cs
- OneOfConst.cs