object activation (.NET Remoting)
Activator class for, 1027
for client-activated objects, 1028–1029
messages, 1030
new operator for, 1027
proxy objects and, 1027, 1029
specifying the application URL, 1027
for well-known objects, 1027–1028
Object Browser window (Visual Studio 2005), 397–398
Object class
all .NET classes derived from, 106
as default base class, 113
Equals() method, 107
Finalize() method, 107, 108
GetHashCode() method, 107
GetType() method, 107, 108
MemberwiseClone() method, 107, 108
ToString() method, 106, 108–109
object type, 44–45
object-oriented programming (OOP), 30
OLE DB provider with ADO.NET, 597–600
OnAction method, 189–190
OnContinue() method (QuoteService assembly), 1286
OnCustomCommand() method (QuoteService assembly), 1286
OnDisplayButtonClick event handler, 1195–1196
OnDoubleClick() event handler, 892–893
OnListBoxFilesSelected event handler, 1196
OnListBoxFoldersSelected event handler, 1196
OnMouseDown() method, 892
OnOrderSelectionChanged() method, 1118–1119
OnPaint() method
CapsEditor example, 887–888
clipping region and, 848–850
DisplayImage project, 872
DisplayText example, 874–875
EnumFontFamilies example, 879, 880
painting shapes using, 847–848
scroll bars and, 859–860, 862
ScrollMoreShapes example, 870
OnPause() method (QuoteService assembly), 1286
OnPowerEvent() method (ServiceBase class), 1314
OnSelectCulture() method, 522
OnShutdown() method (QuoteService assembly), 1286
OnStart() method (QuoteService assembly), 1285, 1286, 1287
OnSubmitCourseOrder() method, 1114
OnUpButtonClick event handler, 1197
OOP (object-oriented programming), 30
Open() method (ColdCallFileReader class), 343–344
opening
database connections with ADO.NET, 583
message queues, 1104–1106
projects from previous versions in Visual Studio 2005, 374–376
OpenRead() method (WebClient class), 1240–1241
OpenSubKey() method (RegistryKey class), 1230
OpenWrite() method (WebClient class), 1241
operating systems supported by .NET, 553
operators. See also specific operators
as, 138
assignment versus comparison, 48, 134–135
checked and unchecked, 137
comparison, 48, 134–135, 147
compiler and, 149–150
defined, 86
is, 138
null coalescing, 139–140
nullable types and, 139
overloading, 148–157
pointer member access operator, 212
for pointers, 207
precedence, 140
for removing method calls from multicast delegates, 183
shortcut assignment operators, 135–136
sizeof, 138
table summarizing, 134
ternary, 136–137
typeof, 139
unsafe, 134
Order class, 1081–1083
OrderControl component, 1080–1081, 1084–1085, 1091–1092
OrderData component, 1081, 1085–1088, 1092–1093
OrderLine class, 1083–1084
OrderLineData component, 1081, 1088–1089
/out option for compiler output file specification, 64
out parameters
anonymous methods and, 177
passing to methods, 91
outsourcing translations, 543–544
OverflowException class, 329
overloading constructors, 95
overloading methods
DrawEllipse() method, 845
DrawRectangle() method, 845
overview, 92
Run() method, 753
Write() method, 1216–1217
overloading operators
arithmetic operators, 148, 151–152, 153–155
comparison operators, 148, 155–157
compiler and, 149–150
for concatenating strings, 224
operators supporting overloading, 157
public and static declaration required for, 152
uses for, 148, 149
Vector struct example, 150–157
override modifier, 125
overriding
Equals method for comparisons, 146–147, 148
Equals method for dictionaries, 264, 266, 267
GetHashCode() method for dictionaries, 263–264, 266–267
OnPaint() method, scrolling windows and, 859–860, 862
Render() method for custom control, 954–955
virtual methods and properties, 114–115