public override ResourceData FromResource(ResourceLang lang, byte[] data) { if (lang == null) { throw new ArgumentNullException(nameof(lang)); } var isIcon = lang.Name.Type.Identifier.KnownType == Win32ResourceType.IconImage; return(IconCursorImageResourceData.TryCreate(isIcon, lang, data, out var rd) ? rd : null); }
public IconCursorImageResourceData FromFileData(ResourceLang lang, byte[] data, bool isIcon) { return(IconCursorImageResourceData.TryCreate(isIcon, lang, data, out var rd) ? rd : null); }