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
- AttributeTableBuilder.cs
- TextServicesManager.cs
- DataColumnChangeEvent.cs
- SafeTimerHandle.cs
- FontDriver.cs
- DataGridViewCellCancelEventArgs.cs
- ConditionValidator.cs
- OleDbErrorCollection.cs
- QueryTaskGroupState.cs
- PropertyChangeTracker.cs
- SafeCertificateStore.cs
- ByteRangeDownloader.cs
- HttpGetClientProtocol.cs
- SqlDataSourceSelectingEventArgs.cs
- bidPrivateBase.cs
- ClientBuildManagerCallback.cs
- FixedStringLookup.cs
- UnicodeEncoding.cs
- GeneralTransform3DGroup.cs
- XhtmlBasicLiteralTextAdapter.cs
- XPathAncestorIterator.cs
- FieldBuilder.cs
- NativeMethods.cs
- PrincipalPermission.cs
- HtmlString.cs
- QilParameter.cs
- ProtocolElementCollection.cs
- ActivitiesCollection.cs
- MachineKeyConverter.cs
- SoapAttributeOverrides.cs
- FormViewUpdateEventArgs.cs
- AudioException.cs
- ManagementOperationWatcher.cs
- ControlParameter.cs
- TextEditorParagraphs.cs
- TypeUtil.cs
- AnimatedTypeHelpers.cs
- PropertyDescriptorGridEntry.cs
- BadImageFormatException.cs
- ScrollableControl.cs
- OverrideMode.cs
- AutomationTextAttribute.cs
- DoubleLinkList.cs
- HtmlContainerControl.cs
- ToolStripDropDownItem.cs
- PopOutPanel.cs
- Baml2006KnownTypes.cs
- InvalidEnumArgumentException.cs
- Menu.cs
- Hyperlink.cs
- OrderedDictionaryStateHelper.cs
- CodeSnippetCompileUnit.cs
- ShapingWorkspace.cs
- SchemaDeclBase.cs
- UnknownMessageReceivedEventArgs.cs
- XmlProcessingInstruction.cs
- OledbConnectionStringbuilder.cs
- AvTraceDetails.cs
- WebControlsSection.cs
- DispatchChannelSink.cs
- SystemIPGlobalStatistics.cs
- WebHttpSecurityElement.cs
- SslStream.cs
- TextureBrush.cs
- COM2ExtendedUITypeEditor.cs
- MemoryRecordBuffer.cs
- ContentValidator.cs
- NavigationEventArgs.cs
- HttpMethodConstraint.cs
- ProgressiveCrcCalculatingStream.cs
- DiscreteKeyFrames.cs
- TraceFilter.cs
- SHA1.cs
- DesignerForm.cs
- SQLMoneyStorage.cs
- Message.cs
- UrlMappingsSection.cs
- DataTableMapping.cs
- TdsParserSessionPool.cs
- TextPointerBase.cs
- COM2TypeInfoProcessor.cs
- ButtonRenderer.cs
- OleDbCommandBuilder.cs
- WebServiceErrorEvent.cs
- XPathNavigatorReader.cs
- Config.cs
- WinFormsUtils.cs
- GeneralTransform2DTo3D.cs
- MailMessage.cs
- EntityDataSourceUtil.cs
- SqlInfoMessageEvent.cs
- Metafile.cs
- RSAPKCS1SignatureFormatter.cs
- TextEffect.cs
- SecurityIdentifierConverter.cs
- ConfigXmlText.cs
- SerialReceived.cs
- XPathAncestorQuery.cs
- BidPrivateBase.cs
- EncoderReplacementFallback.cs