Skip to content

Commit

Permalink
Fix string names for DoNotSerializeAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
rockfordlhotka committed Dec 30, 2024
1 parent 2991105 commit 0c6a07a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal class DefinitionExtractionContext
private const string _cslaNamespace = "Csla";
private const string _autoSerializableAttributeName = "AutoSerializableAttribute";
private const string _autoSerializedAttributeName = "AutoSerializedAttribute";
private const string _autoNonSerializedPropertyAttributeName = "NonSerializedPropertyAttribute";
private const string _autoDoNotSerializeAttributeName = "DoNotSerializeAttribute";
private const string _iMobileObjectInterfaceNamespace = "Csla.Serialization.Mobile";
private const string _iMobileObjectInterfaceName = "IMobileObject";

Expand Down Expand Up @@ -128,7 +128,7 @@ public bool IsPropertyDecoratedWithAutoSerialized(PropertyDeclarationSyntax prop
/// <returns>Boolean true if the property is decorated with the AutoNonSerialized attribute, otherwise false</returns>
public bool IsPropertyDecoratedWithAutoNonSerialized(PropertyDeclarationSyntax propertyDeclaration)
{
return IsPropertyDecoratedWith(propertyDeclaration, _autoNonSerializedPropertyAttributeName, _cslaNamespace);
return IsPropertyDecoratedWith(propertyDeclaration, _autoDoNotSerializeAttributeName, _cslaNamespace);
}

/// <summary>
Expand All @@ -148,7 +148,7 @@ public bool IsFieldDecoratedWithAutoSerialized(FieldDeclarationSyntax fieldDecla
/// <returns>Boolean true if the field is decorated with the AutoNonSerialized attribute, otherwise false</returns>
public bool IsFieldDecoratedWithAutoNonSerialized(FieldDeclarationSyntax fieldDeclaration)
{
return IsFieldDecoratedWith(fieldDeclaration, _autoNonSerializedPropertyAttributeName, _cslaNamespace);
return IsFieldDecoratedWith(fieldDeclaration, _autoDoNotSerializeAttributeName, _cslaNamespace);
}

#region Private Helper Methods
Expand Down
2 changes: 1 addition & 1 deletion Source/Csla/DoNotSerializeAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//-----------------------------------------------------------------------
// <copyright file="NonSerializedPropertyAttribute.cs" company="Marimer LLC">
// <copyright file="DoNotSerializeAttribute.cs" company="Marimer LLC">
// Copyright (c) Marimer LLC. All rights reserved.
// Website: https://cslanet.com
// </copyright>
Expand Down

0 comments on commit 0c6a07a

Please sign in to comment.