Files
mono/mcs/class/System/System.CodeDom/CodeVariableDeclarationStatement.cs
T
Piers Haken 610d7923ac added missing [Serializable] attribute
svn path=/trunk/mcs/; revision=3540
2002-04-01 20:22:40 +00:00

64 lines
1017 B
C#
Executable File

//
// System.CodeDom CodeVariableDeclarationStatement Class implementation
//
// Author:
// Miguel de Icaza ([email protected])
//
// (C) 2001 Ximian, Inc.
//
namespace System.CodeDom {
[Serializable]
public class CodeVariableDeclarationStatement : CodeStatement {
CodeExpression initExpression;
string type, name;
public CodeVariableDeclarationStatement () {}
public CodeVariableDeclarationStatement (string type, string name)
{
this.type = type;
this.name = name;
}
public CodeVariableDeclarationStatement (string type, string name,
CodeExpression initExpression)
{
this.type = type;
this.name = name;
this.initExpression = initExpression;
}
public CodeExpression InitExpression {
get {
return initExpression;
}
set {
initExpression = value;
}
}
public string Name {
get {
return name;
}
set {
name = value;
}
}
public string Type {
get {
return type;
}
set {
type = value;
}
}
}
}