how to cast IEntityFields2 to IEntityFields

Posts   
 
    
mkamoski avatar
mkamoski
User
Posts: 116
Joined: 06-Dec-2005
# Posted on: 24-Mar-2006 13:11:15   

All--

Please help.

Is it possible to cast an object of type IEntityFields2 to an object of type IEntityFields?

If you ask me why one would want to do this, then my answer is "I do not know" because I am simply trying to settle an argument. A friend asked me about this and I say "it cannot be done... at least, it cannot be done directly/reliably". However, my friend is not convinced.

What do you think?

Please advise.

Thank you.

--Mark Kamoski

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 24-Mar-2006 17:32:45   

Not directly. You can do: EntityFields newFields = new EntityFields(myEntityFields2Object.GetAsEntityFieldCoreArray());

Though again, not directly, as the codebases are separated.

Frans Bouma | Lead developer LLBLGen Pro