Example #1
0
        public static IXamlType TryGetTypeConverterFromCustomAttribute(TransformerConfiguration cfg,
                                                                       IXamlCustomAttribute attribute)
        {
            if (attribute != null)
            {
                var arg = attribute.Parameters.FirstOrDefault();
                return((arg as IXamlType) ??
                       (arg is String sarg ? cfg.TypeSystem.FindType(sarg) : null));
            }

            return(null);
        }
Example #2
0
 public bool Equals(IXamlCustomAttribute other) => false;
Example #3
0
 public bool Equals(IXamlCustomAttribute other)
 {
     return(((SreCustomAttribute)other)?._data.Equals(_data) == true);
 }
Example #4
0
 public bool Equals(IXamlCustomAttribute other) => other is CecilCustomAttribute ca && ca.Data == Data;
Example #5
0
 public bool Equals(IXamlCustomAttribute other) =>
 other is RoslynAttribute attribute &&