Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

Pro CSharp 2008 And The .NET 3.5 Platform [eng]

.pdf
Скачиваний:
78
Добавлен:
16.08.2013
Размер:
22.5 Mб
Скачать

1352 I N D E X

creating custom directory structure, 706 deleting user data from storage, 705–706 overview, 702–704

reading data from storage, 705 writing data to storage, 704

overview, 687, 698–699 scope of, 699

System.IO.IsolatedStorage type, 702 uses, 688

IsolatedStorage type, 702 IsolatedStorageFile type, 702 IsolatedStorageFile.GetStore( ) method, 703

IsolatedStorageFile.GetUserStoreForAssembly( ) method, 704

IsolatedStorageFilePermission attribute, 708 IsolatedStorageFile.Remove( ) method, 705 IsolatedStorageFileStream object, 704 IsolatedStorageFileStream type, 704 IsolatedStorageScope type, 702 IsolatedStorageScope.User value, 705 IsOneWay property, 887

IsPostBack property in HTTP Request processing, ASP.NET, 1198

IsPostBack property, Page Type, 1195 IsPressed property, 1069

IsPressed trigger, 1158 IsPrimaryKey property, 845, 848 IsPrimitive, System.Type class, 528 IsSealed, System.Type class, 528

IsSecureConnection member, HttpRequest Type, 1196

IsTerminating property, 887 IsValueType, System.Type class, 528 IsVersion property, 848

ItemArray property, 789 ItemCollection object, 1075 <ItemGroup> element, 1024 ItemHeight value, 1088 Items property, 1229, 1248

ItemsControl abstract base class, 1075 ItemsSource attribute, 1114 ItemsSource property, 1109 ItemWidth value, 1088

iteration, CIL, 642 iterator methods

building with yield keyword, 292–293 internal representation of, 294–295

ITypeInfo, IProvideClassInfo class interface, 1307 IUnknown interface, 1292

IUnknown, IDispatchEx class interface, 1307 IValueConverter interface, 1106–1107

J

jagged array, 117 javadoc utility, 176

Java/J2EE language deficiencies, 4 Jitter, just-in-time (JIT) compiler, 15 Join( ) method, Thread type, 595

join operator, 466 *.jpg file, 1129

K

key frames, 1142

Key property, 1149–1150, 1152

keyboard events, window-level, 1020–1021 KeyCode property, 978

KeyDown event, 977 KeyEventArgs parameter, 977 KeyEventHandler delegate, 977 /keyfile flag, 1297

KeyUp event, 977

Kill( ) method, System.Diagnostics.Process, 565

L

Label control, 1056 Label object, 1140

Label type, 817, 1102, 1137–1138, 1183

Label widgets, 1058, 1065, 1200, 1210, 1212, 1246 lambda expressions, 341, 374–381

lambda operator (=>), 9 language attribute, 1184 language fundamentals

boxing and unboxing, 316 custom namespaces, 475–476

fully qualified type names, 476–478 namespaces, default Visual Studio 2008, 480 nested namespaces, 479–480

static classes, 158 static constructors, 157 static data, 154–155

static keyword, 152, 154–155, 157–158 static methods, 153

using aliases, 478–479

Language Integrated Query (LINQ), 433, 447 langversion:linq option, 1318

LastAccessTime property, FileSystemInfo class, 663 LastChildFill attribute, 1092

LastWriteTime property, FileSystemInfo class, 663 late binding

description, 539

invoking methods with no parameters, 540–541 invoking methods with parameters, 541–542 overview, 523

System.Activator class, 540 layout managers, 1002 LayoutMDI( ) method, 972 LayoutTransform property, 1135 lblOrder, Label type, 1229 lblTextBoxText, Label widget, 1212 lblTransparency button, 1139 lblUserData Label type, 1276 ldnull opcode, 249

ldstr opcode, 92, CIL legacy types, 316

Length, FileInfo class, System.IO, 669

Length( ) method, Stream class, System.IO, 676

Length property, 73, 119 libmonogac subdirectory, 1319 libraries, 1316 LibraryBuild.rsp file, 1324

life cycle of a web page, ASP.NET, 1200–1203 lightweight events, 435 LinearGradientBrush object, 1128 LinearGradientBrush type, 1037, 1127, 1148 LinearXXXKeyFrame type, 1142 LineGeometry type, 1131

LineJoin property, 1130 LinqOverDataTable( ) method, 839 /list option, 701

<list> code comment, XML Elements, 177 ListBox control, 1055, 1209, 1229, 1248 ListBox type, 1078

<ListBoxItem> type, 1075, 1077 <ListBox.ItemTemplate> element, 1112 ListDictionary member,

System.Collections.Specialized Namespace, 316

ListMethods( ) method, 535 List<T> array, 913

List<T> member variable, 799, 995, 997 List<T> type, 447, 456

