Class TypeExtensions
- Assembly
- Cuemon.Extensions.DependencyInjection.dll
Extension methods for the Type class.
public static class TypeExtensions
- Inheritance
-
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
TypeThe Type to extend.
result
TypeWhen this method returns, contains the Type of the generic parameter
TMarker
of IDependencyInjectionMarker<TMarker>; otherwisenull
if the specifiedtype
does not have an implemenation of the IDependencyInjectionMarker<TMarker> interface.
Returns
- Boolean
true
if the specifiedtype
contains an IDependencyInjectionMarker<TMarker> interface,false
otherwise.