I just need to create a variable that is reated from a EntytyCollection's entity's such as:
EntityCollection<TEntity> mCol is my entytycollection.
TEntity is the type of element of my entytycollection. It is actually type of TEntity : SD.LLBLGen.Pro.ORMSupportClasses.EntityBase2, SD.LLBLGen.Pro.ORMSupportClasses.IEntity2
And finally TEntity entity = ((TEntity)t); here _ t_ should be a variable that is created from entitycollection's entity.
I can do it in foreach clause such as:
foreach (TEntity t in MyEntytyCollection)
{
TEntity entity = ((TEntity)t);
}
How can i do that without a foreach?
Thanks...