コード例 #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);
        }
コード例 #2
0
 public bool Equals(IXamlIlCustomAttribute other) => false;
コード例 #3
0
ファイル: SreTypeSystem.cs プロジェクト: OmniUI/XamlIl2
 public bool Equals(IXamlIlCustomAttribute other)
 {
     return(((SreCustomAttribute)other)?._data.Equals(_data) == true);
 }
コード例 #4
0
 public bool Equals(IXamlIlCustomAttribute other) => other is CecilCustomAttribute ca && ca.Data == Data;