Alternate() public method

public Alternate ( ) : string
return string
Example #1
0
        public object CardProperty(int id, string property)
        {
            Card c = Card.Find(id);

            property = property.ToLowerInvariant();
            var value = c.GetProperty(property, "", StringComparison.InvariantCultureIgnoreCase, c.Alternate());

            if (value is RichTextPropertyValue richText)
            {
                return(richText.ToString());
            }
            return(value);
        }
Example #2
0
        public object CardProperty(int id, string property)
        {
            Card c = Card.Find(id);

            property = property.ToLowerInvariant();
            return(c.GetProperty(property, "", StringComparison.InvariantCultureIgnoreCase, c.Alternate()));
        }