/// <summary> /// Копирует настройки из объекта source /// </summary> /// <param name="source"></param> public virtual void CopyFrom(IMethodSettings source) { BasicSettings src = source as BasicSettings; if (null != src) { if (string.IsNullOrEmpty(src.m_method_id)) { throw new ArgumentException("Source object being copied is invalid: m_method_id value is missing or invalid (empty string)", "src"); } m_category = src.m_category; m_method_id = src.m_method_id; } }
public BasicSettings(BasicSettings src) { CopyFrom(src); }