15.02.2015 Views

C# 4 and .NET 4

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

equals() – export attribute<br />

comparing reference types for equality, 162–163<br />

comparing value types for equality, 163<br />

Equals(), 84–85. See also comparison operators<br />

ReferenceEquals() <strong>and</strong>, 84, 162, 163<br />

static, 162<br />

virtual, 162<br />

#error, 57<br />

Error Reporting. See Windows Error Reporting<br />

ErrorProvider component, 1135–1136<br />

errors, 351. See also exceptions<br />

COM <strong>and</strong>, 700<br />

StateService sample <strong>and</strong>, 1298–1299<br />

escape sequences, 35, 218, 221<br />

Eve/Bob/Alice (encryption example), 553<br />

event bubbling. See events<br />

event keyword, 701<br />

event listener, 202–203<br />

Event Log service, 668<br />

event logging, 461, 475–483, 692–693<br />

architecture, 476–477<br />

classes, 477–478<br />

message resource files, 479–483<br />

writing event log entries, 479<br />

event manager classes, 204<br />

event publisher, 200–201<br />

event source, 478–479<br />

event triggers, 1020, 1023–1025<br />

Event Viewer, 461, 475, 476, 477, 479, 482, 483<br />

event-based asynchronous component, 539–543<br />

event-based asynchronous pattern, 534–543, 1106,<br />

1109, 1293<br />

event-booking example (ASP.<strong>NET</strong> server control),<br />

1164–1169<br />

updating, 1169–1175<br />

EventH<strong>and</strong>ler‹T›, 201, 202<br />

event-h<strong>and</strong>ling architecture (COM), 701<br />

EventLog class, 475, 477–479, 482<br />

members, 477–478<br />

EventLogDemo/EventLogDemoMessages.mc, 481<br />

EventLogDemo/Program.cs, 478, 479, 483<br />

EventLogEntry, 477<br />

EventLogInstaller, 475<br />

EventLogPermission, 562<br />

EventLogTraceListener, 470, 475, 477<br />

EventManager, 738<br />

EventRegistration (Silverlight Navigation Application),<br />

1097<br />

creation, 1097<br />

navigation, 1097–1101<br />

tables, 1102<br />

EventRegistrationDataService, 1107, 1108<br />

EventRegistration/Home.xaml.cs, 1109, 1110<br />

events, 67, 184, 200–205. See also delegates; Lambda<br />

expressions<br />

bubbling, 201, 736–739<br />

delegates <strong>and</strong>, 183, 184, 200<br />

.<strong>NET</strong> Framework <strong>and</strong>, 701<br />

synchronization <strong>and</strong>, 526–529<br />

tunneling, 201, 736–739<br />

weak, 203–205<br />

EventSample/Calculator.cs, 528<br />

EventSample/Program.cs, 526, 527, 529<br />

EventSourceCreationData, 478–479<br />

EventsSample/CarDealer.cs, 200<br />

EventsSample/Consumer.cs, 202<br />

EventsSample/Program.cs, 202<br />

EventTypeFilter, 472<br />

Everything (permission set), 564<br />

‹example›, 53<br />

Except(), 276, 283, 878<br />

‹exception›, 53<br />

exception classes, 352–353<br />

user-defined, 362–369<br />

exception h<strong>and</strong>ling, 351<br />

exceptions, 13, 351–369<br />

C++ <strong>and</strong>, 351<br />

catching, 353–359<br />

class hierarchy for, 352, 353<br />

debugging <strong>and</strong>, 400–401<br />

exceptional circumstances for, 355, 356, 359<br />

nested try blocks <strong>and</strong>, 360–362<br />

.<strong>NET</strong> Framework <strong>and</strong>, 700<br />

One() <strong>and</strong>, 195<br />

performance <strong>and</strong>, 351<br />

throwing, 354<br />

unh<strong>and</strong>led, 360<br />

user-defined, throwing, 364–367<br />

ExecutablePath, 1118<br />

Execute(), 1061, 1312<br />

ExecuteComm<strong>and</strong>(), 690<br />

ExecuteNonQuery(), 826–827, 830, 832<br />

ExecutePermissions, 418<br />

ExecuteReader(), 826, 827, 832, 833<br />

ExecuteReaderExample.cs, 827, 828, 829<br />

ExecuteScalar(), 826, 828, 832<br />

ExecuteXmlReader(), 826, 828–829, 860<br />

Execution (permission set), 563<br />

execution process (.<strong>NET</strong> Framework), 21–22<br />

Exists(), 463<br />

Exists property, 773<br />

Exit, 1119<br />

ExitThread, 1119<br />

Exp<strong>and</strong>er control, 997<br />

Exp<strong>and</strong>erDemo/MainWindow.xaml, 997<br />

Exp<strong>and</strong>oObject, 304, 741<br />

explicit casting, 159–161, 172–173. See also<br />

user-defined casts<br />

ExplicitCapture, 220<br />

exponential format (E/e), 52, 213<br />

Export attribute, 748, 750, 754, 757, 759, 762<br />

1435<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!