Jon Jagger
jon@jaggersoft.com
Table of Contents 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Notes DownloadECMA-334 C# Language Specificationpreviousnextprevious at this levelnext at this level 13 Conversionsprevious at this levelnext at this level 13.2 Explicit conversionsprevious at this levelnext at this level 13.2.3 Explicit reference conversions Paragraph 11 The explicit reference conversions are: Paragraph 21 The explicit reference conversions are those conversions between reference-types that require run-time checks to ensure they are correct. Paragraph 31 For an explicit reference conversion to succeed at run-time, the value of the source operand must be null, or the actual type of the object referenced by the source operand must be a type that can be converted to the destination type by an implicit reference conversion (§13.1.4). 2 If an explicit reference conversion fails, a System.InvalidCastException is thrown. Paragraph 41 Reference conversions, implicit or explicit, never change the referential identity of the object being converted. [Note: In other words, while a reference conversion may change the type of the reference, it never changes the type or value of the object being referred to. end note]
{ JSL }
Jagger Software Ltd
Company # 4070126
VAT # 762 5213 42
Valid HTML 4.01Valid CSS