ListView object, 1112 <ListView.View> element, 1114 Load event, 972, 1198, 1201, 1276 Load event handler, 830, 1249, 1261 Load( ) method, 572, 575, 861 LoadAsm( ) method, 690

Loaded event, 1108, 1111

LocalBuilder, System.Reflection.Emit namespace, 649

LocalIntranet_Zone, 692 LocalNullableVariables( ) method, 137

locals directive, common intermediate language (CIL), 640

LocalVarDeclarations( ) method, 82 Location property, 976

location transparency, 868

lock token and multithreaded applications, 604–607

Lock( ), Unlock( ) methods, ASP.NET HttpApplicationState members, 1255

locking memory (unsafe), 409–410 logical grouping, 1169

logical resources, 1145 long data type, 80

lstColors ListBox object, 1079 lstVideoGameConsole type, 1076 lstVideoGameConsoles object, 1078

Lutz Roeder’s Reflector for .NET development tool, 65

M

Mac OS X Mono installer, 1319 machine.config file, 522, 1184, 1272

I N D E X 1353

MachineName property, 76

MachineName, System.Diagnostics.Process, 564 MagicEightBallServiceClient.exe file, 896, 900 MagicEightBallService.cs file, 885 MagicEightBallServiceHost.exe file, 899, 902 MagicEightBallServiceLib namespace, 888 MagicEightBallServiceLib.dll assembly, 888, 899 /main option, 70

MainForm type, 815 MainForm.cs file, 798 MainMenuStrip property, 960

MainModule, System.Diagnostics.Process, 564 maintaining session data, ASP.NET, 1263–1266 MainWindow class, 959, 1014, 1108, 1111 MainWindow, defining in XAML, 1022–1023 MainWindow property, Application type, 1006 MainWindow type, 958, 961, 976, 982, 992 MainWindow_Paint( ) method, 988 MainWindow.cs file, 963, 973, 979, 991 MainWindow.Designer.cs file, 963 MainWindow.g.cs file, 1024

MainWindowHandle, System.Diagnostics.Process, 564

MainWindowTitle, System.Diagnostics.Process, 564

MainWindow.xaml.cs file, 1029 managed code, 8–9, 1283 managed heap, 246–252 manifest, assemblies, 481 MapPath( ) method, 1196

mapping C# types to CIL types, 635 mapping parameters to variables, CIL, 641 Margin control, 1094

Margin value, 1114 MarkedAsDeletable( ) method, 802 master constructor, 150

*.master file, 1216, 1218, 1222 master pages, 1178, 1216–1222 MasterPageFile attribute, 1184, 1223

MasterPageFile property, Page Type, 1195 MasterPage.master file, 1217 MathOperation property, 937 MathService.cs file, 901 MathServiceLibrary namespace, 901 MathServiceLibrary.dll assembly, 904 MathWinService.cs file, 904 MatrixTransform type, 1135 MaximizeBox property, 979 MaximumSize member, 703

maxstack directive, CIL, 640 MaxValue property, 84 mcs/gmcs compilers, 1321 MDIChildActive event, 972 Me keyword

chaining constructor calls using, 149–151 observing constructor flow, 151–152, 175 overview, 147–149

MediaCommands object, 1100

com/.apress.http://superindex at faster it Find

1354 I N D E X

MediaElement control, 1056 member shadowing, 208–210 member variables, 141

MemberInfo class, System.Reflection namespace, 528

MemberwiseClone( ) method, Object Class, 213 memory allocation (unsafe), 409–410

memory management in CIL, 247–248

Finalize( ) vs. IDisposable interface, 262–263 first rule, 246

fourth rule, 260

resource wrapper code example, 262–263 second rule, 248

third rule, 256

MemoryStream type, input/output, System.IO, 662 Menu (or TreeView) widget, 1219

Menu control, 1056, 1218, 1220 Menu property, 971

Menu type, 1220 <Menu> definition, 1096

MenuEventArgs parameter, 1221 MenuItem object, 1094 MenuItemClick event, 1221 MenuStrip control, 965 MenuStrip object, 960 MenuStrip type, 959

Merge( ) method, 786 Message property, 98, 222, 234

Message Transmission Optimization Mechanism (MTOM), 882

MessageBox type, 1012, 1067 MessageBox.Show( ) method, 974, 1082 metadata, 524, 530–535, 891, 894, 1292, 1316 method attribute, 1195

method group conversions, C# 2.0, 372–373 method parameters, CIL, 638

Method property, System.MulticastDelegate/System Delegate, 345

method scope, 148

MethodBuilder, System.Reflection.Emit namespace, 649

MethodInfo class, System.Reflection namespace, 528

methods CIL, 637

hidings, 208 overloading, 107 overriding, 199

Microsoft C# command-line compiler, 1321 Microsoft Express IDEs, overview, 50

