XSerializer.XSerializerXmlReader.MoveToAttribute C# (CSharp) Method

MoveToAttribute() public method

public MoveToAttribute ( string name ) : bool
name string
return bool
        public override bool MoveToAttribute(string name)
        {
            return _currentReader.MoveToAttribute(name);
        }

Same methods

XSerializerXmlReader::MoveToAttribute ( string name, string ns ) : bool

Usage Example

        public object DeserializeObject(XSerializerXmlReader reader, ISerializeOptions options)
        {
            if (reader.MoveToAttribute(_attributeName))
            {
                var setIsDecryptionEnabledBackToFalse = reader.MaybeSetIsDecryptionEnabledToTrue(_encryptAttribute, options);

                var value = _valueConverter.ParseString(reader.Value, options);

                if (setIsDecryptionEnabledBackToFalse)
                {
                    reader.IsDecryptionEnabled = false;
                }

                reader.MoveToElement();
                return value;
            }

            return null;
        }
All Usage Examples Of XSerializer.XSerializerXmlReader::MoveToAttribute