コード例 #1
0
        /// <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;
            }
        }
コード例 #2
0
 public BasicSettings(BasicSettings src)
 {
     CopyFrom(src);
 }