Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Xml / System / Xml / schema / validationstate.cs / 1 / validationstate.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
namespace System.Xml.Schema {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Explicit)]
internal struct StateUnion {
[FieldOffset(0)] public int State; //DFA
[FieldOffset(0)] public int AllElementsRequired; //AllContentValidator
[FieldOffset(0)] public int CurPosIndex; //NFAContentValidator
[FieldOffset(0)] public int NumberOfRunningPos; //RangeContentValidator
}
internal sealed class ValidationState {
public bool IsNill;
public bool IsDefault;
public bool NeedValidateChildren; // whether need to validate the children of this element
public bool CheckRequiredAttribute; //PSVI
public bool ValidationSkipped;
public int Depth; // The validation state
public XmlSchemaContentProcessing ProcessContents;
public XmlSchemaValidity Validity;
public SchemaElementDecl ElementDecl; // ElementDecl
public SchemaElementDecl ElementDeclBeforeXsi; //elementDecl before its changed by that of xsi:type's
public string LocalName;
public string Namespace;
public ConstraintStruct[] Constr;
public StateUnion CurrentState;
//For content model validation
public bool HasMatched; // whether the element has been verified correctly
//For NFAs
public BitSet[] CurPos = new BitSet[2];
//For all
public BitSet AllElementsSet;
//For MinMaxNFA
public List RunningPositions;
public bool TooComplex;
};
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
namespace System.Xml.Schema {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Explicit)]
internal struct StateUnion {
[FieldOffset(0)] public int State; //DFA
[FieldOffset(0)] public int AllElementsRequired; //AllContentValidator
[FieldOffset(0)] public int CurPosIndex; //NFAContentValidator
[FieldOffset(0)] public int NumberOfRunningPos; //RangeContentValidator
}
internal sealed class ValidationState {
public bool IsNill;
public bool IsDefault;
public bool NeedValidateChildren; // whether need to validate the children of this element
public bool CheckRequiredAttribute; //PSVI
public bool ValidationSkipped;
public int Depth; // The validation state
public XmlSchemaContentProcessing ProcessContents;
public XmlSchemaValidity Validity;
public SchemaElementDecl ElementDecl; // ElementDecl
public SchemaElementDecl ElementDeclBeforeXsi; //elementDecl before its changed by that of xsi:type's
public string LocalName;
public string Namespace;
public ConstraintStruct[] Constr;
public StateUnion CurrentState;
//For content model validation
public bool HasMatched; // whether the element has been verified correctly
//For NFAs
public BitSet[] CurPos = new BitSet[2];
//For all
public BitSet AllElementsSet;
//For MinMaxNFA
public List RunningPositions;
public bool TooComplex;
};
}
// 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
- CodeDOMUtility.cs
- OrderToken.cs
- SafeNativeMethods.cs
- LabelAutomationPeer.cs
- SoapExtensionReflector.cs
- DeflateStream.cs
- CodePageUtils.cs
- AspNetCompatibilityRequirementsMode.cs
- VectorAnimationBase.cs
- MouseGestureConverter.cs
- DataGridViewAdvancedBorderStyle.cs
- MultiPageTextView.cs
- StringAnimationUsingKeyFrames.cs
- RuleSet.cs
- CellLabel.cs
- ToolStripComboBox.cs
- PartialCachingControl.cs
- XmlWhitespace.cs
- SetIndexBinder.cs
- CmsInterop.cs
- HttpCacheVary.cs
- RangeBaseAutomationPeer.cs
- XslNumber.cs
- ScriptBehaviorDescriptor.cs
- UnsafeNativeMethods.cs
- XpsS0ValidatingLoader.cs
- BufferedGraphicsManager.cs
- ViewRendering.cs
- StyleModeStack.cs
- ToolBarOverflowPanel.cs
- MembershipValidatePasswordEventArgs.cs
- DbParameterCollection.cs
- Trace.cs
- PersonalizationProvider.cs
- TimeSpanParse.cs
- SmiConnection.cs
- JavaScriptObjectDeserializer.cs
- XmlSchemaException.cs
- XPathNode.cs
- ResXDataNode.cs
- SymbolTable.cs
- ServicePointManager.cs
- ISAPIApplicationHost.cs
- WindowsTooltip.cs
- SectionRecord.cs
- DelegateSerializationHolder.cs
- CurrencyManager.cs
- DisposableCollectionWrapper.cs
- KeyPullup.cs
- RepeaterItemCollection.cs
- SignedXml.cs
- PathGradientBrush.cs
- Int16AnimationBase.cs
- DataViewSetting.cs
- PasswordRecovery.cs
- ColumnBinding.cs
- QilChoice.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- CompilationSection.cs
- WebPartTransformerAttribute.cs
- X509CertificateValidationMode.cs
- Condition.cs
- ConstraintCollection.cs
- Point.cs
- QilFunction.cs
- CurrentTimeZone.cs
- GridViewRowEventArgs.cs
- FixedSOMGroup.cs
- ObjectConverter.cs
- BaseTemplateBuildProvider.cs
- InternalRelationshipCollection.cs
- TypeSystemProvider.cs
- VectorKeyFrameCollection.cs
- GlyphRunDrawing.cs
- TextRangeAdaptor.cs
- NumericExpr.cs
- LoadGrammarCompletedEventArgs.cs
- TextContainerChangedEventArgs.cs
- FixedBufferAttribute.cs
- SqlResolver.cs
- ParenthesizePropertyNameAttribute.cs
- CodeExpressionStatement.cs
- XmlILModule.cs
- EntityConnectionStringBuilderItem.cs
- DataGridState.cs
- HyperlinkAutomationPeer.cs
- DirectoryRedirect.cs
- BamlBinaryWriter.cs
- HostedElements.cs
- TopClause.cs
- IListConverters.cs
- EnumerationRangeValidationUtil.cs
- ImageListUtils.cs
- TableChangeProcessor.cs
- HandleRef.cs
- TrackingProfileDeserializationException.cs
- WebPartConnection.cs
- DoubleConverter.cs
- ThemeInfoAttribute.cs
- LeaseManager.cs