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
- DataGridViewCheckBoxCell.cs
- AssociationEndMember.cs
- RelOps.cs
- DesignerObjectListAdapter.cs
- Tag.cs
- SelectionPatternIdentifiers.cs
- DelegateInArgument.cs
- StandardOleMarshalObject.cs
- ChangeConflicts.cs
- RemoteHelper.cs
- PropertyItem.cs
- DataReaderContainer.cs
- ManipulationLogic.cs
- Transform3DGroup.cs
- SiteMapNodeItem.cs
- ClientBuildManager.cs
- tibetanshape.cs
- SqlDataSource.cs
- infer.cs
- CustomErrorCollection.cs
- SessionStateSection.cs
- CDSsyncETWBCLProvider.cs
- DataSourceConverter.cs
- FieldToken.cs
- Filter.cs
- BrushMappingModeValidation.cs
- HandlerBase.cs
- Selector.cs
- UnionCodeGroup.cs
- NCryptNative.cs
- Nullable.cs
- DragDropHelper.cs
- Utils.cs
- DataObjectCopyingEventArgs.cs
- TableParagraph.cs
- QuerySettings.cs
- DesignerAdRotatorAdapter.cs
- DynamicValueConverter.cs
- IsolatedStoragePermission.cs
- RuleAttributes.cs
- PtsPage.cs
- MSAAWinEventWrap.cs
- LineUtil.cs
- KoreanCalendar.cs
- VirtualPathUtility.cs
- NameValueConfigurationElement.cs
- UnsafeNativeMethodsCLR.cs
- EncoderParameters.cs
- CompModSwitches.cs
- Span.cs
- IxmlLineInfo.cs
- DeclaredTypeElement.cs
- PlatformNotSupportedException.cs
- Point.cs
- RowBinding.cs
- QilIterator.cs
- ColumnMap.cs
- SessionEndedEventArgs.cs
- EndPoint.cs
- PaperSource.cs
- TreeViewItemAutomationPeer.cs
- _DomainName.cs
- SymbolEqualComparer.cs
- Triangle.cs
- HtmlMobileTextWriter.cs
- AssemblyFilter.cs
- ToolStripMenuItem.cs
- PeerNameRecord.cs
- FormViewUpdateEventArgs.cs
- GenerateHelper.cs
- ControlBuilderAttribute.cs
- HandlerMappingMemo.cs
- CodeTypeDeclaration.cs
- SerializerWriterEventHandlers.cs
- SignedPkcs7.cs
- IntranetCredentialPolicy.cs
- _ChunkParse.cs
- TableLayoutSettingsTypeConverter.cs
- OpCodes.cs
- __Filters.cs
- BindingNavigator.cs
- GridLengthConverter.cs
- SignedPkcs7.cs
- MailWriter.cs
- StringConverter.cs
- VerticalAlignConverter.cs
- FontStyles.cs
- ImageField.cs
- WebDisplayNameAttribute.cs
- MemberDomainMap.cs
- ConstrainedDataObject.cs
- Internal.cs
- DataGridViewAdvancedBorderStyle.cs
- UnicodeEncoding.cs
- SQLMembershipProvider.cs
- RenderingBiasValidation.cs
- MiniMapControl.xaml.cs
- CellParagraph.cs
- CodeArrayCreateExpression.cs
- ProfileServiceManager.cs