M
M
M and m suffixes to specify a
decimal, 40, 46
Main( ), 21, 110, 116, 200–202, 205,
480–481
and command-line arguments,
200–202
MainMenu class, 859, 860, 862,
863, 864
MainMenuStrip property, 864
Managed code, 9, 585, 586
Manifest, assembly, 457
ManualResetEvent class, 737–739
Math class, 38, 39, 193, 617–623
methods, table of, 618–621
Max( ), 619
extension method, 578–579
MaxGeneration property, 657
MaxValue field, 624, 628, 630, 635
Member(s), class, 12, 109
access and inheritance, 272–276
controlling access to, 110,
165–172
dot operator to access, 111,
119, 205
static, 205
MemberInfo class, 463–464, 465,
472, 485
MemberType property, 463
MemberTypes enumeration, 463
MemberwiseClone( ), 306, 659,
660, 662
Memory allocation
using new, 115, 130, 131
using stackalloc, 596
Memory management, 657–658
MemoryStream class, 365, 392–394
Menu class, 859, 860
Menu property, 859, 861
Menu(s), Windows, 849, 852, 859–866
creating a new-style, 863–866
creating traditional, 859–863
MenuItem class, 859, 860, 864
MenuItems property, 859, 860, 864
MenuStrip class, 859, 863, 864
Message box, 856–858
Message property of Exception,
351–352
MessageBox class, 856
MessageBoxButtons enumeration, 856
Metadata, 8, 483
type, 457
MetadataToken property, 463
Method property, 826, 835
Method(s), 12, 21, 116–126
abstract, 301–304, 311
anonymous, 408–413, 417,
429, 430
base to access hidden, using,
283, 284–285
calling, 119, 469–471
class factory, 186–187
conditional, 491–492
and covariance and
contravariance, 406–408
delegates and, 399–413
dispatch, dynamic, 294
dot operator (.) and, 111, 119, 205
extension.
See
Extension
methods
extern, 609–610
general form of, 116
generic.
See
Generic method(s)
group conversion, 402, 403
and interfaces, 311–312, 313
and multicasting, 404–406
operator, 213–214, 220–224
overloading, 188–193, 542–543
overriding.
See
Overriding,
method
and parameters.
See
Parameter(s)
partial, 7, 604–605
passing objects (reference types)
to, 172–176
private members accessed by
public, 165, 167, 168, 171
recursive, 202–205, 354
reflection to obtain information
about, using, 465–469
return type of, 121
returning arrays from, 187–188
returning from, 119–120
returning objects from, 185–188
returning a value from, 120–122
returning more than one value
from, 176, 178–181
scope defined by, 52–54
signature, 193
static, 21, 205, 206–208, 301
unreachable code and, 126
virtual, 291, 294–301, 305,
540–542
MethodBase class, 465, 472
MethodImplAttribute attribute,
728–729
MethodImplOptions.Synchronized
attribute, 728
MethodInfo class, 465, 469, 472
MFC (Microsoft Foundation
Classes), 848
Microsoft Intermediate Language
(MSIL), 8, 15, 457, 543
Min( ), 619–620
extension method, 578–579
MinusOne field, 635
MinValue field, 624, 628, 630, 635
Modifiers property, 369–370
Module property, 463
Modulus operator (%), 63–64
Monitor class, 723
MoveNext( ), 754, 778, 808, 809, 810,
811, 812
MSIL (Microsoft Intermediate
Language), 8, 15, 457, 543
Multicasting
delegates and, 404–406
and events, 421–422
Multiply( ), 632
Multitasking, 703–704
process-based, using, 747–748
thread-based vs.
process-based, 703
www.freepdf-books.com
880
C # 3 . 0 : T h e C o m p l e t e R e f e r e n c e
Multithreaded programming,
605–606 703–748
and deadlock, 727, 745
and race conditions, 727
synchronization and.
See
Synchronization
and threads.
See
Thread(s)
tips for effective, 747
Mutex, 730–733, 745
named, 733
MutexSecurity, 733
Do'stlaringiz bilan baham: |