private void ResetRecord(int state) {
Debug.Assert(this.recordState == NoRecord || this.recordState == SomeRecord);
if ((state & StateMachine.BeginRecord) != 0) {
this.attributeCount = 0;
this.namespaceCount = 0;
this.currentInfo = this.mainNode;
this.currentInfo.Initialize(this.atoms.Empty, this.atoms.Empty, this.atoms.Empty);
this.currentInfo.NodeType = XmlNodeType.None;
this.currentInfo.IsEmptyTag = false;
this.currentInfo.htmlProps = null;
this.currentInfo.htmlAttrProps = null;
}
}