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
- TimelineGroup.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- BrowserCapabilitiesCompiler.cs
- FtpCachePolicyElement.cs
- ContainerControl.cs
- ActiveXHelper.cs
- X509LogoTypeExtension.cs
- PriorityRange.cs
- IndentedTextWriter.cs
- MimeWriter.cs
- Positioning.cs
- DataRecordInternal.cs
- XmlDataSourceNodeDescriptor.cs
- WeakEventTable.cs
- SizeConverter.cs
- MD5CryptoServiceProvider.cs
- HebrewCalendar.cs
- RuntimeHelpers.cs
- CodeObject.cs
- X509Utils.cs
- TypedTableBaseExtensions.cs
- Token.cs
- DmlSqlGenerator.cs
- XmlAttributeCollection.cs
- ImageIndexConverter.cs
- TreeWalker.cs
- CodeDOMUtility.cs
- WrappingXamlSchemaContext.cs
- TextTreeExtractElementUndoUnit.cs
- SAPICategories.cs
- WindowsAltTab.cs
- ArithmeticException.cs
- WorkItem.cs
- FacetDescriptionElement.cs
- RectKeyFrameCollection.cs
- SystemIPInterfaceProperties.cs
- ScrollChrome.cs
- HelloMessageApril2005.cs
- UserControl.cs
- CachedRequestParams.cs
- WorkflowMarkupSerializerMapping.cs
- PanelStyle.cs
- ItemContainerGenerator.cs
- ZipIOModeEnforcingStream.cs
- GroupBoxRenderer.cs
- CuspData.cs
- HtmlShimManager.cs
- CompositeScriptReferenceEventArgs.cs
- CredentialCache.cs
- WebPartConnectionsEventArgs.cs
- CryptoApi.cs
- UnsafeNativeMethods.cs
- Decorator.cs
- Stack.cs
- SpanIndex.cs
- EncryptedType.cs
- Application.cs
- AnonymousIdentificationModule.cs
- SiteMapProvider.cs
- hwndwrapper.cs
- Button.cs
- DataGridViewRowsAddedEventArgs.cs
- LayoutSettings.cs
- TimeEnumHelper.cs
- ListenerAdapterBase.cs
- FunctionGenerator.cs
- FontStretchConverter.cs
- TypedElement.cs
- WebConfigManager.cs
- NonVisualControlAttribute.cs
- XmlSchemaAnnotated.cs
- DisposableCollectionWrapper.cs
- FlowDocument.cs
- InheritanceRules.cs
- SecurityRuntime.cs
- Attributes.cs
- cache.cs
- FieldBuilder.cs
- StructuralType.cs
- RecordConverter.cs
- XpsSerializerFactory.cs
- UpdateExpressionVisitor.cs
- ButtonFieldBase.cs
- SoapExtensionStream.cs
- DataGridHeaderBorder.cs
- EntityException.cs
- DrawingContextFlattener.cs
- SessionParameter.cs
- FormViewDeleteEventArgs.cs
- SqlConnection.cs
- UserControl.cs
- JoinGraph.cs
- DoubleAnimationClockResource.cs
- CancellationTokenSource.cs
- LoadWorkflowAsyncResult.cs
- NullableDoubleAverageAggregationOperator.cs
- SHA256.cs
- XPathNodePointer.cs
- QueryOutputWriter.cs
- NativeRecognizer.cs