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
- RuleAttributes.cs
- ZoneMembershipCondition.cs
- PolicyException.cs
- FacetChecker.cs
- ExceptionNotification.cs
- List.cs
- mediapermission.cs
- PropertyValueUIItem.cs
- KeyboardEventArgs.cs
- SplashScreenNativeMethods.cs
- HttpWebResponse.cs
- CodeMethodMap.cs
- DivideByZeroException.cs
- TreeNodeClickEventArgs.cs
- Profiler.cs
- SqlBuilder.cs
- SerializationEventsCache.cs
- XmlDataSourceNodeDescriptor.cs
- Compiler.cs
- DependsOnAttribute.cs
- HyperLink.cs
- MethodBuilderInstantiation.cs
- WindowsAltTab.cs
- RowParagraph.cs
- FormViewRow.cs
- MatrixAnimationUsingKeyFrames.cs
- BufferBuilder.cs
- IdentitySection.cs
- StateManagedCollection.cs
- TcpChannelListener.cs
- TabRenderer.cs
- TraceSource.cs
- SqlFlattener.cs
- AuthenticationException.cs
- OleDbFactory.cs
- ValueCollectionParameterReader.cs
- DropShadowEffect.cs
- AssociationTypeEmitter.cs
- TdsParserSafeHandles.cs
- ProxyHelper.cs
- XmlQueryOutput.cs
- ComponentResourceKey.cs
- DictionaryBase.cs
- ControlIdConverter.cs
- ValueConversionAttribute.cs
- AdornedElementPlaceholder.cs
- XmlSchemaDocumentation.cs
- MultiByteCodec.cs
- DefaultSerializationProviderAttribute.cs
- WebPartConnectionsConnectVerb.cs
- HttpApplicationFactory.cs
- Bold.cs
- DetailsViewDeleteEventArgs.cs
- Light.cs
- PreloadedPackages.cs
- EncodedStreamFactory.cs
- NativeMethods.cs
- MsmqIntegrationBinding.cs
- uribuilder.cs
- ListItemCollection.cs
- EndOfStreamException.cs
- HierarchicalDataBoundControlAdapter.cs
- CategoryNameCollection.cs
- DelegateBodyWriter.cs
- StateMachine.cs
- DataException.cs
- MatrixValueSerializer.cs
- Socket.cs
- WebPartHeaderCloseVerb.cs
- unitconverter.cs
- TextServicesProperty.cs
- MediaContext.cs
- DiscoveryClientOutputChannel.cs
- OpCodes.cs
- ClientTargetSection.cs
- DeferredElementTreeState.cs
- FixedDSBuilder.cs
- WorkflowInlining.cs
- EventLogEntry.cs
- Panel.cs
- CommandID.cs
- TreeNode.cs
- FileRecordSequenceHelper.cs
- DataListItem.cs
- NotCondition.cs
- LoginName.cs
- DataControlCommands.cs
- ModelItemKeyValuePair.cs
- XmlDocumentFragment.cs
- XpsFilter.cs
- httpapplicationstate.cs
- AppDomainResourcePerfCounters.cs
- _RequestCacheProtocol.cs
- DesignerSerializerAttribute.cs
- VirtualizedItemPattern.cs
- EraserBehavior.cs
- WindowsFormsDesignerOptionService.cs
- Panel.cs
- HttpPostProtocolImporter.cs
- MetadataUtilsSmi.cs