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.

DataserviceKey – dependency properties<br />

DataServiceKey, 886, 887, 893<br />

DataServiceQuery‹TElement›, 895<br />

DataServicesHost/Category.cs, 887<br />

DataServicesHost/MenuCard.cs, 888<br />

DataServicesHost/MenuCardDataModel.cs, 889<br />

DataServicesHost/Menu.cs, 887<br />

DataServicesHost/MenuDataService.cs, 889, 890<br />

DataServicesHost/Program.cs, 890<br />

DataService‹T›, 886, 888, 889, 895, 1107<br />

DataSet class, 818, 835, 860<br />

data relationships, 840–842<br />

EnforceConstraints property, 844, 856<br />

persisting DataSet changes, 852–855<br />

populating<br />

with data adapter, 850–851<br />

from XML, 851<br />

purpose of, 835<br />

updating with data adapters, 852–854<br />

writing XML output, 854–855<br />

DataTable, 818, 860<br />

DataGridView control <strong>and</strong>, 1131<br />

deleting rows, 854<br />

foreign key constraints, 842–843<br />

inserting rows, 852–853<br />

primary key restraints, 842<br />

updating rows, 854<br />

DataTableMapping, 819<br />

DataTemplate, 1012<br />

DataView, DataGridView control <strong>and</strong>, 1131–1133<br />

date formatting, cultures <strong>and</strong>, 573–574<br />

DatePicker control, 995<br />

Dateservice.cs, 410<br />

DateTime constructors, 79<br />

DateTimeFormatInfo, 572, 573<br />

DateTimePicker, 1135<br />

DbComm<strong>and</strong>, 822, 866<br />

DbConnection, 819, 822, 866, 872<br />

DbDataReader, 822, 866<br />

DbParameter, 866<br />

DbProviderFactories class, 822<br />

DCOM protocol, 1279, 1280, 1360<br />

dead-letter queues, 1363<br />

deadlocks, 513–514, 543, 1306<br />

DEBUG preprocessor symbol, 397<br />

debugging<br />

stepping between languages, 7, 8<br />

Visual Studio 2010, 375, 398–401<br />

breakpoints, 398–399<br />

debugger symbols, 396<br />

design-time debugging, 374, 388<br />

exceptions, 400–401<br />

release builds, 395–396<br />

watches, 375, 399–400<br />

XSLT, 925–927<br />

DebugWrite, 1316, 1317, 1318, 1319<br />

DecelerationRatio, 1022<br />

decimal, 34<br />

decimal format (D), 52, 213<br />

declarative programming, 19<br />

WPF <strong>and</strong>, 19<br />

declarative role-based security, 547–548<br />

DeclarativeCatalogPart, 1211<br />

decoration controls (WPF), 998–999<br />

DecorationsDemo/MainWindow.xaml, 999<br />

Decorator class, 998<br />

decrement operator (--), 151, 153, 154<br />

deep comparison, 170<br />

DeepCopy(), 630<br />

default keyword, 113, 114<br />

DefaultDocument, 418<br />

deferred query execution, 272, 273–275<br />

#define, 55–56<br />

Delay activity, 1314<br />

delayed loading (of relationships), 876<br />

delayed signing (of assemblies), 449–450<br />

delegate concatenation/removal operators, 152<br />

delegate inference, 186<br />

delegate keyword, 701<br />

delegates, 183–197. See also events; Lambda<br />

expressions<br />

anonymous methods <strong>and</strong>, 196–197<br />

asynchronous, 492–495, 496, 522<br />

BubbleSorter example, 190–193<br />

declaring, 184–185<br />

defining, 184–185<br />

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

generic methods with, 126<br />

instance of, 185, 187<br />

Lambda expressions <strong>and</strong>, 183, 197<br />

multicast, 193–196<br />

simple example, 188–190<br />

using, 185–188<br />

DELETE, 819, 826, 830, 850, 852, 860, 971<br />

Delete(), 478, 774, 780<br />

delete constraints, 843–844<br />

DeleteEventSource(), 478<br />

DeleteObject(), 873, 900<br />

DeleteSubKey(), 810<br />

DeleteSubKeyTree(), 810<br />

DeleteValue(), 810<br />

deleting/moving/copying files, 780–783<br />

DelimitedListTraceListener, 470, 471, 472<br />

delivery modes (messages), 1361<br />

dem<strong>and</strong>ing permissions programmatically,<br />

564–565<br />

Dem<strong>and</strong>PermissionDemo/Dem<strong>and</strong>Permissions.cs, 564<br />

DemoLib/AssemblyInfo.cs, 730<br />

DemoLib/Person.cs, 729<br />

DemoSolution, 385, 389<br />

dependency properties, 732–736, 739<br />

attached properties v., 739<br />

coerce value callback <strong>and</strong>, 734–735<br />

1431<br />

www.it-ebooks.info

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

Saved successfully!

Ooh no, something went wrong!