private IEnumerable ShowcaseAnnotations()

in Older/ReSharper101CSharp/NullabilityAnnotations.cs [11:22]


        private IEnumerable<string> ShowcaseAnnotations([ItemNotNull] List<string> strings, // 20161RTM: CAs to mark item nullability
                                                        [ItemCanBeNull] bool flag) // 20161RTM: Inspection "Container nullability attribute usage with declaration of non-container type" + QF
        {
            var badWord = "hell";
            foreach (var str in strings)
            {
                if (str.Contains(badWord))
                {
                    yield return str.Replace(badWord, "****");
                }
            }
        }