Skip to content
Andrey Kurosh edited this page Jun 30, 2017 · 2 revisions

LENS supports several keywords that apply to types, similar to C#:

Default

The default keyword followed by a type return the default value for this type. It is null for reference types, zeroed memory for structures, etc:

let zero = default int // 0
let zilch = default Point // (0; 0)
let nada = default string // null

Typeof

The typeof keyword returns an instance of Type:

(typeof int).FullName // "System.Int32"
Clone this wiki locally