Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TagPrefixAttribute.cs
- Transactions.cs
- DataGridLinkButton.cs
- ClientRuntimeConfig.cs
- SchemaEntity.cs
- KerberosSecurityTokenParameters.cs
- ThreadStaticAttribute.cs
- HtmlToClrEventProxy.cs
- OperationPerformanceCounters.cs
- Substitution.cs
- ExtensionDataObject.cs
- CqlWriter.cs
- AsymmetricKeyExchangeDeformatter.cs
- MediaPlayer.cs
- GeometryGroup.cs
- CopyOfAction.cs
- RegisteredHiddenField.cs
- RunInstallerAttribute.cs
- ComEventsSink.cs
- IssuedTokensHeader.cs
- ObjectSecurity.cs
- PathFigure.cs
- OdbcParameter.cs
- OpCodes.cs
- TableAdapterManagerGenerator.cs
- Model3DGroup.cs
- IdleTimeoutMonitor.cs
- DES.cs
- StrokeCollection2.cs
- Typeface.cs
- Model3D.cs
- PageParser.cs
- AppLevelCompilationSectionCache.cs
- Stack.cs
- DrawingContext.cs
- StringUtil.cs
- XmlUrlEditor.cs
- GuidTagList.cs
- EntityProxyTypeInfo.cs
- TemplatedMailWebEventProvider.cs
- RegexMatchCollection.cs
- RectangleHotSpot.cs
- streamingZipPartStream.cs
- HwndSourceParameters.cs
- FieldMetadata.cs
- ObjectItemAssemblyLoader.cs
- BuildResult.cs
- MetadataCacheItem.cs
- StyleXamlParser.cs
- ListManagerBindingsCollection.cs
- XmlQueryStaticData.cs
- ImageMap.cs
- SoapServerProtocol.cs
- SqlCachedBuffer.cs
- DayRenderEvent.cs
- SqlParameter.cs
- ContentFilePart.cs
- DateTimePicker.cs
- BufferedGraphicsManager.cs
- SafeHandles.cs
- ThumbButtonInfo.cs
- StorageConditionPropertyMapping.cs
- ProfileSettingsCollection.cs
- RowParagraph.cs
- ViewGenResults.cs
- ActivityCodeDomReferenceService.cs
- HttpRuntime.cs
- ZipIOExtraFieldPaddingElement.cs
- TypeElement.cs
- LiteralControl.cs
- AdornerHitTestResult.cs
- Inline.cs
- XPathAncestorQuery.cs
- Msec.cs
- ListSurrogate.cs
- XmlMembersMapping.cs
- PeerChannelListener.cs
- DataGridState.cs
- Focus.cs
- QilNode.cs
- WindowsFormsSynchronizationContext.cs
- XmlNode.cs
- FontWeightConverter.cs
- TableItemProviderWrapper.cs
- SimpleBitVector32.cs
- ScaleTransform3D.cs
- ZoneLinkButton.cs
- StringSource.cs
- DataPagerField.cs
- TextEffectResolver.cs
- EditingCommands.cs
- GridViewSortEventArgs.cs
- CodeObject.cs
- ProcessHostConfigUtils.cs
- DeclarativeCatalogPartDesigner.cs
- CodeSnippetCompileUnit.cs
- XmlDataContract.cs
- EventManager.cs
- Int32.cs
- DomainConstraint.cs