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
- NativeMethodsOther.cs
- ComplexPropertyEntry.cs
- TrackingStringDictionary.cs
- Point3DConverter.cs
- ObjectAnimationBase.cs
- ExpressionParser.cs
- ConfigurationStrings.cs
- TdsParser.cs
- AlternateView.cs
- objectresult_tresulttype.cs
- Hash.cs
- NaturalLanguageHyphenator.cs
- RichTextBoxConstants.cs
- UrlMappingCollection.cs
- Parser.cs
- PathSegmentCollection.cs
- HashCryptoHandle.cs
- XmlSchemaProviderAttribute.cs
- DataGridViewCellValidatingEventArgs.cs
- FilteredReadOnlyMetadataCollection.cs
- DataGridSortCommandEventArgs.cs
- GetPageCompletedEventArgs.cs
- WebProxyScriptElement.cs
- Hashtable.cs
- XmlException.cs
- EncoderBestFitFallback.cs
- ServiceNameElement.cs
- List.cs
- SQLInt16.cs
- CharacterHit.cs
- MissingMemberException.cs
- DocumentsTrace.cs
- CacheChildrenQuery.cs
- TemplateApplicationHelper.cs
- CacheDependency.cs
- PropertyChangingEventArgs.cs
- Environment.cs
- CollectionConverter.cs
- UIElement.cs
- HtmlImage.cs
- AppearanceEditorPart.cs
- DocumentPageViewAutomationPeer.cs
- nulltextcontainer.cs
- HybridObjectCache.cs
- WmlCommandAdapter.cs
- CompositeActivityTypeDescriptorProvider.cs
- BindingMAnagerBase.cs
- Assembly.cs
- ProcessHostConfigUtils.cs
- WindowPatternIdentifiers.cs
- ThicknessConverter.cs
- SHA256Managed.cs
- LockRenewalTask.cs
- SQLResource.cs
- ClientRoleProvider.cs
- TypeToken.cs
- SpeakProgressEventArgs.cs
- LocalizableResourceBuilder.cs
- ProofTokenCryptoHandle.cs
- MetabaseSettings.cs
- Base64WriteStateInfo.cs
- exports.cs
- LabelEditEvent.cs
- TrackingConditionCollection.cs
- WebPartManager.cs
- AnnouncementClient.cs
- SqlMethodTransformer.cs
- WindowsListViewItemCheckBox.cs
- TabControl.cs
- BindToObject.cs
- SecurityTokenValidationException.cs
- VolatileEnlistmentState.cs
- SrgsNameValueTag.cs
- TraceContextRecord.cs
- AsymmetricCryptoHandle.cs
- ProcessModelSection.cs
- SyndicationSerializer.cs
- Utils.cs
- ContentPosition.cs
- DBDataPermission.cs
- DataGridViewRowHeaderCell.cs
- DrawingImage.cs
- TreeIterator.cs
- PopupEventArgs.cs
- SqlTransaction.cs
- FormViewDeleteEventArgs.cs
- MessageBox.cs
- SmiRequestExecutor.cs
- XmlSchemaObject.cs
- _HeaderInfo.cs
- CollectionChangeEventArgs.cs
- PeerResolverElement.cs
- GeneralTransform3D.cs
- DoubleStorage.cs
- CompilerTypeWithParams.cs
- JsonServiceDocumentSerializer.cs
- SevenBitStream.cs
- ReachNamespaceInfo.cs
- FilterableData.cs
- ResourcePermissionBaseEntry.cs