Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ListViewUpdateEventArgs.cs
- WinEventQueueItem.cs
- TextClipboardData.cs
- AnnotationMap.cs
- SqlTypesSchemaImporter.cs
- NotFiniteNumberException.cs
- DocumentViewerAutomationPeer.cs
- DoubleCollection.cs
- BidOverLoads.cs
- FlowDocumentScrollViewer.cs
- SelectionRangeConverter.cs
- ColorInterpolationModeValidation.cs
- HtmlImage.cs
- ImageSource.cs
- DurableErrorHandler.cs
- DataGridLinkButton.cs
- UshortList2.cs
- ServicesUtilities.cs
- InvalidEnumArgumentException.cs
- ZipIOBlockManager.cs
- ServiceHttpHandlerFactory.cs
- _NestedSingleAsyncResult.cs
- InputMethodStateTypeInfo.cs
- SupportingTokenBindingElement.cs
- LinqDataSourceDeleteEventArgs.cs
- ParameterReplacerVisitor.cs
- _ProxyRegBlob.cs
- ReceiveSecurityHeaderElementManager.cs
- CertificateManager.cs
- XMLSyntaxException.cs
- ListItem.cs
- SpeechAudioFormatInfo.cs
- KnowledgeBase.cs
- AjaxFrameworkAssemblyAttribute.cs
- TranslateTransform3D.cs
- ProgressBarAutomationPeer.cs
- CommandField.cs
- PermissionSetEnumerator.cs
- SmtpAuthenticationManager.cs
- _ServiceNameStore.cs
- IgnoreFlushAndCloseStream.cs
- DefaultPropertyAttribute.cs
- MediaContext.cs
- MessageHeader.cs
- JavaScriptSerializer.cs
- ListViewInsertedEventArgs.cs
- wgx_exports.cs
- CodeGotoStatement.cs
- OracleRowUpdatedEventArgs.cs
- ConfigurationElementCollection.cs
- BindingManagerDataErrorEventArgs.cs
- WbemProvider.cs
- ErrorsHelper.cs
- unitconverter.cs
- SubMenuStyle.cs
- ColorKeyFrameCollection.cs
- InvokeMethod.cs
- WindowsTokenRoleProvider.cs
- MetadataReference.cs
- wmiprovider.cs
- VectorValueSerializer.cs
- WebPartMenuStyle.cs
- SudsCommon.cs
- Hashtable.cs
- WebResponse.cs
- XmlMemberMapping.cs
- recordstate.cs
- MDIWindowDialog.cs
- listitem.cs
- SqlAggregateChecker.cs
- HttpStreamMessage.cs
- SessionStateUtil.cs
- FormatSettings.cs
- Int32RectValueSerializer.cs
- ViewStateException.cs
- XmlQueryOutput.cs
- ValueQuery.cs
- MenuItemBindingCollection.cs
- SqlConnection.cs
- XmlUtil.cs
- XmlSchemaComplexType.cs
- CornerRadius.cs
- SoapElementAttribute.cs
- Validator.cs
- VScrollProperties.cs
- AnnotationComponentManager.cs
- StateDesigner.LayoutSelectionGlyph.cs
- InitializerFacet.cs
- XmlNavigatorFilter.cs
- XmlCountingReader.cs
- SqlDataReaderSmi.cs
- LineBreakRecord.cs
- GridViewRowPresenterBase.cs
- XmlEventCache.cs
- CodeValidator.cs
- TextBoxLine.cs
- DetailsViewDeleteEventArgs.cs
- MbpInfo.cs
- AlphabeticalEnumConverter.cs
- HttpContextServiceHost.cs