In ImageFormat
, there are a few properties such as Png
, Tiff
etc.
Now, given a string is it possible to retrieve the corresponding static property?
Here's the code
[Test]
public void GetPng()
{
Assert.AreEqual(ImageFormat.Png, GetImageFormat("Png")); //how to construct a GetImageFormat function?
}