15.01.2013 Views

Free-ebooks-library - Bahar Ali Khan

Free-ebooks-library - Bahar Ali Khan

Free-ebooks-library - Bahar Ali Khan

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Isolated Storage 573<br />

15. Networking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 579<br />

Network Architecture 579<br />

Addresses and Ports 581<br />

URIs 582<br />

Request/Response Architecture 584<br />

HTTP-Specific Support 592<br />

Writing an HTTP Server 597<br />

Using FTP 600<br />

Using DNS 602<br />

Sending Mail with SmtpClient 603<br />

Using TCP 604<br />

Receiving POP3 Mail with TCP 606<br />

16. Serialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 609<br />

Serialization Concepts 609<br />

The Data Contract Serializer 613<br />

Data Contracts and Collections 622<br />

Extending Data Contracts 625<br />

The Binary Serializer 628<br />

Binary Serialization Attributes 630<br />

Binary Serialization with ISerializable 634<br />

XML Serialization 637<br />

17. Assemblies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 647<br />

What’s in an Assembly? 647<br />

Strong Names and Assembly Signing 652<br />

Assembly Names 655<br />

Authenticode Signing 657<br />

The Global Assembly Cache 661<br />

Resources and Satellite Assemblies 663<br />

Resolving and Loading Assemblies 671<br />

Deploying Assemblies Outside the Base Folder 675<br />

Packing a Single-File Executable 676<br />

Working with Unreferenced Assemblies 678<br />

18. Reflection and Metadata . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 681<br />

Reflecting and Activating Types 682<br />

Reflecting and Invoking Members 688<br />

Reflecting Assemblies 700<br />

Working with Attributes 701<br />

Dynamic Code Generation 707<br />

Emitting Assemblies and Types 714<br />

Emitting Type Members 717<br />

Table of Contents | ix

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!