VB to C# Functions

后端 未结 14 1041
忘了有多久
忘了有多久 2020-12-02 06:51

Which are the equivalent of the following operators from VB.Net to C#?

  • UBound()
  • LBound()
  • IsNothing()
  • <
14条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-02 07:12

    IIf(test, trueval, falseval) >> (test ? trueval : falseval);

    IsNothing(obj) >> (obj == null);

    UCase(str) >> str.ToUpper();

    LCase(str) >> str.ToLower();

提交回复
热议问题