Update Reference Sources to .NET Framework 4.6.1
[mono.git] / mcs / class / referencesource / System.Data.SqlXml / System / Xml / Xsl / XsltOld / EndEvent.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="EndEvent.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>                                                                
5 // <owner current="true" primary="true">[....]</owner>
6 //------------------------------------------------------------------------------
7
8 namespace System.Xml.Xsl.XsltOld {
9     using Res = System.Xml.Utils.Res;
10     using System;
11     using System.Diagnostics;
12     using System.Xml;
13     using System.Xml.XPath;
14
15     internal class EndEvent : Event {
16         private XPathNodeType nodeType;
17         
18         internal EndEvent(XPathNodeType nodeType) {
19             Debug.Assert(nodeType != XPathNodeType.Namespace);
20             this.nodeType = nodeType;
21         }
22
23         public override bool Output(Processor processor, ActionFrame frame) {
24             return processor.EndEvent(this.nodeType);
25         }
26     }
27 }