diff --git a/Core/InteropServices/CorrespondingTypeAttribute.cs b/Core/InteropServices/CorrespondingTypeAttribute.cs index 696cd010..f1773629 100644 --- a/Core/InteropServices/CorrespondingTypeAttribute.cs +++ b/Core/InteropServices/CorrespondingTypeAttribute.cs @@ -101,7 +101,10 @@ namespace Vanara.InteropServices /// The types defined by the attribute. public static IEnumerable GetCorrespondingTypes(Type type) => GetAttrForType(type).Select(a => a.TypeRef); - private static IEnumerable GetAttrForObj(object value) + /// Gets the CorrespondingTypeAttribute instances associated with an enum value. + /// The enum value. + /// An enumeration of all associated CorrespondingTypeAttribute instances. + protected static IEnumerable GetAttrForObj(object value) { if (value == null) throw new ArgumentNullException(nameof(value)); var valueType = value.GetType(); @@ -112,7 +115,10 @@ namespace Vanara.InteropServices return attr; } - private static IEnumerable GetAttrForType(Type type) + /// Gets the CorrespondingTypeAttribute instances associated with a type. + /// The type. + /// An enumeration of all associated CorrespondingTypeAttribute instances. + protected static IEnumerable GetAttrForType(Type type) { if (type == null) throw new ArgumentNullException(nameof(type)); var attr = type.GetCustomAttributes();