// -----------------------------------------------------------------------
//
// TODO: Update copyright text.
//
// -----------------------------------------------------------------------
namespace OsmReader.OsmData.Elements
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
///
/// TODO: Update summary.
///
public class OsmTag
{
[XmlAttribute(AttributeName = "k")]
public string key { get; set; }
[XmlAttribute(AttributeName = "v")]
public string value { get; set; }
[XmlIgnore]
public KeyValuePair keyValuePair
{
get
{
return new KeyValuePair(key, value);
}
set
{
this.key = value.Key;
this.value = value.Value;
}
}
public OsmTag()
{
}
public OsmTag(string key, string value)
{
this.key = key;
this.value = value;
}
public OsmTag(KeyValuePair kvp)
{
this.key = kvp.Key;
this.value = kvp.Value;
}
}
}