Hello. I would like to do something like this:
dynamic randomField = clientContext.CastTo<someFieldObjectFromAnotherList.GetType()>(myNewField); randomField.Update();So ... How can I avoid code like below (supported by switch case structure)? Would be boring solution.
dynamic randomField = clientContext.CastTo<FieldNumber>(myField); randomField.Update();