// Make a link modifier suitable for COM help from the method internal static Object MakeLinkModifier(MemberInfo memberInfo) { if (memberInfo.DeclaringType == null) { return(null); } // Get the type BasicInfo typeInfo = TypeLibrary.FindMemberByType(memberInfo.DeclaringType, TypeLibrary.WARN); if (typeInfo == null) { return(null); } // Get the member BasicInfo comMemberInfo = typeInfo.FindMemberByName(memberInfo.Name); if (comMemberInfo == null) { return(null); } return(MakeLinkModifier(comMemberInfo)); }