never fails, after I post a question i figure out some solution. I've gotten past the issue by doing:

1
IEnumerable.iter(fun(x:ManagementObject) -> x.InvokeMethod("Modify", inputParams); ()) (IEnumerable.untyped_to_typed(searcher.Get()));;

the additional "; ()" after InvokeMethod being the key part. Something having to do with the function needing to return type unit? No idea how correct this is.

By on 3/27/2008 2:38 PM ()

You beat me to it. Indeed, iter expects functions to not to return a value (to return unit); I was going to suggest "|> ignore" after the InvokeMethod.

By on 3/27/2008 2:51 PM ()
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