|
Hi All,
I have one Addin which contain dialog for making some interface which inherit own interface(MyPackage.IFG) dialog read or write interface. I have used CodeElements and using CodeNamespace, i am adding add interface (AddInterface) like
inter = codeNamespace.AddInterface(fG.Name, position, fG.ParentInterfaceList.ToArray(), EnvDTE.vsCMAccess.vsCMAccessPublic);
here => fG.ParentInterfaceList is ArrayList of string ("MyPackage.IFG") or ("FG1","FG2") position = -1
This all work fine in C#.Net but same is giving error in VB.Net and eror is System.ArgumentException] = {"Value does not fall within the expected range."}
I think this is problem of passing argument for "Bases" (inherit base interfaces) here fG.ParentInterfaceList.ToArray()
but same is working for C#.Net, cant understand what's actually missing..
Waiting for reply, below you can find sample file on which read/write inferface using Addin->dialog.
Thanks, Nik
C#.net ========== using MyPackage;
namespace BusinessObjects { public interface XYZ : MyPackage.IFG { } } ==========
VB.Net ========== Imports MyPackage
Namespace Step3_BusinessObjects
End Namespace ========== |