'Object.ReferenceEquals' is always false because it is called with a value type
问题 When I use SlSvcUtil.exe to create my service client files, I see code like this: private string CategoryField; [System.Runtime.Serialization.DataMemberAttribute()] public string Category { get { return this.CategoryField; } set { if ((object.ReferenceEquals(this.CategoryField, value) != true)) { this.CategoryField = value; this.RaisePropertyChanged("Category"); } } } When I inspect it with ReSharper , I receive the following warning: 'Object.ReferenceEquals' is always false because it is