/// <summary> /// Returns the <see cref="BuildResourceInfo.Hue"/> property of '<paramref name="resource"/>' -or- 0 if an invalid resource was specified. /// </summary> public static int GetHue(BuildResource resource) { BuildResourceInfo info = GetInfo(resource); return(info == null ? 0 : info.Hue); }
/// <summary> /// Returns the <see cref="BuildResourceInfo.Name"/> property of '<paramref name="resource"/>' -or- an empty string if the resource specified was invalid. /// </summary> public static string GetName(BuildResource resource) { BuildResourceInfo info = GetInfo(resource); return(info == null ? String.Empty : info.Name); }
/// <summary> /// Returns the <see cref="BuildResourceInfo.Number"/> property of '<paramref name="resource"/>' -or- 0 if an invalid resource was specified. /// </summary> public static int GetLocalizationNumber(BuildResource resource) { BuildResourceInfo info = GetInfo(resource); return(info == null ? 0 : info.Number); }