¡@

Home 

c# Programming Glossary: findinterfacewith

How to find the minimum covariant type for best fit between two types?

http://stackoverflow.com/questions/14472103/how-to-find-the-minimum-covariant-type-for-best-fit-between-two-types

baseArray.Length return typeArray public static Type FindInterfaceWith this Type type1 Type type2 var array type2.GetTypesArray .Intersect.. i 0 false var typeNext array i 1 if typeNext.FindInterfaceWith typeCurrent typeNext return default Type else break return.. type2.FindBaseClassWith type1 var interfaCe type2.FindInterfaceWith type1 if null interfaCe return baseClass else if null baseClass..