CodeSmith Community
Your Code. Your Way. Faster!

Other validation bug in MaxWord Rule?

Latest post 11-20-2006 9:41 PM by velum. 0 replies.
  • 11-20-2006 9:41 PM

    • velum
    • Top 25 Contributor
    • Joined on 07-14-2006
    • Montréal, Qc, Canada
    • Posts 189
    • Points 4,731

    Other validation bug in MaxWord Rule?

    Hi!

    There is a line of code in method MaxWords (file: CommonRules.cs) that looks odd to me:

    e.Description = string.Format("{0} exceed the maximum number of words", e.PropertyName, text1);

    Is it normal to have 3 arguments for this Format method, since there is only one {x} in the first argument?

    By the way, if I add my own rules here, will they be overwritten at each generation? If so, where can I add new rules? 

    Cheers!

    JF


     

    Filed under:
    • Post Points: 5
Page 1 of 1 (1 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems