Esempio n. 1
0
        public static ModelMetadataItemBuilder <DateTime?> FormatAsTimeOnly([NotNull] this ModelMetadataItemBuilder <DateTime?> instance)
        {
            Invariant.IsNotNull(instance, "instance");

            return(instance.Format("{0:t}"));
        }
Esempio n. 2
0
        public static ModelMetadataItemBuilder <decimal?> FormatAsCurrency([NotNull] this ModelMetadataItemBuilder <decimal?> instance)
        {
            Invariant.IsNotNull(instance, "instance");

            return(instance.Format("{0:c}"));
        }