Table of Contents

Class TypeExtensions

Namespace
Cuemon.Extensions.DependencyInjection
Assembly
Cuemon.Extensions.DependencyInjection.dll

Extension methods for the System.Type class.

public static class TypeExtensions
Inheritance
Object
TypeExtensions

Methods

TryGetDependencyInjectionMarker(Type, out Type)

Returns a value that indicates whether the specified type contains an IDependencyInjectionMarker<TMarker> interface.

public static bool TryGetDependencyInjectionMarker(this Type type, out Type result)

Parameters

type Type

The System.Type to extend.

result Type

When this method returns, contains the System.Type of the generic parameter TMarker of IDependencyInjectionMarker<TMarker>; otherwise null if the specified type does not have an implemenation of the IDependencyInjectionMarker<TMarker> interface.

Returns

Boolean

true if the specified type contains an IDependencyInjectionMarker<TMarker> interface, false otherwise.