Пример #1
0
 public AttributeInfo(ResXMLParser parser, ResXMLTree_attribute attribute)
 {
     _parser       = parser;
     TypedValue    = attribute.TypedValue;
     ValueStringID = attribute.RawValue.Index;
     NameID        = attribute.Name.Index;
     NamespaceID   = attribute.Namespace.Index;
 }
Пример #2
0
        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));
        }
Пример #3
0
 public AttributeInfo(ResXMLParser parser, ResXMLTree_attribute attribute)
 {
     _parser = parser;
     TypedValue = attribute.TypedValue;
     ValueStringID = attribute.RawValue.Index;
     NameID = attribute.Name.Index;
     NamespaceID = attribute.Namespace.Index;
 }
Пример #4
0
 public virtual void Write(ResXMLTree_attribute data)
 {
     Write(data.Namespace);
     Write(data.Name);
     Write(data.RawValue);
     Write(data.TypedValue);
 }