public bool VerifyImplements (InterfaceMemberBase mb)
{
var ifaces = PartialContainer.Interfaces;
if (ifaces != null) {
foreach (TypeSpec t in ifaces){
if (t == mb.InterfaceType)
return true;
var expanded_base = t.Interfaces;
if (expanded_base == null)
continue;
foreach (var bt in expanded_base) {
if (bt == mb.InterfaceType)
return true;
}
}
}
Report.SymbolRelatedToPreviousError (mb.InterfaceType);
Report.Error (540, mb.Location, "`{0}': containing type does not implement interface `{1}'",
mb.GetSignatureForError (), mb.InterfaceType.GetSignatureForError ());
return false;
}