Telerik.Web.Mvc.Extensions.CustomAttributeProviderExtensions.GetFormat C# (CSharp) Method

GetFormat() public static method

public static GetFormat ( this member ) : string
member this
return string
        public static string GetFormat(this ICustomAttributeProvider member)
        {
            return member.GetCustomAttributes(typeof(DisplayFormatAttribute), false)
                         .OfType<DisplayFormatAttribute>()
                         .Select(attribute => attribute.DataFormatString)
                         .LastOrDefault();
        }
CustomAttributeProviderExtensions