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); }
public object CardProperty(int id, string property) { Card c = Card.Find(id); property = property.ToLowerInvariant(); return(c.GetProperty(property, "", StringComparison.InvariantCultureIgnoreCase, c.Alternate())); }