Microsoft Foundation Classes (MFC), 1284

Microsoft Message Queuing (MSMQ), 869 Microsoft recommended event pattern, 367–368 Microsoft Transaction Server (MTS), 869 Microsoft.CSharp.Targets file, 1024 Microsoft.WinFX.targets file, 1024

midl.exe compiler, 1292 MIInterfaceHierarchy project, 289 milcore.dll binary, 1010 MinimizeBox property, 979 MinimumCapacity member, 793 MinValue property, 84 mnemonics, 619–620, CIL mnuFileExit type, 960 mnuFileExit_Click( ) method, 960 mode attribute, 1270

Modified value, 791 ModifierKeys property, 969 Modifiers property, 978

Module class, System.Reflection namespace, 528 module directive, common intermediate language

(CIL), 630

module set for a process example code, 569 ModuleBuilder type, 653–654

Monitor type, System.Threading Namespace, 594 mono print, 1322

mono runtime utility, 1330 monodis utility, 1322, 1325 monop/monop2 tool, 1322 mouse events, window-level, 1020 MouseButtons enumeration, 976 MouseButtons property, 969 MouseDown event, 970, 993

MouseDown event handler, 995, 1066 MouseEnter event, 970, 1094, 1126 MouseEventArgs class, 976 MouseEventArgs type, 961 MouseExit event, 1094

MouseHover event, 970 MouseLeave event, 970 MouseMove event, 970, 975, 1208 MouseOverStyle property, 1154 MouseUp event, 970, 976 MouseWheel event, 970 MoveTo( ) method

DirectoryInfo class, 664 FileInfo class, 669

mresources directive, CIL, 630 msbuild.exe utility, 1023–1024 mscoree.dll, 22

mscorlib.dl, 22, 1077, 1323 MSMQ-centric bindings, 884 MsmqIntegrationBinding binding, 883 multicast delegate call, 344–345 multicasting, delegates, 351–353 multidimensional arrays, 119

multifile assemblies, 12, 484–485, 496–498 multiple document interface (MDI) application,

968

multiple exceptions, 236–237 multiple inheritance, 187, 287–289

multiple result sets, DbDataReader object, ADO.NET, 762

multiple sort orders (IComparer), 302–303

 

I N D E X

1355

multithreaded applications

name field, 147

 

AsyncCallback delegate, 591–592

Name, FileInfo class, System.IO, 669

 

asynchronous operations, 587–589

Name method, Thread type, 595–596

 

AsyncResult class, 592

Name property, 663, 847, 926

 

atomic operations, 585

named iterators, 293–294

 

BeginInvoke( ), 587–588, 591–593

NameLength dictionary, 932

 

CLR thread pool, 610, 612

NameNotValid method, 929

 

concurrency, 584, 602–605

_NameOfTheClass interface, 1295

 

delegate review, 585, 587

namespace directive, common intermediate

 

EndInvoke( ), 587–588

language (CIL), 630

 

execution speed vs. responsiveness, 600

namespace keyword, 475–476

 

foreground vs. background threads, 601–602

/namespace option, 849

 

lock keyword and synchronization, 604–607

namespaces

 

Main( ) method, 592

default Visual Studio 2008, 480

 

overview, 583

examples in C#, VB.NET, C++, 24–25

 

secondary thread creation, 597–598

fully qualified names, 27

 

state data, 592–593

overview, 23–24

 

synchronization, 584–585, 587, 589–590, 608

primary .NET namespaces, 25

 

System.Threading Namespace, 593

programmatic access, 26–28

 

System.Threading.Interlocked type and

role of Microsoft namespaces, 26

 

synchronization, 607–608

<namespaces> element, web.config File, 1204

 

Thread class, 583

NameValueCollection member,

 

thread relationship to process, AppDomain, and

System.Collections.Specialized

 

context, 583–585

Namespace, 316

 

thread-volatile operations, 584

Nant development tool, 65

 

Timer callbacks, 609–610

narrowing operation, 96

 

<MultiTrigger> element, 1153

NarrowingAttempt( ) method, 97

 

MustInherit keyword, 203–204, 207

NavigationCommands object, 1100

 

MustOverride, 204–208

NDoc development tool, 65, 180

 

mutator method, 164

nested namespaces, 479–480

 

Mutex type, System.Threading Namespace, 594

nested panels, 1108

 

My_Computer code group, 696

nested types

 

My_Computer_Zone, 692, 698

and access modifiers, 164

 

MyApp.g.cs file, 1027, 1030

definitions, 197–199

 

MyApp.xaml.cs file, 1030

.NET attributes, 951

 

MyBase, controlling base class creation with,

.NET Framework

 

192–194

base class libraries, 7

 

MyData.txt file, 704, 706

basic building blocks overview, 6

 

