XWiki.Annotations.Annotation.ToNameValuePairs C# (CSharp) Method

ToNameValuePairs() public method

public ToNameValuePairs ( ) : NameValueCollection
return System.Collections.Specialized.NameValueCollection
        public NameValueCollection ToNameValuePairs()
        {
            NameValueCollection nvc = new NameValueCollection();
            nvc.Add("annotation", this.AnnotationText);
            nvc.Add("date", this.Date.ToString());
            nvc.Add("author", this.Author);
            nvc.Add("originalSelection", this.OriginalSelection);
            nvc.Add("selection", this.Selection);
            nvc.Add("selectionRightContext", this.SelectionRightContext);
            nvc.Add("selectionLeftContext", this.SelectionLeftContext);
            nvc.Add("state", this.State);
            nvc.Add("target", this.Target);
            return nvc;
        }