Click or drag to resize
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.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.3.0.0 (5.3.0)
Syntax
public static void WriteOptionalElementString<T>(
	this XmlWriter writer,
	string elementName,
	T elementValue
)

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