MyDoubleConverter type, 1107

Common Language Infrastructure(CLI), 32–33

 

MyExtensionMethods class, 430

common language runtime (CLR) overview, 6

 

MyExtensions class, 425, 430

Common Language Specification (CLS)

 

MyExtensions.cs file, 430

overview, 6

 

MyExtensionsLibrary namespace, 431

Common Type System (CTS) overview, 6

 

MyExtensionsLibrary.dll file, 431

core features, 6

 

myInt type, 416

ECMA standardization, 32

 

MyPaintProgram namespace, 992

interoperability with COM, 6

 

MyPoint type, 130

Mono, 33

 

MyPrivateQ private queue, 884

.NET-aware programming languages, 9–11

 

myProxy.cs file, 897

non-Windows platforms, 32–33

 

myShapes array, 208

overview, 6

 

myString type, 416

Portable .NET, 33

 

MyWPFApp class, 1012

as radical change, 6

 

N

Virtual Execution System (VES), 32

 

.NET Framework Configuration utility, 502–504,

 

\n character, 89

515

 

n string, 78

.NET System data type, 1290

 

Name attribute, 1059, 1171, 1274

.NET type metadata, 15–16

 

name clashes, 283–284

netmodule file extension, 485, 496–497

 

com/.apress.http://superindex at faster it Find

1356 I N D E X

NetMsmqBinding binding, 883 NetNamedPipeBinding class, 883–884 NetPeerTcpBinding class, 883 netTcpBinding binding type, 899 NetTcpBinding class, 883, 900 <netTcpBinding> subelement, 900 new keyword, 82, 93, 128, 142

allocating objects with, 143–144 CIL implementation, 247 references, 246

New Project dialog box, Visual Studio 2008, 53 NewFunkyStyle style, 1150

NewLine property, 76

NewLine, TextWriter, System.IO, 678 newobj CIL instruction, 247 noautoinherit, 626, CIL compiler flags nonabstract .NET types, 1021

None value, ClassInterfaceType enumeration, 1308 non-Shared data, 154

NoResize attribute, 1113

Notepad, building .NET applications using, 46–47 NotImplementedException objects, 435 NotInheritable keyword, 188, 195, 202 NotOverridable keyword, 202–203

null, setting object references to, 248–249 nullable data type, 136

Nullable<T> property, 137 NullReferenceException, delegates, 350–351 Nunit development tool, 65

O

Object class, 212 object contexts

boundaries, 577 context 0, 577 context-agile, 578–579 context-bound, 578–579 overview, 561

program example, 579–581 object data type, 81

object generations, 251–252 object graph

definition, 712

garbage collection, 249–250 reachable objects, 249–250 relationships, 713

simple example, 712 object initializer syntax, 436 _Object interface, 1311 object keyword, boxing, 316 object lifetime

object generations, 251–252 overview, 245

System.GC, 252

when heap objects are removed, 246–248 object reference type, 81

object resources, 1145 ObjectIDGenerator, serialization, 724

objects

differences from classes and references, 245 setting references to null, 248–249

ObservableCollection<T> type, 1110, 1115 Obsolete attribute, 543–544 ObtainAnswerToQuestion( ) method, 887, 902 OfType<T>( ) method, 458

OLE View utility, 1294 oleautomation data type, 1283 on operator, 466

On prefix, 435

onclick attribute, 1173, 1182, 1188 onclick event, 1173

OneWay value, 1105 OnPetNameChanged( ) method, 851 OnPetNameChanging( ) method, 851 OnRender( ) method, 1122

OnStart( ) method, 904 OnStop( ) method, 904 Opacity property, 970, 1128 opcodes, 619, 638–640

OpCodes, System.Reflection.Emit namespace, 649 OpenFileDialog type, 997

OpenRead( ) method, FileInfo class, System.IO, 669, 671

OpenText( ) method, FileInfo class, System.IO, 669, 672

OpenTimeout property, 892

OpenWrite( ) method, FileInfo class, System.IO, 669, 671–672

Operation property, 940

[OperationContract] attribute, 880, 885, 897, 912 operator constraints, lack of with generics,

336–337 operator overloading

binary operators, 389–391

C# to CIL special names index, 395 cautions, 396

CIL internal code, 394, 396 comparison operators, 394 description, 388

equality operators, 393 overview, 383

shorthand assignment operators, 392 unary operators, 392–393

Operator property, 1233 OrderAutoDialog class, 982, 985 OrderAutoDialog type, 984 OrderAutoDialog.cs file, 979 OrderAutoDialog.Designer.cs file, 983 OrderBy( ) method, 461

orderby operator, 463, 468 OrderBy<T, K>( ) method, 461 OrderedEnumerable type, 451, 461 Ordinal property, 787

Orientation property, 1088 Original value, 792

OtherKey named property, 851

