private void CopyField(string tagFrom) { if (!String.IsNullOrEmpty(recordFrom.FM(tagFrom))) { foreach (string field in recordFrom.FMA(tagFrom)) { recordTo.Fields.Add(new RecordField(tagFrom, _recordIndex + field)); } } }
public static MorphologyEntry Parse ( [NotNull] IrbisRecord record ) { if (ReferenceEquals(record, null)) { throw new ArgumentException("record"); } MorphologyEntry result = new MorphologyEntry { MainTerm = record.FM("10"), Dictionary = record.FM("11"), Language = record.FM("12"), Forms = record.FMA("20") }; return(result); }