Instantly share code, notes, and snippets.

Embed
What would you like to do?
type MapRecord() =
let value = 0.2
abstract Latitude : double with get, set
default this.Latitude with get() = value and set(v) = ignore()
abstract Longitude : double with get, set
default this.Longitude with get() = 5.0 and set(v) = ignore()
type MapRecord2() =
let value = 0.2
abstract Latitude : double with get, set
default this.Latitude with get() = 2.0 and set(v) = ignore()
abstract Longitude : double with get, set
default this.Longitude with get() = 5.0 and set(v) = ignore()
//MapRecord
Dump:
IL_0000: nop
IL_0001: ldarg.0
IL_0002: box 01 00 00 1B
IL_0007: call LINQPad.FSharpExtensions.Extensions.Dump
IL_000C: ret
MapRecord.get_Latitude:
IL_0000: nop
IL_0001: ldarg.0
IL_0002: ldfld Query_ogqvfr+MapRecord.value
IL_0007: ret
MapRecord.set_Latitude:
IL_0000: nop
IL_0001: ret
MapRecord.get_Longitude:
IL_0000: nop
IL_0001: ldc.r8 00 00 00 00 00 00 14 40
IL_000A: ret
MapRecord.set_Longitude:
IL_0000: nop
IL_0001: ret
MapRecord..ctor:
IL_0000: ldarg.0
IL_0001: callvirt System.Object..ctor
IL_0006: ldarg.0
IL_0007: pop
IL_0008: nop
IL_0009: ldarg.0
IL_000A: ldc.r8 9A 99 99 99 99 99 C9 3F
IL_0013: stfld Query_ogqvfr+MapRecord.value
IL_0018: ret
//MapRecord2
MapRecord2.get_Latitude:
IL_0000: nop
IL_0001: ldc.r8 00 00 00 00 00 00 00 40
IL_000A: ret
MapRecord2.set_Latitude:
IL_0000: nop
IL_0001: ret
MapRecord2.get_Longitude:
IL_0000: nop
IL_0001: ldc.r8 00 00 00 00 00 00 14 40
IL_000A: ret
MapRecord2.set_Longitude:
IL_0000: nop
IL_0001: ret
MapRecord2..ctor:
IL_0000: ldarg.0
IL_0001: callvirt System.Object..ctor
IL_0006: ldarg.0
IL_0007: pop
IL_0008: nop
IL_0009: ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment