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
- RowVisual.cs
- Nullable.cs
- SQLSingle.cs
- DataPagerCommandEventArgs.cs
- ReversePositionQuery.cs
- SpeechRecognizer.cs
- EmptyWorkItem.cs
- RuleSet.cs
- SchemaCollectionCompiler.cs
- UrlRoutingHandler.cs
- bidPrivateBase.cs
- DataGridViewRowPrePaintEventArgs.cs
- UnsafeNativeMethods.cs
- DataObjectPastingEventArgs.cs
- OleDbTransaction.cs
- Parser.cs
- AbandonedMutexException.cs
- CorrelationManager.cs
- BasicHttpBindingCollectionElement.cs
- GCHandleCookieTable.cs
- XamlStyleSerializer.cs
- HtmlInputHidden.cs
- QueryMatcher.cs
- Byte.cs
- PrintDialogException.cs
- TemplateManager.cs
- ErrorHandler.cs
- CodeDOMUtility.cs
- OleDbError.cs
- LoginName.cs
- EntityProviderServices.cs
- BeginEvent.cs
- SqlFunctionAttribute.cs
- CustomActivityDesigner.cs
- BevelBitmapEffect.cs
- RawContentTypeMapper.cs
- FileRegion.cs
- PeerEndPoint.cs
- GridViewRowCollection.cs
- MissingManifestResourceException.cs
- SemanticResolver.cs
- Grant.cs
- ObjectDataSourceEventArgs.cs
- XmlWrappingReader.cs
- DbParameterHelper.cs
- WizardPanel.cs
- PasswordRecovery.cs
- HandlerWithFactory.cs
- PointUtil.cs
- OutputScopeManager.cs
- ConnectionManagementElementCollection.cs
- LoaderAllocator.cs
- XmlSchemaDocumentation.cs
- PeerNameRecordCollection.cs
- SafeBitVector32.cs
- ProcessMessagesAsyncResult.cs
- LoginView.cs
- Listbox.cs
- Table.cs
- SmtpMail.cs
- XmlLanguage.cs
- dataobject.cs
- cookiecontainer.cs
- ConnectionInterfaceCollection.cs
- MethodImplAttribute.cs
- OleDbInfoMessageEvent.cs
- Brush.cs
- TerminatorSinks.cs
- CqlErrorHelper.cs
- ThreadLocal.cs
- TextServicesLoader.cs
- XmlNodeList.cs
- GlyphRunDrawing.cs
- TdsEnums.cs
- CoTaskMemHandle.cs
- FieldBuilder.cs
- XmlSchemaParticle.cs
- CompoundFileStreamReference.cs
- ArglessEventHandlerProxy.cs
- DataRelationCollection.cs
- TextDecorationCollection.cs
- XmlQueryOutput.cs
- COM2AboutBoxPropertyDescriptor.cs
- KeySplineConverter.cs
- PassportAuthenticationEventArgs.cs
- TransactionManagerProxy.cs
- Internal.cs
- XmlQualifiedName.cs
- Span.cs
- Expression.cs
- PerfService.cs
- PointAnimation.cs
- RC2CryptoServiceProvider.cs
- LayoutTable.cs
- DebugHandleTracker.cs
- FixedSOMTableRow.cs
- CommonRemoteMemoryBlock.cs
- NavigationEventArgs.cs
- ScriptReference.cs
- BlobPersonalizationState.cs