Skip to content

Commit 1e1282f

Browse files
author
petrov-e
committed
using type equals instead of string representation
1 parent c06a06e commit 1e1282f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/Apigen/apigen/Apigen.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,11 +1108,11 @@ public void MaybeEmitModelMethod(MethodInfo method)
11081108

11091109
public string SanitisedFullName(Type t)
11101110
{
1111-
if (t.FullName.StartsWith("System.Collections.Generic.IDictionary`2[[System.String"))
1111+
if (t.Equals(typeof(IDictionary<string, object>)))
11121112
{
11131113
return "IDictionary<string, object>";
11141114
}
1115-
if (t.FullName.StartsWith("System.ReadOnlyMemory`1[[System.Byte"))
1115+
if (t.Equals(typeof(ReadOnlyMemory<byte>)))
11161116
{
11171117
return "ReadOnlyMemory<byte>";
11181118
}

0 commit comments

Comments
 (0)