Core/CafeLib.Core.Dynamic/Expando.cs
/// <summary>
/// Property setter implementation tries to retrieve value from instance 
/// first then into this object
/// </summary>
/// <param name="binder"></param>
/// <param name="value"></param>
/// <returns></returns>
Property setter implementation tries to retrieve value from instance
first then into this object
Property setter implementation tries to retrieve value from instance first then into this object
public override bool TrySetMember(SetMemberBinder binder, object value)
        {
            try
            {
                if (SetProperty(binder.Name, value))
                    return true;
            }
            catch
            {
                return false;
            }
            Properties.AddOrUpdate(binder.Name, value, (_, _) => value);
            return true;
        }
public override bool TrySetMember ( SetMemberBinder binder , object value ) { try { if ( SetProperty ( binder . Name , value ) ) return true ; } catch { return false ; } Properties . AddOrUpdate ( binder . Name , value , ( _ , _ ) => value ) ; return true ; }
Property setter implementation tries to retrieve value from instance
first then into this object
Property setter implementation tries to retrieve value from instance first then into this object
// first check to see if there's a native property to set // no match - set or add to dictionary
None
binder
SetMemberBinder
None
value
object
None