public static bool TryGetExplicitImportInfo(Type memberType, object[] attributes, object site, out ImportInfo importInfo) { if (attributes.Any(a => a is ImportAttribute || a is ImportManyAttribute)) { importInfo = GetImportInfo(memberType, attributes, site); return true; } importInfo = null; return false; }
public static bool TryGetExplicitImportInfo(Type memberType, object[] attributes, object site, out ImportInfo importInfo) { if (attributes.Any(a => a is ImportAttribute || a is ImportManyAttribute)) { importInfo = GetImportInfo(memberType, attributes, site); return(true); } importInfo = null; return(false); }