Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- FixedStringLookup.cs
- SizeAnimationUsingKeyFrames.cs
- PointUtil.cs
- ProfilePropertySettings.cs
- FormParameter.cs
- EntityDataSourceSelectedEventArgs.cs
- MetafileHeader.cs
- codemethodreferenceexpression.cs
- PropertyItem.cs
- NullableBoolConverter.cs
- DataSourceConverter.cs
- HijriCalendar.cs
- SqlDependencyListener.cs
- RequestResizeEvent.cs
- PackUriHelper.cs
- XmlChildNodes.cs
- Receive.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- PlainXmlWriter.cs
- ObjectReferenceStack.cs
- X509UI.cs
- base64Transforms.cs
- KnownColorTable.cs
- Ops.cs
- ContainerFilterService.cs
- SyndicationElementExtension.cs
- SettingsPropertyValue.cs
- LocalizationComments.cs
- TableLayoutSettings.cs
- DrawingBrush.cs
- FtpRequestCacheValidator.cs
- ColumnBinding.cs
- PackageRelationshipCollection.cs
- TimelineGroup.cs
- StrokeNode.cs
- Separator.cs
- _SpnDictionary.cs
- ButtonPopupAdapter.cs
- DataBoundControlParameterTarget.cs
- LogArchiveSnapshot.cs
- ManagedWndProcTracker.cs
- UnicastIPAddressInformationCollection.cs
- XPathMultyIterator.cs
- SqlClientWrapperSmiStream.cs
- Point.cs
- ResourceReferenceExpression.cs
- BindingFormattingDialog.cs
- DataColumnChangeEvent.cs
- FloaterBaseParagraph.cs
- ParameterBinding.cs
- ScriptMethodAttribute.cs
- OleDbMetaDataFactory.cs
- FontDialog.cs
- AppDomainUnloadedException.cs
- RoleServiceManager.cs
- RelatedPropertyManager.cs
- Activity.cs
- KnownAssemblyEntry.cs
- SortedSetDebugView.cs
- AutoGeneratedField.cs
- Condition.cs
- BinaryParser.cs
- SafeNativeMethods.cs
- SamlSecurityTokenAuthenticator.cs
- GeneralTransformGroup.cs
- SerializerDescriptor.cs
- ObjectListItemCollection.cs
- AppDomainAttributes.cs
- NodeLabelEditEvent.cs
- SiteMap.cs
- FileStream.cs
- JpegBitmapDecoder.cs
- ControlPaint.cs
- HttpWriter.cs
- Span.cs
- RepeatBehavior.cs
- Rights.cs
- DataGridParentRows.cs
- TlsnegoTokenProvider.cs
- ServiceMetadataContractBehavior.cs
- MessageRpc.cs
- ConfigXmlWhitespace.cs
- EntityDataSourceColumn.cs
- TextEditorMouse.cs
- SessionEndedEventArgs.cs
- DirtyTextRange.cs
- BinHexDecoder.cs
- AxHost.cs
- SqlExpander.cs
- XmlAnyElementAttributes.cs
- ExpressionBuilder.cs
- WCFBuildProvider.cs
- SelectionGlyph.cs
- CodeSnippetTypeMember.cs
- OdbcDataReader.cs
- WsdlBuildProvider.cs
- UrlAuthorizationModule.cs
- CultureInfoConverter.cs
- WhitespaceRuleLookup.cs
- Pair.cs