I'm trying to set up a nice REPL
for walking csharp code. However I can't seem to code an implementation of EnvDTE.ProjectItem (interface).
the definition of the misbehaving property on the interface is in indexer as:
string FileNames[short i] {get;}
based on this post I tried
[IndexerName("FileNames")]
string ProjectItem.this[short i] {get{return "test";}}
which says 'this' in explicit interface declaration is not a member of interface
[IndexerName("FileNames")]
public string this[short i] {get{return "test";}}
returns Accessor 'UserQuery.ProjectItemFake.this[short].get' cannot implement interface member 'EnvDTE.ProjectItem.get_FileNames(short)' for type 'UserQuery.ProjectItemFake'. Use an explicit interface implementation.
[IndexerName("FileNames")]
string ProjectItem.this[short i] {get{return "test";}}
returns 'this' in explicit interface declaration is not a member of interface
I'm completely open to .net languages with primary understanding being C#,F#, or VB.net.
can you somehow write an implementation of the interface EnvDTE.ProjectItem
in .net?