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
- CompilerGlobalScopeAttribute.cs
- ErrorStyle.cs
- util.cs
- Tracer.cs
- CodeIdentifiers.cs
- AuthorizationRuleCollection.cs
- SoundPlayer.cs
- Transform.cs
- QilNode.cs
- EpmSyndicationContentDeSerializer.cs
- Invariant.cs
- SqlCacheDependencySection.cs
- PrePrepareMethodAttribute.cs
- DBCSCodePageEncoding.cs
- LiteralControl.cs
- WorkflowInstanceExtensionProvider.cs
- SafeThreadHandle.cs
- TableItemStyle.cs
- PipeStream.cs
- ScrollChrome.cs
- MergablePropertyAttribute.cs
- XmlTextReaderImplHelpers.cs
- Rule.cs
- UInt64Converter.cs
- TargetFrameworkAttribute.cs
- UrlAuthorizationModule.cs
- TemplateBindingExpression.cs
- LinearGradientBrush.cs
- BamlCollectionHolder.cs
- XamlToRtfParser.cs
- XamlNamespaceHelper.cs
- SslStream.cs
- BamlCollectionHolder.cs
- HttpCachePolicy.cs
- SmiContextFactory.cs
- Win32KeyboardDevice.cs
- SQlBooleanStorage.cs
- RoutedPropertyChangedEventArgs.cs
- WeakEventTable.cs
- BitmapMetadataEnumerator.cs
- TextProviderWrapper.cs
- IERequestCache.cs
- SystemBrushes.cs
- CacheOutputQuery.cs
- RetriableClipboard.cs
- XmlAnyAttributeAttribute.cs
- FlagsAttribute.cs
- ReliableInputConnection.cs
- AutoResetEvent.cs
- DataKey.cs
- ComAwareEventInfo.cs
- WebPartConnectionsEventArgs.cs
- RoleManagerModule.cs
- SmtpFailedRecipientsException.cs
- ProtectedConfigurationProviderCollection.cs
- RequestCacheEntry.cs
- Content.cs
- WebBrowserProgressChangedEventHandler.cs
- ProcessHostServerConfig.cs
- CompilerScopeManager.cs
- WebPartsPersonalization.cs
- StorageRoot.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- IntPtr.cs
- SqlProviderManifest.cs
- IEnumerable.cs
- ConfigurationElementProperty.cs
- EventQueueState.cs
- validationstate.cs
- MimeObjectFactory.cs
- FileUtil.cs
- AssemblyAttributes.cs
- TransformCollection.cs
- DoWorkEventArgs.cs
- ModelFactory.cs
- DefaultAsyncDataDispatcher.cs
- ImageDrawing.cs
- DataProtection.cs
- ScrollBarAutomationPeer.cs
- SetterBaseCollection.cs
- DependencyPropertyChangedEventArgs.cs
- MultiPageTextView.cs
- SizeLimitedCache.cs
- __FastResourceComparer.cs
- XhtmlBasicValidatorAdapter.cs
- dsa.cs
- CommentEmitter.cs
- DbException.cs
- ContainerUIElement3D.cs
- SerializerProvider.cs
- MediaContextNotificationWindow.cs
- WrappedIUnknown.cs
- mactripleDES.cs
- MaterialCollection.cs
- WebPartsSection.cs
- NamespaceImport.cs
- lengthconverter.cs
- MsmqOutputMessage.cs
- XamlWriter.cs
- QilTypeChecker.cs