public override void UpdateData(ResourceElement newResElem)
        {
            base.UpdateData(newResElem);

            var binData = (BinaryResourceData)newResElem.ResourceData;

            byte[] imageData;
            SerializedImageListStreamerResourceElementTreeNodeFactory.GetImageData(GetModule(this), binData.TypeName, binData.Data, out imageData);
            InitializeImageData(imageData);
        }
        internal static string CheckCanUpdateData(ModuleDef module, ResourceElement newResElem)
        {
            var binData = (BinaryResourceData)newResElem.ResourceData;

            byte[] imageData;
            if (!SerializedImageListStreamerResourceElementTreeNodeFactory.GetImageData(module, binData.TypeName, binData.Data, out imageData))
            {
                return("The new data is not an image list.");
            }

            try {
                ReadImageData(imageData);
            }
            catch {
                return("The new data is not an image list.");
            }

            return(string.Empty);
        }