public FieldBuilder GetFieldBuilder(string fieldCodeName) { if (!DefinedField.ContainsKey(fieldCodeName)) { throw new ArgumentException("No existe ese field "); } return(DefinedField[fieldCodeName]); }
/// <summary> /// Adiciona un nuevo field a la clase /// </summary> /// <param name="fieldCodeName"></param> /// <param name="field"></param> public void AddFieldBuilder(string fieldCodeName, FieldBuilder field) { if (DefinedField.ContainsKey(fieldCodeName)) { throw new ArgumentException("Un field con ese nombre ya se ha annadido"); } DefinedField.Add(fieldCodeName, field); }