コード例 #1
0
        public static void SetProperties(object to, object from, params string[] forProperties)
        {
            AssertUtils.AssertHasElements(forProperties);

            SetProperties(to, from, prop => {
                return(forProperties.Any(p => prop.Equals(p)));
            });
        }
コード例 #2
0
 protected override void Init()
 {
     AssertUtils.AssertHasElements(this.allowPatterns);
     this.allowPatterns = ((List <Regex>)allowPatterns).AsReadOnly();
 }