Example #1
0
 public static void ApplySafety(this IApplicable applicable)
 {
     if (!applicable.IsApplied)
     {
         applicable.Apply();
     }
 }
Example #2
0
        internal static bool Apply(out object answer, ref Control expression, ref Environment environment, object evop, object [] evargs)
        {
            IApplicable op = evop as IApplicable;

            if (op == null)
            {
                throw new NotImplementedException("Application of non-procedure object.");
            }
            return(op.Apply(out answer, ref expression, ref environment, evargs));
        }