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
- ConnectionPoolManager.cs
- Annotation.cs
- TextRangeAdaptor.cs
- ResourceAssociationTypeEnd.cs
- SqlConnectionPoolGroupProviderInfo.cs
- PanelDesigner.cs
- PrimarySelectionGlyph.cs
- Odbc32.cs
- COM2IDispatchConverter.cs
- OutputScope.cs
- DispatcherObject.cs
- RangeContentEnumerator.cs
- ObjectDataSourceStatusEventArgs.cs
- ColorConvertedBitmap.cs
- CryptoApi.cs
- HttpListenerException.cs
- DebugController.cs
- WorkflowMessageEventHandler.cs
- QEncodedStream.cs
- ArrangedElementCollection.cs
- CompositeScriptReference.cs
- ThicknessConverter.cs
- TargetFrameworkAttribute.cs
- Rect3DConverter.cs
- GuidTagList.cs
- QuaternionRotation3D.cs
- MailMessageEventArgs.cs
- AsymmetricKeyExchangeDeformatter.cs
- CommandBinding.cs
- ObjectDisposedException.cs
- WebConfigurationHost.cs
- BulletedListDesigner.cs
- SyndicationSerializer.cs
- TextEffect.cs
- DetailsViewPagerRow.cs
- XmlNodeWriter.cs
- RegisteredScript.cs
- infer.cs
- SqlClientWrapperSmiStreamChars.cs
- PropertyEmitterBase.cs
- ToolStripSettings.cs
- WsrmMessageInfo.cs
- CodeStatement.cs
- RawKeyboardInputReport.cs
- TemplateControlCodeDomTreeGenerator.cs
- DropShadowEffect.cs
- ConvertTextFrag.cs
- FormatterServices.cs
- XmlDocument.cs
- EdmRelationshipRoleAttribute.cs
- TransformedBitmap.cs
- URLIdentityPermission.cs
- RequestBringIntoViewEventArgs.cs
- SiteMapDesignerDataSourceView.cs
- ReturnEventArgs.cs
- ConditionalAttribute.cs
- ConfigurationStrings.cs
- WebPartCatalogAddVerb.cs
- MethodBuilder.cs
- Parallel.cs
- _NegoState.cs
- LoginName.cs
- ExternalCalls.cs
- HttpModuleCollection.cs
- StagingAreaInputItem.cs
- ThaiBuddhistCalendar.cs
- WriteableBitmap.cs
- EntityTypeEmitter.cs
- RijndaelCryptoServiceProvider.cs
- PropertyCollection.cs
- x509store.cs
- Listen.cs
- SQLBoolean.cs
- RoutedUICommand.cs
- EvidenceTypeDescriptor.cs
- FilePresentation.cs
- ControlParameter.cs
- XhtmlTextWriter.cs
- VScrollBar.cs
- HtmlInputFile.cs
- XmlDataImplementation.cs
- QueryOutputWriter.cs
- Transform3DGroup.cs
- ServiceElementCollection.cs
- ProcessInfo.cs
- DataTableReaderListener.cs
- DesignerListAdapter.cs
- handlecollector.cs
- TextTreeDeleteContentUndoUnit.cs
- errorpatternmatcher.cs
- DataGridClipboardCellContent.cs
- PublisherIdentityPermission.cs
- InfoCardAsymmetricCrypto.cs
- XmlSchemaComplexContentExtension.cs
- Size.cs
- ScriptMethodAttribute.cs
- entityreference_tresulttype.cs
- XmlUrlEditor.cs
- ThreadLocal.cs
- ProcessThread.cs