Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / Xml / System / Xml / schema / validationstate.cs / 2 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _ReceiveMessageOverlappedAsyncResult.cs
- RequestCache.cs
- IndependentlyAnimatedPropertyMetadata.cs
- Size3DConverter.cs
- HelpInfo.cs
- EntityDataSourceChangingEventArgs.cs
- SqlCacheDependencyDatabase.cs
- LingerOption.cs
- _NTAuthentication.cs
- TemplateParser.cs
- CleanUpVirtualizedItemEventArgs.cs
- BmpBitmapEncoder.cs
- DbMetaDataFactory.cs
- Encoder.cs
- SizeConverter.cs
- FilteredSchemaElementLookUpTable.cs
- ToolConsole.cs
- Contracts.cs
- MetaModel.cs
- SecurityElement.cs
- MsmqDecodeHelper.cs
- QueryOutputWriter.cs
- Message.cs
- TextSegment.cs
- _ConnectStream.cs
- WeakEventTable.cs
- KernelTypeValidation.cs
- EntityContainerEmitter.cs
- SqlConnectionPoolProviderInfo.cs
- ExtractedStateEntry.cs
- EncryptedKey.cs
- TypeUtils.cs
- Table.cs
- RegisteredScript.cs
- ByteStream.cs
- BmpBitmapEncoder.cs
- XmlBinaryWriter.cs
- CoreSwitches.cs
- ValueChangedEventManager.cs
- ObjectDataSourceEventArgs.cs
- Button.cs
- ExtendedProtectionPolicy.cs
- WindowsAuthenticationEventArgs.cs
- Blend.cs
- SystemWebCachingSectionGroup.cs
- ResetableIterator.cs
- TemplatedControlDesigner.cs
- EntityDataSourceUtil.cs
- Pair.cs
- UnsafeNativeMethods.cs
- EntityFunctions.cs
- BufferedMessageWriter.cs
- SeverityFilter.cs
- KeyValuePairs.cs
- NativeMethods.cs
- ProcessHost.cs
- ToolStripDesigner.cs
- DelegateTypeInfo.cs
- MarginCollapsingState.cs
- DataGridViewDataErrorEventArgs.cs
- HistoryEventArgs.cs
- UnsignedPublishLicense.cs
- PeerCollaboration.cs
- UserUseLicenseDictionaryLoader.cs
- oledbconnectionstring.cs
- ToolboxItemLoader.cs
- RawStylusInputCustomData.cs
- Queue.cs
- SafeArchiveContext.cs
- CookieHandler.cs
- CodeDomDecompiler.cs
- ArrangedElement.cs
- ReferencedCollectionType.cs
- ListViewInsertEventArgs.cs
- shaper.cs
- _NetworkingPerfCounters.cs
- PatternMatchRules.cs
- LineServicesRun.cs
- Win32.cs
- InternalPermissions.cs
- Parser.cs
- FindCriteria11.cs
- TabletCollection.cs
- ExtendedTransformFactory.cs
- MonthChangedEventArgs.cs
- FlagsAttribute.cs
- DataGridViewCellStyleChangedEventArgs.cs
- ValuePatternIdentifiers.cs
- ObjectContextServiceProvider.cs
- RoutedPropertyChangedEventArgs.cs
- MemberInfoSerializationHolder.cs
- SqlPersonalizationProvider.cs
- MembershipSection.cs
- SecurityResources.cs
- DocumentXPathNavigator.cs
- PathSegment.cs
- CodeMethodMap.cs
- ResourceExpressionBuilder.cs
- XPathItem.cs
- PropertyDescriptorCollection.cs