public static T ToInstance <T>(this DataPropertySet propertyCollection) where T : class, new()
        {
            T result = new T();

            propertyCollection.Each(dp => result.Property(dp.Name, dp.Value));
            return(result);
        }