Catel.ReSharper.DictionaryWithKeyStringOfListOfTextRangeOrDocumentRangeExtensions.AsHotspotInfos C# (CSharp) Method

AsHotspotInfos() public static method

public static AsHotspotInfos ( this @this ) : HotspotInfo[]
@this this
return HotspotInfo[]
        public static HotspotInfo[] AsHotspotInfos(this Dictionary<string, List<DocumentRange>> @this)
        {
            Argument.IsNotNull(() => @this);

            return (from fieldName in @this.Keys
                    let nameSuggestionsExpression = new NameSuggestionsExpression(new[] { " " })
                    let field = new TemplateField(fieldName, nameSuggestionsExpression, 0)
                    where @this[fieldName].Count > 0
                    select new HotspotInfo(field, @this[fieldName])).ToArray();
        }
DictionaryWithKeyStringOfListOfTextRangeOrDocumentRangeExtensions