Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeArrayCreateExpression.cs / 1305376 / 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;
///
/// Represents
/// an expression that creates an array.
///
[
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;
///
///
/// Initializes a new instance of .
///
///
public CodeArrayCreateExpression() {
}
///
///
/// Initializes a new instance of with the specified
/// array type and initializers.
///
///
public CodeArrayCreateExpression(CodeTypeReference createType, params CodeExpression[] initializers) {
this.createType = createType;
this.initializers.AddRange(initializers);
}
///
/// [To be supplied.]
///
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);
}
///
///
/// Initializes a new instance of . with the specified array
/// type and size.
///
///
public CodeArrayCreateExpression(CodeTypeReference createType, int size) {
this.createType = createType;
this.size = size;
}
///
/// [To be supplied.]
///
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;
}
///
///
/// Initializes a new instance of . with the specified array
/// type and size.
///
///
public CodeArrayCreateExpression(CodeTypeReference createType, CodeExpression size) {
this.createType = createType;
this.sizeExpression = size;
}
///
/// [To be supplied.]
///
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;
}
///
///
/// Gets or sets
/// the type of the array to create.
///
///
public CodeTypeReference CreateType {
get {
if (createType == null) {
createType = new CodeTypeReference("");
}
return createType;
}
set {
createType = value;
}
}
///
///
/// Gets or sets
/// the initializers to initialize the array with.
///
///
public CodeExpressionCollection Initializers {
get {
return initializers;
}
}
///
///
/// Gets or sets
/// the size of the array.
///
///
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LayoutEngine.cs
- DataGridTablesFactory.cs
- DisplayInformation.cs
- FacetValues.cs
- KnownIds.cs
- CaseStatementSlot.cs
- CanonicalFontFamilyReference.cs
- ObjRef.cs
- AutomationIdentifierGuids.cs
- SystemIPInterfaceStatistics.cs
- SkinBuilder.cs
- WorkflowServiceHostFactory.cs
- StylusTip.cs
- BindingOperations.cs
- TransformGroup.cs
- BatchServiceHost.cs
- ConcurrentStack.cs
- UrlAuthorizationModule.cs
- FormatSettings.cs
- ObjectDataSourceView.cs
- RectangleHotSpot.cs
- ExpressionPrefixAttribute.cs
- DataServiceClientException.cs
- StrongNameMembershipCondition.cs
- CursorInteropHelper.cs
- _IPv4Address.cs
- Popup.cs
- SessionStateContainer.cs
- AuthorizationPolicyTypeElementCollection.cs
- Socket.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- GenericUriParser.cs
- VirtualizingPanel.cs
- PathNode.cs
- XpsPackagingPolicy.cs
- CacheHelper.cs
- RegexCompilationInfo.cs
- InlineUIContainer.cs
- DataSourceCacheDurationConverter.cs
- __ComObject.cs
- DiagnosticsConfiguration.cs
- ResourceFallbackManager.cs
- LocalizationParserHooks.cs
- XmlAnyElementAttribute.cs
- InstalledFontCollection.cs
- VisualBrush.cs
- TextEffect.cs
- CardSpaceSelector.cs
- HtmlControlPersistable.cs
- InvokeGenerator.cs
- FreezableDefaultValueFactory.cs
- TemplateParser.cs
- SqlCacheDependency.cs
- ItemsControlAutomationPeer.cs
- ListParaClient.cs
- DesignerSerializationVisibilityAttribute.cs
- ErrorTableItemStyle.cs
- ButtonFieldBase.cs
- ReadContentAsBinaryHelper.cs
- Merger.cs
- DataTable.cs
- InplaceBitmapMetadataWriter.cs
- IgnoreDataMemberAttribute.cs
- StringFreezingAttribute.cs
- SortFieldComparer.cs
- JsonEnumDataContract.cs
- BamlRecordReader.cs
- ChineseLunisolarCalendar.cs
- ExpressionVisitor.cs
- DependencyPropertyChangedEventArgs.cs
- DataRecordObjectView.cs
- NonVisualControlAttribute.cs
- OracleTransaction.cs
- UInt64Storage.cs
- FileSecurity.cs
- UIElementParagraph.cs
- LocatorManager.cs
- WebRequestModulesSection.cs
- AccessDataSource.cs
- HiddenField.cs
- Assembly.cs
- HttpServerUtilityBase.cs
- WebDisplayNameAttribute.cs
- MediaEntryAttribute.cs
- InputGestureCollection.cs
- CompoundFileIOPermission.cs
- WaitForChangedResult.cs
- RSAPKCS1SignatureDeformatter.cs
- SubMenuStyleCollection.cs
- TabPage.cs
- SafeNativeMethods.cs
- UnmanagedMarshal.cs
- SafeWaitHandle.cs
- LinkDescriptor.cs
- CompilationSection.cs
- CookieProtection.cs
- SupportedAddressingMode.cs
- bidPrivateBase.cs
- versioninfo.cs
- StagingAreaInputItem.cs