Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / CodeDOM / CodeObjectCreateExpression.cs / 1 / CodeObjectCreateExpression.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 object create expression.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeObjectCreateExpression : CodeExpression {
private CodeTypeReference createType;
private CodeExpressionCollection parameters = new CodeExpressionCollection();
///
///
/// Initializes a new .
///
///
public CodeObjectCreateExpression() {
}
///
///
/// Initializes a new using the specified type and
/// parameters.
///
///
public CodeObjectCreateExpression(CodeTypeReference createType, params CodeExpression[] parameters) {
CreateType = createType;
Parameters.AddRange(parameters);
}
///
/// [To be supplied.]
///
public CodeObjectCreateExpression(string createType, params CodeExpression[] parameters) {
CreateType = new CodeTypeReference(createType);
Parameters.AddRange(parameters);
}
///
/// [To be supplied.]
///
public CodeObjectCreateExpression(Type createType, params CodeExpression[] parameters) {
CreateType = new CodeTypeReference(createType);
Parameters.AddRange(parameters);
}
///
///
/// The type of the object to create.
///
///
public CodeTypeReference CreateType {
get {
if (createType == null) {
createType = new CodeTypeReference("");
}
return createType;
}
set {
createType = value;
}
}
///
///
/// Gets or sets the parameters to use in creating the
/// object.
///
///
public CodeExpressionCollection Parameters {
get {
return parameters;
}
}
}
}
// 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 object create expression.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeObjectCreateExpression : CodeExpression {
private CodeTypeReference createType;
private CodeExpressionCollection parameters = new CodeExpressionCollection();
///
///
/// Initializes a new .
///
///
public CodeObjectCreateExpression() {
}
///
///
/// Initializes a new using the specified type and
/// parameters.
///
///
public CodeObjectCreateExpression(CodeTypeReference createType, params CodeExpression[] parameters) {
CreateType = createType;
Parameters.AddRange(parameters);
}
///
/// [To be supplied.]
///
public CodeObjectCreateExpression(string createType, params CodeExpression[] parameters) {
CreateType = new CodeTypeReference(createType);
Parameters.AddRange(parameters);
}
///
/// [To be supplied.]
///
public CodeObjectCreateExpression(Type createType, params CodeExpression[] parameters) {
CreateType = new CodeTypeReference(createType);
Parameters.AddRange(parameters);
}
///
///
/// The type of the object to create.
///
///
public CodeTypeReference CreateType {
get {
if (createType == null) {
createType = new CodeTypeReference("");
}
return createType;
}
set {
createType = value;
}
}
///
///
/// Gets or sets the parameters to use in creating the
/// object.
///
///
public CodeExpressionCollection Parameters {
get {
return parameters;
}
}
}
}
// 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
- XmlImplementation.cs
- BinaryCommonClasses.cs
- PeerNameRecordCollection.cs
- InkPresenterAutomationPeer.cs
- UserMapPath.cs
- DbConnectionPoolGroupProviderInfo.cs
- XmlSerializerSection.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- ActiveDocumentEvent.cs
- MatrixTransform3D.cs
- FilteredXmlReader.cs
- Win32.cs
- RegisteredExpandoAttribute.cs
- Variable.cs
- ImmutableClientRuntime.cs
- XmlWriter.cs
- SafeNativeMemoryHandle.cs
- DataFormat.cs
- HttpServerVarsCollection.cs
- DSASignatureDeformatter.cs
- SerialPort.cs
- DataProviderNameConverter.cs
- ReferencedCollectionType.cs
- TextEditorSpelling.cs
- MatrixStack.cs
- XpsColorContext.cs
- StatusBar.cs
- LongMinMaxAggregationOperator.cs
- DataGridViewAccessibleObject.cs
- WorkflowRuntimeElement.cs
- AuthorizationSection.cs
- XmlWriterSettings.cs
- assertwrapper.cs
- WebPartCollection.cs
- IndexedSelectQueryOperator.cs
- ComboBoxItem.cs
- ListChangedEventArgs.cs
- SByteStorage.cs
- PackWebRequest.cs
- PipelineModuleStepContainer.cs
- StringUtil.cs
- AlternateView.cs
- SynchronizedInputPattern.cs
- EntityTransaction.cs
- UpdateEventArgs.cs
- DesignerSerializationVisibilityAttribute.cs
- DelayLoadType.cs
- ValidatorCompatibilityHelper.cs
- SymbolPair.cs
- ColorAnimationUsingKeyFrames.cs
- XmlTextReader.cs
- TemplateManager.cs
- PriorityRange.cs
- InfoCardAsymmetricCrypto.cs
- SqlXml.cs
- CodeCastExpression.cs
- UIPermission.cs
- Parser.cs
- OdbcUtils.cs
- QilNode.cs
- ScrollProviderWrapper.cs
- DefaultValueTypeConverter.cs
- AmbientLight.cs
- GradientSpreadMethodValidation.cs
- ClientSettingsStore.cs
- RoutedEventHandlerInfo.cs
- XmlSchemaSimpleTypeList.cs
- QilGenerator.cs
- RegexReplacement.cs
- MouseActionConverter.cs
- QuaternionAnimationUsingKeyFrames.cs
- SeparatorAutomationPeer.cs
- _Events.cs
- SequentialUshortCollection.cs
- SerialReceived.cs
- DeleteCardRequest.cs
- UnaryNode.cs
- ResourceDescriptionAttribute.cs
- ObjectManager.cs
- InvalidPropValue.cs
- HwndMouseInputProvider.cs
- PlaceHolder.cs
- XmlQueryRuntime.cs
- NameScopePropertyAttribute.cs
- ToolStripSplitStackLayout.cs
- SchemeSettingElement.cs
- SettingsBase.cs
- CodeCastExpression.cs
- PasswordRecovery.cs
- FixedTextContainer.cs
- formatter.cs
- ListBindableAttribute.cs
- TypeUnloadedException.cs
- MD5.cs
- DateTimeParse.cs
- URLAttribute.cs
- DocumentSchemaValidator.cs
- StandardToolWindows.cs
- HttpFileCollection.cs
- FieldTemplateUserControl.cs