Table of Contents

Class Util

Namespace
TCSystem.MetaData
Assembly
TCSystem.MetaData.dll

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

IEnumerable<string>

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

dictionary IDictionary<TKey, TValue>
key TKey
defaultValue TValue

Returns

TValue

Type Parameters

TKey
TValue

IsSupportedFileType(string)

Determines whether a path has a supported image extension and is outside the recycle bin.

public static bool IsSupportedFileType(string fileName)

Parameters

fileName string

Returns

bool

SortPersonTags(IEnumerable<PersonTag>)

Sorts person tags by ordinal person name, placing empty names last.

public static IEnumerable<PersonTag> SortPersonTags(IEnumerable<PersonTag> personTags)

Parameters

personTags IEnumerable<PersonTag>

Returns

IEnumerable<PersonTag>

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

date DateTimeOffset
ticks long

Returns

DateTimeOffset