Show / Hide Table of Contents

Class PortableProperty

A PortableProperty marks a member variable or method accessor as a POF serialized attribute. Whilst the Index and ICodec can be explicitly specified they can be determined by classes that use this annotation. Hence these attributes serve as hints to the underlying parser.

Inheritance
object
Attribute
PortableProperty
Inherited Members
Attribute.Equals(object)
Attribute.GetCustomAttribute(Assembly, Type)
Attribute.GetCustomAttribute(Assembly, Type, bool)
Attribute.GetCustomAttribute(MemberInfo, Type)
Attribute.GetCustomAttribute(MemberInfo, Type, bool)
Attribute.GetCustomAttribute(Module, Type)
Attribute.GetCustomAttribute(Module, Type, bool)
Attribute.GetCustomAttribute(ParameterInfo, Type)
Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
Attribute.GetCustomAttributes(Assembly)
Attribute.GetCustomAttributes(Assembly, bool)
Attribute.GetCustomAttributes(Assembly, Type)
Attribute.GetCustomAttributes(Assembly, Type, bool)
Attribute.GetCustomAttributes(MemberInfo)
Attribute.GetCustomAttributes(MemberInfo, bool)
Attribute.GetCustomAttributes(MemberInfo, Type)
Attribute.GetCustomAttributes(MemberInfo, Type, bool)
Attribute.GetCustomAttributes(Module)
Attribute.GetCustomAttributes(Module, bool)
Attribute.GetCustomAttributes(Module, Type)
Attribute.GetCustomAttributes(Module, Type, bool)
Attribute.GetCustomAttributes(ParameterInfo)
Attribute.GetCustomAttributes(ParameterInfo, bool)
Attribute.GetCustomAttributes(ParameterInfo, Type)
Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
Attribute.GetHashCode()
Attribute.IsDefaultAttribute()
Attribute.IsDefined(Assembly, Type)
Attribute.IsDefined(Assembly, Type, bool)
Attribute.IsDefined(MemberInfo, Type)
Attribute.IsDefined(MemberInfo, Type, bool)
Attribute.IsDefined(Module, Type)
Attribute.IsDefined(Module, Type, bool)
Attribute.IsDefined(ParameterInfo, Type)
Attribute.IsDefined(ParameterInfo, Type, bool)
Attribute.Match(object)
Attribute.TypeId
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Tangosol.IO.Pof.Annotation
Assembly: Coherence.dll
Syntax
[AttributeUsage(AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field)]
public class PortableProperty : Attribute

Constructors

PortableProperty()

Constructs a PortableProperty attribute with a default index value of -1.

Declaration
public PortableProperty()

PortableProperty(int)

Construct a PortableProperty attribute with a Codecs.DefaultCodec.

Declaration
public PortableProperty(int index)
Parameters
Type Name Description
int index

The POF index of this portable property.

PortableProperty(int, Type)

Construct a PortableProperty attribute using the specified index and ICodec Type.

Declaration
public PortableProperty(int index, Type codec)
Parameters
Type Name Description
int index

The POF index of this portable property.

Type codec

Type of the ICodec used to encode/decode the property.

PortableProperty(Type)

Construct a PortableProperty attribute with the specified ICodec Type. Defaults the index to -1.

Declaration
public PortableProperty(Type codec)
Parameters
Type Name Description
Type codec

Type of the ICodec used to encode/decode the property.

Properties

Codec

A codec to use to short-circuit determining the type via either method return type or field type.

Declaration
public Type Codec { get; }
Property Value
Type Description
Type

A Type that should be assingable to ICodec.

Remarks

This could be used to determine concrete implementations of interfaces, i.e. when the method return is a IList<T> this type definition could instruct the code to utilize a LinkedList<T>.

See Also
ICodec

Index

The index of this property.

Declaration
public int Index { get; }
Property Value
Type Description
int
See Also
IPofWriter
In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.