MCPcopy Create free account
hub / github.com/NodeRT/NodeRT / TryGetMember

Method TryGetMember

src/NodeRTLib/Reflector.cs:707–718  ·  view source on GitHub ↗

If you try to get a value of a property not defined in the class, this method is called.

(
            GetMemberBinder binder, out object result)

Source from the content-addressed store, hash-verified

705 // If you try to get a value of a property
706 // not defined in the class, this method is called.
707 public override bool TryGetMember(
708 GetMemberBinder binder, out object result)
709 {
710 // Converting the property name to lowercase
711 // so that property names become case-insensitive.
712 string name = binder.Name.ToLower();
713
714 // If the property name is found in a dictionary,
715 // set the result parameter to the property value and return true.
716 // Otherwise, return false.
717 return dictionary.TryGetValue(name, out result);
718 }
719
720 // If you try to set a value of a property that is
721 // not defined in the class, this method is called.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected