Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.1.0)
E69639-01
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: 12.2.1.1000 (12.2.1.1000)

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