public override bool Equals(object obj) { if (obj != null && obj is Material) return this == obj; return false; }