GetHashCode

Table.GetHashCode method

Returns a hash code for this Table.

public override int GetHashCode()

Return Value

Returns a hash code value for this object.

Examples

Shows how to get a hash code of a table.

var project = new Project(DataDir + "ReadFilterDefinitionData.mpp");

List<Table> tables = project.Tables.ToList();

var table1 = tables[0];
var table2 = tables[1];

// the hash code of a table is equal to table UID 
Console.WriteLine("Table UID: {0} Hash Code: {1}", table1.Uid, table1.GetHashCode());
Console.WriteLine("Table UID: {0} Hash Code: {1}", table2.Uid, table2.GetHashCode());

See Also