psandler wrote:
Otis wrote:
IEntityField2 field = EntityFieldsFactory.CreateEntityFieldsObject(entityType)[fieldname];
Is this new functionality? I see this now, but don't remember seeing it before (although I may never have looked
).
this is here since day 1
I have a few spots where I create all the fields, then reference the fieldindex by an integer value. Now I can just create a single field (or maybe I always could)?
This always generates all the fields for an entity, and selects a single one from the list. What you do is what I do here too, I just use the name instead of the index.
You can create a single field of course, by using EntityFieldFactory.Create(fieldenum.fieldname), but you already knew that