示例#1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="status"></param>
 /// <param name="desc"></param>
 /// <param name="source"></param>
 /// <param name="url"></param>
 /// <param name="meta"></param>
 internal RuleResult(RuleId id, string desc, string source, HelpUrl url, ScanMetaInfo meta)
 {
     this.Rule        = id;
     this.Description = desc;
     this.Source      = source;
     this.Messages    = new List <string>();
     this.MetaInfo    = meta;
     this.HelpUrl     = url;
 }
        /// <summary>
        /// Clone the ScanMetaInfo
        /// </summary>
        /// <returns></returns>
        internal ScanMetaInfo Clone()
        {
            var mi = new ScanMetaInfo();

            mi.ControlType = this.ControlType;
            mi.PropertyId  = this.PropertyId;
            mi.UIFramework = this.UIFramework;

            return(mi);
        }