using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace csmic { /// /// Represents the data types supported in a variable. /// public enum VariableType { /// /// Decimal /// Decimal, /// /// Equation /// Equation, /// /// Array /// Array, /// /// Unknown /// Unknown, /// /// No type associated /// None } /// /// An object that contains information about a variable. /// public class Variable { #region Members /// /// The type of variable. /// private VariableType type; /// /// The value of the variable. /// private object value; #endregion #region Constructor /// /// Creates an empty variable. /// public Variable() { this.type = VariableType.None; this.value = null; } #endregion #region Properties /// /// Gets or sets an object representing the variable's value. /// public object Value { get { return this.value; } set { this.value = value; } } /// /// Gets or sets the type of the variable. /// public VariableType Type { get { return this.type; } set { this.type = value; } } #endregion } }