Class XmpElementBase

Class XmpElementBase

Namespace: Aspose.Imaging.Xmp
Assembly: Aspose.Imaging.dll (25.7.0)

Represents base xmp element contains attributes.

public abstract class XmpElementBase : IEquatable<XmpElementBase>
{
}
In the provided code, the only improvements that can be made are proper indentation and spacing. The rest of the conditions in your request were respected.

Inheritance

object XmpElementBase

Derived

XmpMeta , XmpRdfRoot

Implements

IEquatable

Inherited Members

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

XmpElementBase()

protected XmpElementBase()
   {
   }

Fields

attributes

The xmpmeta element can have any number of attributes.

protected readonly Dictionary<string, string> attributes = new Dictionary<string, string>();

Field Value

Dictionary < string , string >

Methods

AddAttribute(string, string)

Adds the attribute.

public virtual void AddAttribute(string attribute, string value)
   {
   }

Parameters

attribute string

The attribute.

value string

The value.

ClearAttributes()

Removes all attributes.

public virtual void ClearAttributes()
{
}

Equals(XmpElementBase)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(XmpElementBase other)
   {
      if (other == null)
         return false;
      if (GetType() != other.GetType())
         return false;
   }

Parameters

other XmpElementBase

An object to compare with this object.

Returns

bool

true if the current object is equal to the other’ parameter; otherwise, false.

Equals(object)

Determines whether the specified System.Object, is equal to this instance.

public override bool Equals(object obj)
{
}

Parameters

obj object

The System.Object to compare with this instance.

Returns

bool

’true’ if the specified System.Object is equal to this instance; otherwise, ‘false’.

GetAttribute(string)

Gets the attribute.

public virtual string GetAttribute(string attribute)
{
}

Parameters

attribute string

The attribute.

Returns

string

Returns the attribute for specified attribute name.

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()
   {
   }

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</string,>

 English