Table of Contents

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 IErrorListener

The error listener.

message string

The 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 IErrorListener

The error listener.

message string

The 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 IErrorListener

The error listener.

message string

The 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 IErrorListener

The 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 IErrorListener

The error listener.

message string

The 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 IErrorListener

The error listener.

exception Exception

The error.

Returns

T

Type Parameters

T

The type of value to return.