We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c06a06e commit 1e1282fCopy full SHA for 1e1282f
projects/Apigen/apigen/Apigen.cs
@@ -1108,11 +1108,11 @@ public void MaybeEmitModelMethod(MethodInfo method)
1108
1109
public string SanitisedFullName(Type t)
1110
{
1111
- if (t.FullName.StartsWith("System.Collections.Generic.IDictionary`2[[System.String"))
+ if (t.Equals(typeof(IDictionary<string, object>)))
1112
1113
return "IDictionary<string, object>";
1114
}
1115
- if (t.FullName.StartsWith("System.ReadOnlyMemory`1[[System.Byte"))
+ if (t.Equals(typeof(ReadOnlyMemory<byte>)))
1116
1117
return "ReadOnlyMemory<byte>";
1118
0 commit comments