Show / Hide Table of Contents

Class AttributeProviderExtensions

Provides extension methods for IAttributeProvider.

Inheritance
System.Object
AttributeProviderExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Runtime
Assembly: Kephas.Core.dll
Syntax
public static class AttributeProviderExtensions

Methods

| Improve this Doc View Source

GetAttribute<TAttribute>(IAttributeProvider)

Gets the single attribute of the provided type.

Declaration
public static TAttribute GetAttribute<TAttribute>(this IAttributeProvider attributeProvider)

    where TAttribute : Attribute
Parameters
Type Name Description
IAttributeProvider attributeProvider

The attribute provider.

Returns
Type Description
TAttribute

The attribute of the provided type.

Type Parameters
Name Description
TAttribute

Type of the attribute.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX