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