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
- FileDialogPermission.cs
- PasswordRecovery.cs
- TraceSection.cs
- ToolStripItem.cs
- FileDetails.cs
- RequestTimeoutManager.cs
- DictationGrammar.cs
- MarginsConverter.cs
- PersonalizationStateInfoCollection.cs
- IArgumentProvider.cs
- MaskDescriptors.cs
- Serializer.cs
- ImageDrawing.cs
- Message.cs
- DrawingContextDrawingContextWalker.cs
- Object.cs
- WebPartTransformerAttribute.cs
- ActiveXHost.cs
- HttpRuntime.cs
- TransportSecurityBindingElement.cs
- StreamReader.cs
- Function.cs
- RenderData.cs
- TableLayoutStyleCollection.cs
- QueryComponents.cs
- EmptyCollection.cs
- IisTraceListener.cs
- StrongNameUtility.cs
- RightsManagementInformation.cs
- ResourceDisplayNameAttribute.cs
- EntityProxyFactory.cs
- DetailsViewPagerRow.cs
- CodeSnippetExpression.cs
- EntityDataSourceChangingEventArgs.cs
- HtmlEncodedRawTextWriter.cs
- XmlILTrace.cs
- FigureHelper.cs
- ThreadAbortException.cs
- DataGridViewSelectedCellCollection.cs
- TextStore.cs
- VSWCFServiceContractGenerator.cs
- __Error.cs
- EditorAttribute.cs
- WpfWebRequestHelper.cs
- SqlFormatter.cs
- PrePrepareMethodAttribute.cs
- HtmlInputCheckBox.cs
- ControlBindingsCollection.cs
- HttpResponseInternalWrapper.cs
- TextOutput.cs
- XmlSubtreeReader.cs
- XamlGridLengthSerializer.cs
- TabControlAutomationPeer.cs
- ParameterBuilder.cs
- WindowsFormsSectionHandler.cs
- DispatcherEventArgs.cs
- pingexception.cs
- PostBackOptions.cs
- DataListItemEventArgs.cs
- MetabaseServerConfig.cs
- MouseBinding.cs
- FieldAccessException.cs
- UndoManager.cs
- AuthenticationModuleElement.cs
- PackageProperties.cs
- RTLAwareMessageBox.cs
- InputLanguageManager.cs
- CancelEventArgs.cs
- ImageListUtils.cs
- SqlDataSourceFilteringEventArgs.cs
- WebDescriptionAttribute.cs
- CannotUnloadAppDomainException.cs
- CompleteWizardStep.cs
- CellParaClient.cs
- FieldMetadata.cs
- SerialPinChanges.cs
- DragEvent.cs
- ReaderWriterLockWrapper.cs
- MethodImplAttribute.cs
- InterleavedZipPartStream.cs
- InlineCollection.cs
- TokenBasedSet.cs
- TextContainerChangedEventArgs.cs
- ListViewCommandEventArgs.cs
- AsyncWaitHandle.cs
- StylusTip.cs
- SimplePropertyEntry.cs
- EventListenerClientSide.cs
- PropertyGridCommands.cs
- TimersDescriptionAttribute.cs
- DesignerTransaction.cs
- unsafeIndexingFilterStream.cs
- GeneralTransform3D.cs
- WebPartDisplayMode.cs
- XmlSchemaComplexContentRestriction.cs
- Menu.cs
- TdsEnums.cs
- ProtocolViolationException.cs
- XmlNodeComparer.cs
- BaseValidator.cs