public GetProperty ( string name, object defaultReturn = null, System.StringComparison scompare = StringComparison.InvariantCulture, string alternate = null ) : object | ||
name | string | |
defaultReturn | object | |
scompare | System.StringComparison | |
alternate | string | |
리턴 | object |
public object CardAlternateProperty(int id, string alt, string property) { Card c = Card.Find(id); property = property.ToLowerInvariant(); return(c.GetProperty(property, "", StringComparison.InvariantCultureIgnoreCase, alt)); }
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); }