Tips for writing fluent interfaces in C# 3

前端 未结 8 1740
借酒劲吻你
借酒劲吻你 2020-12-07 11:39

I\'m after some good tips for fluent interfaces in C#. I\'m just learning about it myself but keen to hear what others think outside of the articles I am reading. In particu

8条回答
  •  南笙
    南笙 (楼主)
    2020-12-07 12:02

    Moq hides unreleated methods such as equals, ToString and so on to make their fluent interface even easier to use.

    Hiding System Object is an article explaining the benefit of doing this.

提交回复
热议问题