public override int GetHashCode() { //Get hash code for the Name field if it is not null. int hashFFName = FieldForceName == null ? 0 : FieldForceName.GetHashCode(); //Calculate the hash code for the product. return(hashFFName); }
//public int FieldForceProfileID //{ // get; // set; //} //public int SettingKeyID //{ // get; // set; //} //public string SettingKeyName //{ // get; // set; //} //public string SettingKeyDescription //{ // get; // set; //} //public byte[] SettingKeyValue //{ // get; // set; //} //public string SettingKeyReference //{ // get; // set; //} //public string PhotoKeyName //{ // get; // set; //} //public string PhotoKeyDescription //{ // get; // set; //} //public byte[] PhotoKeyValue //{ // get; // set; //} //public string PhotoKeyReference //{ // get; // set; //} //public string SignatureKeyName //{ // get; // set; //} //public string SignatureKeyDescription //{ // get; // set; //} //public byte[] SignatureKeyValue //{ // get; // set; //} //public string SignatureKeyReference //{ // get; // set; //} public bool Equals(FieldForce other) { //Check whether the compared object is null. if (Object.ReferenceEquals(other, null)) { return(false); } //Check whether the compared object references the same data. if (Object.ReferenceEquals(this, other)) { return(true); } //Check whether the products' properties are equal. return(FieldForceName.Equals(other.FieldForceName)); }