Changed to use .Any()
3bacb1ca
Aaron Campf
committed
1 changed file
ShellSearchFolder.cs
/Shell/WindowsSearch/ShellSearchFolder.cs-2+2
/Shell/WindowsSearch/ShellSearchFolder.cs
Add comment 136 public void SetStacks(params string[] canonicalNames)
Add comment 137 {
Add comment 138 if (canonicalNames == null) throw new ArgumentNullException("canonicalNames");
Add comment 139 Minus   List<PROPERTYKEY> propertyKeyList = new List<PROPERTYKEY>();
Add comment 139 Plus   var propertyKeyList = new List<PROPERTYKEY>();
Add comment 140
Add comment 141 foreach (string prop in canonicalNames)
Add comment 142 {
Add comment 147 propertyKeyList.Add(propKey);
Add comment 148 }
Add comment 149
Add comment 150 Minus   if (propertyKeyList.Count > 0)
Add comment 150 Plus   if (propertyKeyList.Any())
Add comment 151 {
Add comment 152 SetStacks(propertyKeyList.ToArray());
Add comment 153 }