예제 #1
0
 /// <summary>
 /// Registers a late method binder.
 /// </summary>
 /// <param name="binder">The binder.</param>
 public void RegisterLateBinder(ILateMethodBinder binder)
 {
     if (binder != null)
     {
         methodBinders.Add(binder);
     }
 }
예제 #2
0
        /// <summary>
        /// Registers an inline method.
        /// </summary>
        /// <param name="methodDefinition">The method definition.</param>
        /// <param name="binder">The binder.</param>
        public void RegisterInlineMethod(string methodDefinition, ILateMethodBinder binder)
        {
            // Maybe something a bit more informative than plain text should be used?
            // inlineMethods.Add(methodDefinition);

            inlineMethods.AppendLine(methodDefinition);
            if (binder != null)
            {
                methodBinders.Add(binder);
            }
        }