A ShouldSerialize[Object] method (ShouldSerializeBrokers) that returns true or false. XML serialization enables an object's public fields and properties to be saved and loaded to/from an XML file. Typically, XML serialization will be desired for an object that is not null or empty and has a value such as a string object or a list object that is not null and has at least one element.
Syntax
'Declaration
Public Overridable Function ShouldSerializeBrokers() As Boolean
'Usage
Dim instance As Portfolio
Dim value As Boolean
value = instance.ShouldSerializeBrokers()
public virtual bool ShouldSerializeBrokers()
public function ShouldSerializeBrokers(): Boolean; virtual;
public function ShouldSerializeBrokers() : boolean;
public: virtual bool ShouldSerializeBrokers();
public:
virtual bool ShouldSerializeBrokers();
Return Value
bool true/false
See Also