Class TypeExtensions
- Namespace
- Cuemon.Extensions.DependencyInjection
- 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
typeTypeThe Type to extend.
resultTypeWhen this method returns, contains the Type of the generic parameter
TMarkerof IDependencyInjectionMarker<TMarker>; otherwisenullif the specifiedtypedoes not have an implemenation of the IDependencyInjectionMarker<TMarker> interface.
Returns
- bool
trueif the specifiedtypecontains an IDependencyInjectionMarker<TMarker> interface,falseotherwise.