What does "in the rare cases when an identifier has no semantic meaning beyond its type" mean?
[Noelle Mallory - MSFT] Please post questions to the MSDN Forums at http://forums.microsoft.com/msdn. You will likely get a quicker response through the forum than through the Community Content.
[ FelixFrank ] (Answer) I read it as "As explained above, always do use names that carry semantic explanation such as 'int windowSize'. If none exists, do not use type names." The 'rare case' mentioned is that you retrieve some value from some function that will have no real world meaning. I can't really think of an example for this.
[I would have liked to post this as "new content" but this wouldn't work out. Sorry.]
[leogert] (Answer) Imagine you're writing a function that parses an int from a string. There is no semantic context to your string . It is just THE string, so it would be acceptable to just call it str rather than strInput or strToBeParsed.
[dave] Actually, using "str" would also contradict these guidelines because it is an unnecessary abbreviation. A better name would be "value", as suggested by the article; e.g., int ToInt32(string value). See, Convert.ToInt32: http://msdn.microsoft.com/en-us/library/sf1aw27b.aspx