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
- ListViewItemEventArgs.cs
- CompositeActivityDesigner.cs
- ConfigXmlAttribute.cs
- AttributeEmitter.cs
- XmlSerializationGeneratedCode.cs
- Metadata.cs
- SByteStorage.cs
- DynamicUpdateCommand.cs
- MaterialGroup.cs
- ColumnHeaderConverter.cs
- InvokeCompletedEventArgs.cs
- ModelTreeEnumerator.cs
- WsdlBuildProvider.cs
- CompoundFileIOPermission.cs
- ArgIterator.cs
- ToolTipService.cs
- SymLanguageType.cs
- MethodImplAttribute.cs
- ListViewCancelEventArgs.cs
- DictionaryItemsCollection.cs
- DynamicDataManager.cs
- DataStreamFromComStream.cs
- CqlBlock.cs
- IDQuery.cs
- ExtensionFile.cs
- OleDbConnectionInternal.cs
- httpapplicationstate.cs
- SqlInternalConnectionSmi.cs
- LogLogRecord.cs
- DataTableMapping.cs
- DesignerOptions.cs
- PointHitTestResult.cs
- DataSourceViewSchemaConverter.cs
- ServiceModelSectionGroup.cs
- DataGridViewTopLeftHeaderCell.cs
- ConfigurationSchemaErrors.cs
- WorkflowServiceAttributes.cs
- EnvelopedPkcs7.cs
- ObjectDataSourceSelectingEventArgs.cs
- DataPager.cs
- FacetChecker.cs
- OutOfMemoryException.cs
- QuaternionRotation3D.cs
- PenThreadPool.cs
- TagPrefixInfo.cs
- MethodRental.cs
- HtmlMeta.cs
- DiscoveryClientElement.cs
- PrintController.cs
- XPathNodePointer.cs
- WebPartManager.cs
- AvTraceDetails.cs
- ControlAdapter.cs
- EdmSchemaAttribute.cs
- ListViewInsertedEventArgs.cs
- NavigationCommands.cs
- DBPropSet.cs
- Normalization.cs
- StringDictionary.cs
- XmlChoiceIdentifierAttribute.cs
- Properties.cs
- NavigationProgressEventArgs.cs
- EmptyStringExpandableObjectConverter.cs
- webeventbuffer.cs
- XmlSchemaAny.cs
- GroupBoxAutomationPeer.cs
- PropertyTabAttribute.cs
- SmtpFailedRecipientsException.cs
- Mapping.cs
- StateMachineDesignerPaint.cs
- ServiceOperationParameter.cs
- EventLog.cs
- PrimaryKeyTypeConverter.cs
- X509Certificate.cs
- DataGridViewLinkCell.cs
- HttpUnhandledOperationInvoker.cs
- UnmanagedMarshal.cs
- XmlChildNodes.cs
- SelectingProviderEventArgs.cs
- UrlMappingsModule.cs
- XmlSerializationReader.cs
- Classification.cs
- BaseValidator.cs
- HandlerFactoryCache.cs
- ValidationResult.cs
- DbConnectionPoolOptions.cs
- Condition.cs
- BitmapEffectrendercontext.cs
- SpellerInterop.cs
- SchemaLookupTable.cs
- MenuItemCollection.cs
- ObjectQueryProvider.cs
- QilParameter.cs
- DocumentationServerProtocol.cs
- DataGridViewAdvancedBorderStyle.cs
- WindowManager.cs
- dataprotectionpermission.cs
- PageAsyncTaskManager.cs
- Context.cs
- ListViewItem.cs