Summary
Returns the first encoding where all the preamble bytes match exactly.
- Assembly
- GitVersion
.Core .dll - Namespace
- GitVersion
.Helpers - Containing Type
- EncodingHelper
Syntax
public static Encoding DetectEncoding(IList<byte> bytes)
Parameters
| Name | Type | Description |
|---|---|---|
| bytes | IList |
The bytes to check for a matching preamble. |
Return Value
| Type | Description |
|---|---|
| Encoding | The encoding that has a matching preamble or null if one was not found. |