1 people like it.

Wrapped Class/Interface

Wrapped Class/Interface Remark: better this way - see example

1: 
2: 
3: 
4: 
5: 
6: 
7: 
namespace Foo

  module HashSet =
    
    let add item (set:System.Collections.Generic.HashSet<_>) =
      set.Add(item) |> ignore
      set
val add : item:'a -> set:System.Collections.Generic.HashSet<'a> -> System.Collections.Generic.HashSet<'a>

Full name: Foo.HashSet.add
val item : 'a
val set : System.Collections.Generic.HashSet<'a>
namespace System
namespace System.Collections
namespace System.Collections.Generic
Multiple items
type HashSet<'T> =
  new : unit -> HashSet<'T> + 3 overloads
  member Add : item:'T -> bool
  member Clear : unit -> unit
  member Comparer : IEqualityComparer<'T>
  member Contains : item:'T -> bool
  member CopyTo : array:'T[] -> unit + 2 overloads
  member Count : int
  member ExceptWith : other:IEnumerable<'T> -> unit
  member GetEnumerator : unit -> Enumerator<'T>
  member GetObjectData : info:SerializationInfo * context:StreamingContext -> unit
  ...
  nested type Enumerator

Full name: System.Collections.Generic.HashSet<_>

--------------------
System.Collections.Generic.HashSet() : unit
System.Collections.Generic.HashSet(comparer: System.Collections.Generic.IEqualityComparer<'T>) : unit
System.Collections.Generic.HashSet(collection: System.Collections.Generic.IEnumerable<'T>) : unit
System.Collections.Generic.HashSet(collection: System.Collections.Generic.IEnumerable<'T>, comparer: System.Collections.Generic.IEqualityComparer<'T>) : unit
System.Collections.Generic.HashSet.Add(item: 'a) : bool
val ignore : value:'T -> unit

Full name: Microsoft.FSharp.Core.Operators.ignore
Next Version Raw view Test code New version

More information

Link:http://fssnip.net/4d
Posted:13 years ago
Author:fholm
Tags: wrapper