Skip to content

Commit

Permalink
Renamed SerializedAttribute to SerializedMemberAttribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
tacosontitan committed Mar 12, 2024
1 parent 249a66c commit d625982
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace Pasper;
/// </summary>
[SuppressMessage("Naming", "CA1711:Identifiers should not have incorrect suffix",
Justification = "This is an interface representing an attribute.")]
public interface ISerializedAttribute
public interface ISerializedMemberAttribute
{
/// <summary>
/// The name of the member when serialized.
Expand Down
2 changes: 1 addition & 1 deletion src/Pasper/Reflection/IgnoreExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static bool IsIgnored(this PropertyInfo source)

private static bool ImplementsIgnoredInterface(object attribute)
{
Type attributeType = attribute.GetType();
var attributeType = attribute.GetType();
return typeof(IIgnoreAttribute).IsAssignableFrom(attributeType);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ namespace Pasper;
/// </summary>
/// <param name="name">The name of the member when serialized.</param>
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public sealed class SerializedAttribute(string name)
public sealed class SerializedMemberAttribute(string name)
: Attribute,
ISerializedAttribute
ISerializedMemberAttribute
{
/// <summary>
/// Gets or sets the name of the member when serialized.
Expand Down

0 comments on commit d625982

Please sign in to comment.