Example #1
0
 public static object GetPropertyValue(this object thisObject, string propertyName)
 {
     // Get a property via reflection from some acquired object. similar to 'dynamic' keyword.
     // Just return null if property does not exist.
     return(PropertyUtil.GetPropertyValue(thisObject, propertyName));
 }
Example #2
0
        public IValidatorT <string> AllowedFilter = null;    // Filter who we can and cannot send emails to. White list email addresses.

        public void Init(IPropertyGetter config)
        {
            // like config._Configuration.Bind(this);
            PropertyUtil.InjectProperties(this, config, ConfigInfoBase.kSmtp);
        }