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
- DrawListViewItemEventArgs.cs
- HandleExceptionArgs.cs
- SystemWebExtensionsSectionGroup.cs
- COM2ExtendedUITypeEditor.cs
- SoapCodeExporter.cs
- precedingsibling.cs
- IntSecurity.cs
- CreatingCookieEventArgs.cs
- VisualStyleElement.cs
- CompareValidator.cs
- DataService.cs
- ErrorWebPart.cs
- GridViewPageEventArgs.cs
- XmlSchemaComplexContent.cs
- ClientFormsAuthenticationMembershipProvider.cs
- TickBar.cs
- DataGridViewCellCancelEventArgs.cs
- TextElement.cs
- ToolStripSeparator.cs
- InvokeMemberBinder.cs
- QueryResults.cs
- ObfuscateAssemblyAttribute.cs
- Span.cs
- UtilityExtension.cs
- BindingMemberInfo.cs
- SystemResources.cs
- ParseChildrenAsPropertiesAttribute.cs
- CustomMenuItemCollection.cs
- EventLogSession.cs
- NativeMethods.cs
- StrongNameKeyPair.cs
- Rotation3DAnimation.cs
- ConfigurationValue.cs
- XmlMembersMapping.cs
- KoreanCalendar.cs
- COM2IPerPropertyBrowsingHandler.cs
- MailBnfHelper.cs
- MailAddress.cs
- TemplateContent.cs
- InvalidComObjectException.cs
- OracleInternalConnection.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ViewManager.cs
- HwndStylusInputProvider.cs
- PerspectiveCamera.cs
- PerformanceCounterPermission.cs
- PerfCounters.cs
- EncodingDataItem.cs
- XamlLoadErrorInfo.cs
- NopReturnReader.cs
- GridEntryCollection.cs
- FrameworkObject.cs
- UIElement3D.cs
- RuntimeCompatibilityAttribute.cs
- FlowDocument.cs
- SqlConnectionPoolProviderInfo.cs
- StreamInfo.cs
- DateTimeUtil.cs
- WebFaultException.cs
- SpeakProgressEventArgs.cs
- Matrix.cs
- XmlEncoding.cs
- MulticastDelegate.cs
- CancellationScope.cs
- HttpCookiesSection.cs
- XmlSerializerSection.cs
- HyperLink.cs
- XPathQilFactory.cs
- PtsContext.cs
- DoubleAnimationBase.cs
- Queue.cs
- ChannelDemuxer.cs
- ISAPIRuntime.cs
- PrintingPermission.cs
- Floater.cs
- DataGridViewComboBoxEditingControl.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- AutomationPatternInfo.cs
- KeyboardEventArgs.cs
- SyndicationElementExtensionCollection.cs
- FieldToken.cs
- QueryContinueDragEvent.cs
- SafeHandles.cs
- FontNameEditor.cs
- EntityDataSourceDataSelection.cs
- FacetEnabledSchemaElement.cs
- MimeReflector.cs
- IteratorFilter.cs
- ContextQuery.cs
- ResourceAssociationTypeEnd.cs
- Misc.cs
- MenuItemAutomationPeer.cs
- DataRecordInfo.cs
- WebPartExportVerb.cs
- PositiveTimeSpanValidatorAttribute.cs
- XPathMultyIterator.cs
- RandomDelayQueuedSendsAsyncResult.cs
- HTMLTagNameToTypeMapper.cs
- LayoutDump.cs
- SchemaElement.cs