Exemple #1
0
 private void Init(XsdKeyTable keyseq, int depth, IXmlLineInfo li)
 {
     this.OwnerSequence = keyseq;
     this.KeyFields     = new XsdKeyEntryFieldCollection();
     for (int i = 0; i < keyseq.Selector.Fields.Length; i++)
     {
         this.KeyFields.Add(new XsdKeyEntryField(this, keyseq.Selector.Fields[i]));
     }
     this.StartDepth = depth;
     if (li != null && li.HasLineInfo())
     {
         this.SelectorHasLineInfo  = true;
         this.SelectorLineNumber   = li.LineNumber;
         this.SelectorLinePosition = li.LinePosition;
     }
 }
Exemple #2
0
		private void Init (XsdKeyTable keyseq, int depth, IXmlLineInfo li)
		{
			OwnerSequence = keyseq;
			KeyFields = new XsdKeyEntryFieldCollection ();
			for (int i = 0; i < keyseq.Selector.Fields.Length; i++)
				KeyFields.Add (new XsdKeyEntryField (this, keyseq.Selector.Fields [i]));
			StartDepth = depth;
			if (li != null) {
				if (li.HasLineInfo ()) {
					this.SelectorHasLineInfo = true;
					this.SelectorLineNumber = li.LineNumber;
					this.SelectorLinePosition = li.LinePosition;
				}
			}
		}