Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StaticSiteMapProvider.cs
- HttpCacheVary.cs
- ISO2022Encoding.cs
- Convert.cs
- XmlSchemaDocumentation.cs
- CodeSubDirectoriesCollection.cs
- SecurityDescriptor.cs
- ConstructorNeedsTagAttribute.cs
- GeneralTransform3DTo2DTo3D.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- HyperLink.cs
- CommonDialog.cs
- JsonUriDataContract.cs
- Exceptions.cs
- AuthenticationModuleElement.cs
- ExceptionUtil.cs
- SymbolType.cs
- TreeNodeStyleCollection.cs
- TextElement.cs
- DictionaryEntry.cs
- DoubleLinkList.cs
- X509SecurityToken.cs
- PrincipalPermission.cs
- __Filters.cs
- QilXmlWriter.cs
- ManifestSignatureInformation.cs
- ProgressBar.cs
- DataPagerField.cs
- RequestStatusBarUpdateEventArgs.cs
- FactoryRecord.cs
- UnsafeNativeMethodsTablet.cs
- XamlBuildProvider.cs
- PrivacyNoticeBindingElement.cs
- RepeatBehavior.cs
- NullExtension.cs
- CacheOutputQuery.cs
- JoinTreeNode.cs
- CroppedBitmap.cs
- PropertyDescriptorComparer.cs
- XsdDuration.cs
- DesignTimeDataBinding.cs
- PageRequestManager.cs
- RtfFormatStack.cs
- SafeNativeMethods.cs
- Fonts.cs
- ApplicationDirectoryMembershipCondition.cs
- ContainsRowNumberChecker.cs
- DependencyPropertyKind.cs
- OrthographicCamera.cs
- Activation.cs
- TraceHandlerErrorFormatter.cs
- UserControlCodeDomTreeGenerator.cs
- ExternalCalls.cs
- SqlDataSourceFilteringEventArgs.cs
- StoreAnnotationsMap.cs
- BaseComponentEditor.cs
- PrefixHandle.cs
- ScriptHandlerFactory.cs
- TemplateBindingExpression.cs
- ServicePointManagerElement.cs
- TimersDescriptionAttribute.cs
- ColumnHeader.cs
- DocumentPropertiesDialog.cs
- util.cs
- SQLChars.cs
- MemberAccessException.cs
- URLEditor.cs
- ObjectDataSourceStatusEventArgs.cs
- DataGridColumnsPage.cs
- StaticContext.cs
- AtomMaterializer.cs
- LogRestartAreaEnumerator.cs
- XmlRootAttribute.cs
- MessagePartDescription.cs
- RequestValidator.cs
- ContextBase.cs
- DiscoveryExceptionDictionary.cs
- CollectionBuilder.cs
- CustomTypeDescriptor.cs
- ConnectionPoint.cs
- XmlSchemaDocumentation.cs
- XmlEntity.cs
- RelationHandler.cs
- httpstaticobjectscollection.cs
- safex509handles.cs
- PolicyValidationException.cs
- DSASignatureDeformatter.cs
- GuidelineCollection.cs
- DriveInfo.cs
- SyndicationSerializer.cs
- BulletChrome.cs
- GeneralTransform3DCollection.cs
- SelectedDatesCollection.cs
- Renderer.cs
- ServerIdentity.cs
- ControlValuePropertyAttribute.cs
- MappingModelBuildProvider.cs
- DataSourceCacheDurationConverter.cs
- GiveFeedbackEventArgs.cs
- MethodBuilderInstantiation.cs