XML Comment on ‘X’ Has CRef Attribute That Could Not Be Resolved


The generic collections in the System.Collections.Generic namespace get the "generic" moniker from their ability to mold themselves to fit the type you're working with. Within the definition of the generic collections this generic type is generally specified with a "". Well, the XML comment system also needs a type specifier to match up with the generic object's definition. In XML comments we can't use the less-than () characters so we instead use curly braces ({ and }). If you update all of the XML references that are throwing the error described above to have "{T}" at the end, the XML comment system will recognize it and resolve the error. If you have a Dictionary or other generic type, simply include the generic type characters appropriate to that definition. For instance the Dictionary object has a key and value so I simply put "{K,V}" after its definition.

Advertisements