@ankit-thakar
I don't know why you don't like it, but the usual way is to add a dummy at the end.
@Devopia53
My issue with that solution is that you're getting the information at runtime, instead of at compile time. There is increased chance of errors and there isn't really a need to inquire the meta object system in this case.