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; } }
public NbkValueTypeException(NbkVariableType exist, NbkVariableType rolling, Exception inner) : base(string.Format("Cannot set {1} type value into {0} type variable.", exist, rolling), inner) { }
public NbkValueTypeException(NbkVariableType type, Exception inner) : base(string.Format("Cannot set other type of value into {0} type variable.", type), inner) { }
public NbkTypeCompareException(NbkVariableType type, NbkCompareType comparer, Exception inner) : base(string.Format("Cannot make {1} comparison for {0} type.", type, comparer), inner) { }
public NbkTypeCompareException(NbkVariableType left, NbkVariableType right, Exception inner) : base(string.Format("Cannot compare between {0} and {1}.", left, right), inner) { }