Want more features on Pastebin? Sign Up, it's FREE!
Guest

PublicInterface

By: a guest on Sep 13th, 2010  |  syntax: OCaml  |  size: 0.23 KB  |  views: 49  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. module private MyCode =
  2.     let doSomething (func:int->int) =
  3.         func 2
  4.  
  5. type MyCodePublicInterface () =
  6.     member this.DoSomething (dotNetDelegate:System.Func<int, int>) =
  7.         MyCode.doSomething dotNetDelegate.Invoke
clone this paste RAW Paste Data