////------------------------------------------------------------------------------------------------------------------------------ /// <summary> /// Initializes a new instance of the <see cref="Lyrics3v2TextField"/> class. /// </summary> /// <param name="identifier">The identifier of the field.</param> public Lyrics3v2TextField(Lyrics3v2TextFieldIdentifier identifier) : base(GetIdentifier(identifier)) { }
////------------------------------------------------------------------------------------------------------------------------------ /// <summary> /// Gets the identifier as string. /// </summary> /// <param name="identifier">The <see cref="Lyrics3v2TextFieldIdentifier"/>.</param> /// <returns> /// The identifier as string for the specified <see cref="Lyrics3v2TextFieldIdentifier"/>, or null if not found. /// </returns> public static string GetIdentifier(Lyrics3v2TextFieldIdentifier identifier) { string id; return Identifiers.TryGetValue(identifier, out id) ? id : null; }