mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-07-08 18:06:41 +00:00
Rename GetAttribute to GetMappingAttribute to be more accurate
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user