public void CaptureFields(IMutant mt) { string[] lst = mt.GetMutantFields(); foreach (string fld in lst) { object v = mt.Get(fld, null); Set(fld, v, null); } }
/// <summary> /// Assigns all mutantic field of the given Mutantic object /// </summary> /// <param name="mt"></param> public virtual void CaptureFields(IMutant mt) { string[] flds = mt.GetMutantFields(); foreach (string fld in flds) { Set(fld, mt.Get(fld, null), null); } }