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
- DataSourceExpressionCollection.cs
- PerformanceCounterPermissionAttribute.cs
- objectresult_tresulttype.cs
- SerializationStore.cs
- AssociationSetMetadata.cs
- UrlAuthFailureHandler.cs
- Separator.cs
- COM2ExtendedUITypeEditor.cs
- SecurityTokenValidationException.cs
- ExpressionWriter.cs
- RTTrackingProfile.cs
- WebPartZoneBase.cs
- InProcStateClientManager.cs
- WeakRefEnumerator.cs
- FontTypeConverter.cs
- MbpInfo.cs
- SQLInt16.cs
- MaterializeFromAtom.cs
- TypePresenter.xaml.cs
- DSASignatureDeformatter.cs
- AvTraceFormat.cs
- TreeNodeBindingCollection.cs
- AccessDataSource.cs
- ZipIOExtraFieldElement.cs
- ObjectAnimationUsingKeyFrames.cs
- WebUtil.cs
- ReadOnlyDataSourceView.cs
- ParallelActivityDesigner.cs
- TextTreeDeleteContentUndoUnit.cs
- XNodeSchemaApplier.cs
- ResXDataNode.cs
- ByteStack.cs
- HtmlTableRowCollection.cs
- CommonRemoteMemoryBlock.cs
- figurelengthconverter.cs
- CharUnicodeInfo.cs
- SecurityPolicySection.cs
- SerTrace.cs
- DataKey.cs
- SubstitutionList.cs
- DateTimeConverter.cs
- DocobjHost.cs
- JoinCqlBlock.cs
- EntityDataSourceDataSelectionPanel.cs
- RelationshipFixer.cs
- FormViewCommandEventArgs.cs
- ByeOperationAsyncResult.cs
- WebPartEditorOkVerb.cs
- DoubleCollectionConverter.cs
- CategoryNameCollection.cs
- DesignerLoader.cs
- InvokeProviderWrapper.cs
- AnnotationDocumentPaginator.cs
- ScrollViewerAutomationPeer.cs
- IisTraceWebEventProvider.cs
- TextFragmentEngine.cs
- PingReply.cs
- StaticFileHandler.cs
- ActivityBindForm.Designer.cs
- SymbolMethod.cs
- GestureRecognitionResult.cs
- ExtensionQuery.cs
- MachineSettingsSection.cs
- Enlistment.cs
- RSAOAEPKeyExchangeDeformatter.cs
- Property.cs
- RegistrySecurity.cs
- StructuredType.cs
- AddInProcess.cs
- ApplicationInfo.cs
- XmlSchemaSequence.cs
- CommandBinding.cs
- FlowDocumentReaderAutomationPeer.cs
- indexingfiltermarshaler.cs
- WCFBuildProvider.cs
- TagNameToTypeMapper.cs
- METAHEADER.cs
- CommentGlyph.cs
- TypeUtil.cs
- mediaclock.cs
- PeerNameRegistration.cs
- ButtonBaseAdapter.cs
- Parameter.cs
- CodeIdentifier.cs
- Icon.cs
- ByteAnimationBase.cs
- PageBuildProvider.cs
- WebBrowser.cs
- SQLInt32.cs
- NetworkInformationException.cs
- _HeaderInfo.cs
- ComplusEndpointConfigContainer.cs
- FixedSOMLineRanges.cs
- Crypto.cs
- DelegateArgumentReference.cs
- ScopelessEnumAttribute.cs
- TypeConverterAttribute.cs
- IndexOutOfRangeException.cs
- WebPartZoneBase.cs
- GridLength.cs