|
|
Авторизация |
|
|
Поиск по указателям |
|
|
|
|
|
|
|
|
|
|
Hogenson G., Lippman S. (Ed.) — C++/CLI: The Visual C++ Language for .NET |
|
|
Предметный указатель |
Classes, EventSender class 200
Classes, Exception class 260
Classes, Exception classes 262—263
Classes, indexed properties 177—184
Classes, interface classes 19—20
Classes, interface name collisions 241
Classes, KeyValuePair class 309
Classes, Marshal class 328
Classes, multiple inheritance of class types 211
Classes, order of initialization 227
classes, properties 173—177
Classes, properties, indexed properties 177—184
Classes, reference classes 14—15
Classes, sealed class syntax 221
Classes, sealed classes 220—222
Classes, serialization and deserialization 275
Classes, StringBuilder class 84—85
Classes, structures compared 9 117
Classes, Type class 279
Classes, using virtual functions in constructor 229
Classes, value classes 15—17
Classic C++, use of term in this book 2
Cleanup code, finally block 263 269
Cleanup, class destruction and cleanup 160—161
Cleanup, handling managed and unmanaged resources 167
Clear method, Array class 104
CLI programming 5
CLI programming, abstract classes and interfaces, compared 235
CLI programming, interface inheritance model 241
CLI programming, managed templates and generics compared 316
CLI programming, primitive types 11—12
Clone method, Array class 104
CLR (common language runtime), CLR XML doc format 359
CLR (common language runtime), detecting CLR compilation 358
CLR (common language runtime), garbage collection 1
CLR (common language runtime), link.exe, CLR programming 40
CLR (common language runtime), setting compilation mode 30
CLR (common language runtime), virtual machine 3
Clr compiler option see mixed mode
Clr:oldSyntax compiler option see managed extensions syntax
Clr:pure compiler option see pure mode
Clr:safe compiler option see safe mode
Clrcall calling convention 347 348
CLS (Common Language Specification) 321
Code substitutions, indexes 81
Code tag, XML documentation 359
Collect method, GC class, pitfalls of finalizers 170
Collect method, GC class, using destructor and finalizer 163
Collection classes, .NET Framework container types 304
Collection classes, ArrayList class 305—308
Collection classes, Dictionary class 308
Collection classes, generic collection classes 290—295
Collection classes, generic/nongeneric container classes 304
Collection classes, using collection class interfaces 305
Collections namespace 304
Collections, backing property with collection 180
Collections, collection owning and deleting objects 302
Collections::Generic namespace 304
COM interop 318 328—329
COM interop, interop with COM HRESULTs 354
COM libraries, import directive 37
Combine method, Delegate class 186
Command line arguments, compilation modes available for 363
Command line arguments, using 9
Comments, XML documentation 359
Common Intermediate Language (CIL) 3
Common Type System see CTS
Compare method, String class 80 81
CompareOrdinal method, String class 81
CompareTo method, IComparable interface 246
CompareTo method, String class 80 81
comparing strings 76 80—81
Compilation modes 3
Compilation modes, detecting CLR compilation 358
Compilation modes, features available for all modes 362
Compilation modes, Visual C++ 2005 30—32
Compile-time constants, const correctness 126
Compile-time constants, literal fields 123 124
Compile-time constants, static constants 124
Compiler options, clr (mixed mode) 31
Compiler options, clr:oldSyntax 32
Compiler options, clr:pure (pure mode) 30
Compiler options, clr:safe (safe mode) 30
Compiler options, doc 359
Compiler options, FU (Force Using) 38
Compiler options, LD 39
Compiler options, LN 33
Compilers, compiler restrictions on generic types 289
Compilers, how compilers understand expressions 56
Compilers, managed templates and generics compared 315
Complex class, defining static operators 205
Complex class, representing complex numbers 203
Compound assignment operators (+=, -=, etc.) 22
Concat method, String class 76
Concatenation of strings 76 79
ConfirmPlay method, Scrabble game 144
Connections, pitfalls of finalizers 170
Console class 86—87
Console class, basic I/O functions 86
Console class, properties exposed for stdin/stdout/stderr 87
Console class, ReadLine method 87
Console class, Scrabble game 128
Console class, Write method 86
Console class, WriteLine method 81
Const correctness 126
Const fields, managed classes 121
Const reference 55
Constants 118 123
Constants, initonly fields 124—125
ConstrainedCopy method, Array class 104
Constraints, adding to MyList and ListNode 303
Constraints, class constraints 297—298
Constraints, gcnew constraint 300—301
Constraints, generic types using 296—304
Constraints, guaranteeing existence of an operator 316
Constraints, interface constraints 296—297
Constraints, multiple constraints 303—304
Constraints, reference type constraints 303
Constraints, value type constraints 301—303
Constructed types 289
Constructors, attribute constructors 271
Constructors, calling base class constructor 226
Constructors, copy constructors 55 121
Constructors, default constructors 118
Constructors, exceptions in 265—266
Constructors, inheritance 226—228
Constructors, initializing array elements with 95
Constructors, initonly fields 124
Constructors, managed types 118
Constructors, order of initialization 227
Constructors, reference and value types compared 118
Constructors, static constructors 119—120
Constructors, String class 76
Constructors, virtual functions in 228—230
const_cast 209 366
container classes see collection classes
Container types, .NET Framework 304
context switch 327
Context switch, thunk 347
Context switch, unnecessary context switches 348
Context switch, using native libraries without P/Invoke 330
Contextual keywords see keywords
conversion operators 206—210
Conversion operators, using explicit keyword with 206—208
Conversions, enumerated types 112
Conversions, explicit casts 206
Conversions, handling managed and unmanaged resources 167
Conversions, marshaling and 159
Conversions, using native objects in managed types 158
ConvertAll method, Array class 104
| Converting strings with other data types 85—86
Copy constructors, parameter to 55
Copy constructors, reference types 63 121
Copy constructors, using tracking references with 55
Copy constructors, value types 121
Copy method, Array class 102 104
Copying arrays 104
copying strings 76
CopyTo method, Array class 104
Cout, using with String class 91
CreateDomain method, AppDomain class 284
CreateInstance method, Activator class 280
CreateInstance method, AppDomain class 284
CreateInstance method, Array class 104
Cross-language interoperability 319—322
Cross-language interoperability, CLS compliant language features 321
Cross-language interoperability, consuming wrapped global function in C# 320
Cross-language interoperability, creating interface in C++ 320
Cross-language interoperability, description 317
Cross-language interoperability, pure mode and safe mode 319
Cross-language interoperability, using interface in Visual Basic 320
Cross-language interoperability, wrapping global function 319
CRT (C Runtime) library, compilation modes available for 362
CRT (C Runtime) library, compiling with 90
CRT (C Runtime) library, secure variants of 91
CRT (C Runtime) library, using native libraries without P/Invoke 329
CRT file pointer 165
CTS (Common Type System) 3—5
CTS (common type system), aggregate types 12—14
CTS (common type system), primitive types 4 11—12
Current property, CardEnumerator class 249
Current property, IEnumerator 79
Data marshaling see marshaling
Data storage, reference and value types compared 118
Data types see types
Debugging, displaying Object as string 45
Declaration specifier for calling conventions 348
Declaration specifier, clr:pure mode 31
Declaration specifier, compilation modes available for 363
Declaration specifier, compiling native class into DLL 325
Declaration specifier, double thunking 348
Deep copy, Scrabble game 127
Deep copy, strings 76
Default indexed properties, arrays in classes 108
Default indexed properties, backing property with collection 180
Default indexed properties, defining/using 178
delegate keyword 356
Delegates 23—26 184—190
Delegates, assigning to static method 25
Delegates, asynchronous delegates 188—190
Delegates, creating delegate type 23
Delegates, customizing add/remove/raise event methods 194
Delegates, declaring 25
Delegates, declaring events and event handlers 191
Delegates, events and 23 26
Delegates, hooking up and firing events 26
Delegates, invocation list of functions 184
Delegates, MulticastDelegate class 184
Delegates, overloaded functions 184
Delegates, referencing nonstatic member function 25
Delegates, return values 185
Delegates, syntax 368
Delegates, unrelated to System::EventHandler 196
Delegates, using delegate with property accessor 176
Delegates, walking through invocation list 186 187
Delete command, class destruction and cleanup 161
Delete command, controlling when object goes out of scope 49
Delete command, not calling delete on managed objects 52
Dereferencing handles 54 56
Derived classes, finalizers 232
Derived classes, order of initialization 227 228
Derived classes, using virtual functions in constructor 229 230
Derived functions 228
Design patterns, asynchronous delegates 188
Design patterns, pattern for using destructor and finalizer 163
Destructors, auto_gcroot template 160
Destructors, calling 231
Destructors, calls between destructors and finalizers 168
Destructors, class destruction and cleanup 160—161
Destructors, handling managed and unmanaged resources 167
Destructors, inheritance 231
Destructors, reference and value types compared 118
Destructors, static destructors 120
Destructors, using destructor and finalizer 162 163
Destructors, using native objects in managed types 159
Destructors, using this pointer 153
Destructors, virtual destructors 231
Developer platforms, .NET Developer Platform 29—41
Dictionaries 308—309
Dictionary class 308
Dictionary class, multiple constraints 304
Directives, using 37—38
Dispose method, class destruction and cleanup 161
Dispose method, controlling when object goes out of scope 50
Dispose method, traversing linked list with for each 295
DivideByZeroException 260
DLL 6
DLL, compiling native class into 324
DLL, generating 39
DLL, invoking native functions in safe mode 322
DllImport attribute, calling Win32 function in C++/CLI 322
DllImport attribute, CallingConvention property 324 326
DllImport attribute, CharSet parameter 323
DllImport attribute, EntryPoint property 323 324
Doc compiler option 359
Documentation, XML 359—362
Domains, application 283—284
Double thunking 348
Double type 11
DrawTile method, Scrabble game 134
Dynamic type 280
Dynamically loaded types, interfaces and 255—257
dynamic_cast 208 209
Dynamic_cast, C++/CLI alternative to C++ 18
Dynamic_cast, casting in inheritance hierarchies 233
Dynamic_cast, syntax 365
Elements, ConvertAll method, Array class 104
Elements, deletion and insertion in arrays 108
Elements, FindLast method, Array class 104
Elements, GetValue method, Array class 105
Elements, IndexOf method, Array class 105
Elements, SetValue method, Array class 105
Encoding, specifying for output file 87
EndInvoke method, Delegate class 188
Entry points, main method 8 9 364
Entry points, managed entry point 347—348
Entry points, native entry point 347—348
Entry points, unnecessary context switches 348
EntryPoint property, DllImport attribute 323 324
Enum class 17—18 111
Enum class keyword 357 365
Enum class, Flags attribute 113—114
Enum class, Flags attribute, formatting with 115
Enum class, Format method 115
Enum class, safe_cast 18
Enum class, Scrabble game 128
Enum class, underlying type 112
Enum struct keyword 357
Enumerated types 110—116
Enumerated types, conversions 112
Enumeration values 114—116
Enumerators, changing collection 249
Enumerators, GetEnumerator method 104
Enumerators, IEnumerable interface 248—255
Enumerators, IEnumerator interface 248—255
Equality, arrays 106—107
Equals method, Array class 104 106
Equals method, String class 76
Error handling, files 88
Error property, Console class 87
|
|
|
Реклама |
|
|
|