Rename GetAttribute to GetMappingAttribute to be more accurate

This commit is contained in:
Matt Nadareski
2026-03-26 11:17:43 -04:00
parent b72fcfc60b
commit fdee2103ad
2 changed files with 3 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ namespace SabreTools.Metadata.Tools
/// </summary>
/// <param name="value">Value to use</param>
/// <returns>MappingAttribute attached to the value</returns>
public static MappingAttribute? GetAttribute(T? value)
public static MappingAttribute? GetMappingAttribute(T? value)
{
// Null value in, null value out
if (value is null)

View File

@@ -43,7 +43,7 @@ namespace SabreTools.Metadata.Tools
continue;
// Try to get the mapping attribute
MappingAttribute? attr = AttributeHelper<T>.GetAttribute(value);
MappingAttribute? attr = AttributeHelper<T>.GetMappingAttribute(value);
if (attr?.Mappings is null || attr.Mappings.Length == 0)
continue;
@@ -106,7 +106,7 @@ namespace SabreTools.Metadata.Tools
continue;
// Try to get the mapping attribute
MappingAttribute? attr = AttributeHelper<T>.GetAttribute(value);
MappingAttribute? attr = AttributeHelper<T>.GetMappingAttribute(value);
if (attr?.Mappings is null || attr.Mappings.Length == 0)
continue;