|
|
Авторизация |
|
|
Поиск по указателям |
|
|
|
|
|
|
|
|
|
|
Hogenson G., Lippman S. (Ed.) — C++/CLI: The Visual C++ Language for .NET |
|
|
Предметный указатель |
Errors, exceptions and errors from native code 269
Errors, GC hole 340
Errors, interop with Win32 error codes 351—352
Errors, swallowing 269
event handlers 26 see also events
Event handlers, accessor methods 191 193
Event handlers, customizing methods for 191
event keyword 191 356
EventArgs class 201
EventHandler Class 199
EventHandler type 191 192 196
EventProcessor type 196
EventReceiver class 200
Events 191—203 see also event handlers
Events class 191
Events, C++/CLI events introduced 191
Events, declaring events 26
Events, declaring events and event handlers 192
Events, delegates and 23 26
Events, description 127
Events, event receivers and senders 199—201
Events, hooking up and firing 26
Events, interfaces with properties and 240
events, introduction 26
Events, locking add and remove accessors 193
Events, locking raise method 193
Events, providing custom event data 201
Events, reserved names 203
Events, syntax 369
Events, type 26
Events, using EventArgs Class 201
EventSender class 200
Example tag, XML documentation 359
Except structured exceptions 348—351
Exception class, creating custom exceptions 262—263
Exception class, InnerException property 261
Exception class, Message property 260
Exception class, Source property 260
Exception class, StackTrace property 260
Exception class, table of exceptions 260
Exception class, using properties of 261
Exception handling, C++/CLI and classic C++ compared 259
Exception handling, coexistent C++ and CLR exception handling 353
Exception handling, guidelines 268
Exception handling, handling which exceptions 269
Exception tag, XML documentation 359
Exceptions 259—269
Exceptions, ArgumentException 309
Exceptions, cascading 261
Exceptions, CLS compliant alternative 321
Exceptions, compilation modes available for 363
Exceptions, creating custom exceptions 262—263
Exceptions, exception specifications feature 268
Exceptions, exceptions and errors from native code 269
Exceptions, exceptions in constructors 265—266
Exceptions, finally block 263—264
Exceptions, interop with C++ exceptions 352—354
Exceptions, interop with COM HRESULTs 354
Exceptions, interop with structured exceptions 348—351
Exceptions, InvalidCastException 210
Exceptions, KeyNotFoundException 309
Exceptions, pitfalls of finalizers 170
Exceptions, properties 260—262
Exceptions, rethrowing in catch block 269
Exceptions, syntax 371
Exceptions, table of 260
exceptions, throwing 259
Exceptions, throwing in constructors 265
Exceptions, throwing objects, not exceptions 266—269
Exceptions, throwing objects, not exceptions, warning 268
Exceptions, unhandled exceptions 261
Exceptions, wrapping nonexception object 267
ExecuteAssembly method, AppDomain class 284
Exists method, Array class 104
Exit event 191 194 195 197
Explicit delete 49
Explicit interface implementation 371
explicit keyword 206—208
Explicit keyword, compilation modes available for 363
exponentiation operator 203
Expressions, how compilers understand 56
Extensions, enabling standard extensions for C++/CLI 3
F() function signatures 70
Fields, const fields 121
Fields, initonly fields 124—125
Fields, literal fields 121—124
Fields, properties and 173
File class, opening StreamWriter 87
finalizers 161—170
Finalizers, calling 232
Finalizers, calls between destructors and 168
Finalizers, closing stream in 168
Finalizers, handling managed and unmanaged resources 167
Finalizers, inheritance 232—233
Finalizers, pattern for using destructor and 163
Finalizers, pitfalls of 168—170
Finalizers, syntax 367
Finalizers, using destructor and 162 163
Finalizers, using native objects in managed types 159
Finalizers, using this pointer 153
finally blocks 263—264
Finally blocks, cleanup code 269
Finally keyword 263 356
Find method, Array class 104
FindAll method, Array class 104
FindIndex method, Array class 104
FindLast method, Array class 104
FindLastIndex method, Array class 104
FindWinner method, Scrabble game 137
Flags attribute, Enum class 113—114
Flags attribute, enum formatting with Flags attribute 115
Floating-point control 362
For each keyword 357
For each statement 10 364
For each statement, generic collection classes 290
For each statement, IEnumerable interface 248 249
For each statement, iterating over dictionary collection 309
For each statement, iterating with 307
For each statement, traversing linked list with for each 291
For each statement, using for each to traverse arrays 98
ForEach method, Array class 104
Format characters 114 115
Format method, Enum class 115
Format method, String class 81 82
Format method, String class, Scrabble game 129
formatting strings 81—82
Formatting strings, numeric string formatting 82—84
FreeHGlobal method, Marshal class 347
Friend assemblies 39
Friend functions and classes 203
Friend functions and classes, global friend functions 205
Friend operators 205
FU (Force Using) compiler option 38
fully qualified names 6
FUNCSIG macro 325
function pointers 184
Functions see also methods
Functions, adding to/removing from invocation list 184
Functions, asynchronous delegates 188
Functions, calling with tracking reference 54
Functions, changing value type in 65
Functions, checking function completion 189
Functions, declaring any function abstract 219
Functions, declaring generic functions 286
Functions, delegates and 184
Functions, derived functions 228
Functions, explicitly specifying function to override 217
Functions, friend functions 203 205
Functions, function signatures 70
Functions, function taking handle type 52
| Functions, generic functions 286—288
Functions, global functions 319
Functions, implementing inherited functions separately 243
Functions, instance functions 220
Functions, list of see also methods list
Functions, managed functions 362
Functions, MessageBox 322 323 329 330 331
Functions, native functions 327 362
Functions, overloaded functions 184
Functions, parameterized functions 285
Functions, passing value/reference types to 62
Functions, polymorphic functions 235
functions, Pow 203
functions, printf 90 91
Functions, printf_s 91
Functions, sealed modifier 221
Functions, special member functions and inheritance 225—233
Functions, swap_value 65
Functions, thunk 347
Functions, virtual functions in constructor 228—230
Functions, Win32 323
GameBoard array, Scrabble game 131
Garbage collection 1—2
Garbage collection, auto_gcroot template 159
Garbage collection, class destruction and cleanup 161
Garbage collection, creating managed objects with gcnew 2
Garbage collection, finalizers 161—170
Garbage collection, GC hole error 340
Garbage collection, gcroot template 159
Garbage collection, managed heap 2
Garbage collection, pitfalls of finalizers 168
Garbage collection, roots 159
GC class, Collect method 163
GC hole error 340
gc-lvalues 56—58
gc-rvalues 56—58
gcnew constraint 300—301
gcnew keyword 355
gcnew keyword, creating managed objects with 2
gcnew keyword, initializing arrays with 93
gcnew keyword, initializing arrays without 94
gcnew keyword, syntax 364
gcnew keyword, using in generic type 300
gcnew keyword, using managed array type 15
gcroot template, auto_gcroot compared 342
gcroot template, containing handle in native type 342
gcroot template, syntax 374
gcroot template, using managed types in native classes 159
Generic classes, ArrayList class 305—308
Generic classes, assuming existence of an operator 315
Generic classes, Dictionary class 308
Generic classes, generic/nongeneric container classes 304
Generic classes, KeyValuePair class 309
Generic classes, syntax 372
Generic classes, using reference or value types 70
Generic collection classes 290—295
Generic functions 286—288 373
Generic interfaces 313 314
Generic keyword 285 355
Generic types 27—28 288—290
Generic types, class constraints 297—298
Generic types, compiler restrictions on 289
Generic types, constructed types 289
Generic types, defining generic List class 27
Generic types, gcnew constraint 300—301
Generic types, interface constraints 296—297
Generic types, iterating through generic collection 28
Generic types, multiple constraints 303—304
Generic types, parameters 285—286
Generic types, reference class using generic List as property 27
Generic types, reference type constraints 303
Generic types, reference/value types as type parameters 298—300
Generic types, treating unknown type as handle 299
Generic types, type safety 289
Generic types, using constraints 296—304
Generic types, value type constraints 301—303
Generics 285—308 see also generic types
Generics, declaring generic function 286
Generics, declaring multiple generic parameters 286
Generics, managed templates compared 309 314
Generics, reasons for generics in C++/CLI 285
Generics, templates compared 285
Generics, using a generic list 110
Generics, using collection class interfaces 305
Generics, using generic list for strings 298
get method see accessor (get and set) methods of properties
GetAttributes method, Type class 280
GetCustomAttribute method, Attribute class 279
GetEnumerator method, Array class 104
GetEnumerator method, IEnumerable interface 248
GetEnumerator method, IEnumerable interface, traversing linked list with for each 295
GetHashCode method, Array class 104
GetInvocationList method, Delegate class 187
GetLastError method, Marshal class 351
GetLastWin32Error method, Marshal class 351
GetLength method, Array class 104
GetLongLength method, Array class 104
GetLowerBound method, Array class 105
GetMembers method, Type class 280
GetMethods method, Type class 280
GetPlayStartPosition method, Scrabble game 141
GetPlayType method, Scrabble game 140
GetTilesForPlay method, Scrabble game 141
GetType method, Array class 105
GetType method, Type class 280
GetTypes method, Assembly class 279
GetUpperBound method, Array class 105
GetValue method, Array class 105
GetWorkingTiles method, Scrabble game 145
Global Functions 319
Global functions, CLS compliant alternative 321
Global functions, consuming wrapped global function in C# 320
Global functions, wrapping 319
GlobalFree method 347
Handles, abstract classes 220
Handles, accessing reference types 4
Handles, array address 93
Handles, array of handles in Scrabble game 127
Handles, auto_handle template 58—60
Handles, C++/CLI exceptions 259
Handles, C++/CLI stack semantics 68
Handles, caret (^) character 7
Handles, const_cast 209
Handles, containing handle in native type 342
Handles, creating handle to object using % 66
Handles, dereferencing handles 54
Handles, function taking handle type 52
Handles, gc-lvalues and gc-rvalues 56
Handles, gcroot and auto_gcroot compared 343
Handles, generic types 27
Handles, holding values of native OS handles 323
Handles, introduction 1 2
Handles, main method arguments 9
Handles, method requiring handle 52
Handles, object semantics for reference types 43
Handles, passing handle by reference using ^% indirection 54
Handles, passing object by reference in C++/CLI 62
Handles, passing value types as handles 68—70
Handles, pitfalls treating object on heap as if on stack 52
Handles, pointers compared 2
Handles, reference types 5
Handles, return values 73
Handles, syntax 363
Handles, temporary handles 66—68
Handles, tracking references and 53
Handles, treating object on heap as if on stack 51
Handles, treating unknown generic type as 299
Handles, using command line arguments 10
Handles, using handle to value type 68
Handles, using managed array type 15
|
|
|
Реклама |
|
|
|