Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / CommentAction.cs / 1 / 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
- ConfigurationManagerHelperFactory.cs
- MultipleViewPatternIdentifiers.cs
- ClientTargetCollection.cs
- AnnotationObservableCollection.cs
- CodeFieldReferenceExpression.cs
- FileSecurity.cs
- Parameter.cs
- MulticastIPAddressInformationCollection.cs
- MatrixAnimationBase.cs
- DataMemberListEditor.cs
- BorderGapMaskConverter.cs
- DataKeyArray.cs
- KerberosReceiverSecurityToken.cs
- DocumentViewerBaseAutomationPeer.cs
- NamespaceInfo.cs
- MarkerProperties.cs
- WebPartVerbCollection.cs
- DataDocumentXPathNavigator.cs
- HasCopySemanticsAttribute.cs
- Facet.cs
- XPathDescendantIterator.cs
- EventHandlerList.cs
- CacheHelper.cs
- DesignerForm.cs
- SessionIDManager.cs
- TypographyProperties.cs
- TemplateBindingExpression.cs
- MethodImplAttribute.cs
- InteropExecutor.cs
- WebHeaderCollection.cs
- Guid.cs
- UIElementHelper.cs
- CharacterHit.cs
- BounceEase.cs
- SqlInternalConnectionSmi.cs
- ImportedPolicyConversionContext.cs
- AllMembershipCondition.cs
- ConfigurationException.cs
- XmlILModule.cs
- ConnectorSelectionGlyph.cs
- EventBuilder.cs
- FixedSOMTable.cs
- SystemBrushes.cs
- MessageFormatterConverter.cs
- NullRuntimeConfig.cs
- CompModSwitches.cs
- PseudoWebRequest.cs
- GCHandleCookieTable.cs
- Matrix3D.cs
- XmlAttributeHolder.cs
- ProviderBase.cs
- RedirectionProxy.cs
- XmlBuffer.cs
- PageParser.cs
- GeneralTransform3DGroup.cs
- SafeWaitHandle.cs
- DataObject.cs
- EntityClientCacheEntry.cs
- WebServiceResponse.cs
- StructuredTypeEmitter.cs
- HttpRequest.cs
- ScopelessEnumAttribute.cs
- WindowsFormsLinkLabel.cs
- HasCopySemanticsAttribute.cs
- XmlCharType.cs
- NamedObject.cs
- ReferenceEqualityComparer.cs
- WorkflowInlining.cs
- Range.cs
- RegexTree.cs
- XPathSingletonIterator.cs
- SoapConverter.cs
- EncodingFallbackAwareXmlTextWriter.cs
- oledbmetadatacolumnnames.cs
- FontCollection.cs
- DateBoldEvent.cs
- ActiveXSite.cs
- ListViewCancelEventArgs.cs
- _Connection.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- PerformanceCounterCategory.cs
- DebugInfoGenerator.cs
- ComponentChangedEvent.cs
- WebServiceReceive.cs
- VariableExpressionConverter.cs
- Parameter.cs
- DetailsViewRow.cs
- PeerNode.cs
- ObjectIDGenerator.cs
- DurableInstanceProvider.cs
- SeverityFilter.cs
- WindowsRichEditRange.cs
- ThicknessConverter.cs
- SerializationEventsCache.cs
- GroupBoxAutomationPeer.cs
- WebPartManagerInternals.cs
- DesignTimeParseData.cs
- ZeroOpNode.cs
- XmlSchemaSequence.cs
- PreloadedPackages.cs