public static Scale Load(IValueStream stream)
{
Scale ret = null;
Tags tag = (Tags)stream.EnterChoice();
switch(tag)
{
case Tags.FloatScale:
ret = Value<FloatScaleWrapper>.Load(stream);
break;
case Tags.IntegerScale:
ret = Value<IntegerScaleWrapper>.Load(stream);
break;
default:
throw new Exception();
}
stream.LeaveChoice();
return ret;
}