|
What's the correct way do design an Exif image information cmdlet? Hi,
I wonder if there are any guidelines for how to design objects that may or
may not have a specific property.
Take an image with exif-information: Should the cmdlet append properties to
a FileInfo object, one for each Exif property in some image file?
In exif, there are for example some properties that represtents the time an
foto was taken.
This could be represented as a DateTime. The problem is that the property is
optional in EXIF.
If represented as a string, you can allways return null or String.Empty, but
then you lose all the goodness of the strong typing.
Looking for guidance or best practices!
Regards,
/Staffan |