Get interface constant name using its value
Posted
by Ravisha
on Stack Overflow
See other posts from Stack Overflow
or by Ravisha
Published on 2010-04-08T12:10:22Z
Indexed on
2010/04/08
12:13 UTC
Read the original article
Hit count: 284
This might not have a major usecase in projects ,but i was just trying a POC kind of project where in i get the key code,and using its value i want to print the key name on screen so i want to relive myself off writing switch cases ,so thinking of going by reflection. Is there a way to get the constant integer of interface's name using its value?
© Stack Overflow or respective owner