File tree 1 file changed +3
-12
lines changed
1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change 4
4
using System . Collections . Specialized ;
5
5
using System . Configuration ;
6
6
using System . IO ;
7
+ using System . Linq ;
7
8
using System . Reflection ;
8
9
using System . Runtime . InteropServices ;
9
10
using System . Windows . Forms ;
@@ -1392,19 +1393,9 @@ private RegistryKey GetRegKey(SettingsProperty Property)
1392
1393
return RegistryKey ;
1393
1394
}
1394
1395
1395
- private bool IsUserScoped ( SettingsProperty Property )
1396
+ private static bool IsUserScoped ( SettingsProperty property )
1396
1397
{
1397
- foreach ( DictionaryEntry Entry in Property . Attributes )
1398
- {
1399
- var Attribute = ( Attribute ) Entry . Value ;
1400
-
1401
- if ( Attribute is UserScopedSettingAttribute )
1402
- {
1403
- return true ;
1404
- }
1405
- }
1406
-
1407
- return false ;
1398
+ return ( from DictionaryEntry entry in property . Attributes select ( Attribute ) entry . Value ) . OfType < UserScopedSettingAttribute > ( ) . Any ( ) ;
1408
1399
}
1409
1400
1410
1401
private string GetSubKeyPath ( )
You can’t perform that action at this time.
0 commit comments