Imports System
Imports System.Xml
Public Class Sample
Public Shared Sub Main()
Dim illegalChar As Char = ChrW(CInt("&hFFFE"))
Dim charsToVerify As String = "Test String "
Console.WriteLine(XmlConvert.VerifyXmlChars(charsToVerify + illegalChar))
End Sub
End Class