How do I make my class to implement a .net interface

for example, i want to implement the "ISerializable" interface...

i'm having a hard trouble retreiving the IInterface structure???

could you please help me getting this structure from the qualified string.

i.e.

public IInterface RetreieveInterfaceFromString(string qualifiedIfcName)
{
//????
}

Thanks again,
Guy.


1 comment
Comment actions Permalink

OK Thanks I've got it,

PsiManager manager = PsiManager.GetInstance(m_solution);
IDeclarationsCache projectDeclarationsCache = manager.GetDeclarationsCache
(DeclarationsCacheScope.ProjectScope(TokenAccessor.Token.GetProject(),
true), true);
IInterface ISerializableIfc =
projectDeclarationsCache.GetTypeElementByCLRName("System.Runtime.Serialization.ISerializable")
as IInterface;

:)


"Ga" <t4m.productions@gmail.com> wrote in message
news:fa4lt2$6vm$1@is.intellij.net...

for example, i want to implement the "ISerializable" interface...

>

i'm having a hard trouble retreiving the IInterface structure???

>

could you please help me getting this structure from the qualified string.

>

i.e.

>

public IInterface RetreieveInterfaceFromString(string qualifiedIfcName)
{
//????
}

>

Thanks again,
Guy.



0

Please sign in to leave a comment.