Class Util
Provides general helpers for image metadata.
public static class Util
- Inheritance
-
Util
- Inherited Members
Properties
SupportedFileTypes
Gets the supported lowercase image file extensions.
public static IEnumerable<string> SupportedFileTypes { get; }
Property Value
Methods
GetValueOrDefault<TKey, TValue>(IDictionary<TKey, TValue>, TKey, TValue)
Gets a dictionary value or a caller-supplied default when the key is absent.
public static TValue GetValueOrDefault<TKey, TValue>(this IDictionary<TKey, TValue> dictionary, TKey key, TValue defaultValue)
Parameters
dictionaryIDictionary<TKey, TValue>keyTKeydefaultValueTValue
Returns
- TValue
Type Parameters
TKeyTValue
IsSupportedFileType(string)
Determines whether a path has a supported image extension and is outside the recycle bin.
public static bool IsSupportedFileType(string fileName)
Parameters
fileNamestring
Returns
SortPersonTags(IEnumerable<PersonTag>)
Sorts person tags by ordinal person name, placing empty names last.
public static IEnumerable<PersonTag> SortPersonTags(IEnumerable<PersonTag> personTags)
Parameters
personTagsIEnumerable<PersonTag>
Returns
Trim(DateTimeOffset, long)
Trims a local date-time value down to the nearest multiple of a tick interval.
public static DateTimeOffset Trim(this DateTimeOffset date, long ticks)
Parameters
dateDateTimeOffsettickslong