public static IFixedSizeValue CreateFixedSizeValue(IFixedPropType fixedPropType, byte[] buffer, ref int pos) { var int16Value = (fixedPropType as PtypInteger16).Value; CreateFixedPropValue createFunc = null; if (CreatePropValueDic.TryGetValue(int16Value, out createFunc)) { IFixedSizeValue fixValueObj = createFunc(); fixValueObj.ParseValue(buffer, ref pos); return fixValueObj; } throw new ArgumentException(string.Format("fixedPropType [{0}] is invalid.", (fixedPropType as PtypInteger16).Value.ToString("X4"))); }
private FixPropType_PropInfo_FixedSizeValue(IFixedPropType fixPropType) { FixedPropType = fixPropType; }