How is this Dictionary exception possible?

后端 未结 6 1162
遥遥无期
遥遥无期 2021-01-12 02:28

Given the following stack trace:

MESSAGE: Value cannot be null.Parameter name: key  
SOURCE: mscorlib  
TARGETSITE:          


        
6条回答
  •  不思量自难忘°
    2021-01-12 02:49

    This exception happens if the dictionary key is null. As the built-in Dictionary class doesn't allow such keys, you might be using your own IDictionary-compatible class which allows null.

提交回复
热议问题