Class VerbCapability
- Namespace
- ZeroInstall.Model.Capabilities
- Assembly
- ZeroInstall.Model.dll
Abstract base class for capabilities that can have multiple Verbs.
[Equatable]
public abstract class VerbCapability : IconCapability, IEquatable<XmlUnknown>, ICloneable<Capability>, IEquatable<Capability>, IEquatable<DefaultCapability>, IIconContainer, IDescriptionContainer, IEquatable<IconCapability>, IEquatable<VerbCapability>
- Inheritance
-
VerbCapability
- Implements
- Derived
- Inherited Members
Properties
Verbs
A list of all available operations for the element.
[Browsable(false)]
[OrderedEquality]
public List<Verb> Verbs { get; }
Property Value
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Equals(VerbCapability?)
protected bool Equals(VerbCapability? other)
Parameters
other
VerbCapability
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Normalize()
Converts legacy elements, sets default values, etc..
public override void Normalize()
Exceptions
- InvalidDataException
A required property is not set or invalid.
Operators
operator ==(VerbCapability?, VerbCapability?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(VerbCapability? left, VerbCapability? right)
Parameters
left
VerbCapabilityThe left object
right
VerbCapabilityThe right object
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(VerbCapability?, VerbCapability?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(VerbCapability? left, VerbCapability? right)
Parameters
left
VerbCapabilityThe left object
right
VerbCapabilityThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.