예제 #1
0
        public override bool TryGetIndex(GetIndexBinder binder, object[] indexes, out object result)
        {
            int index = 0;

            if (indexes.Length > 0)
            {
                index  = (int)indexes[0];
                result = new DynamicXml(
                    RawXmlElement.Elements().ElementAt(index),
                    BaseElement.Elements().ElementAt(index));
                return(true);
            }
            return(base.TryGetIndex(binder, indexes, out result));
        }
예제 #2
0
 /// <summary>
 /// Returns the string representation of the RawXmlElement object
 /// </summary>
 /// <returns></returns>
 public string ToRawXml()
 {
     return(RawXmlElement.ToString(SaveOptions.DisableFormatting));
 }