Click or drag to resize

RelationTableA, B Class

A relational table that relates an object of type A to an object of type B.
Inheritance Hierarchy
SystemObject
  DHI.Mike1D.GenericRelationTableA, B

Namespace:  DHI.Mike1D.Generic
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public class RelationTable<A, B>

Type Parameters

A
B

The RelationTableA, B type exposes the following members.

Constructors
Methods
  NameDescription
Public methodadd
Add a relation to the table, two object that relateB to each other
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodisARelated
Looks in the table for object a, and returns true if it relates
Public methodisBRelated
Looks in the table for object b, and returns true if it relates
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodrelateA(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
Public methodrelateA(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.
Public methodrelateB(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
Public methodrelateB(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
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also