Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / CommentAction.cs / 1305376 / CommentAction.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Xsl.XsltOld { using Res = System.Xml.Utils.Res; using System; using System.Diagnostics; using System.Xml; using System.Xml.XPath; internal class CommentAction : ContainerAction { internal override void Compile(Compiler compiler) { CompileAttributes(compiler); if (compiler.Recurse()) { CompileTemplate(compiler); compiler.ToParent(); } } internal override void Execute(Processor processor, ActionFrame frame) { Debug.Assert(processor != null && frame != null); switch (frame.State) { case Initialized: if (processor.BeginEvent(XPathNodeType.Comment, string.Empty, string.Empty, string.Empty, false) == false) { // Come back later break; } processor.PushActionFrame(frame); frame.State = ProcessingChildren; break; // Allow children to run case ProcessingChildren: if (processor.EndEvent(XPathNodeType.Comment) == false) { break; } frame.Finished(); break; default: Debug.Fail("Invalid IfAction execution state"); break; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Xsl.XsltOld { using Res = System.Xml.Utils.Res; using System; using System.Diagnostics; using System.Xml; using System.Xml.XPath; internal class CommentAction : ContainerAction { internal override void Compile(Compiler compiler) { CompileAttributes(compiler); if (compiler.Recurse()) { CompileTemplate(compiler); compiler.ToParent(); } } internal override void Execute(Processor processor, ActionFrame frame) { Debug.Assert(processor != null && frame != null); switch (frame.State) { case Initialized: if (processor.BeginEvent(XPathNodeType.Comment, string.Empty, string.Empty, string.Empty, false) == false) { // Come back later break; } processor.PushActionFrame(frame); frame.State = ProcessingChildren; break; // Allow children to run case ProcessingChildren: if (processor.EndEvent(XPathNodeType.Comment) == false) { break; } frame.Finished(); break; default: Debug.Fail("Invalid IfAction execution state"); break; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Configuration.cs
- Accessible.cs
- UnmanagedMemoryStreamWrapper.cs
- DashStyle.cs
- SimpleRecyclingCache.cs
- WebDescriptionAttribute.cs
- CommonXSendMessage.cs
- SmiGettersStream.cs
- DelegatingStream.cs
- GeneralTransformCollection.cs
- Converter.cs
- View.cs
- Listbox.cs
- RTLAwareMessageBox.cs
- DataGridViewAutoSizeModeEventArgs.cs
- SafeFileMappingHandle.cs
- XmlWrappingReader.cs
- WindowsListViewItem.cs
- SqlInternalConnection.cs
- InsufficientMemoryException.cs
- ToolStripItemTextRenderEventArgs.cs
- XmlIterators.cs
- CodeSnippetTypeMember.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- CommandDesigner.cs
- PrintPageEvent.cs
- SchemaMapping.cs
- KeyValueSerializer.cs
- NavigateEvent.cs
- XmlSerializationGeneratedCode.cs
- ImpersonateTokenRef.cs
- MasterPageBuildProvider.cs
- httpapplicationstate.cs
- Transactions.cs
- ListViewTableRow.cs
- TreeWalkHelper.cs
- TraceXPathNavigator.cs
- ToolStripDropDownItemDesigner.cs
- BridgeDataReader.cs
- XhtmlBasicCommandAdapter.cs
- glyphs.cs
- FileSystemWatcher.cs
- LookupBindingPropertiesAttribute.cs
- AffineTransform3D.cs
- DocumentSequence.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- InfocardClientCredentials.cs
- DbDataSourceEnumerator.cs
- TdsParserSafeHandles.cs
- UnauthorizedAccessException.cs
- TextRangeEditTables.cs
- StyleSheet.cs
- UniqueConstraint.cs
- DataTableReaderListener.cs
- ProcessingInstructionAction.cs
- EdmMember.cs
- DescendantQuery.cs
- SplashScreenNativeMethods.cs
- RegexParser.cs
- CodeDOMProvider.cs
- RsaSecurityTokenAuthenticator.cs
- FlowDocumentScrollViewer.cs
- XPathNavigatorKeyComparer.cs
- GridViewUpdatedEventArgs.cs
- AvtEvent.cs
- LinqDataSourceUpdateEventArgs.cs
- CngAlgorithm.cs
- VisualTreeHelper.cs
- RowUpdatingEventArgs.cs
- BamlResourceDeserializer.cs
- MatchingStyle.cs
- DependencyObject.cs
- LicFileLicenseProvider.cs
- StoryFragments.cs
- DataGridColumnEventArgs.cs
- StorageComplexTypeMapping.cs
- FixedDocumentPaginator.cs
- FixedSOMPage.cs
- TextServicesHost.cs
- WasAdminWrapper.cs
- DES.cs
- RectangleConverter.cs
- TableLayoutRowStyleCollection.cs
- CompilerParameters.cs
- DrawListViewItemEventArgs.cs
- SessionStateItemCollection.cs
- AutomationPatternInfo.cs
- AnimationTimeline.cs
- Compiler.cs
- SectionInput.cs
- CodeMemberProperty.cs
- DataSourceXmlAttributeAttribute.cs
- PresentationAppDomainManager.cs
- StringUtil.cs
- DataObject.cs
- DefaultSection.cs
- XmlArrayItemAttribute.cs
- EncryptedXml.cs
- AttributeCollection.cs
- TcpTransportSecurity.cs