Core/CafeLib.Core.Dynamic/Expando.cs
/// <summary>
/// Dynamic invocation method. Currently allows only for Reflection based
/// operation (no ability to add methods dynamically).
/// </summary>
/// <param name="binder"></param>
/// <param name="args"></param>
/// <param name="result"></param>
/// <returns></returns>
Dynamic invocation method. Currently allows only for Reflection based
operation (no ability to add methods dynamically).
Dynamic invocation method . Currently allows only for Reflection based operation ( no ability to add methods dynamically ) .
public override bool TryInvokeMember(InvokeMemberBinder binder, object[] args, out object result)
        {
            result = null;
            if (_instance != null)
            {
                try
                {
                    if (InvokeMethod(binder.Name, args, out result))
                        return true;
                }
                catch
                {
                }
            }
            return false;
        }
public override bool TryInvokeMember ( InvokeMemberBinder binder , object [ ] args , out object result ) { result = null ; if ( _instance != null ) { try { if ( InvokeMethod ( binder . Name , args , out result ) ) return true ; } catch { } } return false ; }
Dynamic invocation method.
Dynamic invocation method .
// check instance passed in for methods to invoke // ignored
None
binder
InvokeMemberBinder
None
args
object[]
None
object
out
result
None