jjzjj

ITupleMatchable

全部标签

c# - 接口(interface)的扩展方法是否被视为比不太具体的方法优先级低?

我有以下扩展类:publicstaticclassMatcherExtensions{publicstaticExecMatcherMatch(thisTupleitem){returnnewExecMatcher(item.Item1,item.Item2);}publicstaticExecMatcherMatch(thisITupleMatchableitem){vartuple=item.PropertiesToMatch;returnnewExecMatcher(tuple.Item1,tuple.Item2);}publicstaticExecMatcherMatch(th