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
- CharAnimationBase.cs
- CacheHelper.cs
- dsa.cs
- HttpProfileGroupBase.cs
- MemoryRecordBuffer.cs
- StringAnimationUsingKeyFrames.cs
- FontWeightConverter.cs
- XmlSchemaExporter.cs
- ProcessModelSection.cs
- BindStream.cs
- iisPickupDirectory.cs
- BaseContextMenu.cs
- controlskin.cs
- EnumDataContract.cs
- SourceLineInfo.cs
- WebPartDescription.cs
- MetadataUtilsSmi.cs
- CheckBox.cs
- Converter.cs
- BaseServiceProvider.cs
- HitTestWithPointDrawingContextWalker.cs
- TextControlDesigner.cs
- LinkConverter.cs
- FrameworkElement.cs
- GridItemCollection.cs
- StateMachine.cs
- StringCollectionEditor.cs
- DateTimePicker.cs
- InternalRelationshipCollection.cs
- DateTimeParse.cs
- BindingValueChangedEventArgs.cs
- StreamReader.cs
- PolyQuadraticBezierSegment.cs
- HttpRuntimeSection.cs
- FontCacheUtil.cs
- XmlElementElementCollection.cs
- ChtmlTextWriter.cs
- LineBreakRecord.cs
- SharedStatics.cs
- _AutoWebProxyScriptHelper.cs
- ProgressChangedEventArgs.cs
- WindowsGraphicsWrapper.cs
- EnvelopedSignatureTransform.cs
- ToolStripItemImageRenderEventArgs.cs
- SmiTypedGetterSetter.cs
- _Connection.cs
- InputLanguageProfileNotifySink.cs
- Exception.cs
- BoundingRectTracker.cs
- StorageTypeMapping.cs
- AppSettingsExpressionBuilder.cs
- SchemeSettingElement.cs
- RefreshInfo.cs
- SwitchLevelAttribute.cs
- DataReaderContainer.cs
- WebPartRestoreVerb.cs
- BindableTemplateBuilder.cs
- ObfuscationAttribute.cs
- DefaultPropertyAttribute.cs
- TypeKeyValue.cs
- ReadWriteObjectLock.cs
- XmlDataContract.cs
- Predicate.cs
- Events.cs
- RelationshipDetailsCollection.cs
- HandlerFactoryCache.cs
- SHA256.cs
- SoapExtensionReflector.cs
- ManualResetEvent.cs
- Stopwatch.cs
- QueryTask.cs
- ThreadNeutralSemaphore.cs
- ProgressBar.cs
- XPathAncestorIterator.cs
- RelationshipDetailsRow.cs
- ClientSettings.cs
- TypeDescriptorFilterService.cs
- CuspData.cs
- SevenBitStream.cs
- PriorityQueue.cs
- PKCS1MaskGenerationMethod.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- BlobPersonalizationState.cs
- KeyInfo.cs
- GeneratedView.cs
- TextSearch.cs
- QuadraticBezierSegment.cs
- SmiMetaDataProperty.cs
- FlowDocumentPaginator.cs
- DoubleCollectionValueSerializer.cs
- UnmanagedMemoryStreamWrapper.cs
- Point3DCollectionValueSerializer.cs
- DesignerAutoFormatCollection.cs
- TextEndOfParagraph.cs
- ByteStream.cs
- XPathDocumentNavigator.cs
- TypeConverterValueSerializer.cs
- RedBlackList.cs
- _NtlmClient.cs
- LocalizableAttribute.cs