The Contains
method in the SelectionSystem
class is used to determine whether a specified object is present within the selection system. This method is virtual, allowing for potential overrides in derived classes.
The Contains
method in the SelectionSystem
class is used to determine whether a specified object is present within the selection system. This method is virtual, allowing for potential overrides in derived classes.
To use the Contains
method, you need to pass the object you want to check as a parameter. The method will return a boolean value indicating whether the object is part of the selection system.
// Example of using the Contains method SelectionSystem selectionSystem = new SelectionSystem(); object myObject = new object(); // Add the object to the selection system selectionSystem.Add(myObject); // Check if the object is contained in the selection system bool isContained = selectionSystem.Contains(myObject); // Output: true // isContained will be true if myObject is in the selection system