My little null-coalescing operator

I’ve been using FxCop to help find problems in the code I work on, and it sent me this gem: “‘value’, a parameter, is cast to type ‘string’  multiple times in method ‘RegexAttributeFilter.Accepts(object)’. Cache the result of the ‘as’ operator or direct cast in order to eliminate the redundant castclass instruction.” Looking at the code, […]