Example #1
0
 /// <summary>
 /// Implements adding a new method to this multimethod
 /// </summary>
 /// <param name="dispatchVal">The discriminator value for this method.</param>
 /// <param name="method">The method code.</param>
 /// <returns>This multifunction.</returns>
 MultiFn addMethodImpl(object dispatchVal, IFn method)
 {
     _methodTable = MethodTable.assoc(dispatchVal, method);
     ResetCache();
     return(this);
 }