| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- //
- // 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;
- }
- }
- }
- }
|