Method AddAttributes
AddAttributes(IAttributeContainer, params IEnumerable<LazyEncodedString>?)
Add a range of attributes to an attribute container
public static void AddAttributes(this IAttributeContainer self, params IEnumerable<LazyEncodedString>? range)
Parameters
selfIAttributeContainerAttribute container to add attributes to
rangeIEnumerable<LazyEncodedString>Range of attributes to operate on
AddAttributes(IAttributeContainer, params IEnumerable<AttributeValue>?)
Add a range of attributes to an attribute container
public static void AddAttributes(this IAttributeContainer self, params IEnumerable<AttributeValue>? range)
Parameters
selfIAttributeContainerAttribute container to add attributes to
rangeIEnumerable<AttributeValue>Range of attributes to operate on
AddAttributes<T>(T, FunctionAttributeIndex, params IEnumerable<LazyEncodedString>?)
Adds AttributeValues to an IFunctionAttributeAccessor
public static T AddAttributes<T>(this T self, FunctionAttributeIndex index, params IEnumerable<LazyEncodedString>? names) where T : notnull, IFunctionAttributeAccessor
Parameters
selfTAccessor to add the attribute to
indexFunctionAttributeIndexFunctionAttributeIndex to add the attributes to
namesIEnumerable<LazyEncodedString>Names of a attributes to add to the accessor [All must be an enum with no args OR a string attribute that accepts an empty string]
Returns
- T
selffor fluent use
Type Parameters
TAccessor type
AddAttributes<T>(T, FunctionAttributeIndex, params IEnumerable<AttributeValue>)
Adds AttributeValues to an IFunctionAttributeAccessor
public static T AddAttributes<T>(this T self, FunctionAttributeIndex index, params IEnumerable<AttributeValue> attributes) where T : notnull, IFunctionAttributeAccessor
Parameters
selfTContainer to add the attribute to
indexFunctionAttributeIndexFunctionAttributeIndex to add the attributes to
attributesIEnumerable<AttributeValue>Attribute to add to the container
Returns
- T
selffor fluent use
Type Parameters
TContainer type