Class XmpElementBase
Represents base xmp element contains attributes.
public abstract class XmpElementBase : IEquatable<XmpElementBase>
- Inheritance
-
XmpElementBase
- Implements
- Derived
- Inherited Members
Constructors
XmpElementBase()
protected XmpElementBase()
Fields
attributes
The xmpmeta element can have any number of attributes.
protected readonly Dictionary<string, string> attributes
Field Value
Methods
AddAttribute(string, string)
Adds the attribute.
public virtual void AddAttribute(string attribute, string value)
Parameters
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)
Parameters
other
XmpElementBaseAn 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 object, is equal to this instance.
public override bool Equals(object obj)
Parameters
Returns
GetAttribute(string)
Gets the attribute.
public virtual string GetAttribute(string attribute)
Parameters
attribute
stringThe 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.