Object Browser window, Visual
Studio 2005, 420–421
object class, 106
object creation operator, 156
object lists
LINQ queries to access, 1683
traditional queries across, 1676–1679
object orientation (OO)
fundamentals of, 30
IL and, 8–9
object sinks, 1421
ObjectDataProvider, 1197–1198, 1207
objects
activation in .NET Remoting architecture, 1417–1419
as class instance, 197
class members and, 84–85
classes and structs for creating, 84
constructors, 94–96
constructors called from other constructors, 98–99
context-bound, 1405–1406
data members, 85
declaring methods, 86–87
function members, 85–86
initialization, 1699–1700
invoking methods, 87–89
method overloading, 91–92
object class, 106
output parameters, 91
overview of, 83
partial classes, 104–105
passing in remote methods, 1421–1425
passing parameters to methods by reference, 90
passing parameters to methods by value, 89–90
pooling, Enterprise Services, 1457
predefined reference types, 45–46
properties, 92–94
readonly fields, 99–100
remote. See remote objects
static classes, 105–106
static constructors, 96–98
structs and, 101–104
System.Object methods, 106–107
ToString( ) method, 108–109
objects, Active Directory
collections, 1601–1602
creating, 1603–1605
global catalogs searching for, 1587–1588
globally unique identifier, 1598
hierarchical ordering of in domains, 1586
overview of, 1585
Of keyword, 1649–1650
OLE DB Provider, 1668–1671
OLE/COM Object Viewer, 772
OleDbCommand class, 867
OleDbConnection class, 851
OleDbDataReader class, 867–869
OnAddBook( ) method, 1204–1205
OnApplyResource( ) method, 1166
OnCallback( ) method, duplex communication, 1538
OnContinue( ), Windows Services handler methods, 724
OnCustomCommand( ), Windows
Services handler methods, 725
onDoubleClick( ) override, 1125
OneWay attribute, asynchronous remoting with, 1442
online resources
Microsoft Application Center Server, 1455
Reflector, 855
tcpTrace tool download, 1411
third-party tools for debugging JavaScript, 1331
Windows Workflow downloads, 1581
OnOpenBookDialog( ) method, 1196
OnPaint( ) method
CapsEditor example, 1119–1120
clipping region and, 1080–1082
editing text document, 1119–1120
enumerating font families, 1110–1111
Invalidate( ) method vs., 1116–1117
overriding ActivityDesigner, 1555
painting shapes using, 1079–1080
working around debugging problem, 1087–1088
OnPause( ), Windows Services handler methods, 724
OnPowerEvent( ), WindowsServices handler methods, 725
OnShutdown( ), Windows Services handler methods, 724
OnStart( ), Windows Serviceshandler methods, 724
OnStop( ), Windows Serviceshandler methods, 724
OO (object orientation)
fundamentals of, 30
IL and, 8–9
OOP extensions, JavaScript AJAX Library
classes, 1326–1327
inheritance, 1327–1328
namespaces, 1326
user-defined types, 1328
Open( ) method, service host, 1517
open standards, Active Directory, 1584
open unlocked state, statemachine workflows, 1566–1568
OpenRead( ) method
downloading files using WebClient, 1340
WebClient example of, 1340–1341
OpenSubKey( ) method
RegistryKey class, 832
SelfPlacingWindow application using, 838
OpenWrite( ) method, WebClient example of, 1341–1342
operating systems (OSs), requirements for .NET-based applications, 443–444
OperationBehavior, service implementation, 1532
OperationContract property, service contract, 1523–1524
operators
boxing and unboxing, 168
cast operators. See cast operators
checked and unchecked, 159–160
comparison operators, overloading, 178–180
defining class functions, 86
duplicating symbols for representation of, 333
equality, reference vs. value types, 169–170
explicit conversions, 165–168
how they work, 172–173
implicit conversions, 164–165
is operator, 160
LINQ query, 1687, 1689–1693
list of available, 156
list of available for overloading, 180
null coalescing operator (??), 162
nullable types and, 161–162
as operator, 161
overloading, 171–172
overloading examples, 175–178
overview of, 155–157
pointers and, 333
precedence, 162–163
shortcuts, 157–159
sizeof operator, 161
ternary, 159
type conversions, 164
type safety, 163
typeof operator, 161
vector struct example of operator overloading, 173–175
Orcas, 1305
OrderBy( ) extension method, LINQ, 1693
orderby expression, LINQ, 1691–1693
OrderControl component, 1472–1473
OrderData component, 1473–1475
OrderLineData component, 1476–1477
OSs (operating systems), requirements for .NET-based applications, 443–444
out keyword
C#, 1630
outputting parameters, 91
out parameter, 1425
output parameters
calling stored procedure that returns, 864–866
returning from workflow, 1569–1570
outsourcing translations, 666
overloading
constructors, 95
GetChanges( ) method and, 895
method overloading, 91–92
StringBuilder class, 227
overloading operators
comparison operator, 178–180
examples, 175–178
how operators work and, 172–173
list of operators available for, 180
overview of, 171–172
vector struct example, 173–175
override keyword, overriding functions, 115