A ShouldSerialize[Object] method (ShouldSerializeField) 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. A ShouldSerialize[Object] method (ShouldSerializeField) 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 Overrides Function ShouldSerializeField() As Boolean
             
        
            
            'Usage
 
Dim instance As RuleProductRequired
Dim value As Boolean
 
value = instance.ShouldSerializeField()
             
        
            
            public override bool ShouldSerializeField()
             
        
            
            public function ShouldSerializeField(): Boolean; override; 
             
        
            
            public override function ShouldSerializeField() : boolean;
             
        
            
            public: bool ShouldSerializeField(); override 
             
        
            
            public:
bool ShouldSerializeField(); override 
             
        
             
        
            
            
            Return Value
bool true/falsebool true/false
 
            
            
            
            
            
            
            
            
            
            
            
            See Also