public void AddFieldMap(string from, string to, bool exclude) { Logger.EnteredMethod(LogSource.Common, from, to, exclude); Debug.Assert(from != null); if (from != null) { FieldMapsFieldMap fldMap = new FieldMapsFieldMap(); fldMap.from = from; if (String.IsNullOrEmpty(to)) { // set the default map fldMap.to = from; } else { fldMap.to = to; } fldMap.exclude = exclude.ToString(); AddFieldMap(fldMap); Logger.ExitingMethod(LogSource.Common); return; } Logger.Write(LogSource.Common, TraceLevel.Error, "Attempt to provide NULL 'from' field while creation of a Field Map"); }
public void AddFieldMap(FieldMapsFieldMap fldMap) { Logger.EnteredMethod(LogSource.Common, fldMap); Debug.Assert(fldMap != null); if (fldMap != null) { this.fieldMappings.Add(fldMap); Logger.ExitingMethod(LogSource.Common); return; } Logger.Write(LogSource.Common, TraceLevel.Error, "Attempt to provide NULL FieldMap while creation of a Field Map"); }