Пример #1
0
 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);
 }
Пример #2
0
 public XamlIlAstXamlPropertyValueNode(IXamlIlLineInfo lineInfo,
                                       IXamlIlAstPropertyReference property, IXamlIlAstValueNode value) : base(lineInfo)
 {
     Property = property;
     Values   = new List <IXamlIlAstValueNode> {
         value
     };
 }
Пример #3
0
 public XamlIlAstXamlPropertyValueNode(IXamlIlLineInfo lineInfo,
                                       IXamlIlAstPropertyReference property, IEnumerable <IXamlIlAstValueNode> values) : base(lineInfo)
 {
     Property = property;
     Values   = values.ToList();
 }