Yet Another Comment on the C# “Cast” ( ) and “as” Operators…
Time and again, the question comes up whether to prefer the cast ( ) or the as operator in C# to perform conversions to reference types. According to the C# language specification, the two operators behave differently in several respects…