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
- Convert.cs
- TabControlAutomationPeer.cs
- SafeFileMappingHandle.cs
- HebrewCalendar.cs
- StyleBamlTreeBuilder.cs
- PerspectiveCamera.cs
- TabRenderer.cs
- TileModeValidation.cs
- GeneralTransformCollection.cs
- FakeModelItemImpl.cs
- CalendarBlackoutDatesCollection.cs
- ElementAction.cs
- CmsInterop.cs
- XmlDataDocument.cs
- CheckStoreFileValidityRequest.cs
- HelpHtmlBuilder.cs
- XmlValidatingReader.cs
- TextChange.cs
- DecimalAnimation.cs
- FontCollection.cs
- XmlHierarchyData.cs
- UrlAuthorizationModule.cs
- FileLogRecord.cs
- SecurityTokenRequirement.cs
- ServiceModelDictionary.cs
- FreezableOperations.cs
- ChannelServices.cs
- HttpRequestTraceRecord.cs
- LoginAutoFormat.cs
- CodeTypeParameter.cs
- EventLogPermissionAttribute.cs
- MailWebEventProvider.cs
- OciEnlistContext.cs
- Fonts.cs
- PersonalizationProviderHelper.cs
- NonPrimarySelectionGlyph.cs
- SingleResultAttribute.cs
- If.cs
- ParserHooks.cs
- FileUpload.cs
- SchemaElementLookUpTableEnumerator.cs
- OleStrCAMarshaler.cs
- SimplePropertyEntry.cs
- HashCodeCombiner.cs
- EventPrivateKey.cs
- MetadataItem.cs
- DesignSurfaceEvent.cs
- TrimSurroundingWhitespaceAttribute.cs
- SoapExtensionImporter.cs
- TimeSpanStorage.cs
- SemanticResolver.cs
- PartialArray.cs
- PageVisual.cs
- SettingsPropertyCollection.cs
- WebPartZoneBaseDesigner.cs
- TypeLoadException.cs
- VideoDrawing.cs
- figurelength.cs
- ToolStripLocationCancelEventArgs.cs
- RotateTransform3D.cs
- ProjectionCamera.cs
- TraceFilter.cs
- CapiHashAlgorithm.cs
- TdsParserStateObject.cs
- CommandLibraryHelper.cs
- InstancePersistenceContext.cs
- TextTreeFixupNode.cs
- MemberInfoSerializationHolder.cs
- UnitySerializationHolder.cs
- DBCommand.cs
- BroadcastEventHelper.cs
- NextPreviousPagerField.cs
- MainMenu.cs
- NetworkStream.cs
- XmlSerializerFactory.cs
- DataSourceXmlAttributeAttribute.cs
- Part.cs
- TraceListeners.cs
- ApplicationServicesHostFactory.cs
- EngineSite.cs
- RegexCapture.cs
- DesignerDataRelationship.cs
- WeakRefEnumerator.cs
- SiteMapProvider.cs
- DataBindingExpressionBuilder.cs
- CodeParameterDeclarationExpression.cs
- TranslateTransform3D.cs
- AutoGeneratedField.cs
- Peer.cs
- GenericIdentity.cs
- ReadOnlyDictionary.cs
- Literal.cs
- IconHelper.cs
- StreamSecurityUpgradeAcceptorBase.cs
- oledbmetadatacolumnnames.cs
- HttpProcessUtility.cs
- EntityDataSourceMemberPath.cs
- RegistrationProxy.cs
- CollectionChangeEventArgs.cs
- RoutedPropertyChangedEventArgs.cs