TryGetDependencyInjectionMarker Method
Definition
- Namespace
- Cuemon.Extensions.DependencyInjection
- Assemblies
- Cuemon.Extensions.DependencyInjection.dll
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.