public PropertyValue(IPropertySource propertySource, string propertyName) { if (propertySource == null) { throw new ArgumentNullException(nameof(propertySource)); } PropertyName = DePascal(propertyName); Value = propertySource.GetProperty(propertyName); }