IVertexCustom.TryGetCustomAttribute

IVertexCustom.TryGetCustomAttribute method

Tries to get a custom attribute.

public bool TryGetCustomAttribute(string attributeName, out object value)
ParameterTypeDescription
attributeNameStringThe attribute name.
valueObject&the value if found, or null if not found.

Return Value

true if the value was found. False otherwise.

Examples

public bool TryGetCustomAttribute(string attributeName, out object value)
{
    if (attributeName != "CustomFloat") { value = null; return false; }
    value = this.CustomValue; return true;
}

See Also