Exemple #1
0
        public NbkVariable(string k, string v)
        {
            key   = k;
            value = v;

            if (IsInt())
            {
                type = NbkVariableType.Int;
            }
            else if (IsFloat())
            {
                type = NbkVariableType.Float;
            }
            else if (IsBool())
            {
                type = NbkVariableType.Bool;
            }
            else
            {
                type = NbkVariableType.String;
            }
        }
Exemple #2
0
 public NbkValueTypeException(NbkVariableType exist, NbkVariableType rolling, Exception inner)
     : base(string.Format("Cannot set {1} type value into {0} type variable.", exist, rolling), inner)
 {
 }
Exemple #3
0
 public NbkValueTypeException(NbkVariableType type, Exception inner)
     : base(string.Format("Cannot set other type of value into {0} type variable.", type), inner)
 {
 }
Exemple #4
0
 public NbkTypeCompareException(NbkVariableType type, NbkCompareType comparer, Exception inner)
     : base(string.Format("Cannot make {1} comparison for {0} type.", type, comparer), inner)
 {
 }
Exemple #5
0
 public NbkTypeCompareException(NbkVariableType left, NbkVariableType right, Exception inner)
     : base(string.Format("Cannot compare between {0} and {1}.", left, right), inner)
 {
 }