Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / CommentAction.cs / 1 / 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
- CompensationDesigner.cs
- AnnotationAuthorChangedEventArgs.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- QueryReaderSettings.cs
- PropertyMetadata.cs
- WindowsUpDown.cs
- ArrangedElement.cs
- HandleExceptionArgs.cs
- path.cs
- RegisteredDisposeScript.cs
- MetabaseServerConfig.cs
- NativeMethodsCLR.cs
- EpmTargetTree.cs
- JsonClassDataContract.cs
- ListControlDataBindingHandler.cs
- GetCertificateRequest.cs
- UnsafeNativeMethodsTablet.cs
- ProviderException.cs
- TemplateBindingExtensionConverter.cs
- SqlCacheDependencySection.cs
- PersistenceMetadataNamespace.cs
- Clipboard.cs
- EventLogEntryCollection.cs
- PtsCache.cs
- DecimalSumAggregationOperator.cs
- OperationAbortedException.cs
- securitycriticaldata.cs
- AsyncSerializedWorker.cs
- CategoryNameCollection.cs
- XmlSchemaException.cs
- XmlSchemaDocumentation.cs
- AspNetHostingPermission.cs
- IssuedTokenParametersElement.cs
- FixedSOMContainer.cs
- ObjectDataSource.cs
- ToolStripContentPanel.cs
- GridItemCollection.cs
- EntityDataReader.cs
- BoundColumn.cs
- Transform3D.cs
- FileDetails.cs
- RenderOptions.cs
- AvtEvent.cs
- HealthMonitoringSectionHelper.cs
- DBBindings.cs
- XmlConvert.cs
- XmlQueryOutput.cs
- MailSettingsSection.cs
- Table.cs
- PerfCounterSection.cs
- CodeAttributeDeclaration.cs
- SessionPageStateSection.cs
- FilterableData.cs
- SqlWebEventProvider.cs
- AbstractDataSvcMapFileLoader.cs
- ImageListStreamer.cs
- XXXInfos.cs
- ValidationErrorInfo.cs
- TimeSpanParse.cs
- Hash.cs
- TimelineCollection.cs
- AnimationClock.cs
- PersonalizationDictionary.cs
- Utils.cs
- GridViewRow.cs
- IndexedString.cs
- DirectionalLight.cs
- OrthographicCamera.cs
- DocumentXmlWriter.cs
- ModulesEntry.cs
- FindSimilarActivitiesVerb.cs
- RectAnimation.cs
- SpellerHighlightLayer.cs
- _ServiceNameStore.cs
- Splitter.cs
- PauseStoryboard.cs
- CreateUserWizardStep.cs
- XsltLibrary.cs
- EventHandlingScope.cs
- Encoder.cs
- LogLogRecord.cs
- WebPartMenu.cs
- RelationshipEndCollection.cs
- SerializationEventsCache.cs
- DataExpression.cs
- XmlSchemaAnyAttribute.cs
- DocumentGridPage.cs
- EditorAttribute.cs
- ToolStripItem.cs
- FormViewInsertedEventArgs.cs
- Point3DValueSerializer.cs
- ZoneMembershipCondition.cs
- ExpandSegment.cs
- EncoderParameters.cs
- BindingList.cs
- DescendantOverDescendantQuery.cs
- ContentControl.cs
- DiagnosticEventProvider.cs
- WebBrowserUriTypeConverter.cs
- Vertex.cs