Class
PListElement<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:

cs-api-definition
public abstract class PListElement<T> : IPListElement, IXmlSerializable, IEquatable<IPListElement>

Inheritance: objectPListElement<T>

Derived Classes: PListBoolPListDataPListDatePListIntegerPListRealPListString

Implements: IEquatable<IPListElement>IPListElementIXmlSerializable

Constructors

PListElement()

Declaration

cs-api-definition
protected PListElement()

Properties

IsBinaryUnique

Gets a value indicating whether this instance is written only once in binary mode.

Declaration

cs-api-definition
public virtual bool IsBinaryUnique { get; }

Property Value

bool

true this instance is written only once in binary mode; otherwise, false.

Implements IPListElement.IsBinaryUnique

Tag

Gets the Xml tag of this element.

Declaration

cs-api-definition
public abstract string Tag { get; }

Property Value

string

The Xml tag of this element.

Implements IPListElement.Tag

TypeCode

Gets the binary typecode of this element.

Declaration

cs-api-definition
public abstract byte TypeCode { get; }

Property Value

byte

The binary typecode of this element.

Implements IPListElement.TypeCode

Value

Gets or sets the value of this element.

Declaration

cs-api-definition
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

cs-api-definition
public bool Equals(IPListElement other)

Parameters

other

IPListElement

An object to compare with this object.

Returns

bool

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

Implements IEquatable<IPListElement>.Equals(IPListElement)

Equals(object)

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

Returns

bool

Overrides object.Equals(object)

GetHashCode()

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

Overrides object.GetHashCode()

GetPListElementCount()

Gets the count of PList elements in this element.

Declaration

cs-api-definition
public virtual int GetPListElementCount()

Returns

int

The count of PList elements in this element.

Implements IPListElement.GetPListElementCount()

Remarks

Provided for internal use only.

GetPListElementLength()

Gets the length of this PList element.

Declaration

cs-api-definition
public abstract int GetPListElementLength()

Returns

int

The length of this PList element.

Implements IPListElement.GetPListElementLength()

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.

Declaration

cs-api-definition
public virtual XmlSchema GetSchema()

Returns

XmlSchema

An XmlSchema that describes the XML representation of the object that is produced by the WriteXml(XmlWriter) method and consumed by the ReadXml(XmlReader) method.

Implements IXmlSerializable.GetSchema()

Parse(string)

Parses the specified value from a given String, read from Xml.

Declaration

cs-api-definition
protected abstract void Parse(string value)

Parameters

value

string

The String whis is parsed.

ReadBinary(PListBinaryReader)

Reads this element binary from the reader.

Declaration

cs-api-definition
public abstract void ReadBinary(PListBinaryReader reader)

Parameters

reader

PListBinaryReader

The from which the element is read.

Implements IPListElement.ReadBinary(PListBinaryReader)

Remarks

Provided for internal use only.

ReadXml(XmlReader)

Generates an object from its XML representation.

Declaration

cs-api-definition
public virtual void ReadXml(XmlReader reader)

Parameters

reader

XmlReader

The XmlReader stream from which the object is deserialized.

Implements IXmlSerializable.ReadXml(XmlReader)

ToString()

Returns a string that represents this instance.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents this instance.

Overrides object.ToString()

ToXmlString()

Gets the XML String representation of the Value.

Declaration

cs-api-definition
protected abstract string ToXmlString()

Returns

string

The XML String representation of the Value.

WriteBinary(PListBinaryWriter)

Writes this element binary to the writer.

Declaration

cs-api-definition
public abstract void WriteBinary(PListBinaryWriter writer)

Parameters

writer

PListBinaryWriter

The to which the element is written.

Implements IPListElement.WriteBinary(PListBinaryWriter)

Remarks

Provided for internal use only.

WriteXml(XmlWriter)

Converts an object into its XML representation.

Declaration

cs-api-definition
public virtual void WriteXml(XmlWriter writer)

Parameters

writer

XmlWriter

The XmlWriter stream to which the object is serialized.

Implements IXmlSerializable.WriteXml(XmlWriter)

Operators

implicit operator T(PListElement<T>)

Performs an implicit conversion from PListElement<T> to specified type/>.

Declaration

cs-api-definition
public static implicit operator T(PListElement<T> element)

Parameters

element

PListElement<T>

The elem.

Returns

T

The result of the conversion.