Example #1
0
        ////////////////////////////////////////////////////////////////////////////////
        // Searches the class [atsSearch] to see if it contains a method which is
        // sufficient to implement [mwt]. Does not search base classes. [mwt] is
        // typically a method in some interface.  We may be implementing this interface
        // at some particular type, e.g. IList<String>, and so the required signature is
        // the instantiation (i.e. substitution) of [mwt] for that instance. Similarly,
        // the implementation may be provided by some base class that exists via
        // polymorphic inheritance, e.g. Foo : List<String>, and so we must instantiate
        // the parameters for each potential implementation. [atsSearch] may thus be an
        // instantiated type.
        //
        // If fOverride is true, this checks for a method with swtSlot set to the
        // particular method.
        public void SubmitError(CParameterizedError error)
        {
            CError pError = GetErrorContext().RealizeError(error);

            if (pError == null)
            {
                return;
            }
            pController.SubmitError(pError);
        }
Example #2
0
 ////////////////////////////////////////////////////////////////////////////////
 // Searches the class [atsSearch] to see if it contains a method which is
 // sufficient to implement [mwt]. Does not search base classes. [mwt] is
 // typically a method in some interface.  We may be implementing this interface
 // at some particular type, e.g. IList<String>, and so the required signature is
 // the instantiation (i.e. substitution) of [mwt] for that instance. Similarly,
 // the implementation may be provided by some base class that exists via
 // polymorphic inheritance, e.g. Foo : List<String>, and so we must instantiate
 // the parameters for each potential implementation. [atsSearch] may thus be an
 // instantiated type.
 //
 // If fOverride is true, this checks for a method with swtSlot set to the
 // particular method.
 public void SubmitError(CParameterizedError error)
 {
     _pController.SubmitError(GetErrorContext().RealizeError(error));
 }