public static PriorityValue Load(IValueStream stream)
{
PriorityValue ret = null;
Tags tag = (Tags)stream.EnterChoice();
switch(tag)
{
case Tags.Null:
ret = Value<NullWrapper>.Load(stream);
break;
case Tags.Real:
ret = Value<RealWrapper>.Load(stream);
break;
case Tags.Binary:
ret = Value<BinaryWrapper>.Load(stream);
break;
case Tags.Integer:
ret = Value<IntegerWrapper>.Load(stream);
break;
case Tags.ConstructedValue:
ret = Value<ConstructedValueWrapper>.Load(stream);
break;
default:
throw new Exception();
}
stream.LeaveChoice();
return ret;
}