/out: flag, 896, 1321 out keyword, 107 out modifier, 109 out parameter, 108

[out, retval] attributes, 1296

[Out] attribute, System.Runtime.InteropServices, 1306

outer variables, 371–372 outerEllipse Ellipse type, 1067 outerEllipse object, 1066 output parameters, 109–110

Output property, HttpResponse Type, 1199 OutputStream property, HttpResponse Type, 1199 overloading

methods, 107, 146, 386 operators

binary operators, 389–391

C# to CIL special names index, 395 cautions, 396

CIL internal code, 394–396 comparison operators, 394 description, 388

equality operators, 393 overview, 383

shorthand assignment operators, 392 unary operators, 392–393

overridable and overrides keywords, 199–201 Overridable keyword, 199, 205

Overrides keyword, 199, 209 overriding, 201–202

P

Padding property, 1093 PadLeft( ) method, 87 PadRight( ) method, 87 Page events, ASP.NET, 1201

Page member, System.Web.UI.Control, 1210 Page object, 1246

Page parent class, 1194

Page property, System.Web.UI.Control in ASP.NET, 1210

Page type, 1163, 1198 Page_Load( ) event, 1210 Page_PreInit event, 1242 <Page> declaration, 1032 <pages> element, 1239 Paint event, 970, 993, 1118

PaintEventArgs type, 961, 988 PaintEventHandler delegate, 988 Panel control, 1056

Panel type, 1008, 1210 panels, nested, 1108 ParallelActivity, WF, 921 <param> elements, 177–178 parameter arrays, 111

Parameter object, ADO.NET data providers, 734 ParameterBuilder, System.Reflection.Emit

namespace, 649

I N D E X 1357

ParameterInfo class, System.Reflection namespace, 528

parameterized command objects, ADO.NET, 766–767

ParameterizedThreadStart delegate, System.Threading Namespace, 594, 597–598, 600–601

ParameterName property, ADO.NET DbParameter, 767

Parameters, DbCommand, ADO.NET, 760 <paramref> code comment, XML Elements, 177 params keyword, 107, 111

params parameter, 108

parent class, specifying, 186–187

Parent member, System.Web.UI.Control, 1210 Parent property, DirectoryInfo class, 664 ParentRelations member, 793

Parse( ) method, 861 ParseFromStrings( ) method, 86 partial keyword, 8, 433, 435 Partial methods, 433

partial modifier, 434 partial types, 175–176 /password option, 848 Password property, 1082

PasswordBox type, 1081–1082 PasswordChar property, 1082

Path type, input/output, System.IO, 662 Path value, 1103

PathGeometry type, 1131

Peek( ) method, TextReader, System.IO, 679 PeekChar( ) method, BinaryReader class, 682 Pen type, 987, 989, 1130

Pens type, 987 permission set, 688 Permission Set tab, 694

permission sets, role of in code access security, 695 <permission> code comment, XML Elements, 177 persistence of cookies, ASP.NET, 1267

Persistence services, WF, 920 persistent cookie, 1267 Person class, 133

Person variable, 214 peverify.exe tool, 629 PictureBox control, 985 platform invocation, 1284

Platform Invocation Services (PInvoke), 6 platform-independent, 1315

Point definition, 129 Point structure, 126 Point type, 436, 438 Point variable, 127

pointer types and operators & operator, 407

* operator, 407

> operator, 408–409 example, swap function, 407 field access, 408–409

table of operators, 404

com/.apress.http://superindex at faster it Find

1358

I N D E X

 

 

PointRef type, 130

identity, 499

 

polymorphic interface, 162, 185, 204, 208, 271,

probing, 499–500

 

1194

private data, 127, 165

 

polymorphic support

probing, private assemblies, 499–500

 

abstract classes and MustInherit keyword,

Process class, System.Diagnostics namespace, 564

 

203–204

process identifier (PID), 561, 565–567

 

building polymorphic interface with

ProcessCreditRisk( ) method, 780

 

MustOverride, 204–208

processes

 

member shadowing, 208–210

module set example code, 569

 

NotOverridable keyword, 202–203

overview, 561

 

overridable and overrides keywords, 199–201

process manipulation example code, 565–566

 

overriding with Visual Studio 2005, 201–202

starting and stopping example code, 570–571

 

overview, 199

System.Diagnostics namespace, 563

 

polymorphism, 160, 162–163, 207

thread examination example code, 566–567

 

abstract classes, 203–204

ProcessExit event, System.AppDomain, 573,

 

abstract methods, 204–208

576–577

 

method hiding, 208

ProcessModule type, System.Diagnostics

 

override keyword, 199

namespace, 564

 

overview, 199

ProcessModuleCollection, System.Diagnostics

 

virtual keyword, 199

namespace, 564

 

<portType> elements, 886

ProcessName, System.Diagnostics.Process, 565

 

