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
self
IAttributeContainerAttribute container to add attributes to
range
IEnumerable<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
self
IAttributeContainerAttribute container to add attributes to
range
IEnumerable<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
self
TAccessor to add the attribute to
index
FunctionAttributeIndexFunctionAttributeIndex to add the attributes to
names
IEnumerable<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
self
for fluent use
Type Parameters
T
Accessor 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
self
TContainer to add the attribute to
index
FunctionAttributeIndexFunctionAttributeIndex to add the attributes to
attributes
IEnumerable<AttributeValue>Attribute to add to the container
Returns
- T
self
for fluent use
Type Parameters
T
Container type