示例#1
0
 private void Push(XmlQualifiedName elementName)
 {
     context = (ValidationState)_validationStack.Push();
     if (context == null)
     {
         context = new ValidationState();
         _validationStack.AddToTop(context);
     }
     context.LocalName            = elementName.Name;
     context.Namespace            = elementName.Namespace;
     context.HasMatched           = false;
     context.IsNill               = false;
     context.NeedValidateChildren = false;
 }
示例#2
0
 private void Push(XmlQualifiedName elementName)
 {
     context = (ValidationState)_validationStack.Push();
     if (context == null)
     {
         context = new ValidationState();
         _validationStack.AddToTop(context);
     }
     context.LocalName            = elementName.Name;
     context.Namespace            = elementName.Namespace;
     context.HasMatched           = false;
     context.IsNill               = false;
     context.ProcessContents      = _processContents;
     context.NeedValidateChildren = false;
     context.Constr               = null; //resetting the constraints to be null incase context != null
                                          // when pushing onto stack;
 }