Table of Contents

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

List<Element>

Methods

Clone()

Creates a deep copy of this Element instance.

public override Element Clone()

Returns

Element

The new copy of the Element.

CloneGroup()

Creates a deep copy of this Group instance.

public Group CloneGroup()

Returns

Group

The new copy of the Group.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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 FeedUri

The 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

string

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

left Group

The left object

right Group

The right object

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

left Group

The left object

right Group

The right object

Returns

bool

true if the objects are not equal; otherwise, false.

See Also