Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Windows Phone 7 Application Development: Building Applications and Games Using Vi
This is the forum to discuss the Wrox book Professional Windows Phone 7 Application Development: Building Applications and Games Using Visual Studio, Silverlight, and XNA by Nick Randolph, Christopher Fairbairn ; ISBN: 978-0-470-89166-7
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Windows Phone 7 Application Development: Building Applications and Games Using Vi section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 29th, 2010, 10:38 PM
Registered User
 
Join Date: Dec 2010
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Post Chapter 16 code

I recommend changing StringToTypeConverter.cs (ConvertFrom) to use:
var type = Type.GetType(typeName, true);

instead of
var type = Type.GetType(typeName);

when adapting to your own projects.

This will throw an exception when the type is not found and help catch errors in the XAML that will otherwise show up as strange reflection errors and null types.

Would have saved me a couple hours.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 16 skin code cmellon@gmail.com BOOK: Professional DotNetNuke 5: Open Source Web Application for ASP.NET ISBN: 978-0-470-43870-1 0 September 3rd, 2009 08:37 PM
Error in Source Code in Chapter 16 Lcstyle BOOK: Beginning Linux Programming, 4th Edition ISBN 978-0-470-14762-7 1 February 28th, 2009 10:14 AM
Chapter 16 code samples freiZimmer BOOK: Professional Microsoft Robotics Studio ISBN: 978-0-470-14107-6 1 October 9th, 2008 03:24 PM
bb code in chapter 16 Jack Goa BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 April 2nd, 2007 10:26 AM
Problem with code from chapter 16 earlsinclair2001 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 December 5th, 2005 01:58 AM



All times are GMT -4. The time now is 10:35 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.