public override bool TrySetMember(SetMemberBinder binder, object value)
{
// first check to see if there's a native property to set
if (Instance != null)
{
try
{
bool result = SetProperty(Instance, binder.Name, value);
if (result)
return true;
}
catch
{
return false;
}
}
// no match - set or add to dictionary
Properties[binder.Name] = value;
return true;
}