C#: Code Contracts vs. normal parameter validation

后端 未结 1 1267
抹茶落季
抹茶落季 2020-12-28 13:20

consider the following two pieces of code:

    public static Time Parse(string value)
    {
        string regXExpres = 
           \"^([0-9]|[0-1][0-9]|2[0-         


        
相关标签:
1条回答
  • 2020-12-28 13:56

    In order to get rid of warnings you can use Contract.Assume

    0 讨论(0)
提交回复
热议问题