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
- NullableIntSumAggregationOperator.cs
- OleDbReferenceCollection.cs
- ScrollItemPattern.cs
- GraphicsContainer.cs
- XmlDataSource.cs
- TableLayoutPanelResizeGlyph.cs
- IPCCacheManager.cs
- ListViewSelectEventArgs.cs
- DataAdapter.cs
- ClientTarget.cs
- AuthenticationConfig.cs
- DataServiceRequestOfT.cs
- GroupBoxRenderer.cs
- DataContext.cs
- HtmlControlPersistable.cs
- InternalsVisibleToAttribute.cs
- FontStretches.cs
- XmlSchemaChoice.cs
- Repeater.cs
- CommonDialog.cs
- DocumentViewerHelper.cs
- InputScope.cs
- BezierSegment.cs
- DataTableMapping.cs
- EdmTypeAttribute.cs
- EmptyControlCollection.cs
- BitmapImage.cs
- XmlDeclaration.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ByteAnimationBase.cs
- ThrowHelper.cs
- DataServices.cs
- PopOutPanel.cs
- CachedBitmap.cs
- BorderGapMaskConverter.cs
- RuleElement.cs
- DesignerLoader.cs
- DataTable.cs
- XmlHierarchicalDataSourceView.cs
- BaseParagraph.cs
- HttpSessionStateWrapper.cs
- TabControlAutomationPeer.cs
- ClockGroup.cs
- WindowsAltTab.cs
- KnowledgeBase.cs
- WebPartUserCapability.cs
- RemotingException.cs
- ToggleProviderWrapper.cs
- ServiceObjectContainer.cs
- PropertyManager.cs
- ObfuscateAssemblyAttribute.cs
- DateTime.cs
- XmlDictionaryReaderQuotasElement.cs
- LocalizableAttribute.cs
- SmiXetterAccessMap.cs
- ColumnMapVisitor.cs
- PagerSettings.cs
- WindowsToolbarAsMenu.cs
- DataStreams.cs
- ComponentResourceKey.cs
- CacheDependency.cs
- PerformanceCounterPermissionEntry.cs
- ContentDesigner.cs
- BasePropertyDescriptor.cs
- ExpressionVisitor.cs
- FormViewModeEventArgs.cs
- OperatingSystemVersionCheck.cs
- FontConverter.cs
- NoClickablePointException.cs
- TextEditorMouse.cs
- ConnectionStringSettings.cs
- Stylus.cs
- WmlObjectListAdapter.cs
- BindStream.cs
- PrivilegedConfigurationManager.cs
- Rfc2898DeriveBytes.cs
- LoginName.cs
- OpenTypeCommon.cs
- Lasso.cs
- ToolboxItemFilterAttribute.cs
- TextEmbeddedObject.cs
- Script.cs
- GeneralTransformCollection.cs
- TickBar.cs
- HttpRequestWrapper.cs
- XmlText.cs
- DataColumnMapping.cs
- XmlReaderSettings.cs
- ViewGenerator.cs
- ControlBuilder.cs
- coordinatorfactory.cs
- oledbmetadatacolumnnames.cs
- Message.cs
- NonClientArea.cs
- ConditionalWeakTable.cs
- RawStylusSystemGestureInputReport.cs
- assertwrapper.cs
- Camera.cs
- UniqueEventHelper.cs
- iisPickupDirectory.cs