Example #1
0
        /// <summary>
        /// Generate node text description. It uses GetNodeTextHeader to generate
        /// the heading and Asn1Node.GetText to generate the node text.
        /// </summary>
        /// <param name="node">Target node.</param>
        /// <param name="lineLen">Line length.</param>
        /// <returns>Text string.</returns>
        public static string GetNodeText(Asn1Node node, int lineLen)
        {
            string nodeStr = GetNodeTextHeader(lineLen);

            nodeStr += node.GetText(node, lineLen);
            return(nodeStr);
        }
Example #2
0
        protected string GetListStr(Asn1Node startNode, int lineLen)
        {
            string str = "";

            for (int index = 0; index < this.childNodeList.Count; ++index)
            {
                Asn1Node childNode = (Asn1Node)this.childNodeList[index];
                str += childNode.GetText(startNode, lineLen);
            }
            return(str);
        }
 public static string GetNodeText(Asn1Node node, int lineLen)
 {
     return(Asn1Parser.GetNodeTextHeader(lineLen) + node.GetText(node, lineLen));
 }
Example #4
0
 /// <summary>
 /// Generate node text description. It uses GetNodeTextHeader to generate
 /// the heading and Asn1Node.GetText to generate the node text.
 /// </summary>
 /// <param name="node">Target node.</param>
 /// <param name="lineLen">Line length.</param>
 /// <returns>Text string.</returns>
 public static string GetNodeText(Asn1Node node, int lineLen)
 {
     string nodeStr = GetNodeTextHeader(lineLen);
     nodeStr +=node.GetText(node, lineLen);
     return nodeStr;
 }