Hi, Jacques!
I can't figure out what part of code compiler considers to be the error. You must also specify the return type of Mapper.Map function (or constructor) so I can understand your code. Also, this code works:

1
2
3
4
5
6
7
8
match box model with            
    | :? BrandModel -> 
        ()
 
    | :? IEnumerable<BrandModel> as models -> 
        ()
 
    | _ -> Unchecked.defaultof<'T>

which makes me think that you use incorrect cast direction to 'T. Are you sure you want to dowcast result, rather than upcast it?

By on 10/3/2011 2:18 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper