File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,20 +27,19 @@ type DynamicObj() =
2727 member this.GetValue ( name ) =
2828 this.TryGetValue( name) .Value
2929
30+ #if ! FABLE_ COMPILER
3031 /// Gets typed property value if type matches, otherwise None.
3132 ///
3233 /// WARNING: This Method is not supported in Fable transpiled code. Use static method tryGetTypedValue instead.
3334 member this.TryGetTypedValue < 'a > name =
34- #if ! FABLE _ COMPILER
35+
3536 match ( this.TryGetValue name) with
3637 | None -> None
3738 | Some o ->
3839 match o with
3940 | :? 'a as o -> o |> Some
4041 | _ -> None
41- #else
42- failwith " Method TryGetTypedValue is not supported in Fable transpiled code. Use static method tryGetTypedValue instead."
43- #endif
42+ #endif
4443
4544 member this.TryGetStaticPropertyInfo name : PropertyHelper option =
4645 ReflectionUtils.tryGetStaticPropertyInfo this name
You can’t perform that action at this time.
0 commit comments