Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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.





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 07: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 02: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 09: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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.