Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeReferenceExpression.cs / 1305376 / 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
- RoamingStoreFileUtility.cs
- ListBoxChrome.cs
- PolicyManager.cs
- UntrustedRecipientException.cs
- GeneratedCodeAttribute.cs
- DragStartedEventArgs.cs
- TreeNodeStyleCollectionEditor.cs
- QilReplaceVisitor.cs
- GridViewUpdateEventArgs.cs
- ExpressionStringBuilder.cs
- TabletDeviceInfo.cs
- TabPanel.cs
- PropertyEntry.cs
- TextRangeBase.cs
- ResourceWriter.cs
- SecurityChannel.cs
- RecordsAffectedEventArgs.cs
- RadioButtonPopupAdapter.cs
- LocatorBase.cs
- AbandonedMutexException.cs
- DataServiceEntityAttribute.cs
- FrameworkElementFactoryMarkupObject.cs
- HybridCollection.cs
- ComponentDispatcher.cs
- HandlerMappingMemo.cs
- MemberMemberBinding.cs
- RawStylusInput.cs
- Substitution.cs
- FilteredReadOnlyMetadataCollection.cs
- ZipIOLocalFileDataDescriptor.cs
- SqlRecordBuffer.cs
- Int64KeyFrameCollection.cs
- XmlSchemaElement.cs
- TopClause.cs
- Label.cs
- TaskHelper.cs
- CommandLibraryHelper.cs
- RulePatternOps.cs
- DataSvcMapFile.cs
- CompressionTransform.cs
- Container.cs
- EmptyEnumerator.cs
- PersonalizablePropertyEntry.cs
- RegexCompilationInfo.cs
- DirtyTextRange.cs
- StrongNamePublicKeyBlob.cs
- LogExtentCollection.cs
- Matrix.cs
- ButtonStandardAdapter.cs
- TraceEventCache.cs
- FreezableOperations.cs
- initElementDictionary.cs
- Timer.cs
- DelayedRegex.cs
- brushes.cs
- FirstQueryOperator.cs
- Int32CollectionValueSerializer.cs
- DesignConnectionCollection.cs
- TextTreeNode.cs
- XmlSerializationWriter.cs
- RectangleGeometry.cs
- SmtpFailedRecipientException.cs
- DocumentOrderQuery.cs
- FixedDSBuilder.cs
- DataGridViewHitTestInfo.cs
- RequestQueryParser.cs
- WorkflowRuntimeService.cs
- CompilerScopeManager.cs
- FontCollection.cs
- ToolConsole.cs
- LocalizedNameDescriptionPair.cs
- SByteConverter.cs
- RelationshipDetailsCollection.cs
- QueryableDataSourceEditData.cs
- FocusWithinProperty.cs
- COM2ColorConverter.cs
- PreviewPrintController.cs
- ProcessInfo.cs
- RegexWriter.cs
- StorageScalarPropertyMapping.cs
- ValidationErrorInfo.cs
- TaskResultSetter.cs
- InvokeMethodActivity.cs
- ToolStripPanel.cs
- PropertyHelper.cs
- InheritanceService.cs
- HtmlTableCell.cs
- Stroke.cs
- OdbcTransaction.cs
- XmlMtomReader.cs
- DataBindingHandlerAttribute.cs
- MainMenu.cs
- HtmlButton.cs
- WindowsIPAddress.cs
- SpeechSeg.cs
- XmlSchemaSubstitutionGroup.cs
- Identifier.cs
- RowCache.cs
- GetPageCompletedEventArgs.cs
- HorizontalAlignConverter.cs