G
gutofb7
Hi folks!
I have a class A, with an inner class B. This inner class B contains
only string constants. So, I will never have an instance of B. My
silly question is: would I have any benefit of changing B to a struct?
Since constants will be replaced at compile time, what would hapen
with this class/struct? This leads me to another question: if I have a
static class that provides only methods, could be any benefit of
changing it to a struct?
A work colleague came up with these questions, and I have no idea of
what to say (although I tend to think that I wouldn't have any
benfits).
What do you think??
thanks
I have a class A, with an inner class B. This inner class B contains
only string constants. So, I will never have an instance of B. My
silly question is: would I have any benefit of changing B to a struct?
Since constants will be replaced at compile time, what would hapen
with this class/struct? This leads me to another question: if I have a
static class that provides only methods, could be any benefit of
changing it to a struct?
A work colleague came up with these questions, and I have no idea of
what to say (although I tend to think that I wouldn't have any
benfits).
What do you think??
thanks