mo.notono.us

Monday, May 24, 2004

Updated C# V2.0 Specifications now available - take 2

How does the introduction of nullable versions of value types affect operations that previously required reference types because they might result in null? The as operator comes to mind - from the 2.0 specs: "20.8.6 The as operator The as operator can be used with a type parameter T as the right hand side only if T is known to be a reference type [see §20.7]. This restriction is required because the value null might be returned as a result of the operator. "

0 Comments:

Post a Comment

<< Home