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

Method TrySetMember

src/NodeRTLib/Reflector.cs:722–733  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected