RelationTableA, B Methods |
The RelationTableA, B generic type exposes the following members.
Name | Description | |
---|---|---|
add |
Add a relation to the table, two object that relateB to each other
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets 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
| |
MemberwiseClone | Creates 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
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |