mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 19:10:23 -10:00
64 lines
1017 B
C#
Executable File
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;
|
|
}
|
|
}
|
|
}
|
|
}
|