15.02.2015 Views

C# 4 and .NET 4

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ThenBy() – Transactedfile<br />

defining, 1207<br />

in PCSDemoSite, 1208–1210<br />

ThenBy(), 279, 280, 281<br />

ThenByDescending(), 275, 279<br />

thick-client applications, 19<br />

this keyword<br />

constructors <strong>and</strong>, 78, 96<br />

extension methods <strong>and</strong>, 87, 272<br />

instance field <strong>and</strong>, 31<br />

member fields <strong>and</strong>, 75<br />

Thread class, 495–499<br />

thread pools, 492, 499–501<br />

thread priority, 498–499<br />

ThreadingIssues/Program.cs, 513<br />

ThreadingIssues/SampleTask.cs, 511, 512, 513, 514<br />

ThreadPoolSamples/Program.cs, 500<br />

threads, 184, 238, 317, 491–543. See also<br />

synchronization<br />

background, 497–498<br />

concurrent collections <strong>and</strong>, 264<br />

controlling, 499<br />

dependent transactions <strong>and</strong>, 617<br />

guidelines for, 543<br />

issues with, 510–514<br />

Main() <strong>and</strong>, 492<br />

MTAs <strong>and</strong>, 501, 699–700, 710, 718<br />

overview of, 492<br />

Parallel class <strong>and</strong>, 504–507<br />

passing data to, 496–497<br />

reasons for, 491<br />

safety. See lock statement<br />

STAs <strong>and</strong>, 699, 710, 718, 719<br />

tasks <strong>and</strong>, 501–504<br />

Windows Services <strong>and</strong>, 13<br />

ThreadSamples/Program.cs, 496, 497, 498<br />

Thread.Sleep(), 492, 499, 1050<br />

ThreadStart, 238, 495<br />

3-D book model, 1030–1033<br />

3-D with WPF, 1029–1033<br />

3DDemo/MainWindow.xaml, 1030, 1032<br />

three-dimensional arrays, 133<br />

throwing an exception, 354<br />

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

TicTacToe game, 145<br />

tiered development, 856–857<br />

time quantum, 498<br />

Timeline, 1020–1023<br />

TimeOfDay enum, 44, 45<br />

Timer classes, 533–534<br />

Timer control (ASP.<strong>NET</strong> AJAX), 1223<br />

timers, 533–534<br />

TimerSample/Program.cs, 534<br />

Title (project property), 415<br />

tlbexp utility, 714, 726<br />

tlbimp utility, 707, 726<br />

/t:library, 50<br />

/t:module, 50<br />

ToArray(), 274<br />

ToArray (conversion operator), 276<br />

ToDictionary, 276<br />

ToEnumerable(), 274<br />

ToggleButton, 995<br />

ToList, 276<br />

ToLongDateString(), 573, 574<br />

ToLookup(), 253, 254, 276, 288<br />

ToLower(), 208<br />

ToolBar control, 998<br />

ToolBarPanel, 999<br />

ToolStrip control, 1140–1141<br />

ToolStripButton, 1140<br />

ToolStripContainer control, 1142<br />

ToolStripControlHost, 1140–1141<br />

ToolStripDropDownItem, 1140–1141<br />

ToolStripLabel, 1140<br />

ToolStripManager, 1141–1142<br />

ToolStripMenuItem, 1141<br />

ToolStripSeparator, 1140<br />

ToolTip, 995<br />

Top(), 879<br />

ToString(), 33, 36, 84, 85–86, 212, 214, 215,<br />

227, 251<br />

IFormattable <strong>and</strong>, 214<br />

overriding, 36, 82, 85<br />

StringBuilder <strong>and</strong>, 212<br />

ToUpper(), 208, 216, 227<br />

TPH. See table per hierarchy<br />

TPT. See table per type<br />

trace listeners, 467, 470–471<br />

TRACE preprocessor symbol, 397<br />

trace sources, 467, 468–469<br />

trace switches, 467, 469<br />

trace viewer, 473<br />

Trace Viewer tool, Service, 474, 1290<br />

TraceFilter, 467, 472<br />

TraceListener, 470<br />

TraceListenerCollection, 467<br />

TraceSource class, 468, 1399<br />

tracing, 461, 467–475<br />

architecture, 467<br />

classes for, 467<br />

correlation <strong>and</strong>, 472–475<br />

editor application <strong>and</strong>, 1399<br />

filters <strong>and</strong>, 471–472<br />

WCF <strong>and</strong>, 1289–1290<br />

TracingDemo/App.config, 469, 470, 471, 472, 473<br />

TracingDemo/Program.cs, 468, 469, 473<br />

trackers, 1342<br />

traditional transactions, 609–611. See also<br />

transactions<br />

TransactedFile, 634, 635<br />

1465<br />

www.it-ebooks.info

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

Saved successfully!

Ooh no, something went wrong!