XmlExtensionMethodsWriteOptionalElementStringT Method (XmlWriter, String, T, String) |
Writes an optional element string. If elementValue is equal to the default of T, no element is written.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.8.0.0 (5.8.21.0111)
Syntax public static void WriteOptionalElementString<T>(
this XmlWriter writer,
string elementName,
T elementValue,
string elementValueAsString
)
<ExtensionAttribute>
Public Shared Sub WriteOptionalElementString(Of T) (
writer As XmlWriter,
elementName As String,
elementValue As T,
elementValueAsString As String
)
Parameters
- writer
- Type: System.XmlXmlWriter
The writer. - elementName
- Type: SystemString
Name of the element. - elementValue
- Type: T
The element value. - elementValueAsString
- Type: SystemString
The element value as string.
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