public static Offset BottomOffsetFromDiaSymbol(IDiaSymbol symbol) { Offset obj = Offset.FromDiaSymbol(symbol); switch ((LocationTypeEnum)symbol.locationType) { case LocationTypeEnum.LocIsThisRel: obj._bytes += (int)symbol.type.length; break; case LocationTypeEnum.LocIsBitField: obj._bits += (int)symbol.length; obj.Normalize(); break; } return(obj); }