XmlExtensionMethodsWriteOptionalAttributeStringT Method (XmlWriter, String, T, String, T) |
Writes an optional attribute string. If attributeValue is equal to the default null value specified, no attribute is written.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.7.0.0 (5.7.0)
Syntax public static void WriteOptionalAttributeString<T>(
this XmlWriter writer,
string attributeName,
T attributeValue,
string attributeValueAsString,
T defaultNullValue
)
<ExtensionAttribute>
Public Shared Sub WriteOptionalAttributeString(Of T) (
writer As XmlWriter,
attributeName As String,
attributeValue As T,
attributeValueAsString As String,
defaultNullValue As T
)
Parameters
- writer
- Type: System.XmlXmlWriter
The writer. - attributeName
- Type: SystemString
Name of the attribute. - attributeValue
- Type: T
The attribute value. - attributeValueAsString
- Type: SystemString
The attribute value as string. - defaultNullValue
- Type: T
The default null value.
Type Parameters
- T
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
XmlWriter. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also