blob: 6bd0671802ba28d32de0ecf84cf13f6bd7f52a32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
//
// System.CodeDom CodeVariableDeclarationStatement Class implementation
//
// Author:
// Miguel de Icaza (miguel@ximian.com)
// Daniel Stodden (stodden@in.tum.de)
//
// (C) 2001 Ximian, Inc.
//
using System.Runtime.InteropServices;
namespace System.CodeDom
{
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeVariableDeclarationStatement
: CodeStatement
{
private CodeExpression initExpression;
private CodeTypeReference type;
private string name;
//
// Constructors
//
public CodeVariableDeclarationStatement ()
{
}
public CodeVariableDeclarationStatement( CodeTypeReference type, string name )
{
this.type = type;
this.name = name;
}
public CodeVariableDeclarationStatement( string type, string name )
{
this.type = new CodeTypeReference( type );
this.name = name;
}
public CodeVariableDeclarationStatement( Type type, string name )
{
this.type = new CodeTypeReference( type );
this.name = name;
}
public CodeVariableDeclarationStatement( CodeTypeReference type,
string name,
CodeExpression initExpression )
{
this.type = type;
this.name = name;
this.initExpression = initExpression;
}
public CodeVariableDeclarationStatement( string type,
string name,
CodeExpression initExpression )
{
this.type = new CodeTypeReference( type );
this.name = name;
this.initExpression = initExpression;
}
public CodeVariableDeclarationStatement( Type type,
string name,
CodeExpression initExpression )
{
this.type = new CodeTypeReference( type );
this.name = name;
this.initExpression = initExpression;
}
//
// Properties
//
public CodeExpression InitExpression {
get {
return initExpression;
}
set {
initExpression = value;
}
}
public string Name {
get {
return name;
}
set {
name = value;
}
}
public CodeTypeReference Type {
get {
return type;
}
set {
type = value;
}
}
}
}
|