C# Class XmlEncodeExtension, extensions

Show file Open project: netfx/extensions Class Usage Examples

Public Methods

Method Description
XmlEncode ( string value ) : string

Encodes a string for use in an XML element or attribute.

XmlEncode ( this value ) : string

Encodes a string for use in an XML element or attribute.

Method Details

XmlEncode() public static method

Encodes a string for use in an XML element or attribute.
public static XmlEncode ( string value ) : string
value string The value to encode in XML compatible way.
return string

XmlEncode() public static method

Encodes a string for use in an XML element or attribute.
public static XmlEncode ( this value ) : string
value this The value to encode in XML compatible way.
return string