Oracle® Coherence .NET API Reference Release 3.7.1
E22844-03

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.

Namespace:  Tangosol.IO.Pof.Annotation
Assembly:  Coherence (in Coherence.dll) Version: 3.7.1.23 (3.7.1.23)

Syntax

C#
public class Portable : Attribute

Remarks

CopyC#
[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;
}

Inheritance Hierarchy

System..::.Object
  System..::.Attribute
    Tangosol.IO.Pof.Annotation..::.Portable

See Also