public static ReadResultType Load(IValueStream stream)
{
ReadResultType ret = null;
Tags tag = (Tags)stream.EnterChoice();
switch(tag)
{
case Tags.PropertyValue:
ret = Value<PropertyValueWrapper>.Load(stream);
break;
case Tags.PropertyAccessError:
ret = Value<PropertyAccessErrorWrapper>.Load(stream);
break;
default:
throw new Exception();
}
stream.LeaveChoice();
return ret;
}