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
- CodeArrayCreateExpression.cs
- Update.cs
- DynamicRendererThreadManager.cs
- ItemDragEvent.cs
- HiddenField.cs
- FreezableCollection.cs
- EditingCommands.cs
- DisplayMemberTemplateSelector.cs
- Size.cs
- TdsParserSessionPool.cs
- DuplicateDetector.cs
- IPEndPointCollection.cs
- SqlTrackingWorkflowInstance.cs
- XmlSchemaAttribute.cs
- StringConverter.cs
- TypeLibConverter.cs
- ErrorFormatter.cs
- SafeLibraryHandle.cs
- shaperfactory.cs
- WpfWebRequestHelper.cs
- DataBindingExpressionBuilder.cs
- ListMarkerSourceInfo.cs
- WindowsGraphicsWrapper.cs
- EnumMember.cs
- JumpPath.cs
- IndexedGlyphRun.cs
- TrackBarRenderer.cs
- Visual.cs
- DataServiceResponse.cs
- DiscoveryReference.cs
- MonthCalendar.cs
- Opcode.cs
- InterleavedZipPartStream.cs
- AdornedElementPlaceholder.cs
- WmpBitmapEncoder.cs
- DataGridPreparingCellForEditEventArgs.cs
- DataBindingHandlerAttribute.cs
- ClientFormsAuthenticationCredentials.cs
- IdnElement.cs
- DescendentsWalker.cs
- StyleModeStack.cs
- XmlDownloadManager.cs
- ProxyGenerator.cs
- PathGradientBrush.cs
- ColorPalette.cs
- FontCollection.cs
- SqlReferenceCollection.cs
- MenuItemBinding.cs
- CurrentTimeZone.cs
- SafeFindHandle.cs
- FeatureSupport.cs
- CookieParameter.cs
- DBNull.cs
- WebConfigurationFileMap.cs
- ContextBase.cs
- Pkcs9Attribute.cs
- NumericPagerField.cs
- StreamingContext.cs
- _RequestCacheProtocol.cs
- SpotLight.cs
- BamlLocalizabilityResolver.cs
- DependencyProperty.cs
- UserNamePasswordServiceCredential.cs
- EventHandlersDesigner.cs
- TextServicesCompartmentEventSink.cs
- ContextQuery.cs
- ClientSettingsProvider.cs
- UmAlQuraCalendar.cs
- XPathException.cs
- OleDbException.cs
- TextTreeTextBlock.cs
- PathFigureCollectionConverter.cs
- iisPickupDirectory.cs
- TablePattern.cs
- WebPartConnectionsConnectVerb.cs
- regiisutil.cs
- CLRBindingWorker.cs
- AuthenticationSection.cs
- GenericTypeParameterBuilder.cs
- precedingquery.cs
- ListViewCancelEventArgs.cs
- XmlReflectionMember.cs
- MetadataHelper.cs
- InternalConfigEventArgs.cs
- MD5CryptoServiceProvider.cs
- HijriCalendar.cs
- BamlWriter.cs
- MsmqInputChannelBase.cs
- OrCondition.cs
- FocusManager.cs
- printdlgexmarshaler.cs
- Point3DAnimation.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- SweepDirectionValidation.cs
- Camera.cs
- PowerStatus.cs
- ConsoleTraceListener.cs
- FormViewActionList.cs
- DataServiceProcessingPipeline.cs
- _ContextAwareResult.cs