コード例 #1
0
        //-----------------------------------------------
        // Constructor
        //-----------------------------------------------

        /// <summary>
        /// Create and initialize XsltAnnotation for the specified node.
        /// Allow properties to be read and written.
        /// </summary>
        public static XsltAnnotation Write(QilNode nd)
        {
            XsltAnnotation ann = nd.Annotation as XsltAnnotation;

            if (ann == null)
            {
                ann           = new XsltAnnotation();
                nd.Annotation = ann;
            }

            return(ann);
        }