C#
see also individual keywords.
CLS compliance, and, 10
using with Visual Basic .NET in multi-file
assembly, 322
call command, 22
case sensitivity, 128
chaining constructors
Manager class example, 187
class hierarchy, creating, 270
see also inheritance.
class types, 33
assemblies and, 37
compared to interfaces, 51
compared to structures, 23, 34
creating class objects, 40
defining accessibility, 37
access modifiers, 38
defining classes, 34
defining data members, 35
example, 36
destructor methods, 41
disposing class objects, 41
inheritance, 271
introduction, 34
nested classes, 38
Clone method, ICloneable interface, 198
cloning objects, 196
copy constructor, 196
ICloneable interface, 198
CLR (Common Language Runtime), 10
automatic memory management, 176
object creation optimization, 176
stack frame and invoking methods, 85
CLS (Common Language Specification), 9
C# and CLS compliance, 10
MSIL and, 10
non .NET compliant languages, 11
types, 10
code organization, 297
Collect method, GC class, 183
Combine method, Delegate class, 224, 228, 244
defining your own registration methods, 255
command-line
building and running example application, 311
Common Language Runtime
see CLR.
Common Language Specification
see CLS.
Common Type System
see CTS.
CompareTo method, IComparable interface, 27
comparison operators
parameters, 153
table and description, 152
concurrency issues, 89
configuration element
application configuration file, 332
configuration files
when to use, 61
constants, 56
defining, 35
functionality, 56
magic numbers example, 56
when to use, 61
constructors, defining, 35
constructors, 73, 175
calling a base class constructor, 188
BasicShape example, 188
Square example, 189
chaining constructors, 187
defining class constructors, 179
object lifecycle, and, 175
private constructors, 189
setting accessibility levels, 74
static constructors, 191
Contains method, ArrayList class, 149
Control class, System.Windows.Forms namespace
CreateGraphics method, 220
conversion operators, 193
explicit example, 193
explicit_conversion example, 193
implicit example, 193
copy constructor
cloning objects, 196
Teacher class example, 197
Copy method, Array class, 44
copy_ctors example
copy constructor, 197
copy-by-reference semantics
reference types, 14
copy-by-value semantics
value types, 12
copy-on-write
design patterns, 211
CopyTo method, Array class, 47
Count method, ArrayList class, 150
CreateGraphics method, Control class, 220
CTS (Common Type System), 9
C# primitive types, and, 10
organization, 9
reference types, 9
value types, 9
types, 9
culture-specific assemblies
applications, deploying as private assemblies, 331