internal static bool TryParseAttributeName(string attributeName, out FtMeta.PropertyId id) { id = FtMeta.PropertyId.Culture; // avoid compiler error bool result = false; foreach (FormatRec rec in formatRecArray) { if (String.Equals(rec.AttributeName, attributeName, StringComparison.OrdinalIgnoreCase)) { id = rec.Id; result = true; break; } } return(result); }
internal static string ToAttributeName(FtMeta.PropertyId id) { return(formatRecArray[(int)id].AttributeName); }