0 people like it.

AshtonKJ141111

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
11: 
type TaskInfo =
    { ID : int
      User : string }

type TaskContent =
    | AllocateTime of System.TimeSpan
    | RemoveUser

type Task =
    { TaskInfo : TaskInfo
      Content : TaskContent }
TaskInfo.ID: int
Multiple items
val int : value:'T -> int (requires member op_Explicit)

Full name: Microsoft.FSharp.Core.Operators.int

--------------------
type int = int32

Full name: Microsoft.FSharp.Core.int

--------------------
type int<'Measure> = int

Full name: Microsoft.FSharp.Core.int<_>
TaskInfo.User: string
Multiple items
val string : value:'T -> string

Full name: Microsoft.FSharp.Core.Operators.string

--------------------
type string = System.String

Full name: Microsoft.FSharp.Core.string
type TaskContent =
  | AllocateTime of TimeSpan
  | RemoveUser

Full name: Script.TaskContent
union case TaskContent.AllocateTime: System.TimeSpan -> TaskContent
namespace System
Multiple items
type TimeSpan =
  struct
    new : ticks:int64 -> TimeSpan + 3 overloads
    member Add : ts:TimeSpan -> TimeSpan
    member CompareTo : value:obj -> int + 1 overload
    member Days : int
    member Duration : unit -> TimeSpan
    member Equals : value:obj -> bool + 1 overload
    member GetHashCode : unit -> int
    member Hours : int
    member Milliseconds : int
    member Minutes : int
    ...
  end

Full name: System.TimeSpan

--------------------
System.TimeSpan()
System.TimeSpan(ticks: int64) : unit
System.TimeSpan(hours: int, minutes: int, seconds: int) : unit
System.TimeSpan(days: int, hours: int, minutes: int, seconds: int) : unit
System.TimeSpan(days: int, hours: int, minutes: int, seconds: int, milliseconds: int) : unit
union case TaskContent.RemoveUser: TaskContent
type Task =
  {TaskInfo: TaskInfo;
   Content: TaskContent;}

Full name: Script.Task
Multiple items
Task.TaskInfo: TaskInfo

--------------------
type TaskInfo =
  {ID: int;
   User: string;}

Full name: Script.TaskInfo
Task.Content: TaskContent
Raw view Test code New version

More information

Link:http://fssnip.net/om
Posted:10 years ago
Author:
Tags: