A
A
Abort( ), 741–745
Abs( ), 193, 618
abstract type modifier, 294, 301, 305
Access control, 165–172
guidelines for using public and
private, 167–168
Access modifiers/specifiers, 110, 116,
165–166, 261–264, 458
Accessors, 245
event, 424–429
indexer, 246, 248–249
property, 254–255, 259–260
using access modifiers with,
261–264
Acos( ), 618
Action delegate, 653–654
add event accessor, 425, 428
Add( ), 631, 752, 753, 763, 776, 777,
787, 790, 792, 794, 796, 852–853,
859, 860, 864
and collection initializers, 819
AddAfter( ), 784
AddBefore( ), 784
AddFirst( ), 784
AddLast( ), 784
AddMemoryPressure( ), 658
AddRange( ), 756, 780
ADO.NET Datasets, 546
All( ) extension method, 578–579
AllKeys property, 834
AllowMultiple named parameter, 491
AND operator
bitwise (&), 73–76
logical (&), 67, 68, 70, 71, 229–235
short-circuit or conditional
(&&), 67, 70–71, 229, 231–235
And( ), 772
Any( ) extension method, 578–579
Application class, 851
Application.EnableVisualStyles( ), 851
Application.Exit( ), 858
ApplicationException, 354
ArgumentException, 372, 378, 380,
381, 384, 802, 805
ArgumentNullException, 372, 378,
380, 381, 384, 397, 753, 777, 830
ArgumentOutOfRangeException,
372, 758
Arguments, 21, 116, 122
command-line, 200–202
871
www.freepdf-books.com
872
C # 3 . 0 : T h e C o m p l e t e R e f e r e n c e
Arguments
(continued)
passing, 174–176
type.
See
Type argument(s)
variable number of, using,
182–185
Arithmetic operators, 24, 63–67
Array class, 641–654, 762
methods, table of, 642–647
properties, table of, 641–642
Array.ForEach( ).
See
ForEach( )
Array(s), 137–152
array of, 144, 146
boundaries, 141, 338
boundary errors, using indexer
to prevent runtime exceptions
caused by, 246–249, 252–254
boundary errors, using a
property to prevent runtime
exceptions caused by, 256–259,
262–264
copying an, 651–652
custom, using indexers and
properties to create, 264–268
dynamic, 268, 755, 779
and fixed-size buffers, 596–598
foreach to cycle through, using,
153–156
general forms of, 137–138,
141, 142
and the IEnumerable
interface, 546, 547, 550, 566, 576
implemented in C# as objects,
137–138, 148
implicitly typed, 151–152
indexing (accessing elements of),
138–139, 142, 145
initializing, 140, 143–144
I/O using, 392–394
jagged, 144–146, 150–151, 152
Length property of, 148–151
and LINQ, 151, 152, 546
multidimensional, 141–146
null-terminated, 593
one-dimensional, 137–141
parameter params, 182–185
of pointers, 595
pointers and, 591–593
rectangular, 144
reference variables, assigning,
146–147
returned from methods, 187–188
reversing an, 650–651
sorting, 648–650
searching, 155–156, 648–650
of strings, 160–161
ArrayList class, 749, 755–762, 774, 779
methods, table of, 756–758
ArrayTypeMismatchException, 353
Arrow operator (–>), 589
as operator, 459, 460–462
ascending contextual keyword,
550, 553
ASCII character set, 41, 363
ASCIIEncoding, 664
Asin( ), 618
ASP.NET, 457, 821
AsQueryable( ) extension method, 752
AsReadOnly( ), 642
Assembly, 166, 457–458
alias, 610–611
and DLL files, 480–481
friend, 605
and reflection, 475–481
Assembly class, 476
Assembly property, 464
Assignment operator(s)
=, 24, 71–72
arithmetic and logical
compound (
op
=), 72
bitwise compound, 81
and operator overloading,
239–240
Assignments
reference variables and, 115–116,
146–147, 328, 329–330
structure, 328–329
type conversion in, 55–58
Atan( ), 618
Atan2( ), 618
Attribute class, 483, 484, 485
Attributes, 459, 464, 483–493
attaching, 484–485
built-in, 491–493
creating, 484
and named parameters, 487–490
retrieving, 485–486
Attributes property, 464
AttributeTargets enumeration, 491
AttributeUsage attribute, 484, 491
AuthenticationLevel property, 825
AutoResetEvent class, 737, 739
Average( ) extension method, 578–579
Do'stlaringiz bilan baham: |