Turned getter-like extension methods into extension properties (#1157)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-04 13:00:56 +01:00
1 parent 0375318b1b
commit f649febf88
286 files changed
+1379 -1109

No files matched your search

@@ -22,8 +22,8 @@ internal static class FileExtractionErrorCodeExtensions
/// Gets a value indicating whether reading the file again will fail again, as long as the file
/// itself does not change.
/// </summary>
/// <returns>True, when the reason lies in the file itself.</returns>
internal bool IsPermanentIndexingFailure() => code switch
/// <value>True, when the reason lies in the file itself.</value>
internal bool IsPermanentIndexingFailure => code switch
{
//
// The reason lies in the file. Reading it again without changing it produces the same
@@ -60,8 +60,8 @@ internal static class FileExtractionErrorCodeExtensions
/// Used to group the files of an indexing run by what happened to them: nine hundred entries
/// which all say the same sentence are one cause, not nine hundred.
/// </remarks>
/// <returns>The localized name of the cause, or an empty text when the code has none.</returns>
internal string GetIndexingCauseName() => code switch
/// <value>The localized name of the cause, or an empty text when the code has none.</value>
internal string IndexingCauseName => code switch
{
FileExtractionErrorCode.NO_TEXT_EXTRACTED => TB("No readable text"),
FileExtractionErrorCode.NO_CONTENT => TB("No content"),