Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5.1 > BOOK: Professional ASP.NET MVC 5
BOOK: Professional ASP.NET MVC 5
This is the forum to discuss the Wrox book Professional ASP.NET MVC 5 by Jon Galloway, Brad Wilson, K. Scott Allen, David Matson; ISBN: 978-1-118-79475-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET MVC 5 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 June 25th, 2016, 06:14 PM
Authorized User
Join Date: Jan 2013
Posts: 23
Thanks: 1
Thanked 1 Time in 1 Post
Default Chapter 13 p 395 Current Seems to Be Read Only

At the bottom of this page is the following code:

DependencyResolver.Current= new MyDependencyResolver();
Any old developer with OCD who pounds out every line of code she finds in a book or on a subway restroom wall will quickly discover that Current is a read only property. Wild Rabbits! I think the code should look like this

  DependencyResolver.SetResolver(new MyDependencyResolver());
And everything is kittens and sunshine. Am I correct or are those lion cubs and thunderstorms about to roll in?

O Great Brad Wilson, Lord of Dependency Injection, Author of the Chapter, answer me! Speak, for thy maidservant trembles in anticipation. Or maybe not, but that sounded good.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 9: Displaying the Users Current Location @roosdesign BOOK: Beginning iOS Programming: Building and Deploying iOS Applications 0 August 28th, 2015 11:48 AM
try it out chapter 11, page 395 randyrln BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 2 March 18th, 2015 04:23 AM
Chapter 4 current view? RKevinBurton BOOK: Professional ASP.NET MVC 4 0 June 23rd, 2014 05:45 AM
Jquery - p.395 Tulsi BOOK: Beginning ASP.NET 4 : in C# and VB 1 April 23rd, 2012 03:24 PM
Chapter 3 - Filters - Current Filter hixsonb BOOK: Professional WordPress Plugin Development 0 March 8th, 2012 03:50 PM

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