...
070200000024000052 534 132 00040000010001002b4ef3c2bbd6478802b64d0dd3f2e7c65ee
6478802b63cb894a782f3a1adbb46d3ee5ec5577e7dccc818 937 e964cbe997c12076c19f2d7
ad179f15f7dccca6c6b72a
Public key token is 2a1d 332 6445fc02a ... ReadString("Please enter your name : ");
// Welcome the reader to Visual C# 2010 Recipes.
WriteString("Welcome to Visual C# 2010 Re...
... 10 ■ NETWORKING
4 93
Solution
Use the new System.Net.HttpListener class.
■ Note Your application must be running on Windows XP Service Pack 2 (or later) or Windows 20 03 to use the
HttpListener ... when network configuration changes
occur (recipes 10-1 and 10-2)
• Download files from File Transfer Protocol (FTP) and HTTP servers (recipes 10 -3,
10-4, and 10-6)
• Respond to H...
...
namespace Apress.VisualCSharpRecipes.Chapter11
{
class Recipe11_12
{
CHAPTER 11 ■ SECURITY AND CRYPTOGRAPHY
5 83
CA-67-A5-2D-EC-E9-FC-45-AE-97-E9-E1 -38 -CB-17-86-BB-17-EE -30
In contrast, ...
E1-6E-FA-BB-89-BA-DA- 83- 20-D5-CA-EC-FC-3D-52- 13- 86-B9-41-7C
11-16. Verify a Hash Code
Problem
You need to verify a password or confirm that a file remains unchanged by comparing t...
... Apress.VisualCSharpRecipes.Chapter04
{
class Recipe04_04
{
public static void Main(string[] args)
{
// Create a 30 -second timespan.
TimeSpan waitTime = new TimeSpan(0, 0, 30 );
... storage (recipes 5-7, 5-8, 5-9, 5-15, 5-18, and 5-21)
• Search for specific files and test files for equality and work with strings that
contain path information (recipes 5-10, 5-11, 5-12, 5-...
... </xsl:template>
CHAPTER 6 ■ XML PROCESSING
30 3
6-16. Modify an XML Tree with LINQ
The Problem
You need to add, remove, or modify elements in an XML tree.
The Solution
Use the Add, Replace*, and ...
<?xml version="1.0"?>
<Order id="2004-01 -30 .195496">
<Client id="ROS- 930 252 034 ">
<Name>Remarkable Office Su...
... To run these recipes from within Visual Studio, set the server project as the startup project and run it
normally. Once the server is running, right-click the client project in Solution Explorer, ... sw.WriteLine("<html>");
sw.WriteLine("<head>");
sw.WriteLine("<title> ;Visual C# Recipes& lt;/title>");
sw.WriteLine("</...
... is
070200000024000052 534 132 00040000010001002b4ef3c2bbd6478802b64d0dd3f2e7c65ee
6478802b63cb894a782f3a1adbb46d3ee5ec5577e7dccc818 937 e964cbe997c12076c19f2d7
ad179f15f7dccca6c6b72a
Public key token is 2a1d 332 6445fc02a
The ... book.Whereas the
C# Programmer’s
Cookbook
targeted version 1.1 of the .NET Framework,
Visual C# 2005 Recipes
focuses on .NET Framework 2.0
and C# 2005. In...