Assign value to Nullable<T> using FastMember
问题 I have successfully assigned values to Properties and nested Properties using this function private static void AssignValueToProperty(ObjectAccessor accessor, object value, string propertyLambdaString) { var index = propertyLambdaString.IndexOf('.'); if (index == -1) { accessor[propertyLambdaString] = value; // problem above: throws Exception if assigning value to Nullable<T> } else { var property = propertyLambdaString.Substring(0, index); accessor = ObjectAccessor.Create(accessor[property])