source/R5T.NetStandard.Types/Code/Helpers/ExceptionHelper.cs
/// <summary>
/// Provides a message indicating that an instance was not of the expected type.
/// </summary>
Provides a message indicating that an instance was not of the expected type.
Provides a message indicating that an instance was not of the expected type .
public static string UnexpectedTypeExceptionMessage<TFound>(Type expectedType, TFound foundInstance)
        {
            var output = ExceptionHelper.UnexpectedTypeExceptionMessage(expectedType, foundInstance.GetType());
            return output;
        }
public static string UnexpectedTypeExceptionMessage < TFound > ( Type expectedType , TFound foundInstance ) { var output = ExceptionHelper . UnexpectedTypeExceptionMessage ( expectedType , foundInstance . GetType ( ) ) ; return output ; }
Provides a message indicating that an instance was not of the expected type.
Provides a message indicating that an instance was not of the expected type .
expectedType
Type
<not_specific>
foundInstance
TFound
<not_specific>