Failures in CreateDelegate() tests. (#18639)
Failures in CreateDelegate() tests. (#18639)

- Reflection does not guarantee reference equality
  for MethodInfo's. This test only works by accident on CoreCLR

  Changed test to use MethodInfo.Equals() which is guaranteed
  on CoreRT and no worse than before on CoreCLR (MethodInfo.Equals()
  is just reference equality on CoreCLR.)

  (the long sad story of Reflection equality lives in
  https://github.com/dotnet/corefx/issues/8130.)

- Found an interesting corner case in the method
  lookup rules for CreateDelegate(). This will take
  time to study and is unlikely to block anything real world
  so I'm disabling these for UapAot and tracking via this issue:

  https://github.com/dotnet/corert/issues/3387
mazong1123/corefx,elijah6/corefx,fgreinacher/corefx,ptoonen/corefx,elijah6/corefx,stone-li/corefx,richlander/corefx,shimingsg/corefx,yizhang82/corefx,stone-li/corefx,krk/corefx,weltkante/corefx,krk/corefx,ericstj/corefx,dhoehna/corefx,stone-li/corefx,Petermarcu/corefx,twsouthwick/corefx,YoupHulsebos/corefx,Ermiar/corefx,gkhanna79/corefx,ptoonen/corefx,elijah6/corefx,axelheer/corefx,krk/corefx,elijah6/corefx,Petermarcu/corefx,ericstj/corefx,ravimeda/corefx,ptoonen/corefx,tijoytom/corefx,stephenmichaelf/corefx,mmitche/corefx,rjxby/corefx,the-dwyer/corefx,Petermarcu/corefx,billwert/corefx,nchikanov/corefx,krytarowski/corefx,krytarowski/corefx,rjxby/corefx,parjong/corefx,nchikanov/corefx,mmitche/corefx,mmitche/corefx,nchikanov/corefx,MaggieTsang/corefx,axelheer/corefx,cydhaselton/corefx,JosephTremoulet/corefx,krk/corefx,cydhaselton/corefx,Ermiar/corefx,wtgodbe/corefx,stone-li/corefx,Petermarcu/corefx,rubo/corefx,rjxby/corefx,richlander/corefx,dhoehna/corefx,twsouthwick/corefx,twsouthwick/corefx,DnlHarvey/corefx,jlin177/corefx,yizhang82/corefx,rjxby/corefx,rjxby/corefx,tijoytom/corefx,jlin177/corefx,mazong1123/corefx,weltkante/corefx,ericstj/corefx,krk/corefx,the-dwyer/corefx,YoupHulsebos/corefx,cydhaselton/corefx,seanshpark/corefx,gkhanna79/corefx,nbarbettini/corefx,parjong/corefx,stephenmichaelf/corefx,ravimeda/corefx,twsouthwick/corefx,Petermarcu/corefx,ViktorHofer/corefx,ravimeda/corefx,ViktorHofer/corefx,nbarbettini/corefx,billwert/corefx,nbarbettini/corefx,cydhaselton/corefx,ptoonen/corefx,rjxby/corefx,BrennanConroy/corefx,JosephTremoulet/corefx,axelheer/corefx,MaggieTsang/corefx,gkhanna79/corefx,Ermiar/corefx,weltkante/corefx,Jiayili1/corefx,krytarowski/corefx,zhenlan/corefx,Jiayili1/corefx,nchikanov/corefx,alexperovich/corefx,the-dwyer/corefx,zhenlan/corefx,ptoonen/corefx,shimingsg/corefx,tijoytom/corefx,MaggieTsang/corefx,krk/corefx,nbarbettini/corefx,gkhanna79/corefx,Jiayili1/corefx,zhenlan/corefx,dotnet-bot/corefx,stephenmichaelf/corefx,the-dwyer/corefx,JosephTremoulet/corefx,parjong/corefx,BrennanConroy/corefx,zhenlan/corefx,seanshpark/corefx,dotnet-bot/corefx,wtgodbe/corefx,ericstj/corefx,yizhang82/corefx,parjong/corefx,BrennanConroy/corefx,nbarbettini/corefx,nbarbettini/corefx,fgreinacher/corefx,krytarowski/corefx,cydhaselton/corefx,Petermarcu/corefx,dhoehna/corefx,alexperovich/corefx,Jiayili1/corefx,YoupHulsebos/corefx,YoupHulsebos/corefx,shimingsg/corefx,weltkante/corefx,twsouthwick/corefx,mmitche/corefx,mazong1123/corefx,Ermiar/corefx,DnlHarvey/corefx,richlander/corefx,jlin177/corefx,ptoonen/corefx,Ermiar/corefx,JosephTremoulet/corefx,tijoytom/corefx,rubo/corefx,dhoehna/corefx,jlin177/corefx,ravimeda/corefx,parjong/corefx,zhenlan/corefx,the-dwyer/corefx,ViktorHofer/corefx,rjxby/corefx,alexperovich/corefx,weltkante/corefx,mmitche/corefx,ViktorHofer/corefx,axelheer/corefx,ravimeda/corefx,stone-li/corefx,dotnet-bot/corefx,JosephTremoulet/corefx,nchikanov/corefx,richlander/corefx,richlander/corefx,richlander/corefx,dhoehna/corefx,mmitche/corefx,mazong1123/corefx,rubo/corefx,alexperovich/corefx,jlin177/corefx,nchikanov/corefx,richlander/corefx,ravimeda/corefx,yizhang82/corefx,jlin177/corefx,yizhang82/corefx,stephenmichaelf/corefx,billwert/corefx,yizhang82/corefx,Jiayili1/corefx,dhoehna/corefx,krytarowski/corefx,stephenmichaelf/corefx,seanshpark/corefx,elijah6/corefx,seanshpark/corefx,axelheer/corefx,rubo/corefx,stone-li/corefx,shimingsg/corefx,nbarbettini/corefx,dotnet-bot/corefx,wtgodbe/corefx,dotnet-bot/corefx,seanshpark/corefx,YoupHulsebos/corefx,ericstj/corefx,Jiayili1/corefx,krk/corefx,billwert/corefx,alexperovich/corefx,twsouthwick/corefx,nchikanov/corefx,shimingsg/corefx,mazong1123/corefx,tijoytom/corefx,DnlHarvey/corefx,ViktorHofer/corefx,gkhanna79/corefx,mmitche/corefx,tijoytom/corefx,dhoehna/corefx,wtgodbe/corefx,billwert/corefx,cydhaselton/corefx,ViktorHofer/corefx,ravimeda/corefx,DnlHarvey/corefx,DnlHarvey/corefx,ericstj/corefx,Ermiar/corefx,cydhaselton/corefx,shimingsg/corefx,JosephTremoulet/corefx,YoupHulsebos/corefx,DnlHarvey/corefx,fgreinacher/corefx,elijah6/corefx,Petermarcu/corefx,MaggieTsang/corefx,zhenlan/corefx,ViktorHofer/corefx,wtgodbe/corefx,mazong1123/corefx,Jiayili1/corefx,twsouthwick/corefx,weltkante/corefx,YoupHulsebos/corefx,the-dwyer/corefx,wtgodbe/corefx,DnlHarvey/corefx,yizhang82/corefx,axelheer/corefx,tijoytom/corefx,seanshpark/corefx,gkhanna79/corefx,MaggieTsang/corefx,zhenlan/corefx,the-dwyer/corefx,dotnet-bot/corefx,fgreinacher/corefx,stone-li/corefx,rubo/corefx,ericstj/corefx,wtgodbe/corefx,MaggieTsang/corefx,MaggieTsang/corefx,gkhanna79/corefx,mazong1123/corefx,dotnet-bot/corefx,parjong/corefx,Ermiar/corefx,stephenmichaelf/corefx,krytarowski/corefx,krytarowski/corefx,elijah6/corefx,weltkante/corefx,JosephTremoulet/corefx,billwert/corefx,billwert/corefx,ptoonen/corefx,stephenmichaelf/corefx,seanshpark/corefx,alexperovich/corefx,alexperovich/corefx,jlin177/corefx,parjong/corefx,shimingsg/corefx