Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaInfo.cs / 1 / XmlSchemaInfo.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System.Xml; using System.Collections; namespace System.Xml.Schema { ///public class XmlSchemaInfo : IXmlSchemaInfo { bool isDefault; bool isNil; XmlSchemaElement schemaElement; XmlSchemaAttribute schemaAttribute; XmlSchemaType schemaType; XmlSchemaSimpleType memberType; XmlSchemaValidity validity; XmlSchemaContentType contentType; public XmlSchemaInfo() { Clear(); } internal XmlSchemaInfo(XmlSchemaValidity validity) : this() { this.validity = validity; } public XmlSchemaValidity Validity { get { return validity; } set { validity = value; } } public bool IsDefault { get { return isDefault; } set { isDefault = value; } } public bool IsNil { get { return isNil; } set { isNil = value; } } public XmlSchemaSimpleType MemberType { get { return memberType; } set { memberType = value; } } public XmlSchemaType SchemaType { get { return schemaType; } set { schemaType = value; if (schemaType != null) { //Member type will not change its content type contentType = schemaType.SchemaContentType; } else { contentType = XmlSchemaContentType.Empty; } } } public XmlSchemaElement SchemaElement { get { return schemaElement; } set { schemaElement = value; if (value != null) { //Setting non-null SchemaElement means SchemaAttribute should be null schemaAttribute = null; } } } public XmlSchemaAttribute SchemaAttribute { get { return schemaAttribute; } set { schemaAttribute = value; if (value != null) { //Setting non-null SchemaAttribute means SchemaElement should be null schemaElement = null; } } } public XmlSchemaContentType ContentType { get { return contentType; } set { contentType = value; } } internal XmlSchemaType XmlType { get { if (memberType != null) { return memberType; } return schemaType; } } internal bool HasDefaultValue { get { return schemaElement != null && schemaElement.ElementDecl.DefaultValueTyped != null; } } internal bool IsUnionType { get { if (schemaType == null || schemaType.Datatype == null) { return false; } return schemaType.Datatype.Variety == XmlSchemaDatatypeVariety.Union; } } internal void Clear() { isNil = false; isDefault = false; schemaType = null; schemaElement = null; schemaAttribute = null; memberType = null; validity = XmlSchemaValidity.NotKnown; contentType = XmlSchemaContentType.Empty; } } } // 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
- XPathDescendantIterator.cs
- MissingMethodException.cs
- DirectoryObjectSecurity.cs
- TreePrinter.cs
- LinqDataSourceSelectEventArgs.cs
- AsymmetricAlgorithm.cs
- PlatformNotSupportedException.cs
- DocumentGrid.cs
- ItemMap.cs
- IconConverter.cs
- DataFormats.cs
- MSHTMLHostUtil.cs
- DetailsViewRowCollection.cs
- PrintController.cs
- XsdBuilder.cs
- QilLoop.cs
- CreateUserWizardStep.cs
- OdbcInfoMessageEvent.cs
- Line.cs
- dsa.cs
- DeleteBookmarkScope.cs
- QueryOutputWriter.cs
- XmlIncludeAttribute.cs
- WebBrowsableAttribute.cs
- PowerModeChangedEventArgs.cs
- XPathChildIterator.cs
- BulletedListDesigner.cs
- MaterializeFromAtom.cs
- AssemblyCollection.cs
- ActivityExecutionFilter.cs
- CodeGeneratorAttribute.cs
- IntranetCredentialPolicy.cs
- TableRow.cs
- MethodToken.cs
- UIElement3D.cs
- FormViewModeEventArgs.cs
- StrongNameSignatureInformation.cs
- StaticSiteMapProvider.cs
- WaitForChangedResult.cs
- BrowserDefinition.cs
- Typography.cs
- PropertyChangingEventArgs.cs
- IsolatedStorageFile.cs
- EllipseGeometry.cs
- SqlDataSourceSelectingEventArgs.cs
- StylusSystemGestureEventArgs.cs
- MouseEventArgs.cs
- SocketCache.cs
- NameValueCollection.cs
- InputScopeAttribute.cs
- MarginsConverter.cs
- FlowPosition.cs
- FileDetails.cs
- XamlStackWriter.cs
- DataGridViewHeaderCell.cs
- EdmConstants.cs
- StrongTypingException.cs
- OrderByQueryOptionExpression.cs
- IncrementalReadDecoders.cs
- DataSourceHelper.cs
- ProfileParameter.cs
- FunctionUpdateCommand.cs
- RuleInfoComparer.cs
- ApplicationContext.cs
- SmtpException.cs
- XmlSchemaDocumentation.cs
- DnsPermission.cs
- Int64Storage.cs
- BooleanStorage.cs
- OutputCacheSection.cs
- BadImageFormatException.cs
- WindowsFormsSectionHandler.cs
- XPathSingletonIterator.cs
- DataKeyArray.cs
- Converter.cs
- DynamicUpdateCommand.cs
- X500Name.cs
- SystemFonts.cs
- TypeResolvingOptionsAttribute.cs
- UniqueID.cs
- HyperLinkStyle.cs
- MediaContext.cs
- LoopExpression.cs
- SparseMemoryStream.cs
- ControlCollection.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- ResourceProviderFactory.cs
- SqlCommand.cs
- DataGridViewCellFormattingEventArgs.cs
- ColumnResult.cs
- WebReferencesBuildProvider.cs
- FileClassifier.cs
- ExpressionEditorAttribute.cs
- StorageFunctionMapping.cs
- TypeListConverter.cs
- DrawTreeNodeEventArgs.cs
- Panel.cs
- TypeUsageBuilder.cs
- ValueType.cs
- DialogResultConverter.cs