#include "stdafx.h" bool Delegate::IsSimilar( const Delegate &dgt ) const { if( this->Params().Equals( dgt.Params(), true ) ) // パラメータが等しい、もしくは反変 { if( this->returnType.Equals( dgt.returnType ) ) { // 戻り値が等しい return true; } else if( this->returnType.IsCovariant( dgt.returnType ) ) { // 戻り値が共変 return true; } } return false; }