private static bool CanSetProperty(PropertyInfo propertyInfo, HomogenizedKeyDictionary data) { return data.ContainsKey(propertyInfo.Name) && !(propertyInfo.PropertyType.IsValueType && data[propertyInfo.Name] == null); }