diff --git a/samples/presentation/open_for_read_only_access/cs/Program.cs b/samples/presentation/open_for_read_only_access/cs/Program.cs index d9aa1879..8025dd29 100644 --- a/samples/presentation/open_for_read_only_access/cs/Program.cs +++ b/samples/presentation/open_for_read_only_access/cs/Program.cs @@ -19,7 +19,7 @@ static void GetSlideIdAndText(out string sldText, string docName, int index) OpenXmlElementList slideIds = part?.Presentation?.SlideIdList?.ChildElements ?? default; // If there are no slide IDs then there are no slides. - if (slideIds.Count() < 1) + if (slideIds.Count == 0) { sldText = ""; return;