Skip to content

Commit 956b048

Browse files
shethaaditAdit Sheth
andauthored
Fixed bug 45639. (#45646)
Co-authored-by: Adit Sheth <[email protected]>
1 parent 53d878a commit 956b048

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/fundamentals/runtime-libraries/system-type-gettype.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ The combination of `assemblyResolver` and `typeResolver` that you provide must b
8383
"System.Collections.Generic.Dictionary`2[System.String,[MyNamespace.MyType, MyAssembly]]"
8484
```
8585

86-
Notice that `MyType` is the only assembly-qualified type argument. The names of the <xref:System.Collections.Generic.Dictionary%602> and <xref:System.String> classes are not assembly-qualified. Your `typeResolver` must be able handle either an assembly or `null`, because it will receive `null` for <xref:System.Collections.Generic.Dictionary%602> and <xref:System.String>. It can handle that case by calling an overload of the <xref:System.Type.GetType%2A> method that takes a string, because both of the unqualified type names are in mscorlib.dll/System.Private.CoreLib.dll:
86+
Notice that `MyType` is the only assembly-qualified type argument. The names of the <xref:System.Collections.Generic.Dictionary%602> and <xref:System.String> classes are not assembly-qualified. Your `typeResolver` must be able to handle either an assembly or `null`, because it will receive `null` for <xref:System.Collections.Generic.Dictionary%602> and <xref:System.String>. It can handle that case by calling an overload of the <xref:System.Type.GetType%2A> method that takes a string, because both of the unqualified type names are in mscorlib.dll/System.Private.CoreLib.dll:
8787

8888
:::code language="csharp" source="./snippets/System/Type/GetType/csharp/source.cs" id="Snippet1":::
8989
:::code language="fsharp" source="./snippets/System/Type/GetType/fsharp/source.fs" id="Snippet1":::

0 commit comments

Comments
 (0)