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
- SwitchLevelAttribute.cs
- ObjectTokenCategory.cs
- SqlMethodAttribute.cs
- PropVariant.cs
- ListBox.cs
- ContainerParagraph.cs
- CompositeClientFormatter.cs
- AndCondition.cs
- DictionaryBase.cs
- ToolStripSeparatorRenderEventArgs.cs
- DotExpr.cs
- TimelineGroup.cs
- StatusBarPanel.cs
- Internal.cs
- WebPartConnectionsCancelEventArgs.cs
- ComponentEditorForm.cs
- SystemIPInterfaceProperties.cs
- CollectionMarkupSerializer.cs
- ScrollChrome.cs
- CodeConditionStatement.cs
- _ScatterGatherBuffers.cs
- SystemTcpStatistics.cs
- MulticastDelegate.cs
- TimeSpan.cs
- BitConverter.cs
- SqlFacetAttribute.cs
- SortedDictionary.cs
- Attributes.cs
- OleDbConnectionFactory.cs
- HttpModulesSection.cs
- RoutedPropertyChangedEventArgs.cs
- TraceListener.cs
- XamlWriter.cs
- DataObjectMethodAttribute.cs
- HttpResponseInternalBase.cs
- Queue.cs
- Util.cs
- ContentElement.cs
- FormatterServices.cs
- Command.cs
- DependencyPropertyConverter.cs
- ObjectKeyFrameCollection.cs
- TextViewSelectionProcessor.cs
- StringUtil.cs
- TransformValueSerializer.cs
- PostBackTrigger.cs
- KnownTypesProvider.cs
- MenuStrip.cs
- ReadOnlyCollectionBase.cs
- FixedSOMSemanticBox.cs
- InstanceDescriptor.cs
- ScopeElement.cs
- TypeNameConverter.cs
- SchemaSetCompiler.cs
- OperationAbortedException.cs
- DesignColumn.cs
- EntityDataSourceMemberPath.cs
- NullableDoubleMinMaxAggregationOperator.cs
- PtsHelper.cs
- TreeViewItem.cs
- WpfWebRequestHelper.cs
- TableItemProviderWrapper.cs
- StructuredTypeEmitter.cs
- StyleSelector.cs
- VirtualizingStackPanel.cs
- CryptoKeySecurity.cs
- XmlAttributes.cs
- TimelineGroup.cs
- ExpressionBindingCollection.cs
- SessionPageStateSection.cs
- SqlClientWrapperSmiStreamChars.cs
- DataGridHelper.cs
- MobileControlPersister.cs
- DataObjectAttribute.cs
- ServiceOperationViewControl.cs
- DataGridViewCellCancelEventArgs.cs
- NativeMethodsOther.cs
- InstanceDataCollectionCollection.cs
- Point.cs
- BitFlagsGenerator.cs
- ToolStripDropDown.cs
- NativeRightsManagementAPIsStructures.cs
- TouchesOverProperty.cs
- BmpBitmapEncoder.cs
- FileLogRecordEnumerator.cs
- FullTextBreakpoint.cs
- UrlMappingsSection.cs
- _SSPISessionCache.cs
- PtsPage.cs
- TextParagraphProperties.cs
- RuntimeConfig.cs
- SelectionItemPattern.cs
- SortAction.cs
- WebPartTransformerCollection.cs
- HwndSourceKeyboardInputSite.cs
- ContractSearchPattern.cs
- ComponentRenameEvent.cs
- SystemTcpConnection.cs
- RawStylusInput.cs
- XPathDocument.cs