ReflectionBasedAutoSerializerIsFieldIncluded Method |
Controls what fields of a class will be auto serialized by this serializer.
Override this method to customize what fields of a class will be auto serialized.
The default implementation:
- excludes NonSerialized fields
- excludes static fields
- excludes literal fields
- excludes readonly fields
All other fields are included.
This method is only called the first time it sees a new class. The result
will be remembered and used the next time the same class is seen.
Namespace: GemStone.GemFire.Cache.GenericAssembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntaxpublic virtual bool IsFieldIncluded(
FieldInfo fi,
Type type
)
Public Overridable Function IsFieldIncluded (
fi As FieldInfo,
type As Type
) As Boolean
public:
virtual bool IsFieldIncluded(
FieldInfo^ fi,
Type^ type
)
abstract IsFieldIncluded :
fi : FieldInfo *
type : Type -> bool
override IsFieldIncluded :
fi : FieldInfo *
type : Type -> bool
Parameters
- fi
- Type: System.ReflectionFieldInfo
the field being considered for serialization - type
- Type: SystemType
the original class being serialized that owns this field.
Return Value
Type:
Boolean true if the field should be serialized as a pdx field; false if it should be ignored.
See Also