Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- StatusBarAutomationPeer.cs
- DataControlField.cs
- MimeMultiPart.cs
- WindowsRichEdit.cs
- ConditionChanges.cs
- IndexedWhereQueryOperator.cs
- ToolStripContentPanelRenderEventArgs.cs
- DataContext.cs
- AssemblyUtil.cs
- ZipIOLocalFileHeader.cs
- SettingsPropertyValueCollection.cs
- SymLanguageVendor.cs
- ArcSegment.cs
- XmlUTF8TextWriter.cs
- Page.cs
- returneventsaver.cs
- DBPropSet.cs
- BooleanToVisibilityConverter.cs
- WebSysDescriptionAttribute.cs
- ViewEvent.cs
- IfJoinedCondition.cs
- ProfilePropertySettingsCollection.cs
- PeerNameRecordCollection.cs
- Baml2006ReaderSettings.cs
- WindowsToolbarAsMenu.cs
- TextEditorMouse.cs
- Point3DCollection.cs
- BlurEffect.cs
- StylusPointDescription.cs
- CodeTypeReferenceExpression.cs
- VirtualDirectoryMapping.cs
- GeneratedCodeAttribute.cs
- LinkedList.cs
- ConstraintManager.cs
- EditingCommands.cs
- MenuItem.cs
- XmlNodeChangedEventManager.cs
- SamlSubject.cs
- DescendantBaseQuery.cs
- ObjectStateFormatter.cs
- GridErrorDlg.cs
- EntryWrittenEventArgs.cs
- EtwTrace.cs
- IpcChannelHelper.cs
- arclist.cs
- PagerStyle.cs
- DataRelation.cs
- ParsedAttributeCollection.cs
- ScriptDescriptor.cs
- AnnotationAuthorChangedEventArgs.cs
- XmlResolver.cs
- DataGridPageChangedEventArgs.cs
- ClientTarget.cs
- Reference.cs
- DrawingAttributes.cs
- VisualTarget.cs
- CallTemplateAction.cs
- RuleProcessor.cs
- TextDecorationCollection.cs
- FrameworkContentElement.cs
- datacache.cs
- DbUpdateCommandTree.cs
- GrammarBuilderRuleRef.cs
- TerminatorSinks.cs
- Sql8ConformanceChecker.cs
- ResizeBehavior.cs
- LogicalExpr.cs
- SqlCacheDependencyDatabaseCollection.cs
- COM2ExtendedBrowsingHandler.cs
- VoiceInfo.cs
- OleDbReferenceCollection.cs
- PageRanges.cs
- CellLabel.cs
- FileLogRecordEnumerator.cs
- SqlProfileProvider.cs
- TrackingParticipant.cs
- WebPartVerbsEventArgs.cs
- RootBuilder.cs
- Config.cs
- Rect3DConverter.cs
- CheckBox.cs
- DispatcherHooks.cs
- reliableinputsessionchannel.cs
- validationstate.cs
- ProfileSection.cs
- ObjectContext.cs
- RtfControls.cs
- RTLAwareMessageBox.cs
- XmlRootAttribute.cs
- controlskin.cs
- RMEnrollmentPage2.cs
- BindableTemplateBuilder.cs
- X509SubjectKeyIdentifierClause.cs
- SystemSounds.cs
- Image.cs
- WebBaseEventKeyComparer.cs
- DocumentViewerAutomationPeer.cs
- COM2PictureConverter.cs
- GrabHandleGlyph.cs
- TakeOrSkipQueryOperator.cs