Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- MinimizableAttributeTypeConverter.cs
- Fonts.cs
- TableRow.cs
- TextPointerBase.cs
- PageSetupDialog.cs
- SplitterEvent.cs
- ZoneIdentityPermission.cs
- PointValueSerializer.cs
- Variable.cs
- TabItemAutomationPeer.cs
- Lease.cs
- MissingMethodException.cs
- SchemaElementDecl.cs
- NavigatorInput.cs
- CheckBoxList.cs
- SpellerStatusTable.cs
- CssClassPropertyAttribute.cs
- OptimizedTemplateContent.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- DriveInfo.cs
- NavigationEventArgs.cs
- UTF7Encoding.cs
- LayoutEditorPart.cs
- FocusManager.cs
- Size3DConverter.cs
- ConfigXmlDocument.cs
- BitVec.cs
- HtmlHead.cs
- ToolStripDropDown.cs
- TrackingLocationCollection.cs
- FontNamesConverter.cs
- RadioButton.cs
- ConfigXmlText.cs
- AsyncOperationManager.cs
- DataMemberConverter.cs
- XmlC14NWriter.cs
- SystemParameters.cs
- DataStreamFromComStream.cs
- Style.cs
- WindowsFormsHostPropertyMap.cs
- FontSizeConverter.cs
- CategoryEditor.cs
- XmlSerializableServices.cs
- SqlCaseSimplifier.cs
- PreloadedPackages.cs
- PasswordBox.cs
- Animatable.cs
- ControlCollection.cs
- CompiledRegexRunnerFactory.cs
- AddInStore.cs
- base64Transforms.cs
- TextUtf8RawTextWriter.cs
- RoutingService.cs
- ProviderSettings.cs
- XMLSchema.cs
- WebPartConnectionsDisconnectVerb.cs
- NonDualMessageSecurityOverHttpElement.cs
- ToolBarPanel.cs
- FileUpload.cs
- SolidBrush.cs
- ItemCollection.cs
- WebPartConnectionsCancelVerb.cs
- AsyncOperationContext.cs
- RawUIStateInputReport.cs
- HtmlMeta.cs
- ClusterRegistryConfigurationProvider.cs
- DataGridTableCollection.cs
- XmlCollation.cs
- GeneralTransformGroup.cs
- BitVector32.cs
- XmlHierarchicalEnumerable.cs
- SqlBulkCopy.cs
- TableItemStyle.cs
- TreeIterator.cs
- Label.cs
- MSG.cs
- EqualityComparer.cs
- EtwTrace.cs
- PageSettings.cs
- HtmlInputRadioButton.cs
- Bezier.cs
- ToolStripItemTextRenderEventArgs.cs
- QilUnary.cs
- RuntimeArgumentHandle.cs
- SingleAnimationBase.cs
- TextBoxView.cs
- RequestCachePolicy.cs
- MsmqChannelFactoryBase.cs
- TeredoHelper.cs
- MultiTargetingUtil.cs
- MsmqIntegrationBinding.cs
- XmlSchemaElement.cs
- RegistrationServices.cs
- Int64Animation.cs
- DeclarativeCatalogPart.cs
- ClipboardProcessor.cs
- SamlAuthorizationDecisionStatement.cs
- ObjectListCommandsPage.cs
- DataTable.cs
- XmlComplianceUtil.cs