Table of Contents

Class FileAndPersonTag

Namespace
TCSystem.MetaData
Assembly
TCSystem.MetaData.dll

Associates an image file name with a person tag.

public sealed class FileAndPersonTag : IEquatable<FileAndPersonTag>
Inheritance
FileAndPersonTag
Implements
Inherited Members

Constructors

FileAndPersonTag(string, PersonTag)

Associates an image file name with a person tag.

public FileAndPersonTag(string _fileName, PersonTag _personTag)

Parameters

_fileName string

The image file name.

_personTag PersonTag

The associated person tag.

Properties

FileName

Gets the image file name, or an empty string when undefined.

public string FileName { get; }

Property Value

string

PersonTag

Gets the associated person tag.

public PersonTag PersonTag { get; }

Property Value

PersonTag

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(FileAndPersonTag)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(FileAndPersonTag other)

Parameters

other FileAndPersonTag

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

FromJsonString(string)

Deserializes an association from JSON.

public static FileAndPersonTag FromJsonString(string jsonString)

Parameters

jsonString string

The JSON to deserialize.

Returns

FileAndPersonTag

The association, or null for null or empty input.

FromJsonStringArray(string)

Deserializes associations from a JSON array.

public static IEnumerable<FileAndPersonTag> FromJsonStringArray(string jsonString)

Parameters

jsonString string

The JSON array to deserialize.

Returns

IEnumerable<FileAndPersonTag>

The associations, or an empty sequence for null or empty input.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToJsonString()

Serializes the association to compact JSON.

public string ToJsonString()

Returns

string

The serialized association.

ToJsonStringArray(IEnumerable<FileAndPersonTag>)

Serializes associations to a compact JSON array.

public static string ToJsonStringArray(IEnumerable<FileAndPersonTag> fileAndPersonTags)

Parameters

fileAndPersonTags IEnumerable<FileAndPersonTag>

The associations to serialize.

Returns

string

The serialized array.

ToString()

Serializes the association to indented JSON.

public override string ToString()

Returns

string

The formatted JSON.