Ejemplo n.º 1
0
        public static IXamlIlType TryGetTypeConverterFromCustomAttribute(XamlIlTransformerConfiguration cfg,
                                                                         IXamlIlCustomAttribute attribute)
        {
            if (attribute != null)
            {
                var arg = attribute.Parameters.FirstOrDefault();
                return((arg as IXamlIlType) ??
                       (arg is String sarg ? cfg.TypeSystem.FindType(sarg) : null));
            }

            return(null);
        }
Ejemplo n.º 2
0
 public bool Equals(IXamlIlCustomAttribute other) => false;
Ejemplo n.º 3
0
 public bool Equals(IXamlIlCustomAttribute other)
 {
     return(((SreCustomAttribute)other)?._data.Equals(_data) == true);
 }
Ejemplo n.º 4
0
 public bool Equals(IXamlIlCustomAttribute other) => other is CecilCustomAttribute ca && ca.Data == Data;