Class Portable
Portable marks a class as being eligible for use by a PofAnnotationSerializer. This annotation is only permitted at the class level and is a marker annotation with no members. The following class illustrates how to use Portable and PortableProperty annotations.
Inherited Members
Namespace: Tangosol.IO.Pof.Annotation
Assembly: Coherence.dll
Syntax
[AttributeUsage(AttributeTargets.Class)]
public class Portable : Attribute
Remarks
[Portable]
public class Person
{
[PortableProperty(0)]
public string GetFirstName()
{
return m_firstName;
}
[PortableProperty(1)]
public string LastName
{
get; set;
}
private String m_firstName;
[PortableProperty(2)]
private int m_age;
}