1 //------------------------------------------------------------------------------
2 // <copyright file="CodeTypeReferenceExpression.cs" company="Microsoft">
4 // <OWNER>Microsoft</OWNER>
5 // Copyright (c) Microsoft Corporation. All rights reserved.
7 //------------------------------------------------------------------------------
9 namespace System.CodeDom {
11 using System.Diagnostics;
13 using Microsoft.Win32;
14 using System.Collections;
15 using System.Runtime.InteropServices;
19 /// Represents a reference to a type.
23 ClassInterface(ClassInterfaceType.AutoDispatch),
27 public class CodeTypeReferenceExpression : CodeExpression {
28 private CodeTypeReference type;
32 /// Initializes a new instance of <see cref='System.CodeDom.CodeTypeReferenceExpression'/>.
35 public CodeTypeReferenceExpression() {
40 /// Initializes a new instance of <see cref='System.CodeDom.CodeTypeReferenceExpression'/> using the specified type.
43 public CodeTypeReferenceExpression(CodeTypeReference type) {
48 /// <para>[To be supplied.]</para>
50 public CodeTypeReferenceExpression(string type) {
51 Type = new CodeTypeReference(type);
55 /// <para>[To be supplied.]</para>
57 public CodeTypeReferenceExpression(Type type) {
58 Type = new CodeTypeReference(type);
63 /// Gets or sets the type to reference.
66 public CodeTypeReference Type {
69 type = new CodeTypeReference("");