Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- RouteParametersHelper.cs
- MessagePropertyAttribute.cs
- CustomAttributeBuilder.cs
- SyndicationFeedFormatter.cs
- SymmetricKey.cs
- ForeignKeyConstraint.cs
- TargetParameterCountException.cs
- AuthenticationSection.cs
- FileUtil.cs
- SafeCryptContextHandle.cs
- ApplicationInfo.cs
- ObjectSet.cs
- SByteConverter.cs
- BufferedOutputStream.cs
- ImpersonationContext.cs
- EntityParameterCollection.cs
- MetabaseServerConfig.cs
- ValidateNames.cs
- RequestCachingSection.cs
- CatalogPartChrome.cs
- PartManifestEntry.cs
- MultilineStringEditor.cs
- TaskResultSetter.cs
- FixedTextBuilder.cs
- NodeLabelEditEvent.cs
- HashCodeCombiner.cs
- SystemIPGlobalProperties.cs
- AppDomainManager.cs
- CodeAssignStatement.cs
- CommandLineParser.cs
- DragDrop.cs
- AutomationElementCollection.cs
- XmlToDatasetMap.cs
- WebPartCloseVerb.cs
- MarkupProperty.cs
- LowerCaseStringConverter.cs
- DSACryptoServiceProvider.cs
- PageThemeBuildProvider.cs
- PropertyRecord.cs
- ExpandoObject.cs
- MergablePropertyAttribute.cs
- ThemeableAttribute.cs
- cookieexception.cs
- WebPartCatalogCloseVerb.cs
- DBSqlParserTable.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ProtocolsConfigurationEntry.cs
- RegexCompilationInfo.cs
- PrintPreviewControl.cs
- WebPartDisplayModeCancelEventArgs.cs
- RuntimeUtils.cs
- CustomCredentialPolicy.cs
- ImageIndexConverter.cs
- RecognizeCompletedEventArgs.cs
- StrokeRenderer.cs
- CharacterHit.cs
- SQLBytes.cs
- DragDrop.cs
- BuiltInExpr.cs
- ObjectNotFoundException.cs
- FormsAuthenticationUser.cs
- ItemChangedEventArgs.cs
- BamlCollectionHolder.cs
- Bezier.cs
- SchemaCompiler.cs
- MediaTimeline.cs
- RenderingEventArgs.cs
- ExpanderAutomationPeer.cs
- Win32.cs
- GlyphTypeface.cs
- SatelliteContractVersionAttribute.cs
- SrgsElementFactory.cs
- LeaseManager.cs
- ProbeMatches11.cs
- DataGridHeaderBorder.cs
- RewritingSimplifier.cs
- HttpCachePolicy.cs
- GeneralTransform.cs
- SingleAnimationBase.cs
- ListChangedEventArgs.cs
- InputQueue.cs
- ObjectIDGenerator.cs
- WebPartManager.cs
- FastEncoderWindow.cs
- StreamResourceInfo.cs
- DataGridComboBoxColumn.cs
- FormViewActionList.cs
- WindowsGraphics2.cs
- SerializationInfo.cs
- ToolStripDropDownClosingEventArgs.cs
- AttributeCallbackBuilder.cs
- SamlAssertionKeyIdentifierClause.cs
- ConnectionManagementSection.cs
- OverlappedAsyncResult.cs
- AssociationType.cs
- ToolboxItemCollection.cs
- BinaryObjectReader.cs
- HuffModule.cs
- SymmetricCryptoHandle.cs
- StateDesigner.TransitionInfo.cs