Ejemplo n.º 1
0
 /// <summary>
 /// Matches given VarName and VarValue in internal store
 /// </summary>
 /// <param name="VarName"></param>
 /// <param name="VarValue"></param>
 /// <returns></returns>
 public bool MatchState(string VarName, string VarValue)
 {
     if (!StateVar.ContainsKey(VarName))
     {
         return(false);
     }
     return(StateVar[VarName] == VarValue);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Returns null if VarName is not found
        /// </summary>
        /// <param name="VarName"></param>
        /// <returns></returns>
        public string GetStateVar(string VarName)
        {
            if (StateVar.ContainsKey(VarName))
            {
                return(StateVar[VarName]);
            }

            return(null);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Checks if VarName exists in State
 /// </summary>
 /// <param name="VarName"></param>
 /// <returns></returns>
 public bool HasStateVar(string VarName)
 {
     return(StateVar.ContainsKey(VarName));
 }