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