public AttributeInfo(ResXMLParser parser, ResXMLTree_attribute attribute) { _parser = parser; TypedValue = attribute.TypedValue; ValueStringID = attribute.RawValue.Index; NameID = attribute.Name.Index; NamespaceID = attribute.Namespace.Index; }
public AttributeInfo GetAttribute(uint?index) { if (index == null || _attributes == null) { return(null); } if (index >= _attributes.Count) { throw new ArgumentOutOfRangeException("index"); } ResXMLTree_attribute attr = _attributes[(int)index]; return(new AttributeInfo(this, attr)); }
public virtual void Write(ResXMLTree_attribute data) { Write(data.Namespace); Write(data.Name); Write(data.RawValue); Write(data.TypedValue); }