Magic number in the CustomerImageConverter class in Silverlight Patterns in Action.csproj
What is the 91 in the following code?
M S, Sep 01, 2010
Indeed a magic number :-). The default database holds 91 customer records which is where the number comes from.
The Silverlight Patterns application supports adding a new customer, but not uploading images. So, this check ensures a default silhouette image for each new customer.
Of course, a production type application would include the option to upload customer images and then the "if (id > 91)" condition would be removed.
Hope this helps.
Dan McMillan, Sep 01, 2010