protected override TypeDesc ConvertToCanonFormImpl(CanonicalFormKind kind) { TypeDesc paramTypeConverted = CanonUtilites.ConvertToCanon(ParameterType, kind); if (paramTypeConverted != ParameterType) { return(Context.GetByRefType(paramTypeConverted)); } return(this); }
protected override TypeDesc ConvertToCanonFormImpl(CanonicalFormKind kind) { TypeDesc paramTypeConverted = CanonUtilites.ConvertToCanon(ParameterType, kind); if (paramTypeConverted != ParameterType) { // Note: don't use the Rank property here, as that hides the difference // between a single dimensional MD array and an SZArray. return(Context.GetArrayType(paramTypeConverted, _rank)); } return(this); }