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
- COSERVERINFO.cs
- ReferenceAssemblyAttribute.cs
- EventMappingSettings.cs
- RefreshPropertiesAttribute.cs
- xamlnodes.cs
- SemaphoreSecurity.cs
- NonParentingControl.cs
- ApplicationSecurityManager.cs
- TextSegment.cs
- BasicCellRelation.cs
- ListViewItemCollectionEditor.cs
- GraphicsPathIterator.cs
- DiscriminatorMap.cs
- CompensationHandlingFilter.cs
- Hashtable.cs
- XpsFilter.cs
- TrustLevelCollection.cs
- ColumnCollection.cs
- XmlAttributeOverrides.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ObjectSecurity.cs
- ConfigurationSectionCollection.cs
- PerformanceCountersElement.cs
- DataControlFieldCell.cs
- ModelUIElement3D.cs
- DrawingCollection.cs
- XmlRawWriterWrapper.cs
- LongTypeConverter.cs
- IisTraceWebEventProvider.cs
- ResourceDescriptionAttribute.cs
- ServicePoint.cs
- XmlSchemaExporter.cs
- SqlBulkCopy.cs
- PanelStyle.cs
- MethodBody.cs
- PropertyChangeTracker.cs
- ContentElementAutomationPeer.cs
- BitmapMetadataEnumerator.cs
- LocatorPart.cs
- Stream.cs
- ListViewCommandEventArgs.cs
- BamlStream.cs
- EnvelopedSignatureTransform.cs
- XmlSchemaAnyAttribute.cs
- ToolboxItem.cs
- MissingManifestResourceException.cs
- HwndAppCommandInputProvider.cs
- documentation.cs
- StrongNameMembershipCondition.cs
- UTF8Encoding.cs
- StorageEntitySetMapping.cs
- CodeAttributeArgumentCollection.cs
- NonSerializedAttribute.cs
- BindingCollection.cs
- PasswordDeriveBytes.cs
- SupportingTokenChannel.cs
- AncillaryOps.cs
- EventSetter.cs
- AppSettings.cs
- PointHitTestResult.cs
- SmtpDateTime.cs
- ClientRoleProvider.cs
- ParameterCollection.cs
- ToolTip.cs
- ProxyWebPartConnectionCollection.cs
- InvalidProgramException.cs
- SessionViewState.cs
- UpDownBase.cs
- FlowDocumentPaginator.cs
- VectorAnimationBase.cs
- ScriptMethodAttribute.cs
- InfiniteTimeSpanConverter.cs
- DataSourceControlBuilder.cs
- TCPListener.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- ItemsControlAutomationPeer.cs
- SourceChangedEventArgs.cs
- CopyAction.cs
- DataViewSettingCollection.cs
- RadioButtonStandardAdapter.cs
- ResourceContainer.cs
- BinarySerializer.cs
- Single.cs
- Dictionary.cs
- ProfileEventArgs.cs
- Lease.cs
- InputScopeNameConverter.cs
- ControlSerializer.cs
- ResourcePermissionBaseEntry.cs
- DecimalKeyFrameCollection.cs
- EmptyEnumerator.cs
- DataRelationCollection.cs
- KeyedHashAlgorithm.cs
- PhysicalOps.cs
- ValidationPropertyAttribute.cs
- TableLayoutRowStyleCollection.cs
- WebZone.cs
- XmlUnspecifiedAttribute.cs
- NamespaceDecl.cs
- FileInfo.cs