Advertisement
ptrelford

Funq resolve

Sep 26th, 2013
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 0.25 KB | None | 0 0
  1. type IFoo =
  2.    abstract Bar : int -> bool
  3.  
  4. type Foo () =
  5.    interface IFoo with
  6.       member foo.Bar(x) = true
  7.  
  8. type Foo2 () = inherit Foo()
  9.  
  10. let container = new Funq.Container()
  11. let foo2 = Foo2()
  12. let foo = container.Resolve<Foo,IFoo>(foo2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement