: Rakesh Rajan, Todd Herman, Allen Jones, Matthew MacDonald
: Visual Basic 2008 Recipes A Problem-Solution Approach
: Apress
: 9781430206040
: 1
: CHF 43.50
:
: Informatik
: English
: 704
: Wasserzeichen/DRM
: PC/MAC/eReader/Tablet
: PDF

Visual Basic 2008 Recipes is a book of ready-made coding solutions for programmers who don't want spend a lot of time reading. Each chapter addresses a specific problem-domain such as multimedia, database access, XML manipulation, etc. Each chapter then presents a number of common problems, with a solution following each problem. Readers appreciate the recipe format, because they can look up a problem, read one to three pages, implement the solution, and then get on with their work. Recipe books are ideal for those who want to spend their days doing, not reading.



Rakesh Rajan was a Microsoft 'Most Valuable Professional' in C# and an MCSD in .NET from the Bangalore, India area. He worked as a software engineer in the U.S. at Trivandrum. Rakesh passed away in 2006.
Contents at a Glance5
Contents6
About the Author13
About the Technical Reviewer14
Acknowledgments15
Introduction16
Application Development17
1-1. Create a Console Application from the Command Line18
1-2. Create a Windows- Based Application from the Command Line21
1-3. Create and Use a Code Module from the Command Line24
1-4. Create and Use a Code Library from the Command Line26
1-5. Embed a Resource File in an Assembly27
1-6. Build Projects from the Command Line Using MSBuild.exe30
1-7. Access Command-Line Arguments33
1-8. Include Code Selectively at Build Time35
1-9. Manipulate the Appearance of the Console39
1-10. Access a Program Element That Has the Same Name As a Keyword41
1-11. Create and Manage Strong-Named Key Pairs42
1-12. Give an Assembly a Strong Name43
1-13. Verify That a Strong-Named Assembly Has Not Been Modified46
1-14. Delay Sign an Assembly47
1-15. Sign an Assembly with an Authenticode Digital Signature48
1-16. Create and Trust a Test Software Publisher Certificate53
1-17. Manage the Global Assembly Cache54
1-18. Make Your Assembly More Difficult to Decompile55
1-19. Use Implicitly Typed Variables56
1-20. Use Object Initializers57
1-21. Use Anonymous Types60
1-22. Create and Use Extension Methods61
1-23. Create and Use Lambda Expressions63
Data Manipulation67
2-1. Manipulate the Contents of a String Efficiently67
2-2. Encode a String Using Alternate Character Encoding70
2-3. Convert Basic Value Types to Byte Arrays72
2-4. Base64 Encode Binary Data75
2-5. Validate Input Using Regular Expressions78
2-6. Use Compiled Regular Expressions81
2-7. Create Dates and Times from Strings84
2-8. Add, Subtract, and Compare Dates and Times86
2-9. Convert Dates and Times Across Time Zones89
2-10. Sort an Array or an ArrayList93
2-11. Copy a Collection to an Array95
2-12. Manipulate or Evaluate the Contents of an Array96
2-13. Use a Strongly Typed Collection100
2-14. Create a Generic Type102
2-15. Store a Serializable Object to a File105
2-16. Read User Input from the Console108
Application Domains, Reflection, and Metadata112
3-1. Load an Assembly into the Current Application Domain113
3-2. Create an Application Domain115
3-3. Execute an Assembly in a Different Application Domain117
3-4. Avoid Loading Unnecessary Assemblies into Application Domains119
3-5. Create a Type That Cannot Cross Application Domain Boundaries120
3-6. Create a Type That Can Be Passed Across Application Domain Boundaries121
3-7. Instantiate a Type in a Different Application Domain124
3-8. Pass Data Between Application Domains128
3-9. Unload Assemblies and Application Domains130
3-10. Retrieve Type Information131
3-11. Test an Object s Type134
3-12. Instantiate an Object Using Reflection136
3-13. Create a Custom Attribute139
3-14. Inspect the Attributes of a Program Element Using Reflection142
Threads, Processes, and Synchronization144
4-1. Execute a Method Using the Thread Pool145
4-2. Execute a Method Asynchronously148
4-3. Creating an Asynchronous Method to Update the User Interface155
4-4. Execute a Method Periodically160
4-5. Execute a Method at a Specific Time162
4-6. Execute a Method by Signaling a WaitHandle Object165
4-7. Execute a Method Using a New Thread167
4-8