Example #1
0
        internal static bool TryParseAttributeName(string attributeName, out FtMetaField.PropertyId id)
        {
            id = FtMetaField.PropertyId.Id; // 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);
        }
Example #2
0
 internal static string ToAttributeName(FtMetaField.PropertyId id)
 {
     return(formatRecArray[(int)id].AttributeName);
 }