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
- InputProcessorProfiles.cs
- diagnosticsswitches.cs
- EngineSiteSapi.cs
- TabItem.cs
- NameValueFileSectionHandler.cs
- CopyCodeAction.cs
- ExpandCollapsePattern.cs
- Guid.cs
- ConnectionsZoneDesigner.cs
- ConfigXmlElement.cs
- VisualBrush.cs
- LocalBuilder.cs
- CompModSwitches.cs
- LeafCellTreeNode.cs
- HtmlObjectListAdapter.cs
- PartialCachingControl.cs
- ToolStripArrowRenderEventArgs.cs
- TTSEvent.cs
- DrawListViewColumnHeaderEventArgs.cs
- WebZone.cs
- PropertyDescriptor.cs
- ColorTransformHelper.cs
- SspiWrapper.cs
- ReferenceService.cs
- MatrixUtil.cs
- securitycriticaldataformultiplegetandset.cs
- DbConnectionInternal.cs
- ImageCollectionEditor.cs
- RenderOptions.cs
- ConfigurationValidatorAttribute.cs
- CatalogPart.cs
- DateTimeValueSerializer.cs
- AttributeAction.cs
- DBCommand.cs
- IriParsingElement.cs
- ConfigurationValues.cs
- XmlSchemaImporter.cs
- RuntimeHelpers.cs
- SingleConverter.cs
- AnnotationStore.cs
- ObjectHelper.cs
- DoubleAnimationClockResource.cs
- SqlNodeAnnotation.cs
- ButtonAutomationPeer.cs
- UnauthorizedAccessException.cs
- ErrorEventArgs.cs
- ControlPropertyNameConverter.cs
- ArglessEventHandlerProxy.cs
- Semaphore.cs
- Ticks.cs
- StrongBox.cs
- TextBoxAutoCompleteSourceConverter.cs
- CheckBoxRenderer.cs
- XmlTextWriter.cs
- ClientScriptItem.cs
- ResXBuildProvider.cs
- TypeUnloadedException.cs
- SqlNotificationEventArgs.cs
- PageAsyncTask.cs
- OrderedDictionary.cs
- ComplexPropertyEntry.cs
- Shared.cs
- KoreanLunisolarCalendar.cs
- DBSqlParserTableCollection.cs
- ForEachAction.cs
- StateChangeEvent.cs
- CodeGeneratorOptions.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- Style.cs
- WSHttpBinding.cs
- TiffBitmapEncoder.cs
- MethodResolver.cs
- ButtonFlatAdapter.cs
- TextRunCache.cs
- PageCache.cs
- ChtmlPhoneCallAdapter.cs
- DefaultValueAttribute.cs
- Polyline.cs
- CachedCompositeFamily.cs
- CellConstantDomain.cs
- SessionStateModule.cs
- SqlConnection.cs
- HtmlHead.cs
- DynamicQueryStringParameter.cs
- mansign.cs
- FileDialog.cs
- BamlStream.cs
- ImageSourceConverter.cs
- SystemIPGlobalProperties.cs
- ByteKeyFrameCollection.cs
- ToolStripItemTextRenderEventArgs.cs
- WinInetCache.cs
- SystemColors.cs
- StylusOverProperty.cs
- Point3DAnimationUsingKeyFrames.cs
- TabPanel.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- CacheMode.cs
- StrokeNodeOperations2.cs
- CfgParser.cs