2

I need to backport some code that uses this method to .NET 3.5, and from Reflector I can't seem to discern what would be the correct way to provide my own C# implementation for it.

Any help?

Omer Raviv
  • 11,409
  • 5
  • 43
  • 82

1 Answers1

4

That method uses an embedded resource named XmlCharType.bin, you can see it with Reflector. It is used by System.Xml.XmlCharType.get_Instance() to initialize the charProperties pointer. That same resource is present in 3.5 as well, you could use it the same way.

Or take the lesser 3.5 approach:

WhitespaceChars = new char[] { ' ', '\t', '\n', '\r' };
Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536