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); }
public bool Equals(IXamlIlCustomAttribute other) => false;
public bool Equals(IXamlIlCustomAttribute other) { return(((SreCustomAttribute)other)?._data.Equals(_data) == true); }
public bool Equals(IXamlIlCustomAttribute other) => other is CecilCustomAttribute ca && ca.Data == Data;