postbacks, 1172

ProcessorAffinity, ProcessThread type, 568

 

PreInit event, 1201, 1242

ProcessStartInfo, System.Diagnostics namespace,

 

preprocessor directives

564

 

#define, 411, 413–414

ProcessThread, System.Diagnostics namespace,

 

#elif, 411–413

564

 

#else, 411–413

ProcessThread type, 568

 

#endif, 411–413

ProcessThreadCollection, System.Diagnostics

 

#endregion, 411

namespace, 564

 

#if, 411–413

ProcessUsernameWorkflow class, 929, 933

 

#region, 411

ProcessUsernameWorkflow.cs file, 926

 

#undef, 411, 413–414

production-level class definition, 165

 

description, 411

Profile property, 1273–1274, 1279

 

overview, 383

<profile> element, 1273

 

PreRender event, Page type, 1201

Profile.Address, 1278

 

PresentationCore.dll assembly, WPF, 1005

ProfileCommon type, 1279

 

PresentationCore.dll file, 1137

Program class, 75, 77, 81, 108, 450, 452, 459, 462,

 

PresentationFoundation.dll assembly, WPF, 1005

856, 859

 

Preview prefixed tunneling event, 1068

Program type, 690, 852, 1326

 

PreviewMouseDown event fires, 1067

Program.cs file, 930

 

primary thread, 562

programmatic identifier (ProgID), 1284

 

PrimaryKey member, 793

ProgressBar control, 1056

 

PrimaryKey property, 793

projectless manner, 1190

 

Print( ) method, 286

properties, 167, 169–170, 637

 

PrintAllPetNames( ) method, 863

Properties property, Application type, 1006

 

PrintArray( ) method, 118

Properties window, 927, 967

 

PrintDataSet( ) method, 793, 795, 801, 810

Property keyword, 167

 

PrintMessage( ) method, 621

PropertyBuilder, System.Reflection.Emit

 

PrintTable( ) method, 796

namespace, 649

 

Priority method, Thread type, 595, 597

PropertyChanged event, 850

 

PriorityBoostEnabled, System.Diagnostics.Process,

PropertyChangedEventArgs namespace, 850

 

565

PropertyChangedEventHandler namespace, 850

 

PriorityClass, System.Diagnostics.Process, 565

PropertyChanging event, 850

 

PriorityLevel, ProcessThread type, 568

PropertyCollection object, 785

 

Private access keyword, 166

<PropertyGroup> element, 1024

 

Private access modifier, 163

PropertyInfo class, System.Reflection namespace,

 

private assemblies

528

 

configuration, 500

Proposed value, 792

 

description, 499

Protected access modifier, 163

protected data, 194 Protected field data, 195

Protected Friend access modifier, 163 protected keyword, 194–195 Protected subroutines, 195 ProtectionLevel property, 887 Provider attribute, Profile Data, 1274

provider factory model, ADO.NET, 749–751 Public access modifier, 142, 163

public keyword, 127, 199, 983 public methods, 194

public properties, 194 public property, 127

PublicNotCreatable property, 1300 Publish Wizard button, 709 Publisher certificate, 689

publisher policy assemblies, 518–519 publish.htm file, 709

push and pop, 620–621, CIL

Q

query expressions, 420, 447–448 query operators, 447–448, 451 QueryInterface( ) method, 1305 QueryOverInts( ) method, 454 QueryOverStrings( ) method, 450–451

QueryString member, HttpRequest Type, 1196 QueryString( ) method, 1176

QueryString property, 1197 QueryStringsWithAnonymousMethods( ) function,

461 QueryStringsWithEnumerableAndLambdas( )

method, 462 QueryStringsWithOperators( ) method, 459, 462 QueryStringsWithSequenceAndLambdas( )

method, 460 question mark symbol (?), 137

Queue System.Collections class type, 312, 314–315 Queued Components (QC), 869

queuing data, 869

R

\r character, 89 RadialGradientBrush object, 1128 RadialGradientBrush type, 1127 RadioButton control, 1056 RadioButton object, 992 radioButtonCircle object, 992 radioButtonRect object, 992 RadiusX property, 1125

RadiusY property, 1125

RangeValidator control, ASP.NET, 1231, 1233 Rank property, 119

RawUrl member, HttpRequest Type, 1196 reachable objects, 246

Read( ) method, 676, 679, 682, 795 ReadAllBytes( ) method, 674 ReadAllLines( ) method, 674

I N D E X 1359

ReadAllText( ) method, 674

ReadBlock( ) method, TextReader, System.IO, 679 reading cookies, ASP.NET, 1268–1269

reading from a text file, 679

ReadLine( ) method, TextReader, System.IO, 679 readOnly attribute, Profile Data, 1274 read-only class properties, 171

