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
- XappLauncher.cs
- WhereQueryOperator.cs
- SendSecurityHeaderElement.cs
- hwndwrapper.cs
- OneToOneMappingSerializer.cs
- PersonalizationDictionary.cs
- XamlTemplateSerializer.cs
- lengthconverter.cs
- HeaderLabel.cs
- ApplySecurityAndSendAsyncResult.cs
- AnimationTimeline.cs
- Logging.cs
- WebPartEditVerb.cs
- ComponentGlyph.cs
- DataGridViewRowPostPaintEventArgs.cs
- CommandField.cs
- GeneralTransformCollection.cs
- LockRecoveryTask.cs
- LinkArea.cs
- WorkflowTraceTransfer.cs
- _HeaderInfo.cs
- StatusBar.cs
- ExpressionCopier.cs
- DetailsViewRow.cs
- RoutingChannelExtension.cs
- MemberExpression.cs
- DragCompletedEventArgs.cs
- HMACMD5.cs
- AsymmetricKeyExchangeFormatter.cs
- MSHTMLHost.cs
- DispatcherTimer.cs
- RSAPKCS1KeyExchangeFormatter.cs
- TextRangeBase.cs
- TraversalRequest.cs
- PropertySet.cs
- HotCommands.cs
- DbConnectionPoolCounters.cs
- RemoveStoryboard.cs
- MediaPlayerState.cs
- ErrorEventArgs.cs
- NamedPipeProcessProtocolHandler.cs
- VisualCollection.cs
- DeviceFilterDictionary.cs
- ContentFileHelper.cs
- SiteMapPath.cs
- DocumentViewerAutomationPeer.cs
- UTF8Encoding.cs
- ContextStack.cs
- RightsManagementEncryptedStream.cs
- URI.cs
- IntSecurity.cs
- EntityDataSourceViewSchema.cs
- LinkUtilities.cs
- FlowDocumentReaderAutomationPeer.cs
- RealProxy.cs
- PersonalizationProviderCollection.cs
- MetadataArtifactLoaderComposite.cs
- ChildDocumentBlock.cs
- WebSysDefaultValueAttribute.cs
- WindowsNonControl.cs
- EntitySqlQueryState.cs
- SemanticAnalyzer.cs
- SoapCodeExporter.cs
- ConstantSlot.cs
- RMPermissions.cs
- PaperSource.cs
- UrlAuthorizationModule.cs
- SqlCommandSet.cs
- LinearGradientBrush.cs
- _DomainName.cs
- TraceContextRecord.cs
- XmlSchemaInfo.cs
- PeerApplication.cs
- FixedFlowMap.cs
- MsmqIntegrationBindingElement.cs
- InternalCache.cs
- XmlSchemaType.cs
- SegmentInfo.cs
- EndpointDiscoveryMetadata11.cs
- BufferedGenericXmlSecurityToken.cs
- sqlstateclientmanager.cs
- TaskForm.cs
- DataTrigger.cs
- ValueType.cs
- RepeatEnumerable.cs
- ClientApiGenerator.cs
- UriSection.cs
- cache.cs
- ProfileEventArgs.cs
- XmlSchemaSet.cs
- FontStyleConverter.cs
- CollectionChange.cs
- BreadCrumbTextConverter.cs
- InertiaRotationBehavior.cs
- XmlChoiceIdentifierAttribute.cs
- SmiXetterAccessMap.cs
- VectorConverter.cs
- ExtenderProviderService.cs
- MultipleFilterMatchesException.cs
- CompiledIdentityConstraint.cs