GoDigram for .NET Framework and .NET Core
Northwoods.Go.Xml Namespace / GoXmlTransformer Class / WriteAttrVal Method / WriteAttrVal(String,Single) Method
the attribute name, or null to just convert the value to a string and return it
the value to write
In This Topic
    WriteAttrVal(String,Single) Method
    In This Topic
    Write an attribute of the name name with a string representation for the value val.
    Syntax
    public string WriteAttrVal( 
       string name,
       float val
    )

    Parameters

    name
    the attribute name, or null to just convert the value to a string and return it
    val
    the value to write

    Return Value

    the value converted to a string
    Remarks

    This converts the object reference to a string and then writes the attribute by calling GoXmlWriter.GoXmlWriter.WriteAttrVal.

    You can use this method to just convert a value to a string by passing null as the attribute name. You can convert a string back to a value by calling SingleFromString.

    See Also