Could not resolve the ambiguity in the use of a generic construct with an 'unmanaged' constraint at or near this position ...