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
- SoapReflectionImporter.cs
- CheckoutException.cs
- TableRow.cs
- HGlobalSafeHandle.cs
- TextBoxLine.cs
- WorkflowElementDialogWindow.xaml.cs
- WebConfigurationHost.cs
- ToolStripLocationCancelEventArgs.cs
- SQLBytes.cs
- BordersPage.cs
- SqlCommandBuilder.cs
- OdbcConnection.cs
- MetafileHeaderWmf.cs
- CallbackValidator.cs
- CharEnumerator.cs
- IPPacketInformation.cs
- TableRow.cs
- FieldAccessException.cs
- OdbcParameter.cs
- TransactionOptions.cs
- CollectionEditVerbManager.cs
- CheckBoxFlatAdapter.cs
- DesignerAttribute.cs
- DesignerSerializationVisibilityAttribute.cs
- FormViewInsertEventArgs.cs
- TextFormatterHost.cs
- DeclarativeCatalogPart.cs
- SqlUnionizer.cs
- Rotation3D.cs
- TranslateTransform3D.cs
- BrowserCapabilitiesFactory.cs
- Stroke.cs
- RuleSetDialog.cs
- OwnerDrawPropertyBag.cs
- Int32CAMarshaler.cs
- SqlStatistics.cs
- UInt16.cs
- DataReaderContainer.cs
- JavaScriptObjectDeserializer.cs
- HWStack.cs
- ConfigPathUtility.cs
- ResourceContainer.cs
- EditorZoneBase.cs
- DBPropSet.cs
- GlobalizationAssembly.cs
- MetaType.cs
- GZipStream.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- CommonObjectSecurity.cs
- InputBindingCollection.cs
- TraceSection.cs
- CompositeDuplexElement.cs
- GlyphRunDrawing.cs
- HttpSessionStateBase.cs
- HostingEnvironmentException.cs
- Model3D.cs
- Msec.cs
- ButtonBase.cs
- TextParagraphCache.cs
- SharedPerformanceCounter.cs
- ResolveCompletedEventArgs.cs
- DecoderBestFitFallback.cs
- CultureInfoConverter.cs
- QilParameter.cs
- DNS.cs
- Splitter.cs
- ToolStripSplitStackLayout.cs
- ComplexTypeEmitter.cs
- RemoteWebConfigurationHostStream.cs
- WebPartUtil.cs
- EndPoint.cs
- DocumentCollection.cs
- PanelContainerDesigner.cs
- SessionParameter.cs
- HtmlContainerControl.cs
- SchemaType.cs
- DataGridViewLinkColumn.cs
- TranslateTransform.cs
- DllNotFoundException.cs
- DataGridViewIntLinkedList.cs
- _OSSOCK.cs
- MediaContext.cs
- CompressionTransform.cs
- DocumentNUp.cs
- PropertyConverter.cs
- IDQuery.cs
- SymLanguageType.cs
- Rotation3DKeyFrameCollection.cs
- SkinBuilder.cs
- OdbcErrorCollection.cs
- UniqueConstraint.cs
- HitTestParameters3D.cs
- CollectionContainer.cs
- FatalException.cs
- XmlObjectSerializerReadContextComplexJson.cs
- AtomPub10CategoriesDocumentFormatter.cs
- DataSourceCacheDurationConverter.cs
- SmiContext.cs
- BooleanToVisibilityConverter.cs
- CodeTypeParameterCollection.cs