Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / CommentAction.cs / 1305376 / 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
- ToolStripContainer.cs
- DomainConstraint.cs
- PolicyVersion.cs
- LocalizeDesigner.cs
- LowerCaseStringConverter.cs
- ToolStripComboBox.cs
- SevenBitStream.cs
- UnauthorizedWebPart.cs
- HwndSourceParameters.cs
- TraceContextRecord.cs
- RecognizedWordUnit.cs
- FormsAuthenticationConfiguration.cs
- MetadataCollection.cs
- Region.cs
- AssemblyCache.cs
- DesignerObjectListAdapter.cs
- WizardPanel.cs
- Converter.cs
- FixedNode.cs
- propertyentry.cs
- XsltArgumentList.cs
- Sentence.cs
- DataReaderContainer.cs
- TypeElement.cs
- CodeDirectionExpression.cs
- ArraySet.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- FamilyTypeface.cs
- Viewport2DVisual3D.cs
- ClientConvert.cs
- IxmlLineInfo.cs
- BuilderInfo.cs
- ICspAsymmetricAlgorithm.cs
- CompilerErrorCollection.cs
- SqlDataSourceStatusEventArgs.cs
- PageStatePersister.cs
- GridViewUpdatedEventArgs.cs
- WebPartsPersonalizationAuthorization.cs
- PropertyGrid.cs
- Vector3DConverter.cs
- InvokeWebServiceDesigner.cs
- CompilerGlobalScopeAttribute.cs
- InputMethodStateChangeEventArgs.cs
- SqlClientWrapperSmiStream.cs
- DrawingContextFlattener.cs
- AnimationClock.cs
- RenderCapability.cs
- SyncOperationState.cs
- TemplateBindingExtension.cs
- Annotation.cs
- DetailsView.cs
- SolidColorBrush.cs
- TemplateBuilder.cs
- ELinqQueryState.cs
- Byte.cs
- InfoCardSymmetricAlgorithm.cs
- WebPartDesigner.cs
- ArcSegment.cs
- GetWinFXPath.cs
- mansign.cs
- TextParagraphCache.cs
- ScrollItemPattern.cs
- ContractValidationHelper.cs
- UIElementHelper.cs
- Scripts.cs
- AuthenticationService.cs
- PersonalizationEntry.cs
- NavigatorInvalidBodyAccessException.cs
- OutputCacheModule.cs
- FontStyles.cs
- PathHelper.cs
- SchemaElementLookUpTable.cs
- SingleStorage.cs
- FormsAuthentication.cs
- PenThreadWorker.cs
- SR.cs
- XmlWhitespace.cs
- TextServicesProperty.cs
- CompositeDataBoundControl.cs
- DataObjectCopyingEventArgs.cs
- ToolStripDropDownClosingEventArgs.cs
- UnknownBitmapEncoder.cs
- XmlSchemaSimpleTypeUnion.cs
- SplineKeyFrames.cs
- SmiMetaDataProperty.cs
- JsonStringDataContract.cs
- HttpCacheParams.cs
- SafeNativeMethodsMilCoreApi.cs
- CodeAccessPermission.cs
- FaultDesigner.cs
- SafeProcessHandle.cs
- _SafeNetHandles.cs
- RelationshipConverter.cs
- User.cs
- DataObjectFieldAttribute.cs
- JournalNavigationScope.cs
- WindowsServiceCredential.cs
- NativeMethods.cs
- NegationPusher.cs
- SoapCodeExporter.cs