private static void addTextField(string userField, string displayField = null) { _textFields.Add(userField); UserFields.Add(userField); if (displayField != null) { DisplayFieldByIndexField.Add(userField, displayField); } }
private static void addIntField(string userField, string displayFieldName = null) { UserFields.Add(userField); IntFields.Add(userField); if (displayFieldName != null) { DisplayFieldByIndexField.Add(userField, displayFieldName); } }
private static void addSpecificTextField(string userField, string language) { if (language == null) { throw new ArgumentNullException(nameof(language)); } UserFields.Add(userField); LocalizedFields.Add(userField); userField = userField.ToLowerInvariant(); var localized = GetLocalizedField(userField, language); _textFields.Add(localized); DisplayFieldByIndexField.Add(localized, userField); }