RelationTableA, B Class

A relational table that relates an object of type A to an object of type B.

Definition

Namespace: DHI.Mike1D.Generic
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class RelationTable<A, B>
Inheritance
Object    RelationTableA, B

Type Parameters

A
B

Constructors

RelationTableA, B Create an empty relational table
RelationTableA, B(Int32) Create an empty relational table with initial capacity.

Methods

add Add a relation to the table, two object that relateB to each other
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
isARelated Looks in the table for object a, and returns true if it relates
isBRelated Looks in the table for object b, and returns true if it relates
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
relateA(A) Looks in the table for object a, and finds the object b that is related. Returns the found object, or throws an exception if not found
relateA(A, B) Looks in the table for object a, and finds the object b that is related. Returns true if found, false if not found.
relateB(B) Looks in the table for object b, and finds the object a that is related. Returns the found object, or throws an exception if not found
relateB(B, A) Looks in the table for object b, and finds the object a that is related. Returns true if found, false if not found. Remark: Named relateB, since, if A and B is same type then relateA and relateB can not be distinguished without the A/B in the end
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also