ClassPListElement<T>
An abstract base class for primitive PList types
Definition
Namespace:CE.iPhone.PList.Internal
Assembly:ArtOfTest.WebAii.dll
Type Parameters:
T
The .Net equivalent to the PList type
Syntax:
public abstract class PListElement<T> : IPListElement, IXmlSerializable, IEquatable<IPListElement>
Inheritance: objectPListElement<T>
Derived Classes:
Implements:
Constructors
PListElement()
Declaration
protected PListElement()
Properties
IsBinaryUnique
Gets a value indicating whether this instance is written only once in binary mode.
Declaration
public virtual bool IsBinaryUnique { get; }
Property Value
true this instance is written only once in binary mode; otherwise, false.
Implements
Tag
Gets the Xml tag of this element.
Declaration
public abstract string Tag { get; }
Property Value
The Xml tag of this element.
Implements
TypeCode
Gets the binary typecode of this element.
Declaration
public abstract byte TypeCode { get; }
Property Value
The binary typecode of this element.
Implements
Value
Gets or sets the value of this element.
Declaration
public abstract T Value { get; set; }
Property Value
T
The value of this element.
Methods
Equals(IPListElement)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(IPListElement other)
Parameters
other
An object to compare with this object.
Returns
true if the current object is equal to the other parameter; otherwise, false.
Implements
GetPListElementCount()
Gets the count of PList elements in this element.
Declaration
public virtual int GetPListElementCount()
Returns
The count of PList elements in this element.
Implements
Remarks
Provided for internal use only.
GetPListElementLength()
Gets the length of this PList element.
Declaration
public abstract int GetPListElementLength()
Returns
The length of this PList element.
Implements
Remarks
Provided for internal use only.
GetSchema()
This method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return null (Nothing in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the XmlSchemaProviderAttribute to the class.
Parse(string)
Parses the specified value from a given String, read from Xml.
Declaration
protected abstract void Parse(string value)
Parameters
value
The String whis is parsed.
ReadBinary(PListBinaryReader)
Reads this element binary from the reader.
Declaration
public abstract void ReadBinary(PListBinaryReader reader)
Parameters
reader
The from which the element is read.
Implements
Remarks
Provided for internal use only.
ReadXml(XmlReader)
Generates an object from its XML representation.
ToString()
Returns a string that represents this instance.
ToXmlString()
Gets the XML String representation of the Value.
Declaration
protected abstract string ToXmlString()
Returns
The XML String representation of the Value.
WriteBinary(PListBinaryWriter)
Writes this element binary to the writer.
Declaration
public abstract void WriteBinary(PListBinaryWriter writer)
Parameters
writer
The to which the element is written.
Implements
Remarks
Provided for internal use only.
WriteXml(XmlWriter)
Converts an object into its XML representation.
Operators
implicit operator T(PListElement<T>)
Performs an implicit conversion from PListElement<T> to specified type/>.
Declaration
public static implicit operator T(PListElement<T> element)
Parameters
element
PListElement<T>
The elem.
Returns
T
The result of the conversion.