0 people like it.
Like the snippet!
Temp
1:
2:
3:
4:
5:
6:
|
/// Says hello to the specified name
type Hello(name) =
member x.SayHello() =
Console.WriteLine("Hello " + name)
member x.SayHelloLoud() =
(implementation omitted)
|
1:
2:
|
let hello = new Hello("F#")
hello.SayHello()
|
Multiple items
type Hello =
new : name:string -> Hello
member SayHello : unit -> unit
member SayHelloLoud : unit -> unit
Full name: Script.Hello
Says hello to the specified name
--------------------
new : name:string -> Hello
val name : string
val x : Hello
member Hello.SayHello : unit -> unit
Full name: Script.Hello.SayHello
type Console =
static member BackgroundColor : ConsoleColor with get, set
static member Beep : unit -> unit + 1 overload
static member BufferHeight : int with get, set
static member BufferWidth : int with get, set
static member CapsLock : bool
static member Clear : unit -> unit
static member CursorLeft : int with get, set
static member CursorSize : int with get, set
static member CursorTop : int with get, set
static member CursorVisible : bool with get, set
...
Full name: System.Console
Console.WriteLine() : unit
(+0 other overloads)
Console.WriteLine(value: string) : unit
(+0 other overloads)
Console.WriteLine(value: obj) : unit
(+0 other overloads)
Console.WriteLine(value: uint64) : unit
(+0 other overloads)
Console.WriteLine(value: int64) : unit
(+0 other overloads)
Console.WriteLine(value: uint32) : unit
(+0 other overloads)
Console.WriteLine(value: int) : unit
(+0 other overloads)
Console.WriteLine(value: float32) : unit
(+0 other overloads)
Console.WriteLine(value: float) : unit
(+0 other overloads)
Console.WriteLine(value: decimal) : unit
(+0 other overloads)
member Hello.SayHelloLoud : unit -> unit
Full name: Script.Hello.SayHelloLoud
let msg = ("Hello " + name + "!!!").ToUpper()
Console.WriteLine(msg)
val hello : Hello
member Hello.SayHello : unit -> unit
More information