Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Code / Declaration­Enhancements<T> / Has­Aspect

Method HasAspect

HasAspect(Type)

Declaration
public bool HasAspect(Type aspectType)
Parameters
Type Name Description
Type aspectType
Returns
Type Description
Boolean

HasAspect<TAspect>()

Declaration
public bool HasAspect<TAspect>()
where TAspect : IAspect<T>
Returns
Type Description
Boolean
Type Parameters
Name Description
TAspect