let (|DefaultValue|) (defaultValue:'t) (input:'t) =ifobj.Equals(input, Unchecked.defaultof<'t>) thendefaultValueelseinput
Multiple items type DefaultValueAttribute = inherit Attribute new : unit -> DefaultValueAttribute new : check:bool -> DefaultValueAttribute member Check : bool
Full name: Microsoft.FSharp.Core.DefaultValueAttribute
-------------------- new : unit -> DefaultValueAttribute new : check:bool -> DefaultValueAttribute
val defaultValue : 't
val input : 't
type obj = System.Object
Full name: Microsoft.FSharp.Core.obj
System.Object.Equals(objA: obj, objB: obj) : bool
module Unchecked
from Microsoft.FSharp.Core.Operators
val defaultof<'T> : 'T
Full name: Microsoft.FSharp.Core.Operators.Unchecked.defaultof