- 修复 System.MemoryExtensions.Contains 解析问题;#1993

This commit is contained in:
28810
2025-07-16 09:51:41 +08:00
parent 430ba602b6
commit 8fc418150d
28 changed files with 307 additions and 153 deletions

View File

@@ -112,7 +112,10 @@ namespace FreeSql.Dameng
if (objType?.FullName == "System.Byte[]") return null;
var argIndex = 0;
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
if (objType == null && (
callExp.Method.DeclaringType == typeof(Enumerable) ||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
))
{
objExp = callExp.Arguments.FirstOrDefault();
objType = objExp?.Type;