If you try to get a value of a property not defined in the class, this method is called.
(
GetMemberBinder binder, out object result)
| 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. |
nothing calls this directly
no outgoing calls
no test coverage detected