Пример #1
0
        protected void WriteAttribute(string attribute, PositionTagged <string> prefix, PositionTagged <string> suffix, params AttributeValue[] values)
        {
            Buffer.Append(prefix.Value);
            if (values != null)
            {
                foreach (var attributeValue in values)
                {
                    Buffer.Append(attributeValue.Prefix.Value);

                    var value = attributeValue.Value.Value;
                    if (value != null)
                    {
                        Buffer.Append(value);
                    }
                }
            }

            Buffer.Append(suffix.Value);
        }
Пример #2
0
 public AttributeValue(PositionTagged <string> prefix, PositionTagged <object> value, bool literal)
 {
     Prefix  = prefix;
     Value   = value;
     Literal = literal;
 }