C

C#

compared to C++ and Visual Basic .NET, 239

csc.exe compiler tool, 186

lock statement, 359

value types initialization, 73

initobj instruction, 75

viewing C# generated IL using ildasm.exe, 106

C++

#pragma managed preprocessor directive, 146

#pragma unmanaged preprocessor directive, 146

advantages in manipulating pointers, 126

assemblies, complications in compiling, 164

c1.exe compiler tool, 186

calling unmanaged code using IJW, 142

compared to C# and Visual Basic .NET, 239

developer-controlled memory management, 242

managed heap, using to acess, 126

optimizing performance using, 270

string types and performance, 263

viewing C++ generated IL using ildasm.exe, 111

c1.exe, C++ compiler tool, 186

callback method

AsyncCallback delegate, 353

asynchronous delegate invocation, 352

Monitor class, 366

Timer class, 376

WMI, using in, 382

callvirt command

IL delegates, 105

invoking virtual methods, 80

CAs, see certification authorities.

CAS (Code Access Security), 455

.NET Framework, in, 455

assemblies, 457

caspol.exe, 464

CLR, use in, 456

code group, 457

declarative security, 473

good coding practices, 474

imperative security, 471

membership conditions, 457

permission sets, 458

stack walk, 459

pupose of, 456

security policy, 458

Windows security, compared to, 457

caspol tool

testing certificate, 522

caspol.exe

CLR security, managing, 464

Cert2SPC command-line utility

creating certificate, 520

certificates, 514

creating certificate, 519

Cert2SPC command-line utility, 520

CertMgr command-line utility, 520

MakeCert command-line utility, 520

SignCode.exe, 521

PKCS #7 certificate, 514

reading certificate programmatically, 523

security issues, 518

testing certificate, 522

verifying digital signatures, 514

verifying using Authenticode, 517

verifying using certification authorities, 515

X.509 certificate, 514

certification authorities, 514

description of using, 515

EnTrust, 514

GlobalSign, 514

PGP, 514

root certification authorities, 515

Thawte, 514

verifying certificates, 515

Verisign, 514

CertMgr command-line utility

creating certificate, 520

ChkTrust command-line utility

testing certificate, 521

CIL, see IL.

CIM class schema

CIM_LogicalDisk class, 390

compared to Win32 extended schema, 390

CIM_LogicalDisk class

CIM class schema, 390

cipher text

cryptography, 498

circular Windows Form, 438

implementing using GraphicsPath class, 440

owner-draw controls, 443

class loader

.NET Framework, 118

classes with managed and unmanaged resources, 226

cleaning up, 226

reasons for not using, 229

CLI

compact implementation, 120

ECMA standard

MS-DOS stub, guidelines for actual value of, 160

type safety specifications in, 138

features, 119

kernel implementation, 120

partitions, 119

Rotor, 121

Shared Source CLI, 121

Close() method

compared to Dispose() method, 221

Closed event

directly handling messages, 426

Form class, 426

Closing event

directly handling messages, 426

Form class, 426

CLR

.NET Framework, compared to, 118

assembly processing procedure

in Windows 2000 and below, 163

in Windows XP, 164

C++ compiler assemblies, complications using, 164

CAS, use of, 456

declarative security, 473

imperative security, 471

locating assemblies, 182

compilers, compared to, 180

complication, 182

customizing default probing policy, 183

mscorcfg.msc configuration tool, 183

mscoree.dll, loading and hosting using, 163

mscorlib.dll, 182

partially trusted code, 468

permission sets, 467

permissions, 460

custom permissions, 478

probing policy

.config XML file, customizing using, 183

mscorcfg, customizing using, 183

Rotor, 121

security policy, 458

caspol.exe, management using, 464

code groups, 465

enterprise.config file, 464

mscorcfg.msc, management using, 464

overcoming loopholes, 476

security loophole, 477

security.config file, 464

user.config file, 464

Windows security, compared to, 475

XML configuration files, controlling using, 477

Shared Source CLI, 121

verifying file integrity, 164

CLR header, 163

CLS attributes, 101

CLS types

compared to IL data types, 24

code based security, see CAS.

code groups, CLR security

Internet Zone, 465

Local Intranet_Zone, 465

mscorcfg.msc configuration tool, setting using, 489

My_Computer_Zone, 465

Restricted_Zone, 465

Trusted_Zone, 465

CodeAccessPermission class, 461

Assert() method, 471

CAS, used in, 479

Demand() method, 478

Deny() method, 471

imperative security, 471

implementation of interfaces, 477

PermitOnly() method, 471

RevertAssert() method, 472

RevertDeny() method, 472

RevertPermitOnly() method, 472

System.Security, 461

CodeAssignStatement class

System.CodeDom, 324

CodeBinaryOperatorExpression class

System.CodeDom, 329

CodeCompileUnit class

CodeNamespace objects, 323

Namespaces property, 323

System.CodeDom, 323

