Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeReferenceExpression.cs / 1 / CodeTypeReferenceExpression.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 reference to a type.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeTypeReferenceExpression : CodeExpression {
private CodeTypeReference type;
///
///
/// Initializes a new instance of .
///
///
public CodeTypeReferenceExpression() {
}
///
///
/// Initializes a new instance of using the specified type.
///
///
public CodeTypeReferenceExpression(CodeTypeReference type) {
Type = type;
}
///
/// [To be supplied.]
///
public CodeTypeReferenceExpression(string type) {
Type = new CodeTypeReference(type);
}
///
/// [To be supplied.]
///
public CodeTypeReferenceExpression(Type type) {
Type = new CodeTypeReference(type);
}
///
///
/// Gets or sets the type to reference.
///
///
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 reference to a type.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeTypeReferenceExpression : CodeExpression {
private CodeTypeReference type;
///
///
/// Initializes a new instance of .
///
///
public CodeTypeReferenceExpression() {
}
///
///
/// Initializes a new instance of using the specified type.
///
///
public CodeTypeReferenceExpression(CodeTypeReference type) {
Type = type;
}
///
/// [To be supplied.]
///
public CodeTypeReferenceExpression(string type) {
Type = new CodeTypeReference(type);
}
///
/// [To be supplied.]
///
public CodeTypeReferenceExpression(Type type) {
Type = new CodeTypeReference(type);
}
///
///
/// Gets or sets the type to reference.
///
///
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
- SchemaType.cs
- Scalars.cs
- OracleConnectionString.cs
- DataFormat.cs
- CodeVariableReferenceExpression.cs
- httpstaticobjectscollection.cs
- BinaryNegotiation.cs
- Journaling.cs
- FrameworkReadOnlyPropertyMetadata.cs
- PrintingPermissionAttribute.cs
- StdValidatorsAndConverters.cs
- BitmapSourceSafeMILHandle.cs
- ContractsBCL.cs
- SByteConverter.cs
- OverlappedAsyncResult.cs
- CqlWriter.cs
- XmlSchemaImport.cs
- XmlSchemaType.cs
- ContentPlaceHolder.cs
- DataControlButton.cs
- MetaModel.cs
- AlignmentXValidation.cs
- UrlPath.cs
- SymmetricAlgorithm.cs
- NavigateEvent.cs
- DataTablePropertyDescriptor.cs
- CookieHandler.cs
- CommandField.cs
- FileDialog.cs
- BuildProvider.cs
- ReadWriteSpinLock.cs
- StructuredTypeEmitter.cs
- Part.cs
- Quaternion.cs
- ExpressionBuilderCollection.cs
- InkCollectionBehavior.cs
- TextSegment.cs
- WebPartConnectionsCloseVerb.cs
- Dictionary.cs
- Axis.cs
- CallId.cs
- DbCommandTree.cs
- DataGridViewHeaderCell.cs
- HwndTarget.cs
- MyContact.cs
- WebPartAddingEventArgs.cs
- PageContentAsyncResult.cs
- CompositionTarget.cs
- XmlWriter.cs
- FunctionNode.cs
- AsyncOperation.cs
- UrlMappingsModule.cs
- RNGCryptoServiceProvider.cs
- CachedBitmap.cs
- PassportPrincipal.cs
- ConvertersCollection.cs
- _NetRes.cs
- SecurityElementBase.cs
- PrintPreviewDialog.cs
- TextParaClient.cs
- PermissionSetTriple.cs
- WebDisplayNameAttribute.cs
- NotImplementedException.cs
- OAVariantLib.cs
- WinFormsSecurity.cs
- IgnoreSectionHandler.cs
- AssertHelper.cs
- safex509handles.cs
- ProvidersHelper.cs
- MemberPath.cs
- XmlEncodedRawTextWriter.cs
- SqlRetyper.cs
- FrameworkTextComposition.cs
- ListViewUpdatedEventArgs.cs
- PathGeometry.cs
- DBConnection.cs
- Brush.cs
- PropertyDescriptorCollection.cs
- EmbeddedMailObjectsCollection.cs
- ResourceAttributes.cs
- ValidationErrorInfo.cs
- RectIndependentAnimationStorage.cs
- SoapHeader.cs
- FontWeights.cs
- ControlParameter.cs
- NativeStructs.cs
- ImageAnimator.cs
- IPHostEntry.cs
- ThemeableAttribute.cs
- DisplayClaim.cs
- BlockCollection.cs
- FontEmbeddingManager.cs
- BindableAttribute.cs
- FileStream.cs
- TabControl.cs
- IODescriptionAttribute.cs
- HtmlButton.cs
- XmlNamespaceMappingCollection.cs
- BuildProviderAppliesToAttribute.cs
- ColumnCollection.cs