Instead of duplicating every type, call `.TrimEnd('?')`.
You might also want to recognize `Nullable<int>`