If you try to set a value of a property that is not defined in the class, this method is called.
(
SetMemberBinder binder, object value)
| 720 | // If you try to set a value of a property that is |
| 721 | // not defined in the class, this method is called. |
| 722 | public override bool TrySetMember( |
| 723 | SetMemberBinder binder, object value) |
| 724 | { |
| 725 | // Converting the property name to lowercase |
| 726 | // so that property names become case-insensitive. |
| 727 | |
| 728 | dictionary[binder.Name.ToLower()] = value; |
| 729 | |
| 730 | // You can always add a value to a dictionary, |
| 731 | // so this method always returns true. |
| 732 | return true; |
| 733 | } |
| 734 | } |
| 735 | |
| 736 | // The class derived from DynamicObject. |
nothing calls this directly
no outgoing calls
no test coverage detected