public static string GetString([NotNull] this IResourceManager resourceManager, [NotNull] Enum enumValue) { ArgumentUtility.CheckNotNull("resourceManager", resourceManager); ArgumentUtility.CheckNotNull("enumValue", enumValue); return(resourceManager.GetString(ResourceIdentifiersAttribute.GetResourceIdentifier(enumValue))); }
private static bool IsEnumTypeNameSuppressed(Type type) { ResourceIdentifiersAttribute attrib = GetAttribute(type); if (attrib == null) { return(false); } else { return(attrib.SuppressTypeName); } }