Oak, 4
Object(s), 12, 109
creating, 111, 114–115, 127, 129
to methods, passing, 169–172
reflection for runtime instantiation of, using, 459–463
returning, 181–185
Object class, 607
object class, 299–303, 455, 483
methods defined by, table of, 299, 615
reference to value type, 300–302
Object initialization
with another object, 191–194
with constructor, 126–127
Object.Equals( ), 222
Object.HashCode( ), 222
Object-oriented programming (OOP), 4, 11–13
ObjectDisposedException, 372, 373, 787
Obsolete built-in attribute, 478, 480–481
One field, 582
One’s complement (unary NOT) operator (~), 73, 78–79
OpenRead( ), 800
OpenWrite( ), 800–801
operator keyword, 209
Operator overloading, 209–239, 531
binary, 209–212, 216–220
logical, 225–231
and overloading an operator method, 216–220
relational, 220–222
restrictions, 235–236
and true and false, 222–224, 227–231
unary, 209–210, 212–216
Operator(s)
arithmetic, 24, 63–67
arrow (−>), 537
assignment. See Assignment operator(s)
bitwise, 73–82
conversion. See Conversion operators
decrement. See Decrement operator (− −)
and generics, 532
implication, 69–70
increment. See Increment operator (++)
logical, 67–71, 225–231
methods, 209–210
parentheses and, 84
pointer, 535
precedence, table of, 84
relational, 27, 43, 67–68, 222–224
ternary (?), 82–83
OR operator (|)
bitwise, 73, 76–77
logical, 67, 68, 69–70, 71, 225–231
OR operator, short-circuit or conditional (||), 67, 70, 71, 225, 227–231
Or( ), 732
OrderedDictionary class, 733
out parameter modifier, 173, 174–177, 189, 210, 248, 256
OutOfMemoryException, 350
Overflow in arithmetic computations, 357
OverflowException, 350, 393
and checked and unchecked, 357–359
Overloading
constructors, 190–195, 531
indexers, 245–247, 531
methods, 185–190, 530–531
operators. See Operator overloading
override keyword, 287, 291
Overriding, method, 287–294
and dynamic method dispatch, 287–288