Search
register | login   Friday, November 21, 2008
West Michigan .NET User Group Discussion

SearchForum Home
     
  .Net Books  .Net Book Reviews and Recommendations  A fair, but cha...
 A fair, but challenging book on C# 2008 and .NET!
 
 5/23/2008 4:57:30 PM
cwisnie36
4 posts


A fair, but challenging book on C# 2008 and .NET!
Learning is the key, when you are reading the book, Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition. A Philosophy of .NET starts off this book, with an introduction to .NET and the multiple programming languages that are most common today. Many of these programming languages are integrated with .NET, which is a good solution for integrating them with other platforms. Console Applications, Windows Forms, Web Applications, and Windows Presentation Foundation examples are presented throughout the book. Every other example builds on some of the previous exercise examples.
 
            When you are reading this book, it has a “textbook” like format. When you are reading through the code examples, it is best to work through them and follow along by manually inserting the coding examples into C# 2008. Beginners learn from these exercises after manually inserting C# code into a “blank” code window. You learn how C# programs are constructed. These code examples also show you how to construct a program. Great care is needed when working through these coding exercises. Typos, and in one or two cases, needed code is missing. One example is: following line of code for a Main() method sorting an array of cars by their Pet Name, “Array.Sort(myAutos, Car.SortByPetName);” (304). Method Compare() should have been called from the IComparer interface Sort By Pet Name method, which derives from the IComparable interface, from within the Car cl***. Ordering of the Car Pet Names requires the comparison of two or more objects. Therefore, the Compare() method should be called. Here is the correct line of code:
 
Array.Sort(myAutos, Car.SortByPetName.Compare);
 
Otherwise, without the Compare() method, the build fails with two errors that consist of a method overload and a conversion type error.
 
            Learning from this book is treacherous. A textbook like this is not for the faint of heart. Learning takes time, and time is what you need to work through this book. I feel this book could have been better edited and not rushed for publishing. This book compels you to learn C# 2008 and ASP.NET 3.5 by working to solve programming errors.
 
Works Cited
 
Troelson, Andrew. Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition. Berkeley, California: APRESS, 2007.
 
  .Net Books  .Net Book Reviews and Recommendations  A fair, but cha...
 
Website By
Sponsored By
Partner Michigan .Net User Groups