In my code behind, I grab a value from the selected index from a radiobuttonlist.
Question is, in some cases I need to use it as a string but other cases I need to convert it to Int32 for use in some methods.
Is it better to:
Convert to int using a property (possible reuse later on) Convert to int inside just one method that needs it at this moment
I figure a private property will allow reuse across multiple methods internally. But if only one method really needs it to be an integer and that method uses it in a couple calls by passing it as a string parameter inside that method, just do the conversion there in that method and forget about exposing it as a private property with the assumption that someone may want to use it in some other method in this code behind later.