Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ADConnectionHelper.cs
- DataGridViewCellMouseEventArgs.cs
- StyleBamlTreeBuilder.cs
- ProviderSettings.cs
- ProcessModelSection.cs
- SqlRowUpdatedEvent.cs
- ServiceDurableInstanceContextProvider.cs
- Point3DIndependentAnimationStorage.cs
- EmptyCollection.cs
- LocalizableAttribute.cs
- __FastResourceComparer.cs
- TextElement.cs
- TailCallAnalyzer.cs
- Point3DKeyFrameCollection.cs
- AuthenticationService.cs
- SpeakInfo.cs
- XmlSchemaComplexType.cs
- ModelItemKeyValuePair.cs
- RubberbandSelector.cs
- ThreadPool.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- BlobPersonalizationState.cs
- SelectionRange.cs
- AttachedPropertyInfo.cs
- CrossAppDomainChannel.cs
- MatchAllMessageFilter.cs
- SelectionItemProviderWrapper.cs
- GridViewRowPresenter.cs
- ButtonPopupAdapter.cs
- DataTableNewRowEvent.cs
- ContentTextAutomationPeer.cs
- ExtensionElementCollection.cs
- ToolStripScrollButton.cs
- LexicalChunk.cs
- TabControlAutomationPeer.cs
- PropertyChange.cs
- TypeDelegator.cs
- DataRow.cs
- TemplateManager.cs
- HwndHostAutomationPeer.cs
- MultilineStringConverter.cs
- ComplexPropertyEntry.cs
- CollectionEditVerbManager.cs
- UniqueEventHelper.cs
- SQLRoleProvider.cs
- RectangleHotSpot.cs
- DictionaryTraceRecord.cs
- XmlReflectionImporter.cs
- CacheChildrenQuery.cs
- SqlRetyper.cs
- MediaElement.cs
- FloatMinMaxAggregationOperator.cs
- UnionCodeGroup.cs
- AnnotationHelper.cs
- LayoutTable.cs
- WebPartConnectionsDisconnectVerb.cs
- JpegBitmapDecoder.cs
- WindowHideOrCloseTracker.cs
- ReversePositionQuery.cs
- DataGridViewColumnHeaderCell.cs
- TextElementAutomationPeer.cs
- SplineKeyFrames.cs
- ControlPropertyNameConverter.cs
- ProxyGenerator.cs
- ListBoxAutomationPeer.cs
- SamlNameIdentifierClaimResource.cs
- Component.cs
- ECDiffieHellmanCng.cs
- PackUriHelper.cs
- QilScopedVisitor.cs
- Single.cs
- PaginationProgressEventArgs.cs
- CommonDialog.cs
- ImmutablePropertyDescriptorGridEntry.cs
- Vector3DAnimation.cs
- GlyphRun.cs
- DataGridHelper.cs
- NullToBooleanConverter.cs
- BooleanSwitch.cs
- LineInfo.cs
- ResourcesBuildProvider.cs
- XmlNodeChangedEventManager.cs
- BinaryObjectReader.cs
- LinqDataSourceSelectEventArgs.cs
- XmlSchemaFacet.cs
- SmuggledIUnknown.cs
- ServerValidateEventArgs.cs
- DataGridViewCheckBoxColumn.cs
- BufferedStream.cs
- ActivityValidationServices.cs
- ApplicationBuildProvider.cs
- StatusBarDrawItemEvent.cs
- PhysicalOps.cs
- OutputCacheSettingsSection.cs
- TranslateTransform3D.cs
- LocalizationComments.cs
- CheckBoxRenderer.cs
- MetabaseSettingsIis7.cs
- PersistenceTypeAttribute.cs
- RequestCacheManager.cs