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 25 Unsafe codeprevious at this levelnext at this level 25.5 Pointers in expressionsprevious at this levelnext at this level 25.5.7 Pointer comparison Paragraph 11 In an unsafe context, the ==, !=, <, >, <=, and => operators (§14.9) can be applied to values of all pointer types. 2 The pointer comparison operators are:
bool operator ==(void* x, void* y);  
bool operator !=(void* x, void* y);  
bool operator <(void* x, void* y);  
bool operator >(void* x, void* y);  
bool operator <=(void* x, void* y);  
bool operator >=(void* x, void* y);  
Paragraph 21 Because an implicit conversion exists from any pointer type to the void* type, operands of any pointer type can be compared using these operators. 2 The comparison operators compare the addresses given by the two operands as if they were unsigned integers.
{ JSL }
Jagger Software Ltd
Company # 4070126
VAT # 762 5213 42
Valid HTML 4.01Valid CSS