read-only fields, 174–175 ReadOnly keyword, 165, 171 ReadOnly property, 171, 787

ReadToEnd( ) method, TextReader, System.IO, 679 ReadXml( ) method, 796

ReadXmlSchema( ) method, 796 Rect variable, 1123

Rectangle class, 438 Rectangle element, 1090 Rectangle type, 132, 1125

<Rectangle> element, 1120, 1136 <RectangleGeometry> type, 1131–1132 rectangular array, 117

rectWidth members, 1123 Redirect( ) method, 1199 redirecting users, ASP.NET, 1200 ref keyword, 107, 111

ref parameter, 108, 110 /reference: flag, 1321 reference parameters, 110 reference types, 107, 316 references, 444

differences from classes and objects, 245 memory management using, 246–247 new keyword, 246

reflection, 527 Reflector tool, 31 reflector.exe file, 1146

ReflectOverQueryResults( ) method, 451 RefreshGrid( ) function, 1262 regasm.exe command-line tool, 1310 #region, preprocessor directive, 411 Region type, 987

Register( ) method, 1062

registered data provider factories, ADO.NET, 750–751

registration of events, 365–367 RegularExpressionValidator control, ASP.NET,

1231, 1233 RejectChanges( ) method, 786, 802 Relations property, 785

relaxed delegates. See covariance Release( ) method, 247, 1291, 1305–1306

<remarks> code comment, XML Elements, 177 RemotingFormat member, 793 RemotingFormat property, 785, 797

Remove( ) method, 87, 345, 704, 856, 864, 1255, 1257, 1266

RemoveAll( ) method, 1255, 1257, 1266 RemoveAt( ) method, 1255 RenderOpen( ) method, 1122

com/.apress.http://superindex at faster it Find

1360 I N D E X

RenderTransform property, 1135 RenderTransformOrigin property, 1135, 1144 RepeatBehavior property, 1138, 1140 RepeatButton control, 1056

RepeatButton type, 1071 Replace( ) method, 87 Request object, 1176, 1196 Request property, 1195, 1253 request states, 923 Request.Form collection, 1176

Request.QueryString( ) method, 1176 request/response cycle, HTTP, 1163 RequestType member, HttpRequest Type, 1196 RequiredFieldValidator control, ASP.NET,

1231–1232 ResizeMode attribute, 1113 resource dictionary, 1149

ResourceResolve event, System.AppDomain, 573 Response objects, 1176

Response property, 1195, 1198, 1253 Response.Cookies property, 1267 Result property, 928

Resume( ) method, Thread type, 595 retained mode graphics, 1117

return value, interface used as, 280–281 [return] attribute, 852

<returns> code comment, XML Elements, 177 Reverse( ) method, 119

ReverseDigits( ) method, 425–426 Reverse<T>( ) method, 468

rich controls, 1213 RichTextBox control, 1056 RichTextBox property, 1083

Root property, DirectoryInfo class, 664 RotateTransform object, 1144 RotateTransform type, 1135–1136 roundButtonTemplate template, 1156 round-trip engineering, 621, 623–626 routed events, 1065

RoutedEventArgs type, 1066 RoutedEventHandler delegate, 1014, 1064 RoutedUICommand type, 1099 <RowDefinition> element, 1090 RowError property, 789

RowPostPaint event, 808 RowState property, 789, 791, 793

Run( ) method, System.Window.Application, 1006 runat="server" attribute, 1185, 1238

runtime, 22, 174, 919

Runtime Callable Wrapper (RCW), 1283, 1287, 1289 RunWorkerAsync( ) method, 614 RunWorkerCompleted event, 614 RunWorkerCompletedEventArgs.Result property,

615

S

SAFEARRAY COM type, 1303

SaveAs( ) method, 1196

SaveAsBinaryFormat( ) method, 718 SaveFileDialog type, 996–997

saving CIL code using ildasm.exe, 621, 623–624 SavingsAccount class, 154, 157

sbyte data type, 80 <ScaleTransform> type, 1135–1136 Scheduling services, WF, 920 Scope member, 703

<script> block, 1185, 1192, 1201, 1207, 1251 scripting languages, 1173 ScrollableControl class, 971

ScrollBar control, 1056, 1103 ScrollBar type, 1007, 1106 <ScrollBar> type, 1103 <ScrollViewer> type, 1093 sealed classes, 195–196, 202 sealing, 188

security policy, 688

<see> code comment, XML Elements, 177 <seealso> code comment, XML Elements, 177 Seek( ) method

BinaryWriter class, 682 Stream class, 676

Select( ) method, 461, 803, 819 select operator, 463, 465 select statement, 467 SelectCommand member, 808 SelectCommand property, 809 SelectedIndex object, 1079 SelectedIndex property, 1078

