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.

Compile<strong>and</strong>run() – Control class<br />

options (for <strong>C#</strong> files), 50–51<br />

process, 4, 21–22<br />

CompileAndRun(), 438, 440, 443<br />

Compile_Click(), 440, 444<br />

Complete(), 616, 618, 619<br />

CompletionMethod, 539, 540, 541<br />

ComplexObject, 870, 871<br />

Component Services MMC snap-in, 616<br />

ComponentInstaller class, 680, 682<br />

ComposablePart, 748, 765, 767<br />

composite activities, 1319–1322<br />

CompositionContainer class, 751, 764, 765, 767, 768<br />

compound from clause, 278, 283<br />

compound from query, 288<br />

compression (project property), 416<br />

ComputeHash(), 969<br />

Computer Management MMC snap-in, 1362<br />

COMServer/COMDemo.cpp, 707, 712<br />

COMServer/COMDemo.h, 706, 712<br />

COMServer/COMServer.idl, 703, 711<br />

COMServer.idl, 696<br />

ComVisible attribute, 716<br />

Concat(), 208<br />

conceptual layer, 862, 864–865<br />

Conceptual Schema Definition Language. See CSDL<br />

ConcurrencyMode, 1295<br />

concurrent collections, 262–264<br />

cancellation framework <strong>and</strong>, 507<br />

multiple threads <strong>and</strong>, 264<br />

ConcurrentBag‹T›, 263<br />

ConcurrentDictionary‹TKey, TValue›, 263<br />

ConcurrentQueue‹T›, 262–263<br />

ConcurrentSample/Program.cs, 263–264<br />

ConcurrentStack‹T›, 263<br />

ConcurrentXXX, 263<br />

Condition (project property), 418<br />

Conditional attribute, #if <strong>and</strong>, 57<br />

conditional compilation, 56–57, 396<br />

conditional (ternary) operator (:), 152, 154, 157, 223,<br />

224<br />

conditional statements, 37–40. See also if statements;<br />

switch statements<br />

config.MaxResultsPerCollection, 895<br />

confirm installation (dialog box), 424<br />

connection, P2P <strong>and</strong>, 1341, 1342<br />

connection point objects (CPOs), 701<br />

connection points<br />

COM component <strong>and</strong>, 710–712<br />

.<strong>NET</strong> component <strong>and</strong>, 720<br />

Connection String Example.txt, 821<br />

connection strings<br />

ADO.<strong>NET</strong>, 821–822<br />

EDM <strong>and</strong>, 867<br />

ConnectionsZone, 1212<br />

consistency (ACID), 607. See also ACID<br />

Console Application (project type), 379, 381, 397, 405,<br />

662, 1310<br />

ConsoleApplication1.sln, 943, 944, 945, 946, 947, 949,<br />

950, 952, 953<br />

Console.ReadLine(), 51<br />

Console.Write(), 51<br />

Console.WriteLine(), 51<br />

const keyword, 31, 66, 78<br />

constants, 31, 66–67<br />

advantages of, 31<br />

readonly fields v., 78<br />

Constraint class, 818<br />

constraints<br />

data, 842–844<br />

delete, 843–844<br />

generic classes with, 114–116<br />

generic methods with, 125–126<br />

naming conventions, 859<br />

update, 843–844<br />

constructor initializer, 77–78<br />

constructors, 67, 74–78<br />

calling constructors from other constructors, 77–78<br />

of derived classes, 94–98<br />

finalizers v., 67<br />

in hierarchy, 96–97<br />

with parameters, in hierarchy, 97–98<br />

static, 75–77<br />

StreamReader <strong>and</strong>, 794–795<br />

for structs, 82<br />

XAML <strong>and</strong>, 732<br />

zero-parameter, 76, 82<br />

Consumer class, 200, 202, 203, 205<br />

contacts, peers <strong>and</strong>, 1353<br />

containers (MEF), 748, 749, 765–767<br />

export providers <strong>and</strong>, 765–767<br />

in MEF architecture, 748, 749<br />

Contains(), 240<br />

Contains (quantifier operator), 276<br />

content controls (WPF), 995–996<br />

Content directory, 1261<br />

ContentControl class, 986, 995, 996<br />

ContentPlaceHolder controls, 1196<br />

ContextMenu class, 998<br />

ContextMenuStrip control, 1141<br />

continuation tasks, 502–503<br />

Continue(), 690<br />

continue statement, 44<br />

Contract class, 462<br />

contracts. See also specific contracts<br />

MEF <strong>and</strong>, 749, 754–755<br />

WCF <strong>and</strong>, 1291–1294<br />

contra-variance, 118–123<br />

Control class<br />

FrameworkElement, 986<br />

System.Windows.Forms, 1122–1125<br />

1427<br />

www.it-ebooks.info

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

Saved successfully!

Ooh no, something went wrong!