Line 505 in CSharpApiGenerator throws an exception in case the type is generic, since fullTypeName contains multiple dots after the last index of '+': name += fullTypeName.Substring(0, fullTypeName.LastIndexOf('+')).Substring(fullTypeName.LastIndexOf('.') + 1);