Class FileAndPersonTag
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
Properties
FileName
Gets the image file name, or an empty string when undefined.
public string FileName { get; }
Property Value
PersonTag
Gets the associated person tag.
public PersonTag PersonTag { get; }
Property Value
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
Equals(FileAndPersonTag)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(FileAndPersonTag other)
Parameters
otherFileAndPersonTagAn object to compare with this object.
Returns
FromJsonString(string)
Deserializes an association from JSON.
public static FileAndPersonTag FromJsonString(string jsonString)
Parameters
jsonStringstringThe 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
jsonStringstringThe 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
fileAndPersonTagsIEnumerable<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.