Snippet: Equals and GetHashCode

property value
IDE VS Code
Language C#
Title Equals and GetHashCode
Shortcut equals
Description overriding Equals and GetHashCode methods

Placeholders

Identifier Tooltip Default Value
thisName Containing type name ThisName

Code

public override bool Equals(object obj) {
	var other = obj as ThisName;
	if (other == null) {
		return false;
	}

	
	throw new NotImplementedException();
}

public override int GetHashCode() {
	throw new NotImplementedException();
}