예제 #1
0
파일: Call.cs 프로젝트: xsharper/xsharper
 /// <summary>
 /// Called when XML Reader reads an attribute or a text field
 /// </summary>
 /// <param name="context">Context</param>
 /// <param name="attribute">Attribute name, or an empty string for element text</param>
 /// <param name="value">Attribute value</param>
 /// <param name="previouslyProcessed">List of previously processed attributes, to detect duplicate attributes. May be null if duplicate attributes are allowed.</param>
 /// <returns> true, if the attribute if correctly processed and false otherwise </returns>
 protected override bool ProcessAttribute(IXsContext context, string attribute, string value, IDictionary <string, bool> previouslyProcessed)
 {
     if (!base.ProcessAttribute(context, attribute, value, previouslyProcessed))
     {
         var c = new CallParam();
         c.Name      = attribute;
         c.Value     = value;
         c.Transform = Transform;
         Parameters.Add(c);
         if (previouslyProcessed != null && !string.IsNullOrEmpty(attribute))
         {
             previouslyProcessed.Add(attribute, true);
         }
     }
     return(true);
 }
예제 #2
0
파일: Call.cs 프로젝트: xsharper/xsharper
 /// <summary>
 /// Called when XML Reader reads an attribute or a text field
 /// </summary>
 /// <param name="context">Context</param>
 /// <param name="attribute">Attribute name, or an empty string for element text</param>
 /// <param name="value">Attribute value</param>
 /// <param name="previouslyProcessed">List of previously processed attributes, to detect duplicate attributes. May be null if duplicate attributes are allowed.</param>
 /// <returns> true, if the attribute if correctly processed and false otherwise </returns>
 protected override bool ProcessAttribute(IXsContext context, string attribute, string value, IDictionary<string, bool> previouslyProcessed)
 {
     if (!base.ProcessAttribute(context, attribute, value, previouslyProcessed))
     {
         var c=new CallParam();
         c.Name=attribute;
         c.Value=value;
         c.Transform=Transform;
         Parameters.Add(c);
         if (previouslyProcessed != null && !string.IsNullOrEmpty(attribute))
             previouslyProcessed.Add(attribute, true);
     }
     return true;
 }