Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: bool TryGetMember(GetMemberBinder, out object)

  • Declared in: RT.Json.JsonDict
  • Overrides: DynamicObject.TryGetMember(GetMemberBinder, out object)

Declaration

public override bool TryGetMember(
    GetMemberBinder binder,
    out object result
)

Summary

Implements functionality that allows the keys in this JSON dictionary to be accessed as dynamic members.

Example

dynamic dict = JsonDict.Parse(@"{ ""List"": [1, 2, 3] }");
Console.WriteLine(dict.List.Count);     // outputs 3