The dictionary use strict equals(===) for key comparison, how to change the comparison, so I can use my standard for comparison, for example, I have a class named Student:
class Student{
var id:int;
var name:String;
var age:int;
//constructor
Student(id:int,name:String,age:int){
this.id = id;
this.name = name;
this.age = age;
}
}
I want Dictionary use id to compare if the two keys are equal, not use strict equal(===) to compare if the key is the same.