@@ -248,13 +248,13 @@ public class AttributeList : IDictionary<string, object>, IDictionary, INotifyCo
248248 internal OrderedDictionary Inner ;
249249 protected object Attribute_ChangeLock = new ( ) ;
250250
251- private ICollection < Attribute > GetPropertyBasedAttributes ( bool useSerializationNames )
251+ private ICollection < Attribute > GetPropertyBasedAttributes ( bool useSerializationName )
252252 {
253253 var result = new List < Attribute > ( ) ;
254254 foreach ( DictionaryEntry entry in PropertyInfos )
255255 {
256256 var prop = ( PropertyInfo ) entry . Value ;
257- var name = useSerializationNames ? ( string ) entry . Key : prop . Name ;
257+ var name = useSerializationName ? ( string ) entry . Key : prop . Name ;
258258 var attr = new Attribute ( name , this , prop . GetValue ( this ) ) ;
259259 result . Add ( attr ) ;
260260 }
@@ -272,7 +272,7 @@ public DebugView(AttributeList item)
272272
273273 [ DebuggerBrowsable ( DebuggerBrowsableState . RootHidden ) ]
274274 public DebugAttribute [ ] Attributes
275- => Item . GetPropertyBasedAttributes ( useSerializationNames : false ) . Select ( attr => new DebugAttribute ( attr ) )
275+ => Item . GetPropertyBasedAttributes ( useSerializationName : false ) . Select ( attr => new DebugAttribute ( attr ) )
276276 . Concat ( Item . Inner . Values . Cast < Attribute > ( ) . Select ( attr => new DebugAttribute ( attr ) ) )
277277 . ToArray ( ) ;
278278
@@ -574,7 +574,7 @@ public int Count
574574
575575 public IEnumerable < AttrKVP > GetAllAttributesForSerialization ( )
576576 {
577- foreach ( var attr in GetPropertyBasedAttributes ( useSerializationNames : true ) )
577+ foreach ( var attr in GetPropertyBasedAttributes ( useSerializationName : true ) )
578578 yield return attr . ToKeyValuePair ( ) ;
579579
580580 foreach ( var attr in this )
0 commit comments