Implement GetID/SetID using reflection