Method AddAttribute
AddAttribute<T>(T, FunctionAttributeIndex, AttributeKind)
Adds a single AttributeKind to an IAttributeContainer
Declaration
public static T AddAttribute<T>(this T self, FunctionAttributeIndex index, AttributeKind kind)
where T : class, IAttributeContainer
Parameters
public static T AddAttribute<T>(this T self, FunctionAttributeIndex index, AttributeKind kind)
where T : class, IAttributeContainer
T | self | Container to add the attribute to |
FunctionAttributeIndex | index | FunctionAttributeIndex to add the attribute to |
AttributeKind | kind | Attribute to add to the container |
Returns
T |
|
Type Parameters
T | Container type |
AddAttribute<T>(T, FunctionAttributeIndex, AttributeValue)
Adds a single AttributeValue to an IAttributeContainer
Declaration
public static T AddAttribute<T>(this T self, FunctionAttributeIndex index, AttributeValue attrib)
where T : class, IAttributeContainer
Parameters
public static T AddAttribute<T>(this T self, FunctionAttributeIndex index, AttributeValue attrib)
where T : class, IAttributeContainer
T | self | Container to add the attribute to |
FunctionAttributeIndex | index | FunctionAttributeIndex to add the attribute to |
AttributeValue | attrib | Attribute to add to the container |
Returns
T |
|
Type Parameters
T | Container type |