TypeOverlap
ReferencesUtility class for figuring out what base classes and interfaces a collection of types have in common.
Constructors
TypeOverlap
#Create a new resolver based on a specific type.
Parameters:
| initial (Type) | Initial type. |
Exceptions:
| ArgumentNullException |
Properties
Methods
DetermineOverlap
#Determine the type shared amongst all values in a collection.
Parameters:
| collection (IEnumerable) | Value. |
| initialConstraint (Type = null) | Optional initial type. |
Returns: Type shared amongst all values, or null if there are no values.
Include
#Resolve an additional type.
Parameters:
| type (Type) | Type to resolve. |
Returns: True if the resolution state of this instance was modified.
ToString
#Returns a string that represents the current object.
Returns: A string that represents the current object.
Overrides: Object.ToString
Convertors
| Operation | Result | Description | ||
|---|---|---|---|---|
| implicit | Type | TypeOverlap | ||