Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- HttpCacheVaryByContentEncodings.cs
- ListViewItemMouseHoverEvent.cs
- OutputCache.cs
- MouseActionValueSerializer.cs
- SchemaImporterExtensionElement.cs
- CodeAccessPermission.cs
- ButtonFieldBase.cs
- TextProperties.cs
- StringAttributeCollection.cs
- ToolStripGripRenderEventArgs.cs
- LinkArea.cs
- DataKey.cs
- HTMLTagNameToTypeMapper.cs
- PassportIdentity.cs
- XamlPoint3DCollectionSerializer.cs
- SeparatorAutomationPeer.cs
- MdbDataFileEditor.cs
- XmlComplianceUtil.cs
- TextBoxAutomationPeer.cs
- CancellationTokenRegistration.cs
- PatternMatcher.cs
- NativeMethods.cs
- QuaternionRotation3D.cs
- ISO2022Encoding.cs
- RemotingAttributes.cs
- TraceData.cs
- PixelFormatConverter.cs
- DurationConverter.cs
- CompilerErrorCollection.cs
- AppliedDeviceFiltersEditor.cs
- XmlWellformedWriter.cs
- NeutralResourcesLanguageAttribute.cs
- EntityTypeEmitter.cs
- GridViewRowPresenterBase.cs
- AsymmetricKeyExchangeDeformatter.cs
- BrowserTree.cs
- MsmqProcessProtocolHandler.cs
- HebrewNumber.cs
- Run.cs
- MasterPageCodeDomTreeGenerator.cs
- PrintPageEvent.cs
- CodeArrayCreateExpression.cs
- DataBoundControlAdapter.cs
- StrongNameIdentityPermission.cs
- UriTemplateCompoundPathSegment.cs
- BackStopAuthenticationModule.cs
- WorkflowMessageEventHandler.cs
- MethodBody.cs
- DynamicObjectAccessor.cs
- DBSqlParserColumn.cs
- BamlBinaryWriter.cs
- PrivateFontCollection.cs
- MultiPageTextView.cs
- StringDictionary.cs
- LockedBorderGlyph.cs
- RtfControls.cs
- XmlRawWriterWrapper.cs
- LoadedOrUnloadedOperation.cs
- XPathAxisIterator.cs
- UpdatePanelTriggerCollection.cs
- oledbmetadatacollectionnames.cs
- ErasingStroke.cs
- FormViewDesigner.cs
- DataGridViewCellValidatingEventArgs.cs
- DataGridViewCellValueEventArgs.cs
- Internal.cs
- CodeCompiler.cs
- GeometryModel3D.cs
- DataServiceStreamProviderWrapper.cs
- ButtonChrome.cs
- SqlProviderManifest.cs
- HitTestParameters3D.cs
- InvokeHandlers.cs
- TypeForwardedFromAttribute.cs
- ButtonBase.cs
- DecimalAnimationUsingKeyFrames.cs
- RichTextBoxConstants.cs
- WinFormsComponentEditor.cs
- FileDialogPermission.cs
- cryptoapiTransform.cs
- WebControl.cs
- OLEDB_Util.cs
- VectorConverter.cs
- HttpAsyncResult.cs
- StringOutput.cs
- EntityCollection.cs
- AppDomainProtocolHandler.cs
- PKCS1MaskGenerationMethod.cs
- AsyncCompletedEventArgs.cs
- Hex.cs
- Block.cs
- QilInvoke.cs
- DataGridViewImageColumn.cs
- CommandLineParser.cs
- storagemappingitemcollection.viewdictionary.cs
- IWorkflowDebuggerService.cs
- DataSpaceManager.cs
- DispatcherExceptionFilterEventArgs.cs
- MatrixValueSerializer.cs
- ScriptControlDescriptor.cs