public static void CopyInt32Property(PropertyContext pc, TableContext tc, int rowIndex, PropertyID propertyID) { Nullable <int> value = pc.GetInt32Property(propertyID); if (value.HasValue && tc.ContainsPropertyColumn(propertyID, PropertyTypeName.PtypInteger32)) { tc.SetInt32Property(rowIndex, propertyID, value.Value); } }