Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeOfExpression.cs / 1305376 / CodeTypeOfExpression.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 a TypeOf expression.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeTypeOfExpression : CodeExpression {
private CodeTypeReference type;
///
///
/// Initializes a new instance of .
///
///
public CodeTypeOfExpression() {
}
///
///
/// Initializes a new instance of .
///
///
public CodeTypeOfExpression(CodeTypeReference type) {
Type = type;
}
///
/// [To be supplied.]
///
public CodeTypeOfExpression(string type) {
Type = new CodeTypeReference(type);
}
///
/// [To be supplied.]
///
public CodeTypeOfExpression(Type type) {
Type = new CodeTypeReference(type);
}
///
///
/// Gets or sets the data type.
///
///
public CodeTypeReference Type {
get {
if (type == null) {
type = new CodeTypeReference("");
}
return type;
}
set {
type = 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 a TypeOf expression.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeTypeOfExpression : CodeExpression {
private CodeTypeReference type;
///
///
/// Initializes a new instance of .
///
///
public CodeTypeOfExpression() {
}
///
///
/// Initializes a new instance of .
///
///
public CodeTypeOfExpression(CodeTypeReference type) {
Type = type;
}
///
/// [To be supplied.]
///
public CodeTypeOfExpression(string type) {
Type = new CodeTypeReference(type);
}
///
/// [To be supplied.]
///
public CodeTypeOfExpression(Type type) {
Type = new CodeTypeReference(type);
}
///
///
/// Gets or sets the data type.
///
///
public CodeTypeReference Type {
get {
if (type == null) {
type = new CodeTypeReference("");
}
return type;
}
set {
type = 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
- VisualCollection.cs
- Property.cs
- ListDictionaryInternal.cs
- StatusStrip.cs
- NegationPusher.cs
- GetIsBrowserClientRequest.cs
- ContractMapping.cs
- FrameworkElementFactoryMarkupObject.cs
- SystemThemeKey.cs
- graph.cs
- PhonemeConverter.cs
- UICuesEvent.cs
- XomlSerializationHelpers.cs
- Margins.cs
- ContainerParagraph.cs
- FileVersionInfo.cs
- ResourcesBuildProvider.cs
- LazyTextWriterCreator.cs
- CodeMemberEvent.cs
- TextDecorationCollection.cs
- KeyPullup.cs
- DataTableCollection.cs
- BaseConfigurationRecord.cs
- FormViewDeletedEventArgs.cs
- HttpModuleActionCollection.cs
- InitializationEventAttribute.cs
- DataTransferEventArgs.cs
- WorkflowWebHostingModule.cs
- SingleConverter.cs
- EntityContainer.cs
- BufferBuilder.cs
- SubstitutionDesigner.cs
- HealthMonitoringSection.cs
- VirtualPathProvider.cs
- StylusSystemGestureEventArgs.cs
- CollectionType.cs
- RenamedEventArgs.cs
- OleTxTransaction.cs
- HealthMonitoringSection.cs
- SubMenuStyleCollection.cs
- Configuration.cs
- Registry.cs
- ControlIdConverter.cs
- PolyBezierSegment.cs
- SplayTreeNode.cs
- DetailsViewUpdatedEventArgs.cs
- DataGridViewBindingCompleteEventArgs.cs
- BitmapScalingModeValidation.cs
- HttpProfileBase.cs
- GridItemPattern.cs
- mda.cs
- EntityDataSourceUtil.cs
- InputLanguageEventArgs.cs
- EntityStoreSchemaFilterEntry.cs
- WinCategoryAttribute.cs
- ProfileSettings.cs
- SymLanguageType.cs
- ListBindingHelper.cs
- SessionPageStateSection.cs
- messageonlyhwndwrapper.cs
- SQLInt32Storage.cs
- ListItemCollection.cs
- PropertyConverter.cs
- SystemWebCachingSectionGroup.cs
- LineUtil.cs
- ServicePointManagerElement.cs
- RegexRunner.cs
- DataGridTablesFactory.cs
- FileSystemEnumerable.cs
- CompressStream.cs
- StorageBasedPackageProperties.cs
- AjaxFrameworkAssemblyAttribute.cs
- PropertySourceInfo.cs
- ContainerParagraph.cs
- PropertyOverridesTypeEditor.cs
- CompressEmulationStream.cs
- DllNotFoundException.cs
- RequestStatusBarUpdateEventArgs.cs
- SettingsBindableAttribute.cs
- Bezier.cs
- SqlServer2KCompatibilityAnnotation.cs
- PathParser.cs
- ToolStripStatusLabel.cs
- BamlVersionHeader.cs
- util.cs
- SqlDataAdapter.cs
- Timer.cs
- DrawingAttributes.cs
- AutomationAttributeInfo.cs
- CodeTypeReferenceCollection.cs
- GridViewUpdatedEventArgs.cs
- DrawingImage.cs
- ScrollChrome.cs
- PingReply.cs
- DefaultEventAttribute.cs
- InfoCardSymmetricAlgorithm.cs
- SessionEndingEventArgs.cs
- GenericXmlSecurityToken.cs
- KeyPullup.cs
- DbParameterCollectionHelper.cs