public static COVCriteria Load(IValueStream stream)
{
COVCriteria ret = null;
Tags tag = (Tags)stream.EnterChoice();
switch(tag)
{
case Tags.Bitmask:
ret = Value<BitmaskWrapper>.Load(stream);
break;
case Tags.ReferencedPropertyIncrement:
ret = Value<ReferencedPropertyIncrementWrapper>.Load(stream);
break;
default:
throw new Exception();
}
stream.LeaveChoice();
return ret;
}