Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- BlockCollection.cs
- XmlSchemaGroupRef.cs
- WebServiceTypeData.cs
- EventLogPermissionEntryCollection.cs
- Activity.cs
- ListViewTableRow.cs
- HMACSHA384.cs
- TCPClient.cs
- DictionarySectionHandler.cs
- _HTTPDateParse.cs
- TreeNodeBindingCollection.cs
- UserPersonalizationStateInfo.cs
- CustomAttributeFormatException.cs
- DefaultProxySection.cs
- DbConnectionPoolOptions.cs
- ObjectListDataBindEventArgs.cs
- SqlStatistics.cs
- Effect.cs
- Item.cs
- CodeCatchClauseCollection.cs
- InheritablePropertyChangeInfo.cs
- ImageClickEventArgs.cs
- XhtmlMobileTextWriter.cs
- DependencyPropertyKind.cs
- GradientStopCollection.cs
- GlobalizationAssembly.cs
- WindowsTab.cs
- IsolatedStorageFile.cs
- InlineCategoriesDocument.cs
- XmlMapping.cs
- InputLanguageEventArgs.cs
- InternalEnumValidator.cs
- PageContentAsyncResult.cs
- SQLBinary.cs
- PipeSecurity.cs
- Bits.cs
- altserialization.cs
- Debug.cs
- TextInfo.cs
- TreeNodeConverter.cs
- DetailsViewActionList.cs
- CopyAttributesAction.cs
- HttpHeaderCollection.cs
- CatalogPart.cs
- ExpressionEditorSheet.cs
- SynchronizationContextHelper.cs
- CompiledQueryCacheKey.cs
- WhileDesigner.xaml.cs
- HelpKeywordAttribute.cs
- DataGridAutoFormatDialog.cs
- PartialCachingAttribute.cs
- DbInsertCommandTree.cs
- MemberDescriptor.cs
- NativeCppClassAttribute.cs
- ManagementOptions.cs
- BaseValidator.cs
- DirectoryNotFoundException.cs
- DatagridviewDisplayedBandsData.cs
- FrameSecurityDescriptor.cs
- DataPagerCommandEventArgs.cs
- Html32TextWriter.cs
- IndexedEnumerable.cs
- LinkedResourceCollection.cs
- TemplateBamlTreeBuilder.cs
- MetaData.cs
- RepeaterItemEventArgs.cs
- SkipStoryboardToFill.cs
- DesignerOptionService.cs
- PenContext.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- StructuralComparisons.cs
- Style.cs
- ParameterModifier.cs
- SBCSCodePageEncoding.cs
- Point3DAnimation.cs
- PathData.cs
- BitArray.cs
- TextViewElement.cs
- ConfigurationSectionHelper.cs
- SystemWebSectionGroup.cs
- BaseCAMarshaler.cs
- NativeRightsManagementAPIsStructures.cs
- DataConnectionHelper.cs
- UInt64Storage.cs
- SiteMapProvider.cs
- SequentialUshortCollection.cs
- AdCreatedEventArgs.cs
- DialogDivider.cs
- ColumnProvider.cs
- SqlGatherConsumedAliases.cs
- CollectionDataContractAttribute.cs
- ConnectionsZone.cs
- PointConverter.cs
- Figure.cs
- Int16Animation.cs
- PromptStyle.cs
- Package.cs
- ToolStripLocationCancelEventArgs.cs
- WizardStepBase.cs
- AxWrapperGen.cs