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
- SamlAuthorizationDecisionClaimResource.cs
- Marshal.cs
- Adorner.cs
- DrawingVisual.cs
- XPathDescendantIterator.cs
- FormatterServicesNoSerializableCheck.cs
- ResetableIterator.cs
- IdentifierService.cs
- compensatingcollection.cs
- ScriptingWebServicesSectionGroup.cs
- OutKeywords.cs
- UriScheme.cs
- ConfigPathUtility.cs
- MessageQueueConverter.cs
- CqlLexerHelpers.cs
- RawStylusSystemGestureInputReport.cs
- DependencyObject.cs
- CollaborationHelperFunctions.cs
- TypeConvertions.cs
- ActivityInstanceReference.cs
- XmlWrappingReader.cs
- DataRowView.cs
- FixedStringLookup.cs
- Polyline.cs
- HttpEncoder.cs
- BuildDependencySet.cs
- DependencyPropertyConverter.cs
- QilUnary.cs
- SqlDataSourceCache.cs
- Codec.cs
- RegexCapture.cs
- OuterGlowBitmapEffect.cs
- Wildcard.cs
- GridItemCollection.cs
- TableCellCollection.cs
- UpdatePanelTriggerCollection.cs
- ScrollProviderWrapper.cs
- IISUnsafeMethods.cs
- TailCallAnalyzer.cs
- SlotInfo.cs
- Win32SafeHandles.cs
- MouseDevice.cs
- SHA256Cng.cs
- TimeoutException.cs
- RectangleGeometry.cs
- MessageQueuePermissionAttribute.cs
- DataGridViewRowsRemovedEventArgs.cs
- RemoteWebConfigurationHost.cs
- DataGridPageChangedEventArgs.cs
- ObjectAssociationEndMapping.cs
- XmlCompatibilityReader.cs
- ZipQueryOperator.cs
- InternalBase.cs
- FileDialog.cs
- WindowInteractionStateTracker.cs
- DataColumn.cs
- StdValidatorsAndConverters.cs
- HtmlPageAdapter.cs
- WpfXamlMember.cs
- AxHost.cs
- LayoutEngine.cs
- WebPartPersonalization.cs
- DynamicPropertyReader.cs
- XmlAttributeOverrides.cs
- DockingAttribute.cs
- ReferenceConverter.cs
- RegexCompilationInfo.cs
- UrlPath.cs
- SimpleFieldTemplateFactory.cs
- BaseResourcesBuildProvider.cs
- CheckStoreFileValidityRequest.cs
- AttributeCollection.cs
- StreamGeometry.cs
- StorageTypeMapping.cs
- PointValueSerializer.cs
- FormsAuthenticationUser.cs
- FormViewInsertEventArgs.cs
- XmlSchemaObject.cs
- RequestedSignatureDialog.cs
- ProcessHostFactoryHelper.cs
- PropertyTab.cs
- SafeSecurityHandles.cs
- _HTTPDateParse.cs
- AssemblyResourceLoader.cs
- WebScriptServiceHost.cs
- ColorTransformHelper.cs
- FileCodeGroup.cs
- TypeConverterHelper.cs
- RectangleHotSpot.cs
- SafeProcessHandle.cs
- Rotation3DAnimation.cs
- PolyBezierSegment.cs
- ComponentTray.cs
- BrowserDefinitionCollection.cs
- SafeSecurityHelper.cs
- Delegate.cs
- DisplayInformation.cs
- TimelineGroup.cs
- CollectionContainer.cs
- TcpAppDomainProtocolHandler.cs