int GetIntValue ()
{
switch (node.ValueType) {
case BF.Zero:
return 0;
case BF.One:
return 1;
case BF.Int8:
return (byte) current.TypedValue;
case BF.Int16:
return (short) current.TypedValue;
case BF.Int32:
return (int) current.TypedValue;
}
throw new InvalidOperationException (String.Format ("Current content is not an integer. (Internal value type:{0:X02})", (int) node.ValueType));
}