Using C#, is there any overhead in having one larger object containing a whole lot of string variables – half of which are never used in the same instance, instead of 2 objects containing half the number of string variables in which all variables will be used in all instances?
My question might actually be: what overheads are there in having large numbers of empty string variables in objects? I’m talking about 20 unused string variables.
Miniscule. Don’t even sweat about it.
That being said, it’s most probably a bad idea from the design standpoint.