Hello,

WebSharper 3 proxy for hashing objects checks if an object has a GetHashCode JS function, and calls that if present.

So you can set a hash function by

1
m2?GetHashCode <- fun () -> 1234 // or some logic

Also, if you want to use the this value, to reuse the function on multiple objects, make a function like FuncWithOnlyThis(fun this -> ...).

By on 1/11/2016 1:03 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