EncodingHelper Class
A utility class that gets the encoding of a file from its byte order mark.
Namespace: Microsoft.VisualStudio.TextTemplating
Assembly: Microsoft.VisualStudio.TextTemplating (in Microsoft.VisualStudio.TextTemplating.dll)
Syntax
'Declaration
Public NotInheritable Class EncodingHelper
'Usage
You do not need to declare an instance of a static class in order to access its members.
public static class EncodingHelper
public ref class EncodingHelper abstract sealed
public final class EncodingHelper
Remarks
When a user creates a text template, they can specify the encoding that they want the text template host to use to create the generated text. If the user does not specify the encoding, the host can try to determine the encoding of the text template. The host can then use the same encoding to create the generated text.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.TextTemplating.EncodingHelper
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
Microsoft.VisualStudio.TextTemplating Namespace
Other Resources
Generating Artifacts By Using Text Templates