public static IXamlIlProperty GetClrProperty(this IXamlIlAstPropertyReference r) { if (r is XamlIlAstClrPropertyReference clr) { return(clr.Property); } throw new XamlIlParseException($"Unable to convert {r} to CLR property", r); }
public XamlIlAstXamlPropertyValueNode(IXamlIlLineInfo lineInfo, IXamlIlAstPropertyReference property, IXamlIlAstValueNode value) : base(lineInfo) { Property = property; Values = new List <IXamlIlAstValueNode> { value }; }
public XamlIlAstXamlPropertyValueNode(IXamlIlLineInfo lineInfo, IXamlIlAstPropertyReference property, IEnumerable <IXamlIlAstValueNode> values) : base(lineInfo) { Property = property; Values = values.ToList(); }