Class Group
- Namespace
- ZeroInstall.Model
- Assembly
- ZeroInstall.Model.dll
All attributes of a group are inherited by any child Groups and Implementations as defaults, but can be overridden there. All Dependencys and Bindings are inherited (sub-groups may add more Dependencys and Bindings to the list, but cannot remove any).
[Serializable]
[Equatable]
public sealed class Group : Element, IEquatable<XmlUnknown>, IEquatable<FeedElement>, IEquatable<TargetBase>, IBindingContainer, IDependencyContainer, ICloneable<Element>, IEquatable<Element>, IElementContainer, IEquatable<Group>
- Inheritance
-
Group
- Implements
- Inherited Members
- Extension Methods
Properties
Elements
A list of Groups and Implementations contained within this group.
[Browsable(false)]
[OrderedEquality]
public List<Element> Elements { get; }
Property Value
Methods
Clone()
Creates a deep copy of this Element instance.
public override Element Clone()
Returns
CloneGroup()
Creates a deep copy of this Group instance.
public Group CloneGroup()
Returns
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
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Normalize(FeedUri?)
Flattens inheritance structures, Converts legacy elements, sets default values, etc..
public override void Normalize(FeedUri? feedUri = null)
Parameters
feedUri
FeedUriThe feed the data was originally loaded from.
Exceptions
- InvalidDataException
A required property is not set or invalid.
ToString()
Returns the group in the form "Comma-separated list of set values". Not safe for parsing!
public override string ToString()
Returns
Operators
operator ==(Group?, Group?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(Group? left, Group? right)
Parameters
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(Group?, Group?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(Group? left, Group? right)
Parameters
Returns
- bool
true if the objects are not equal; otherwise, false.