10 references to HasPreamble
Microsoft.CodeAnalysis.CodeStyle (10)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\TextEncodingKind.cs (10)
62
Debug.Assert(
HasPreamble
(Encoding.Unicode));
63
kind = (encoding.Equals(Encoding.Unicode) ||
HasPreamble
(encoding)) ? TextEncodingKind.EncodingUnicode_LE_BOM : TextEncodingKind.EncodingUnicode_LE;
67
Debug.Assert(
HasPreamble
(Encoding.BigEndianUnicode));
68
kind = (encoding.Equals(Encoding.BigEndianUnicode) ||
HasPreamble
(encoding)) ? TextEncodingKind.EncodingUnicode_BE_BOM : TextEncodingKind.EncodingUnicode_BE;
72
Debug.Assert(
HasPreamble
(Encoding.UTF32));
73
kind = (encoding.Equals(Encoding.UTF32) ||
HasPreamble
(encoding)) ? TextEncodingKind.EncodingUtf32_LE_BOM : TextEncodingKind.EncodingUtf32_LE;
77
Debug.Assert(
HasPreamble
(Encoding.UTF32));
78
kind = (encoding.Equals(Encoding.UTF32) ||
HasPreamble
(encoding)) ? TextEncodingKind.EncodingUtf32_BE_BOM : TextEncodingKind.EncodingUtf32_BE;
82
Debug.Assert(
HasPreamble
(Encoding.UTF8));
83
kind = (encoding.Equals(Encoding.UTF8) ||
HasPreamble
(encoding)) ? TextEncodingKind.EncodingUtf8_BOM : TextEncodingKind.EncodingUtf8;