I am writing this class
using System;
using System.IO;
using Comparison.Strategies; // this namespace contains the ICompare interface
namespace Comparison{
public class FileNameCompare : ICompare
{
public bool compare(FileInfo a, FileInfo b)
{
a.
// ^
// Pressing . does not show FileInfo properties or methods (!!)
}
}
}
The problem is when I press . (see the code comments above) it does not product completion list. When I press Ctrl+space It show a completion list but that does not show any properties of FileInfo class.
- My target platform is setup as
Mono/.NET 2.0in the project option. - I have also implemented same Interface in other project where completion list is show properly.
- If I just add a
return truethe code compiles!
So could anyone tell me why the . is not triggering completion list of FileInfo class? and How could I fix it?
Update:
When I press Ctrl+space after writing System.IO., in the completion list I see this,

Well, the code completion and refactoring engine in MonoDevelop <= 2.8 is not ideal and is currently being reworked to one using NRefactory. You can try the new engine by using the newest MD beta or compiling it from git sources. Nevertheless you most likely want to wait until it stabilize.