public static void EnsureFieldChoice(this FieldCollection flds, string cInternalName, string cFieldTitle, string cFieldDescription, string cGroup, string[] cChoices) { try { if (!flds.HasField(cFieldTitle, cInternalName)) { flds.AddFieldChoice(cInternalName, cFieldTitle, cFieldDescription, cGroup, cChoices); } } catch (Exception ex) { throw new Exception(string.Format("Error in extFieldCollection.EnsureField - {0} - {1}", cFieldTitle, ex.Message), ex); } }