Table of Contents

TryGetDependencyInjectionMarker Method

Definition

Namespace
Cuemon.Extensions.DependencyInjection
Assemblies
Cuemon.Extensions.DependencyInjection.dll
Source
src/Cuemon.Extensions.DependencyInjection/TypeExtensions.cs

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 Type to extend.

result Type

When this method returns, contains the 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

bool

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