locked
which type represent any type or any object, is it like Any in Haskell? RRS feed

  • Question

  • which type represent any type or any object, is it like Any in Haskell?
    極意
    Monday, November 7, 2011 2:33 AM

Answers

  • In .NET, every type inherits from System.Object.

    You can use the full type name, or the built-in (to F#) abbreviation 'obj'.

    E.g., let f (x : obj) = ...


    • Edited by Jack Pappas Monday, November 7, 2011 3:02 AM
    • Marked as answer by 沈世鈞 Monday, November 7, 2011 3:32 AM
    Monday, November 7, 2011 3:02 AM