我知道这是特例,但是为什么==如果它们的值等于字符串,则返回字符串,而不是当它们的引用等于时.它与重载运算符有关吗?
c# string reference operators
读一本书,它说这两个是专属的惯例:
但在许多地方,我可以看到,特别是在属性方面,作者并没有遵循这一点,例如:
private int x
和
public int X..
public int X
与下划线相同..有时他使用_x和X作为属性.
请问正确的命名约定是什么?
c# naming-conventions
c# ×2
naming-conventions ×1
operators ×1
reference ×1
string ×1