CodeDom, 322

CodeDom provider, 324

CodeDomHelloWorld Sample, 325-31

converting DOM to source code, 324

creating a DOM, 322

disadvantages, 331

generating files in multiple languages, 332-35

mechanism of compiling, 326

multilanguage compatibilty, 326

reflections, compared to, 322

root of a Codedom, creating, 324

underlying principle, 323

CodeDomProvider class, 324

CreateCompiler() method, 325

CreateGenerator() method, 324

CodeEntryPointMethod class

System.CodeDom, 328

CodeGeneratorOptions class

BracingStyle property, 331

IndentString property, 331

System.CodeDom, 331

CodeMethodlnvokeExpression class

System.CodeDom, 323

CodeMethodReturnStatement class

System.CodeDom, 330

CodePrimitiveExpression class

System.CodeDom, 329

CodeTypeReference class

System.CodeDom, 328

CodeTypeReferenceExpression class

System.CodeDom, 328

CodeVariableDeclaration class

System.CodeDom, 329

COFF files

COFF header, 160

PE files, 159

Collect() method

GC class, 233

COM

.NET weak references different to COM, 231

reference counting, 208

COM Interoperability

P/Invoke, compared to, 144

performance issues, 264

ComboBox class

DrawMode property, 443

System.Windows.Forms, 443

comct132.dll

drawing Windows Form controls as XP controls, 435

loading version 6

manifest file, 435

Command line GreetMe example, 192-200

Common Information Model, see CIM class schema.

Common Intermediate Language, see IL.

Common Language Infrastructure, see CLI.

Common Language Runtime, see CLR.

Common Object File Format, see COFF.

compact implementation

.NET Framework, 119

Extended Array Library, 120

Extended Numerics Library, 120

Network Library, 120

Reflection Library, 120

XML Library, 120

compile-time IL errors, 56

debugging using peverify.exe, 60

invalid program, 57

syntax errors, 57

table of error types, 56

unverifiable code, 135

CompletedSynchronously property

IAsyncResult Interface, 346

Compuware profiler, 302

% Time in Method tab, 303

% Time with Children tab, 303

Methods tab, 303

Session Summary tab, 303

Concat() method

String class, 260

conditional branches, 38

evaluation stack, 39

programming IL, 36

table of branches, 38

confidentiality

asymmetric encryption, 505

goals of cryptography, 497

configuration provider

.NET Framework, WMI provider supplied in, 383

conservative collection algorithms

compared to exact collection algorithms, 206

constant expressions, evaluating

JIT optimizations, 244

constructors

description of .NET constructors, 70

IL reference types, 76

default constructor, 76

parameterized constructor, 76

IL value types, 70

default constructor, 71

parameterized constructor, 72

problems with, 71

Control class

Beginlnvoke() method, 434

initializing application, 428

multithreading, 424

Endlnvoke() method, 423

implementing windows procedure, 420

Invalidate() method, 422

Invoke() method, 424

Refresh() method, 422

Region property, 438

System.Windows.Forms, 420

Update() method, 422

WndProc() method, 425

directly handling messages, 426

Copy() method

IPermission interface, 483

cordbg command-line tool

debugging IL, 54

viewing JIT generated native code, 254

Create() method

PerformanceCounterCategory class, 296

CreateCompatibleBitmap() function

GDI, 450

CreateCompatibleDC() function

GDI, 450

CreateCompller() method

CodeDomProvider class, 325

CreateDecryptor() method

DESCryptoServiceProvider class, 504

CreateEncryptor() method

DESCryptoServiceProvider class, 501

CreateGenerator() method

CodeDomProvider class, 324

CreateGlobalFunctions() method

ModuleBuilder class, 318

CreateInstance() method

Activator class, 321

CreatePermission() method

SecurityAttribute class, 478

CreateType() method

TypeBuilder class, 321

CryptoAPI, Windows cryptography model, 518

cryptographic service providers, see CSPs.

cryptography, 495

certificates, 513

cipher text, 498

digital signatures, 508

encryption

asymmetric encryption, 504

key size, 506

symmetric encryption, 498

goals of cryptography, 497

hashing, 507

SHA-1, 508

key size, 506

legal issues, 506

plain text, 498

System.Security.Cryptography, 499

Windows cryptography model, 518

csc.exe, C# compiler tool, 186

CSPs

creating certificate, 519

Windows cryptography model, 518

culture, assemblies

.NET Framework, 172

invariant culture, 172

neutral culture, 173

satellite assemblies, cultures in, 189

specific culture, 173

CurrentThread property

Thread class, 341

CurrentUICulture property

Thread class, 195

custom attributes, 101

IL attributes, 101

cyclic references

handling using garbage collector, 210

handling using weak references, 209

reference counting, problems with, 209



Advanced  .NET Programming
Advanced .NET Programming
ISBN: 1861006292
EAN: 2147483647
Year: 2002
Pages: 124

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net