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
- CodeDirectoryCompiler.cs
- ApplicationDirectory.cs
- EmissiveMaterial.cs
- FileSystemInfo.cs
- Compiler.cs
- ScrollableControl.cs
- OdbcErrorCollection.cs
- ObjectQuery_EntitySqlExtensions.cs
- ItemCollection.cs
- ExpressionPrinter.cs
- XPathPatternBuilder.cs
- SimpleWebHandlerParser.cs
- RuntimeEnvironment.cs
- XmlSchemaObjectTable.cs
- ReferencedCollectionType.cs
- HttpHandlerAction.cs
- Timer.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- AdapterDictionary.cs
- BoolLiteral.cs
- Header.cs
- Misc.cs
- MailDefinition.cs
- translator.cs
- FileIOPermission.cs
- RetrieveVirtualItemEventArgs.cs
- MyContact.cs
- Point3DKeyFrameCollection.cs
- XPathNodeInfoAtom.cs
- CounterNameConverter.cs
- SqlUDTStorage.cs
- ProfilePropertySettingsCollection.cs
- HttpResponseInternalWrapper.cs
- OperationSelectorBehavior.cs
- GridViewUpdateEventArgs.cs
- RectConverter.cs
- KnownColorTable.cs
- ListViewTableRow.cs
- Encoding.cs
- UpdateDelegates.Generated.cs
- DataColumnChangeEvent.cs
- DynamicValueConverter.cs
- EntityCommandExecutionException.cs
- WebServiceReceive.cs
- SuppressMergeCheckAttribute.cs
- CodeSnippetTypeMember.cs
- Literal.cs
- _NtlmClient.cs
- DesignerActionVerbItem.cs
- ClipboardData.cs
- AdornerHitTestResult.cs
- StringBuilder.cs
- StrokeCollectionDefaultValueFactory.cs
- TreeViewImageKeyConverter.cs
- Recipient.cs
- HtmlElementCollection.cs
- XmlSchemaImport.cs
- BaseProcessProtocolHandler.cs
- RenderDataDrawingContext.cs
- RuntimeConfig.cs
- WorkflowApplicationCompletedEventArgs.cs
- SetStoryboardSpeedRatio.cs
- SqlDataSourceAdvancedOptionsForm.cs
- ACE.cs
- BorderSidesEditor.cs
- COM2PropertyDescriptor.cs
- FontWeights.cs
- ModelItemKeyValuePair.cs
- AnimationClockResource.cs
- CounterCreationDataCollection.cs
- Transform.cs
- GatewayIPAddressInformationCollection.cs
- GPRECT.cs
- FamilyTypefaceCollection.cs
- StringConcat.cs
- CompositeKey.cs
- SurrogateEncoder.cs
- BaseTemplatedMobileComponentEditor.cs
- IsolatedStorage.cs
- ArrangedElementCollection.cs
- Decorator.cs
- DataGridViewColumnCollection.cs
- DynamicUpdateCommand.cs
- EncodingInfo.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- EntityDataSourceQueryBuilder.cs
- CodeBinaryOperatorExpression.cs
- TextViewBase.cs
- MexServiceChannelBuilder.cs
- TransactionWaitAsyncResult.cs
- PagerStyle.cs
- Transform3D.cs
- HandlerMappingMemo.cs
- RNGCryptoServiceProvider.cs
- CommandEventArgs.cs
- SynchronizedDispatch.cs
- ConfigurationPermission.cs
- COMException.cs
- BuildResultCache.cs
- TdsParser.cs