Snippet: Equals and GetHashCode

property value
IDE Visual Studio
Language C#
Title Equals and GetHashCode
Shortcut equals
Description overriding Equals and GetHashCode methods
Snippet Types Expansion
Namespaces System

Placeholders

Identifier Tooltip Default Value Editable Function Type Name
thisName Containing type name ThisName no ClassName()

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();
}