SerializationExtensions.ReplaceInvalidXmlChars Method

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

SerializationExtensions.ReplaceInvalidXmlChars Method

BR.AN.PviServices .NET


Removes the invalid XML chars from instance which would result in invalid files using xml serialization. Invalid chars are basically asci control charackters like CTRL+A

[Visual Basic]

<Extension> _

Public Shared Sub ReplaceInvalidXmlChars( _

  ByVal instance As String, _

  Optional ByVal replaceChar As String = ? _

)

[C#]

[Extension]

public static string ReplaceInvalidXmlChars(

  this string instance,

  this string replaceChar

);

Parameters

instance

The string to work with.

replaceChar

Character to be used as replacement.

Return Value

The resulting string.

See Also

SerializationExtensions Class | BR.AN.PviServices Namespace


Generated from assembly BR.AN.PviServices [8.1.0.4]