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