source/R5T.NetStandard.Types/Code/Helpers/ExceptionHelper.cs
/// <summary>
/// Convenience method that provides a message indicating that an object could not be cast to an expected type.
/// </summary>
Convenience method that provides a message indicating that an object could not be cast to an expected type.
Convenience method that provides a message indicating that an object could not be cast to an expected type .
public static string InvalidCastExceptionMessage<TExpected>(object obj)
        {
            var expectedType = typeof(TExpected);
            var output = ExceptionHelper.InvalidCastExceptionMessage(expectedType, obj);
            return output;
        }
public static string InvalidCastExceptionMessage < TExpected > ( object obj ) { var expectedType = typeof ( TExpected ) ; var output = ExceptionHelper . InvalidCastExceptionMessage ( expectedType , obj ) ; return output ; }
Convenience method that provides a message indicating that an object could not be cast to an expected type.
Convenience method that provides a message indicating that an object could not be cast to an expected type .
obj
object