Class ErrorListenerExtensions
- Namespace
- AsmResolver
- Assembly
- AsmResolver.dll
Provides extension methods for instances of the IErrorListener interface.
public static class ErrorListenerExtensions
- Inheritance
-
ErrorListenerExtensions
- Inherited Members
Methods
BadImage(IErrorListener, string)
Registers an instance of a BadImageFormatException class.
public static void BadImage(this IErrorListener self, string message)
Parameters
self
IErrorListenerThe error listener.
message
stringThe message of the error.
BadImageAndReturn<T>(IErrorListener, string)
Registers a BadImage, and returns a default value for the provided type.
public static T? BadImageAndReturn<T>(this IErrorListener self, string message)
Parameters
self
IErrorListenerThe error listener.
message
stringThe message of the error.
Returns
- T
Type Parameters
T
The type of value to return.
NotSupported(IErrorListener, string)
Registers an instance of a NotSupportedException class.
public static void NotSupported(this IErrorListener self, string message)
Parameters
self
IErrorListenerThe error listener.
message
stringThe message of the error.
NotSupportedAndReturn<T>(IErrorListener)
Registers a NotSupportedException, and returns a default value for the provided type.
public static T? NotSupportedAndReturn<T>(this IErrorListener self)
Parameters
self
IErrorListenerThe error listener.
Returns
- T
Type Parameters
T
The type of value to return.
NotSupportedAndReturn<T>(IErrorListener, string)
Registers a NotSupportedException, and returns a default value for the provided type.
public static T? NotSupportedAndReturn<T>(this IErrorListener self, string message)
Parameters
self
IErrorListenerThe error listener.
message
stringThe message of the error.
Returns
- T
Type Parameters
T
The type of value to return.
RegisterExceptionAndReturnDefault<T>(IErrorListener, Exception)
Registers an error, and returns a default value for the provided type.
public static T? RegisterExceptionAndReturnDefault<T>(this IErrorListener self, Exception exception)
Parameters
self
IErrorListenerThe error listener.
exception
ExceptionThe error.
Returns
- T
Type Parameters
T
The type of value to return.