How about suporting parameter full constructors?

Apr 17, 2013 at 2:21 PM
Consider the example:
    public class My
    {
        public My(int Number)
        {
            _number = Number;
        }

        public int Number { get { return _number; } }

        private int _number;
    }
Deserialization would check if there is a constructor with all parameter names matching serialized properties (or such could be specified by using class attributes). In that case it would use that constructor instead of the canonical constructor and setting the attributes.

Would it be easy?
I will take a peek at the source code to assess that.

Regards
ztp