SelectedItem property, 1078, 1115 SelectedShape.Circle variable, 993 SelectedShape.Rectangle variable, 993 SelectedValue property, 1078 SelectionChanged event, 1109, 1154 SelectionChanged handler, 1112

Semaphore type, System.Threading Namespace, 594

SendAPersonByValue( ) method, 134 <Separator> element, 1095 SequenceActivity, WF, 921 Sequence.Where<T>( ) method, 460

Sequential Workflow console application, 918, 926 Sequential Workflow Library project, 946 SequentialWorkflowActivity type, 926 <Serializable> attribute, 1272, 1278

serialization

BinaryFormatter object graph contents, 725 collections, 723–724

customizing using attributes, 728–729 customizing using ISerializable, 726–727 definition, 711

GetObjectData( ) method, 726–727 IFormatter interface, 716

object graph, 712 ObjectIDGenerator, 724 overview, 711

persisting user preferences example, 712

public and private fields, public properties, 714 Serializable attribute, 713

type fidelity, 717 [Serialization] attribute, 996

SerializationFormat.Binary file, 797 serializeAs attribute, 1274, 1278 Serialized attribute, 543

server controls in ASP.NET, 1207–1209 /server option, 848

Server property, 1195, 1203, 1253 server-side script, 1175

ServerVariables member, HttpRequest Type, 1196 service behavior, 894

service contracts, 880 service types, 880 <service> element, 889, 894 Service1.cs file, 904

[ServiceContract] attribute, 880, 885 ServiceContractAttribute type, 886 serviced component, 869 ServiceHost type, 879

serviceHostingEnvironment subelement, 894 service-oriented architecture (SOA), 874 ServiceReference namespace, 898

services subelement, 894 <services> element, 889 Service.svc file, 914

session cookies, ASP.NET, 1267 session data, ASP.NET, 1263–1266 Session property, 1195, 1247, 1253 session variable, 1247

Session_End( ) event handler, 1253, 1263 Session_Start( ) event handler, 1252, 1263 SessionID property, 1266

SessionMode property, 887

sessionState element, Web.config, ASP.NET, 1204, 1269–1270

<sessionState> element, 1204, 1269–1271 Set scope, 167 set_SocialSecurityNumber( ) method, 170 SetDriverName( ) method, 147 SetF1CommandBinding( ) method, 1101

SetLength( ) method, Stream class, System.IO, 676 <Setter> element, 1148, 1152–1153, 1159 setup.exe application, 709

SetValue( ) method, 1063 shadowing, 208 Shadows keyword, 209

shallow copy, cloneable objects, 295–298 Shape base class, 208, 1125

Shape type, 162, 205, 1119, 1124 ShapeData namespace, 992 ShapeData type, 995 ShapeData.cs file, 992 Shape-derived types, 1119–1120 ShapeInfo member variable, 132 ShapePickerDialog class, 993 *.shapes files, 997

I N D E X 1361

shared constructor, 158 Shared field data, 154 Shared keyword

overview, 152–153

Shared constructors, 157–158 Shared data, 154–156

Shared methods (and fields), 153–154 shared members, 152

Shared method, 155 Shared properties, 171–172 SharpDevelop, 48–50

Shift property, 978

shopping cart application, ASP.NET, 1264–1266 ShoppingCart class, 1272

short data type, 80 short variables, 95

Show( ) method, 971, 982, 1012 Show Visual Tree button, 1032 ShowDialog( ) method, 972, 982

ShowEnvironmentDetails( ) method, 75 ShowInstructions method, 927 ShowInTaskbar property, 971, 979 ShowMessageBox property, 1235 ShowSummary property, 1235 Shutdown( ) method, 1014

Silverlight, 1004 simple controls, 1213

SimpleArrays( ) method, 114 SimpleComServer, 1284–1285, 1294 SimpleCSharpApp, 69 SimpleInventory.xml file, 860 SimpleLine object, 1126 SimpleVSWinFormsApp, 961 SimpleWFApp.cs file, 957 SimpleXamlApp.csproj file, 1024 SimpleXamlApp.exe program, 1142

SimpleXamlPad.exe application, 1048–1052, 1153 single file code model, ASP.NET, 1179

single logical parameter, 111 single-file assemblies, 12 single-file page model, 1179 SinglePageModel, 1192 single-threaded apartment, 965

sink object, callback interfaces, 305, 307–308 *.sitemap file, 1219

SiteMapDataSource component, 1220 <siteMapNode> element, 1219 SiteMapPath type, 1221

SiteMapPath widget, 1226

Size property, ADO.NET DbParameter, 767 sizeof keyword, 410

SkewTransform object, 1136

* skin files, 1238–1239

SkinID member, System.Web.UI.Control, 1210 SkinID property, 1210, 1240

Sleep( ) method, Thread type, 594 Slider control, 1056

sn utility, 1322

com/.apress.http://superindex at faster it Find