Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / CommentAction.cs / 1305376 / 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
- CommandID.cs
- CryptoStream.cs
- GCHandleCookieTable.cs
- EncodingNLS.cs
- ErrorHandler.cs
- FormClosingEvent.cs
- OneOfConst.cs
- AlternateView.cs
- NameTable.cs
- CDSsyncETWBCLProvider.cs
- ObjectDataSource.cs
- DateTimeParse.cs
- BroadcastEventHelper.cs
- DataPagerFieldItem.cs
- AuthorizationRuleCollection.cs
- SecureStringHasher.cs
- NonParentingControl.cs
- Compilation.cs
- DispatcherObject.cs
- HttpApplication.cs
- FormsAuthenticationModule.cs
- MetadataItemEmitter.cs
- FileIOPermission.cs
- BamlResourceDeserializer.cs
- Font.cs
- TableCell.cs
- FileStream.cs
- EventDescriptorCollection.cs
- GeometryDrawing.cs
- Geometry.cs
- DecimalConverter.cs
- InstancePersistenceContext.cs
- ObjectTag.cs
- SystemTcpConnection.cs
- WinFormsComponentEditor.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- DesignerContextDescriptor.cs
- ipaddressinformationcollection.cs
- WebHttpBindingElement.cs
- ContextActivityUtils.cs
- ImageFormatConverter.cs
- StateMachineDesignerPaint.cs
- SearchForVirtualItemEventArgs.cs
- DocumentEventArgs.cs
- SharedDp.cs
- HostedImpersonationContext.cs
- SmiEventSink_DeferedProcessing.cs
- OutputCacheSection.cs
- StrictAndMessageFilter.cs
- BaseHashHelper.cs
- Control.cs
- SignedPkcs7.cs
- ChtmlFormAdapter.cs
- ValidationPropertyAttribute.cs
- Peer.cs
- BaseCodePageEncoding.cs
- TimersDescriptionAttribute.cs
- NetCodeGroup.cs
- DetailsViewCommandEventArgs.cs
- CommandSet.cs
- MarkerProperties.cs
- RowToFieldTransformer.cs
- Stack.cs
- FullTextBreakpoint.cs
- BuildProvider.cs
- InternalControlCollection.cs
- assemblycache.cs
- BindingNavigator.cs
- ValidationRule.cs
- CommunicationException.cs
- EventMap.cs
- SessionEndingEventArgs.cs
- Stroke.cs
- HtmlShim.cs
- DataControlLinkButton.cs
- CodeTypeParameter.cs
- SupportsEventValidationAttribute.cs
- HttpResponseInternalBase.cs
- XmlWriterSettings.cs
- CounterCreationData.cs
- UncommonField.cs
- DesigntimeLicenseContext.cs
- SamlAuthenticationStatement.cs
- Scripts.cs
- RealProxy.cs
- TabItemWrapperAutomationPeer.cs
- activationcontext.cs
- DataViewSetting.cs
- BitmapDecoder.cs
- GeneralTransformCollection.cs
- ProxyOperationRuntime.cs
- MemberDomainMap.cs
- KeyEvent.cs
- ItemCheckEvent.cs
- ChildrenQuery.cs
- ImpersonateTokenRef.cs
- ParseChildrenAsPropertiesAttribute.cs
- CroppedBitmap.cs
- InlinedAggregationOperatorEnumerator.cs
- ToolBarButton.cs