(BinaryImageDecoder.Image): null coalesce.

This commit is contained in:
morkt 2018-12-02 19:45:13 +04:00
parent e44198a132
commit 1cf41bf49f

View File

@ -124,15 +124,7 @@ namespace GameRes
public Stream Source { get { m_input.Position = 0; return m_input.AsStream; } }
public ImageFormat SourceFormat { get { return null; } }
public ImageMetaData Info { get; protected set; }
public ImageData Image
{
get
{
if (null == m_image)
m_image = GetImageData();
return m_image;
}
}
public ImageData Image { get { return m_image ?? (m_image = GetImageData()); } }
protected BinaryImageDecoder (IBinaryStream input)
{