Пример #1
0
 /// <summary>
 /// Performs a generic unary operation on the specified target and returns the result.
 /// </summary>
 public dynamic DoOperation(ExpressionType operation, object target)
 {
     return(_ops.DoOperation <object, object>(operation, target));
 }
Пример #2
0
#pragma warning disable 618

        #region Local Operations

        /// <summary>
        /// Returns true if the object can be called, false if it cannot.
        ///
        /// Even if an object is callable Call may still fail if an incorrect number of arguments or type of arguments are provided.
        /// </summary>
        public bool IsCallable(object obj)
        {
            return(_ops.DoOperation <object, bool>(StandardOperators.IsCallable, obj));
        }