static int GetOrder(this FieldOrderAttribute attribute)
        {
            // Hack cos FieldOrderAttribute.Order is internal (why?)
            var pi = typeof(FieldOrderAttribute).GetProperty("Order");

            return((int)pi.GetValue(attribute, null));
        }
        static int GetOrder(this FieldOrderAttribute attribute)
        {
            // Hack cos FieldOrderAttribute.Order is internal (why?)
            var pi = typeof(FieldOrderAttribute)
                     .GetProperty("Order",
                                  BindingFlags.GetProperty |
                                  BindingFlags.Instance |
                                  BindingFlags.Public);

            return((int)pi.GetValue(attribute, null));
        }