Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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;
///
/// 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.
//------------------------------------------------------------------------------
//
// 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
- ISessionStateStore.cs
- RepeatInfo.cs
- BookmarkWorkItem.cs
- Calendar.cs
- ActivityExecutorDelegateInfo.cs
- XmlNodeChangedEventManager.cs
- ChangePassword.cs
- GetReadStreamResult.cs
- AstNode.cs
- AddingNewEventArgs.cs
- DesignDataSource.cs
- ConnectionStringEditor.cs
- MergeFailedEvent.cs
- Grid.cs
- _AutoWebProxyScriptWrapper.cs
- ServiceDurableInstanceContextProvider.cs
- ImmutableObjectAttribute.cs
- XmlToDatasetMap.cs
- ChangeConflicts.cs
- HandlerBase.cs
- SrgsElement.cs
- DeclaredTypeElementCollection.cs
- ValueChangedEventManager.cs
- BCLDebug.cs
- JavaScriptString.cs
- TemplateEditingService.cs
- StylusPoint.cs
- DodSequenceMerge.cs
- WebPartConnectVerb.cs
- ProfilePropertySettingsCollection.cs
- GlyphingCache.cs
- PrintPreviewControl.cs
- BuilderInfo.cs
- ConnectionPoolManager.cs
- EntitySqlQueryState.cs
- PageWrapper.cs
- CompilerWrapper.cs
- MarkupObject.cs
- DataObjectCopyingEventArgs.cs
- SmtpMail.cs
- SplitterPanelDesigner.cs
- HttpCookiesSection.cs
- Pool.cs
- XamlTypeMapper.cs
- SocketInformation.cs
- validationstate.cs
- CommandEventArgs.cs
- DictionaryKeyPropertyAttribute.cs
- TCEAdapterGenerator.cs
- Axis.cs
- WorkflowValidationFailedException.cs
- RepeatInfo.cs
- CodeAttributeArgument.cs
- OdbcConnectionHandle.cs
- Vector3DKeyFrameCollection.cs
- CodeArgumentReferenceExpression.cs
- WebPartChrome.cs
- PrintPreviewDialog.cs
- BCLDebug.cs
- HttpRuntime.cs
- AssemblyCache.cs
- XslAstAnalyzer.cs
- EventSinkActivityDesigner.cs
- ResourceAssociationType.cs
- IProducerConsumerCollection.cs
- SqlLiftIndependentRowExpressions.cs
- Timeline.cs
- MDIClient.cs
- XamlGridLengthSerializer.cs
- CompositeTypefaceMetrics.cs
- NamespaceCollection.cs
- SerialStream.cs
- Header.cs
- NullableDoubleAverageAggregationOperator.cs
- VersionedStream.cs
- ZipIOBlockManager.cs
- LoginUtil.cs
- TraceProvider.cs
- ExtenderControl.cs
- FSWPathEditor.cs
- ToolStripDropDownDesigner.cs
- PolicyFactory.cs
- SoapObjectInfo.cs
- ProxyManager.cs
- BStrWrapper.cs
- Quad.cs
- Vector3DConverter.cs
- FontStyles.cs
- LayoutTable.cs
- ObsoleteAttribute.cs
- MonthCalendar.cs
- TextEditorSpelling.cs
- DataBindingsDialog.cs
- Constraint.cs
- WebPartTransformer.cs
- WebReferencesBuildProvider.cs
- MappingException.cs
- SoapDocumentMethodAttribute.cs
- RowToParametersTransformer.cs
- ClientTargetSection.cs