Fiddler, 1359
fields
generating, 437
File class, 461
File.Delete method, 197
FileNotFoundException, 160, 209, 219
Application Files (ClickOnce), 1251
Application Files group (InstallShield),
assemblies. See assemblies
audio, playing, 485
BAML, 844
reading, 465
writing, 465
classes, diagrams, 425
code
Visual Basic 2012 projects, 72-83
Visual Studio 2012 packages, 1293
configuration files
CSS, 856
exceptions, handling, 463
executable (.EXE), profiling, 1327
external documentation, 1217-1218
Help, generating, 1220
images, exporting, 432
I/O file operations, asynchronous programming, 1137-1141
permissions, 463
Resources.resx (Visual Basic 2012 projects), 77-81
searching, 3
Settings.settings, 83
Solution Explorer windows, 28-30
System.IO.FileInfo class, 462-463
text
.Vbproj file (project files), 16
web.config (WCF), 995
XAP, 988
FileStream class, 68
file systems
accessing, 926
ClickOnce, publishing to, 1247
File Transfer Protocol. See FTP, 884
FileUpload control, 859
filtering
data with PivotViewer control, 920-923
Finalize method, 271-272, 276, 328
finalizers, comparing reference types/value, 110
Finally block, unlocking resources, 211
FindAll method, 405
FindResource method, 720
Firefox, 852
Fiddler, 1359
firewalls, deploying web applications, 885
FirstNode property, 674
FirstOrDefault method, 519
First property, 410
flags, enumeration values as bit, 320
Flags attribute, 320
floating-point numbers, 156
floating windows, creating projects, 24
FlowDocument objects, 799
FlowDocumentReader control, 799, 802
flow documents
implementing, 799
viewing, 803
Fluent APIs, Entity Framework (ADO.NET), 665-668
FlushAsync method, 1138
Flush method, 194
folders. See also files
formatting, 793
permissions, configuring, 881
For Each loops, 150, 168-169, 358, 1059
ForeignKey attribute, 664
foreign keys, support, 633
formatting
applications
clients, 1002
CSS, 856
EDMs from existing databases, 631
folders, 793
hit counts, 185
multicast delegates, 382
multiple diagrams (Visual Studio Class Designer), 431
passwords, 1226
projects
shortcuts (InstallShield), 1238
Silverlight applications with Visual Basic 2012, 895-897
symbols, 129
text, aligning, 802
toolbars, customizing, 1269-1270
Visual Basic 2012 (ASP.NET applications), 864-862
Windows Phone applications (Visual Basic 2012), 959-985
XML
schemas, 689
forms
master-details, formatting, 826-830
tabular data, formatting, 819-825
Windows Forms
adding, 1193
application frameworks, 507
compatibility, 75
localizing applications, 842-843
formulas, 157. See also arithmetic operators, 155-157
Forth, 7
Fortran, 7
FragmentNavigation event, 510
frameworks
ADO.NET Entity Framework, 629. See also ADO.NET
applications
My.Application property, 478
Windows Forms, 507
WPF, 508
Managed Extensibility Framework, 1288
navigation (Windows Phone applications), 963-966
.NET Framework. See .NET Framework
Silverlight Navigation Applications, 908-910
WCF
Data Services, 1013
XNA (Windows Phone), 959
Friend qualifiers, 308
inheritance, 327
interfaces, 348
From keyword, 553
FrontPage, 883
FTP (File Transfer Protocol), publishing web applications, 884
FullName method, 325, 333, 435
Function keyword, 527
CBool, 121
CByte, 121
CChar, 121
CDate, 121
CDbl, 121
CInt, 121
CLng, 121
CObj, 121
CSByte, 121
CShort, 121
CSng, 121
CStr, 121
CUInt, 121
CULong, 121
CUShort, 121
importing, auto-generating, 657
return values, 45
fundamental types
GAC (Global Assembly Cache), 84, 1144, 1221
assemblies
installing/uninstalling, 1223-1224
signing with strong names, 1224-1226
DLLs, troubleshooting, 1221-1222
InstallShield, 1237
ASP.NET, 853
events, registering, 281
Finalize method, 272
finalizers, 110
structures, allocating memory, 309
GC.ReRegisterForFinalize method, 279
GC.SuppressFinalize method, 278
Generate Database from Model command, 657
Generate from Usage feature, 433-439
Generate New Type dialog box, 1346
Generate New Type window, 438
Generate Other command, 434
generating
code, System.Reflection.Emit namespace, 1171-1177
databases, Code First approach, 660-663
debug information, 47
Help files, 1220
methods, stubs, 436
on-the-fly objects, Generate from Usage feature, 433-439
property stubs, 1347
serialization assemblies, 48
shared members, 436
types, 437
XML files, 44
generations
collections, 394
optimizing, 395
serialization, 1049
delegates, 380
IComparable(Of T) interface, 359
methods, implementing, 371-372
nullable types. See nullable types
WCF, exposing in, 1001
XML comments, 1219
geospatial data in WCF Data Services, 1015
GetAssembly method, 1160
GetAudioStream method, 484
GetCallingAssembly method, 1160
GetCreationTime method, 455
GetCurrentDirectory method, 458
GetCustomerQuery method, 825
GetCustomers method, 502
GetData method, 484
GetDataObject method, 484
GetEntryAssembly method, 1160
GetEnumerator method, 420
GetExecutingAssembly method, 1160
GetExportedTypes method, 1162
GetExtension method, 454
GetFileDropDownList method, 484
GetFiles method, 456
GetHashCode method, 309, 314, 328
GetILGenerator method, 1175
GetImage method, 484
GetLogicalDrives method, 457
GetLowerBound method, 153
GetModules method, 1162
GetName method, 317
GetObjectData method, 1046
GetOrders method, 916
GetRange method, 396
Get Started tab (Visual Studio 2010), 14
GetSystemTimeZones method, 145
GetText method, 484
getting/setting attributes, 456
GetTypes method, 1163
GetUpperBound method, 153
GetValidationErrors method, 651
GetValue method, 155
Global Assembly Cache. See GAC
Global keyword, namespaces, 295-299
GoBack method, 965
GoForward method, 965
Go to Definition command, 58
graphics
3-D (Silverlight applications), 908
graphs, Dependency Graphs, 1334-1335
greater than (>) operator, 164, 313
greater than or equal to (>=) operator, 164, 313
GridView control, 859
GroupBox control, 735
GroupBy method, 519
GroupJoin method, 519
Group Members command, 424
Application Files,
Application Information, 1233
Application Shortcuts, 1238-1239
Installation Interview, 1241
Installation Requirements, 1234-1236
Guid.NewGuid method, 147
GUIDs (globally unique identifiers), 147-148
GZip identifiers, 68
GZipStream objects, 467
handlers in ASP.NET, 8
Handles clause, 385
handling
errors, 207
ContentFrame_Navigated event handlers, 910
Silverlight applications, 899
Async pattern, 1127
directories, 459
files, 463
pathnames, 459
Try..Catch..Finally blocks, 209
optimistic concurrency, 616, 648-650
serialization exceptions, 1037
HasExtension method, 454
boxing, 114
Help
generating, 1220
navigating, 56
properties, 214
HiddenField control, 859
hierarchies
Logical Tree, 704
method calls, 60
shortcuts, 1238
of types, 90
highlights, applying, 805
historical debugging (with IntelliTrace), 1310, 1328-1334
Hit Count command, 185
hit counts, formatting, 185
hosting
data services, 1016
HTML (Hypertext Markup Language), 8, 852
Silverlight applications, 894
support, 8
HtmlAnchor control, 858
HtmlButton control, 858
HtmlForm control, 858
HtmlGenericControl control, 858
HtmlInputButton control, 858
HtmlInputCheckBox control, 858
HtmlInputFile control, 858
HtmlInputHidden control, 858
HtmlInputImage control, 858
HtmlInputRadioButton control, 858
HtmlInputText control, 858
HtmlTableCell control, 858
HtmlTable control, 858
HtmlTableRow control, 858
HtmlTextArea control, 858
HTTP (Hypertext Transfer Protocol), 991
applications, 8
GET requests, 1030
requests, querying data via, 1014-1015
HybridDictionary collection, 400
HyperLink control, 859
Hypertext Markup Language. See HTML
Hypertext Transfer Protocol. See HTTP
IAsyncResult.AsyncState property, 1107
IBookService contract, 998
ICloneable interface, 115, 118, 355
ICollection interface, 394
ICommand interface, 908
IComparable interface, 109, 355, 358-359, 373
icons, 77
ApplicationIcon.png, 986
My Project, 34
IConvertible interface, 355, 360-363
IDataErrorInfo interface, 616
IDEs (Integrated Development Environments), 11
advanced features, 1261
code snippets, reusing, 1275-1283
events, generating handlers, 707
NuGet, managing libraries, 1283-1286
Silverlight applications, 895
tabs, navigating, 50
templates, exporting, 1261-1265
tool windows, docking, 27
user settings, managing, 1271-1273
Visual Studio 2012, 11, 1267-1270. See also Visual Studio 2010
WPF projects, 699
identifiers
assigning, 72
CLS naming conventions, 265
constants, 176
GZip, 68
MyCollectionsUtils, 502
naming conventions, 72
reserved words, applying as, 72
root namespaces, 292
IDeserializationCallBack interface, 1041
IDictionary interface, 1049
IDisposable interface, 404
templates, 1264
polymorphism, 352
IDocument interface, 348
polymorphism, 352
IDs, threads, 1074
IEnumerable interface, 355-358, 394, 420, 551
IEnumeratror interface, 356
If operators
LINQ, 553
IFormattable interface, 355, 363-365
If statements, 181
If..Then code block, 159
If..Then..Else code block, 172-173
IInvoice interface, 353
IIS (Internet Information Services), 852, 883
Data Services (WCF), deploying, 1021
web applications, publishing, 885
IL (Intermediate Language), 263
metadata, 1158
ILGenerator class, 1175
ImageButton control, 859
Image control, 736, 793-795, 858-859
ImageMap control, 859
images, 77
backgrounds (Windows Phone), 986
exporting, 432
Pictures Hub (Windows Phone), 982-984
Visual Studio 2012 built-in image editors, 498
implementing
annotations, services, 804
custom awaiters, 1141
custom contracts, 997
Data Services (WCF), 1013, 1016-1021
destructors, 275
Dispose method, 276
DoubleAnimation, 905
Finalize method, 276
flow documents, 799
ICloneable interface, 118
abstract classes, 428
comparing reference types/value types, 109-110
structures, 309
IValueConverter interfaces,
media players, 900
permissions, 1149
services, operations, 1027-1029
spell check, 808
Tool window, 1296
implicit conversions, 45, 111-113. See also converting
implicit line continuation, 552, 1182
Visual Basic 2012 projects, 70-71
implicit types, 45
importing
existing settings, 1273
functions, auto-generating, 657
Imports directives, 17
adding, 286
multithreading, 1060
Visual Basic 2012 projects, 68-69
Imports System.Globalization directive, 843
include tag (XML comments), 1214
Inconclusive method, 1341
increaseCounter method, 384
Indent method, 194
indexers, 234
indexes, Code Metrics, 1315
IndexOutOfRange exception, 153, 209
Field (Of T) method, 626
inequality (<>) operator, 104, 164, 313, 570
inference, local types, 511-514
lambda expressions, 529
LINQ, 552
Open Infer directives, 513
scope, 514
Infer XML Schema Set from XML dialog box, 687
Info property, 483, 488-490, 720
information messages, 30
infrastructure (WCF), 6
abstract classes, 337
base classes, accessing members, 337-341
classes, preventing, 335
CLS, 327
constraints, 374
defining, 1187
Dispose interfaces, 275
exceptions, customizing, 344-346
modifiers, 428
modules, 303
serialization, 1047
shared members, overriding, 343-344
structures, limitations of, 309
styles, 773
types, comparing reference/value, 108-109
Visual Basic 2012 projects, 65-66
Inherits keyword, 66, 303, 309, 354
Init event, 856
initializers
LINQ, 553
InitializeService method, 1018
InitializeWithWindowsUser method, 500
initializing
arrays, 150
fields, 228
ink notes, adding, 806
inline initialization
arrays, 150
fields, 228
InnerException property, 214, 1101
INotifyPropertyChanged interface, 387, 1042, 1178
Insert breakpoint command, 51
Insert method, 395
databases, 541
DataSets, 546
Entity Framework (ADO.NET), 646-647
InsertRange method, 395
inspecting
assemblies, 1161
objects with debugger visualizers, 192-193
Install ApplicationName onto This Computer command, 924
Installation Interview group (InstallShield), 1241
installing
ClickOnce, 1229
InstallShield Installation Requirements group, 1234-1236
local installation options, running out-of-browser applications, 925
SDKs, 7
templates, 19
Visual Studio 2012 tools (Windows Azure), 931-932
web applications, packaging for, 888-891
Windows Installer, 1230
InstallShield, 1229
Application Files group,
Application Information group, 1233
Application Registry, 1239
downloading, 1231
Environment Variables element, 1242
groups. See groups
Installation Interview group, 1241
Installation Requirements group, 1234-1236
overview, 1231
packages, deploying, 1244
projects
formatting, 1242
instances
clients, 606
declaring (LINQ to SQL), 600
variables, 45
instantiating
Entity Framework (ADO.NET), 645
proxy classes, 1003
windows at runtime, 718
instrumentation, debugging, 180-192
integer division () operator, 155, 313
Integer keyword, 95
integers, removing overflow checks, 47
Integrated Development Environment. See IDE
integration, media, 696
IntelliSense
collections, 405
enumerations, 315
events
customizing, 389
generating handlers, 706
exception handling, 210
extension methods, 518
members, overriding, 332
methods, overloading, 244
namespaces, 292
partial classes, 250
uncommented members, 1208
With..End With statements, 176
XAML code editors, 701
XML
comments, 1210. See also XML comments
importing namespaces, 689
IntelliTrace, 52, 1310, 1328-1334
interacting
with garbage collectors, 279-280
with operating systems, 4
interceptors
change, 1032
Interface..End Interface block, 348
abstract classes, implementing, 428
APIs. See APIs
Dispose, implementing, 273-278
Fiddler, 1359
Fluent APIs, Entity Framework (ADO.NET), 665-668
generating, 437
generics, defining, 370
ICollection, 394
ICommand, 908
IComparable, 109, 355, 358-359
IDataErrorInfo, 616
IDeserializationCallBack, 1041
IDictionary, 1049
polymorphism, 352
IEnumerable, 355-358, 394, 420, 551
IEnumeratror, 356
IInvoice, 353
implementing, 109-110, 348-352
INotifyPropertyChanged, 387, 1042, 1178
IPerson, 427
ISerializable, 1046
IService1, 996
IValueConverter, implementing, 835-838
media players, 796
members, adding, 426
method arguments, passing as, 351
method constraints, 373
Modern style (Windows Phone), 956
modules, 303
namespaces, 284
nested classes, 348
scope, 348
selecting, 348
structures, implementing, 309
System.IProgress (Of T), 1134
Tool window, implementing, 1296
Visual Studio 2012, 439
Windows Phone, 12
WPF, 694, 721-724. See also WPF
XBAP, 722
Intermediate Language. See IL, 263, 1158
Internet code samples, searching, 21
Internet Explorer, 852
Fiddler, 1359
XML serialization, 1043
Internet Information Services. See IIS
Interop.AssemblyName.dll, 86
interoperability
COM assemblies, registering for, 1197
between COM/.NET architectures, 86
Interop.WMPLib.dll, 87
Intersect method, 519
Into clause, 570
InvalidCastException, 123-125, 373
Field (Of T) method, 626
InvalidOperationException, 252, 584, 612, 1091
invariants, contracts, 1354
Invoke method, 380
invoking
AsParallel, 1097
constructors, 254
destructors, 270
Object Browsers from code editors, 57
I/O (input/output)
asynchronous programming, 8, 1137-1141
Windows Phone, 959
IPerson interface, 427
IsAddingCompleted property, 1091
IsAuthenticated method, 500
IsCompleted property, 1075, 1091
ISerializable interface, 1046
IService1 interface, 996
IsFalse method, 1341
IsFalse operator, 158
IsInRole method, 500
IsInstanceOfType method, 1341
IsNetworkAvailable property, 487
IsNetworkDeployed property, 480
IsNotInstanceOfType method, 1341
IsNotNull method, 1341
IsNull method, 1341
IsRunningOutOfBrowser property, 924
IsTrue method, 1341
IsTrue operator, 158
Item method, 396
projects, adding, 30
properties, configuring, 31
references, specifying in, 1266
templates, exporting, 1263-1265
ItemSource property, 823
Iterator class, implementing, 419-422
anonymous, 419
exiting, 418
Try..Catch..Finally blocks, 418-419
XML literals, 685
IValueConverter interfaces, implementing, 835-838
JavaScript Object Notation. See JSON, 1015, 1053
JIT (Just-In-Time), 5
multicore JIT compilation, 853
optimizing, 47
Join method, 519
JSON (JavaScript Object Notation), 1015
serialization, 1053
JustDecompile, 1359
Just-In-Time. See JIT, 5, 47, 853
Just My Code
disabling, 1078
KeepChanges, 616
KeepCurrentValues, 616
Key attribute, 664
keyboard shortcuts, Debug menu (Visual Studio 2012), 181
keys, foreign, 633
keywords
From, 553
Of, 368
- (pointer to address in memory), 95
Boolean, 95
Byte, 95
Char, 95
Decimal, 95
Default, 233
Delegate, 380
Dim, 308
Double, 95
Event, 386
Function, 527
GetType, 119
Integer, 95
Let, 572
Long, 95
Me, 229
MustOverride, 336
constraints, 373
structures, 438
NotOverridable, 334
Overrides, 332
Partial, 614
ReadOnly, 231
reserved (Visual Basic 2012 projects), 72
SByte, 95
Select, 553
Shared, 259
Short, 95
Single, 95
Structure, 374
UIntenger, 95
ULong, 95
unreserved (Visual Basic 2012 projects), 74
UShort, 95
value types, 94
Where, 553
Kill method, 1059
labels, editing breakpoints, 184
arguments, 518
asynchronous programming, 1136-1137
LINQ, 552
local type inference, 529
threads, creating with, 1060
Array literals feature, 515-516
BAML, 844
CIL, 5
CSDL, 634
design, 12
features, 511
Mapping Definition Language, 637
relaxed delegates, 526
SSDL, 636
WDSL, 991
XAML. See XAML
XHTML, 855
XML. See XML
LastEdit property, 1185
Last-In, First-Out. See LIFO, 398
Last method, 519
LastNameChangedEventArgs class, 388
LastName method, 325
LastName property, 534
LastNode property, 674
LastOrDefault method, 519
Last property, 410
reflection, 1176
Latest News tab (Visual Studio 2010), 14-15
launchers (Windows Phone), 967-720
Launch Performance Wizard, 1320
layers
architecture (LINQ), 554
User32 (WPF), 696
Layout Diagram command, 424
learning resources (Windows Phone), 958
left-shift (<<) operator, 162, 313
Length method, 464
less than (<) operator, 164, 313
less than or equal to (<=) operator, 164, 313
Let keyword, 572
levels
scope (Visual Basic 2012), 234
Transparency Level 2, 1150-1152
trust for roles, 935
lexical closures, lambda expressions, 532-533
classes, 226
DirectX (WPF), 696
DLLs, 2
extensions, testing, 524
Microsoft Core Library (MsCorlib.dll), 6
MSDN Library, 48
navigating, 56
publishing web applications, 890
Open Data Protocol (OData), 1015
portable, 423
Portable Class Libraries, 7, 440-451
TPL, 413
licenses (NuGet), 1285
lifetimes
objects
finalizers, 110
managing, 269
pages, 856
LIFO (Last-In, First-Out), 398
limitations
of ClickOnce, 1246
of drag’n’drop data-binding, 818
of inheritance, structures, 309
of LINQ, 550
of XML serialization, 1043
LineHeight property, 899
lines
grid, viewing, 711
implicit line continuation, 70-71, 552, 559-561, 1182
Line Stacking Strategy, 899
LinkButton control, 859
LinkedList (Of T) collection, 410-412
links, specifying resources to, 1219
architecture, 554
to DataSets, 621
extending, 554
limitations of, 550
to Objects, 557
querying in memory objects, 558-568
parallel, 1069
partial methods, 251
PLINQ, 1092
queries
anonymous types, 524
measuring performances, 1093-1095
standard query operators, 568-585
LINQPad, 1359
LINQ to Data Services, 1027
LINQ to Entities, querying with EDMs, 652-653
LINQ to SQL, 587
applying logs, 613
deleting entities, 609
EDMs, exposing, 1001
mapping stored procedures, 610-613
SQL Server Compact Edition 3.5, 617-619
LINQ to XML
modifying, 671
List (Of T) collection, 403-405
ListDictionary collection, 399
listeners
configuration file settings, 200-202
Error Lists, 24
tags (XML comments), 1214
XML comments, 1218
ListView control, 738
literals
Array Literals, 151
Array literals feature, 515-516
XML
LINQ, 553
writing XML markup in, 677-685
literal type characters, 98
Live Tiles, 956
LNG function, 121
LoadCompleted event, 510
LoadComponent method, 720
LoadedAssemblies property, 479
LoadedBehavior property, 797
Load event, 856
LoadFile method, 1160
LoadFrom method, 1160
loading
assemblies, 1160
RSS feeds, 1116
XML documents, 674
Load method, 1160
LoadVideoAsync method, 1133
local data access (LINQ to SQL), 618
local data storage (Windows Phone), 980-981
Local DB (SQL Server 2012) system requirements, 539-540
local file systems, accessing, 926
local installation options, running out-of-browser applications, 925
localizing applications, 841
Local property, 667
Local Storage, 930
Locals window, 187
lambda expressions, 529
LINQ, 552
Open Infer directives, 513
scope, 514
local variables
ambiguities, avoiding, 228-229
unused, 45
locations. See also storage
assemblies, 1144
breakpoints, 185
ClickOnce deployments, 1247
GAC, 1223
memory, data types, 90
.NET Framework, 2
projects, searching, 24
SDKs, 7
services (Windows Phone), 959
templates, 20
logs
Activity log (Windows Azure), 947
applications
Caller Information, 1178
compilation, 40
SQL, applying, 613
Windows Event Log, 199
LongCount method, 519
Long keyword, 95
For Each, 150, 168-169, 358, 1059
iterators, 417
local type inference, 513
scaling, 1080
Main method, 24, 106, 434, 720
MainWindow property, 720
MainWindow.xaml.vb code file, 29
managed code
ClickOnce, accessing, 1257-1258
writing, 4
Managed Extensibility Framework, 8, 442, 1288
Management Portal, 946
Manage NuGet Packages dialog box, 658
managing
add-ins, 1304
applications
.NET Framework, 2. See also .NET Framework
breakpoints, 184
Code Snippet Manager, 1278
concurrent operations, 1129
Configuration Manager, 42
extensions (Visual Studio 2012), 1302-1303
Help contents, 56
indexes, 233
keyboards, 485
Memory Manager, 106
namespaces
objects
advanced garbage collection, 279-281
implementing Dispose/IDisposable interfaces, 273-278
lifetimes, 269
permissions, 881
projects, items, 29
Reference Manager dialog box, 84-85
ResourceManager class, 80, 500
Solution Explorer windows, 28-30
structures, 310
templates, 18
types within namespaces, 283-295
Windows Azure Management Tool, 1360
manifest options, ClickOnce, 1254
manual installation, packaging for web applications, 888-891
mapping
classes, 1335
resources, 500
stored procedures, 610-613, 654-657
Mapping Definition Language, 637
Mapping Details window, 640
Marketplace (Windows Phone)
applications (apps), submitting, 987-989
registering, 956
MarketPlaceDetailsTask, 967
MarketPlaceReviewTask, 967
MarketPlaceSearchTask, 967
markup
BAML, 844
Binding markup extension, 812-813
XAML. See XAML
master-details forms, formatting, 826-830
master pages, 855-857, 865-868
MaxLength attribute, 664
Max method, 519
MaxValue property, 101, 137, 143-144
measuring performance
integration, 696
Silverlight applications, playing, 900-905
Windows Phone, 959
WPF, 793
MediaElement control, 739, 795, 900
MediaFailed event, 798
media players
content reproduction, 901
implementing, 900
Me keyword, 229
members
accessing (Visual Basic 2012 projects), 67-68
Application class, 720
ArrayList collections, 396
base classes, accessing, 337-341
behavior, 29
deriving, overriding, 334
extension methods, 403
interfaces
adding, 426
defining, 348
LinkedList (Of T) collection, 410
My.Application property, 478
My.Computer.Clipboard, 484
My.User property, 500
NavigationService class, 965
RefreshMode enumeration, 616
scope, 327
services, invoking from, 1003-1007
sharing, 45
generating, 436
structures, 308
Visual Basic 2012 projects, 63-71
Visual Studio 2010, generating based on interfaces, 350
XDocument class, 674
MemberwiseClone method, 116, 328
memory
allocating
comparing reference types/value types, 106-108
deallocating, 110
locations, data types, 90
streams, 466
structures, 309
Memory Manager, 106
Menu control, 740
menus
Debug (Visual Studio 2012), 181
Tools (Visual Studio 2012), customizing, 1267-1268
MessageContract, 993
Message property, 214
messages
errors, 30
Code Analysis, 1314
implicit conversions, 113
information, 30
text, 972
warnings, 30
metadata, 5
attributes, 1183
reflection, 1158. See also reflection
services, exporting, 999
MethodAccessException, 1152
AddAfter, 410
AddAfterSelf, 674
AddBefore, 410
AddBeforeSelf, 674
AddLast, 410
AddMemoryPressure, 280
AddNew, 833
AddParticipant, 1080
AddParticipants, 1080
AddProduct, 606
AddRange, 395
Aggregate, 519
All, 519
Any, 519
AppDomain.CreateDomain, 1147
AreEqual, 1341
AreNotEqual, 1341
AreSame, 1341
AsDataView, 623
AsNoTracking, 654
Assert, 194
Asset class, 1341
Average, 519
BeginRead, 464
BeginWrite, 464
BinarySearch, 153
CalculateDiscount, 354
CalculatePerimeter, 1349
calling, 60
CanRead, 464
CanSeek, 464
CanWrite, 464
Cast, 519
ChangeExtension, 454
CheckMailAddress, 381
classes, executing actions with, 235-247
Collect, 279
Compare, 127
Concat, 519
constraints, 373
ContainsAudio, 484
ContainsData, 484
ContainsFileDropList, 484
ContainsImage, 484
ContainsText, 484
ConvertTimeBySystemZoneId, 147
CopyToAsync, 1138
.ctor, 216
CurrentPrincipal, 500
DefaultIfEmpty, 519
Delete, 457
DeleteObject, 1025
Dequeue, 398
Descendants, 674
Dispose, 271, 275-276, 347, 404
Distinct, 519
Divide, 533
DoCancel, 873
DoSomething, 229
DownloadFile, 487
DownloadString, 1115
Element, 674
ElementAt, 519
ElementAtOrDefault, 519
EndRead, 464
EndWrite, 1107
Except, 519
Execute (Of T), 1026
ExecuteAssembly, 1146
ExecuteCommand, 617
ExecuteReader, 543
behavior, 521
built-in, 519
Data Services (WCF), 1025
LINQ, 552
members, 403
overloading, 523
File.Delete, 197
FindAll, 405
FindResource, 720
FirstOrDefault, 519
Fluent APIs, 667
Flush, 194
FlushAsync, 1138
GC.ReRegisterForFinalize, 279
GC.SuppressFinalize, 278
generating, 437
generics
defining, 370
GetAssembly, 1160
GetAudioStream, 484
GetCallingAssembly, 1160
GetCreationTime, 455
GetCurrentDirectory, 458
GetCustomerQuery, 825
GetCustomers, 502
GetData, 484
GetDataObject, 484
GetEntryAssembly, 1160
GetEnumerator, 420
GetExecutingAssembly, 1160
GetExportedTypes, 1162
GetExtension, 454
GetFileDropDownList, 484
GetFiles, 456
GetILGenerator, 1175
GetImage, 484
GetLogicalDrives, 457
GetLowerBound, 153
GetModules, 1162
GetName, 317
GetObjectData, 1046
GetOrders, 916
GetRange, 396
GetSystemTimeZones, 145
GetText, 484
GetTypes, 1163
GetUpperBound, 153
GetValidationErrors, 651
GetValue, 155
GoBack, 965
GoForward, 965
GroupBy, 519
GroupJoin, 519
Guid.NewGuid, 147
HasExtension, 454
Inconclusive, 1341
increaseCounter, 384
Indent, 194
InitializeService, 1018
InitializeWithWindowsUser, 500
Insert, 395
InsertRange, 395
Intersect, 519
Invoke, 380
IsAuthenticated, 500
IsFalse, 1341
IsInRole, 500
IsInstanceOfType, 1341
IsNotInstanceOfType, 1341
IsNotNull, 1341
IsNull, 1341
IsTrue, 1341
Item, 396
Join, 519
Kill, 1059
Last, 519
LastName, 325
LastOrDefault, 519
Length, 464
Load, 1160
LoadComponent, 720
LoadFile, 1160
LoadFrom, 1160
LoadVideoAsync, 1133
LongCount, 519
Max, 519
Min, 519
Move, 455
MoveCurrentTo, 832
MoveCurrentToFirst, 832
MoveCurrentToLast, 832
MoveCurrentToNext, 832
MoveCurrentToPrevious, 832
Name, 500
Navigate, 965
OffType, 519
OnCreateMainForm, 76
OnDeserialization, 1041
OnModelCreating, 666
OrderBy, 519
OrderByDescending, 519
Parallel.ForEach, 1080, 1083-1084
Parallel.Invoke, 1072
Peek, 398
Position, 464
Print, 194
PrintString, 237
QueryVideosAsync, 1132
Read, 464
ReadAllText, 160
ReadAsync, 1138
ReadByte, 464
ReadLineAsync, 1138
ReadToEndAsync, 1138
ReferenceEquals, 328
ReflectionOnlyLoad, 1160
ReflectionOnlyLoadFrom, 1160
RemoveFirst, 410
RemoveLast, 410
RemoveMemoryPressure, 280
RemoveNodes, 674
RemoveParticipant, 1080
RemoveParticipants, 1080
ReplaceWith, 674
ReRegisterForFinalize, 279
ReturnFullName, 243
Root, 674
rules, 267
Run, 720
SaveChanges, 833
Seek, 464
Select, 519
SelectMany, 519
SequenceEquals, 519
Serialize, 1036
SetAudio, 484
SetCreationTime, 455
SetCurrentDirectory, 458
SetData, 484
SetDataObject, 484
SetImage, 484
SetLastError, 1206
SetText, 484
ShowDialog, 755
Shutdown, 720
SimulateProcessing, 1081
SingleOrDefault, 519
Skip, 519
SkipWhile, 519
Sort, 396
Start, 1058
StopLoading, 965
Stream class, 1138
structures, passing to, 308
stubs, generating, 436
Sub Main, 35
Subtract, 142
Sum, 519
SuppressFinalize, 279
System.Array class, 153
System.Convert class, 123
System.GC.Collect, 271
System.Object.ToString, 66
System.String class, 126
Take, 519
TakeWhile, 519
Task.Run, 1128
Task.Wait, 1075
TestAccessFile, 222
TestInstance, 374
ThenBy, 519
ThenByDescending, 519
Thread.Start, 1061
ToBool, 123
ToByte, 123
ToChar, 123
ToDateTime, 123
ToDecimal, 123
ToDictionary, 519
ToDouble, 123
ToFileTime, 141
ToFileTimeUtc, 141
ToInt16, 123
ToInt32, 123
ToInt64, 123
ToList, 519
ToLocalTime, 141
ToLongDateString, 141
ToLongTimeString, 141
ToLookup, 519
ToOADate, 141
ToSByte, 123
ToShortDateString, 141
ToShortTimeString, 141
ToSingle, 123
reflection, 1163
System.Object class, 328
ToUInt16, 123
ToUInt32, 123
ToUInt64, 123
ToUniversalTime, 141
Trace.Listener.Clear, 197
TrimToSize, 396
Unindent, 194
Union, 519
UpdateProduct, 648
Upgrade, 495
validatebook, 998
Visual Basic 2012 projects, 64-65
WaitForPendingFinalizers, 279
WhenAll, 1129
Where, 519
WithDegreeOfParallelism, 1098
WithMergeOptions, 1098
WriteAllBytes, 460
WriteAsync, 1138
WriteByte, 464
WriteIf, 194
WriteLineIf, 194
metrics, Code Metrics, 1309, 1315
Metro interface. See Modern style interface (Windows Phone), 956
Metro-style applications, 8. See also Windows 8
.NET for, 7
ObservableCollection (Of T) collection, 407
Microsoft Access, 541
Microsoft code analysis rules, 1311
Microsoft Core Library (MsCorlib.dll), 6
Microsoft Developer Network. See also MSDN
Microsoft Excel, exporting code metrics to, 1317
Microsoft Expression Blend, 14
Microsoft Silverlight. See Silverlight applications
Microsoft SQL Server, LINQ to SQL, 588. See also LINQ
migrating
Code First approach, 665
from old CAS-based code, 1155
Visual Basic 6, 209
from Visual Studio 2010 to Visual Studio 2012, 3
MIME (Multipurpose Internet Mail Extensions), 80
MinLength attribute, 664
Min method, 519
MinValue property, 101, 137, 143-144
MissingLastNameException, 345-346
Mixed Mode debugging, 182
mobile phones, 955. See also Windows Phone
Model Browser window, 640, 656
Model First, 657
models
adding, 868
ASP.NET, 851. See also ASP.NET
COM, 1191
EDMs, viewing, 820
objects, EDMs, 630
programming (Windows Phone), 958-959
security in .NET 4.5, 1148-1155
views, defining, 446
Model-View-Controller. See MVC, 854
Model-View-View Model. See MVVM, 443, 811, 913
Modern style interface (Windows Phone), 956
modes
connection (ADO.NET), 541
data-binding, 813
declarative, XAML, 703
disconnected (ADO.NET), 541
operation, garbage collection, 280-281
profiling, 1320
modifiers
inheritance, 428
modifying
debugging, 50
default values, thread pools, 1063
System.IO.Directory class, 455-458
System.IO.DirectoryInfo class, 458-459
elements, angles, 780
Entity Framework (ADO.NET), 645-652
permissions, 463
System.IO.FileInfo class, 462-463
properties, notifications, 387
Startup objects, 35
streams, 453
modules, 301
classes, comparing, 303
namespaces, 284
Visual Basic 2012 projects, 65
Monitor class, synchronization, 1065
Mouse property, 482
MoveCurrentToFirst method, 832
MoveCurrentToLast method, 832
MoveCurrentTo method, 832
MoveCurrentToNext method, 832
MoveCurrentToPrevious method, 832
Move method, 455
moving
breakpoints, 185
drag’n’drop data-binding, 818-840
elements, 781
XML namespaces, 293
MsCorlib.dll, 6
MSDeploy, 884
MSDN (Microsoft Developer Network)
Code Gallery, 1303
Library, 48
navigating, 56
Visual Basic 2012 resources, 1357-1358
web applications, publishing, 890
MsmqIntegrationBinding, 1005
multicore JIT compilation, 853
multicore processor architectures, Parallel JIT Compilation, 5
multidimensional arrays, 151, 516
multiline lambda expressions, 530-531
multiple applications, references (GAC), 1227
multiple constraints, 374
multiple diagrams, formatting, 431
multiple interface implementations, 350
multiple modules, 302
multiple roles, adding, 936
multiple scopes, 8
multiple times, applying attributes, 1187
multiple transforms, 782
multiplication (*) operator, 155, 313
Multipurpose Internet Mail Extensions. See MIME, 80
multi-targeting, 18
multithreading, 1057, 1060-1061
MultiView control, 859
MustOverride keyword, 336
MVC (Model-View-Controller), 854
MVVM (Model-View-View Model), 443, 811
Silverlight applications, 913
My.Application property, 477
assemblies, retrieving information, 478-479
MyCollectionsUtils identifier, 502
My.Computer property, 478, 482-490
Audio property, 485
Keyboard property, 485
Network property, 487
My namespace, 477
My.Application property, 478-482
Audio property, 485
Keyboard property, 485
Network property, 487
My.Resources property, 497-500
application-level only settings, 492-493
naming configuration files, 493-495
My.WebServices property, 502
compiling options, 41
resources, 78
Settings tab, 82
WPF applications, 699
My.Resources namespace, 478, 506
My.Resources property, 497-500
My.Settings property, 478, 490-496
application-level only settings, 492-493
extending, 506
naming configuration files, 493-495
MySQL, 541
My.User property, 478, 500-502
My.WebServices property, 478, 502
Name method, 500
names
conventions, 8
Code Analysis, 1314
identifiers, 72
interfaces, 355
value types, 94
pathnames
resources, 80
strong names, signing GAC assemblies with, 1224-1226
System.Object class, 91
Namespace..End Namespace blocks, 284, 288
namespaces
CLS, 295
compiling, 6
My namespace. See My namespace
scope, 291
System.Collections, 394
System.Collections.Concurrent, 413
System.DataSet.DataSetExtensions, 622
System.Diagnostics, 197
System.Globalization, 842
System.Reflection, 1158
System.Reflection.Emit, 1171-1177
System.Runtime.CompilerServices, 1177
System.Runtime.InteropServices, 310
System.Windows.Controls, 6
System.Xml.Serialization, 1043
types
Visual Basic 2012 projects, 66-67
NameValueCollection collection, 401
narrowing conversions, 120-125
Navigate method, 965
NavigateUri property, 806, 910
navigating
controls, adding, 874
IDE tabs, 50
MSDN Library, 56
Online Help, 56
Silverlight Navigation Applications, 908-910
Solution Explorer windows, 28-30
Visual Studio 2012, 11
Windows Phone applications, 963-966
NavigationFailed event, 510, 965
NavigationProcess event, 510
Navigation Properties, EDMs, 640
NavigationService class, 965
NavigationStopped event, 510, 965
NestedClass class, 227
nested constructor invocations, 256-257
nested namespaces, implementing, 288-291
nested Try..Catch..Finally blocks, 217-218
nested types, 374
ADO.NET, 539
connection modes, 541
anonymous types, 524
applications
ASP.NET, 851
InstallShield, 1229. See also InstallShield
application domains, 1145-1147
asynchronous programming
overview of, 1104
attributes
coding, 1181
classes, 225
executing actions with methods, 235-247
Code Analysis, 1310
code documentation, 1207. See also XML comments
collections, 393
architecture, 394
BitArray, 401
concurrent, 413
customizing, 413
Dictionary (Of TKey, TValue), 407
HybridDictionary, 400
ListDictionary, 399
NameValueCollection, 401
ObservableCollection (Of T), 408-410
OrderedDictionary, 399
Queue (Of T), 412
SortedDictionary (Of TKey, TValue), 408
SortedList, 400
Stack, 398
Stack (Of T), 412
StringCollection, 400
StringDictionary, 400
conditional code blocks, 172-175
data types
converting between reference types/value, 111-119
delegates, 379
differences between 4.0/4.5, 3
Entity Framework (ADO.NET)
error handling, 207
events, 379
exception handling, 207-208, 224
files
permissions, 463
GAC, 1221
generics, 367
accessing base classes members, 337-341
customizing exceptions, 344-346
overriding members, 331-334, 343-344
I/O file operations, 1137-1141
LINQ. See also LINQ
architecture, 554
language support, 552
LINQ to Objects, 557
multi-targeting, 18
multithreading, 1057, 1060-1061
My namespace, 477-478. See also My namespace
objects
advanced garbage collection, 279-281
structures, 65
concatenation, 163
optimization, 272
primitive reference types, 105-106
serialization, 1035
starting, 2
strongly typed objects, 104-105
structures, 305
allocating memory, 309
assigning to variables, 308
CLS, 314
implementing interfaces, 309
inheritance limitations, 309
managing, 310
member visibility, 308
overloading operators, 310-314
passing to methods, 308
System.IO.Directory class, 455-458
System.IO.DirectoryInfo class, 458-459
System.IO.DriveInfo class, 459
System.IO.FileInfo class, 462-463
threads
tools, 7
types, managing within namespaces, 283-295
value types
differences between reference types/value types, 106-111
versions, selecting, 18
Windows 8, 8
WinRT, 8
With..End With statements, 176-177
NetMsmqBinding, 1005
NetNamedPipeBinding, 1005
NetPeerTcpBinding, 1005
NetTcpBinding, 1005
NetTcpContextBinding, 1005
NetworkAvailabilityChanged event, 509
networks
streams, 474
Visual Basic 2012 tools, 1359
NetworkStream class, 474
New Event Handler command, 706
new features
Silverlight, 898
Silverlight applications, 928
WPF, 695
NewGuid method, 147
New Interface dialog box, 425
New Item command, 30
constraints, 373
structures
New method, 255
System.Object class, 328
New Project dialog box, 21, 854, 1263
New Solution Configuration window, 42
New With statement, 525
NextNode property, 674
nongeneric collections, 394-403, 406
NonSerialized events, 1042
Northwind databases, 589. See also databases
data validation, 614
LINQ to DataSets, 622
tables, 590
notation, JSON, 1015
notifications
properties, modifying, 387
push, 959
tiles, 959
NotImplementException, 436
NotInheritable keyword, 303, 335-336
NotOverridable keyword, 334
NuGet, managing libraries, 1283-1286
nullable arguments, 241
nullable types, 101, 367, 376-377, 553
NullReferenceException, 1101
Field (Of T) method, 626
null strings, checking for, 128
numbers
floating-point, 156
time
Object Browser tool, applying, 394
System.Object class, 91
ObjectContext class, 916
object-oriented programming. See OOP
objects
adding
databases, 655
Visual Studio Class Designer, 425-428
CollectionViewSource, 830
COM
contexts, 645
databases, adding, 655
data types, 90
DeflateStream, 467
EDMs, 630
FlowDocument, 799
Generate from Usage feature, 433-439
GZipStream, 467
LINQ, 553
JSON, 1015
lifetimes
finalizers, 110
managing, 269
LINQ to Objects, 557. See also LINQ
querying in memory objects, 558-568
managing
advanced garbage collection, 279-281
implementing Dispose/IDisposable interfaces, 273-278
.NET
structures, 65
viewing, 57
POCO, 640
serialization, copying with, 1038
shortcuts, 477. See also My namespace
Startup, modifying, 35
StringBuilder, 136
StringComparison, 127
System.Timers.Timer, 383
visualizers, inspecting with debuggers, 192-193
Visual Studio Class Designer, 424-432
WithEvents keyword, declaring with, 384-385
XAttribute, 672
XCData, 672
XComment, 672
XContainer, 672
XDeclaration, 672
XDocument, 672
XDocumentType, 672
XElement, 672
XName, 672
XNamespace, 672
XNode, 672
XText, 672
ObservableCollection (Of T) collection, 408-410, 814-818
ObservableCollectionHelper class, 503
ODBC (open database connectivity), 540
OffType method, 519
Of keyword, 368
old CAS-based code, migrating, 1155
OleDb, 540
OnCreateMainForm method, 76
OnDeserialization method, 1041
OneTime mode, 813
one-to-many relationships, 605
OneWay mode, 813
OneWayToSource mode, 813
Online Help, navigating, 56
online templates, accessing, 19-20
OnModelCreating method, 666
on-the-fly code, 1297
anonymous iterators, 419
compiling, 5
on-the-fly objects, Generate from Usage feature, 433-439
OOP (object-oriented programming), 225
types, comparing reference/value, 107-110
OpCodes, 1175
open database connectivity. See ODBC, 540
Open Data Protocol (OData), 1015, 1112
opening
.NET Framework, 2
Object Browser, 57
Visual Studio Class Designer, 424
operating systems
interacting with, 4
.NET Framework, 1
Windows 8. See Windows 8
Windows Phone, 955. See also Windows Phone
OperationCanceledException, 1078, 1134
operation modes, Garbage Collection, 280-281
operations, implementing services, 1027-1029
binary, invoking AsParallel, 1097
concatenation, 163
concatenation operators, 583
conversion, 103, 120-125, 572-574
equality (=), 126, 164, 313, 570
greater than or equal to (>=), 164, 313
If
LINQ, 553
inequality (<>), 104, 164, 313, 570
IsFalse, 158
IsTrue, 158
less than or equal to (<=), 164, 313
LINQ to DataSets, 623
polymorphism, 330
precedence, 165
recursive, 45
restriction operators, 569-570
return values, 45
standard query operators (LINQ to Entities), 652
structures, overloading, 310-314
optimistic concurrency, 616, 648-650
Optimization tab (Visual Studio 2010), 47
collections, generics, 395
enabling, 47
IntelliTrace, 1329
.NET Framework, 272
performance (Silverlight applications), 928
structures, 310
value types, 101
optional nullable arguments, 241
Option Infer directives, 513
options
IntelliTrace, 1329
item templates, 1264
local installation, running out-of-browser applications, 925
role configuration, accessing, 935
toolboxes, 1275
Visual Studio 2012, 1267-1270, 1289-1299
Options button (ClickOnce), 1253-1255
Options dialog box, 513
Option Strict settings, 113
arrays, 149
LINQ to XML, 682
reflection, 1177
Oracle, 540
OrderBy clause, 916
OrderBy method, 519
OrderByDescending method, 519
OrderDescription property, 309
OrderedDictionary collection, 399
ordering
sequences (PLINQ), 1096
orientation, Windows Phone applications, 963-966
Or operator, 158-162, 313, 570
out-of-browser applications (Silverlight applications), 923-926
out of scope objects, 271
debugging, 198
to projects (InstallShield), adding, 1236
compilation process results, viewing, 40
debugging, 194
overflow checks, removing integers, 47
overhead, performance, 222
overlapping catch blocks, 45
overloading
extension methods, 523
operators, structures, 310-314
parameters, 245
properties, 246
types, parameters, 375
Overrides keyword, 332
overriding
members
deriving, 334
OverwriteCurrentValues, 616