Site.GetNsPrefix Method and nsIndex 0
Make robots for MediaWiki-powered sites!
Brought to you by:
code_driller
0 is a valid namespace index. I'ld prefer that Site.GetNsPrefix(0) would return String.Empty instead of throwing an ArgumentOutOfRangeException. I'ld call it a bug, but it works "as designed" using the dictionary namespaces. In MediaWiki reality 0 is an index and String.Empty the namespace prefix. Please, change. Juergen
Ok. Accepted.
Fixed in version 3.12.