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
- DateTimeFormat.cs
- OutOfProcStateClientManager.cs
- ModifyActivitiesPropertyDescriptor.cs
- StubHelpers.cs
- PropertyGridCommands.cs
- SafeRightsManagementQueryHandle.cs
- PropertyEmitter.cs
- ProxyHelper.cs
- WindowsListViewGroupSubsetLink.cs
- LinqDataSourceSelectEventArgs.cs
- TextDecorationCollection.cs
- ContentPathSegment.cs
- ComboBoxAutomationPeer.cs
- QuotaExceededException.cs
- ControlPaint.cs
- regiisutil.cs
- HtmlControl.cs
- Queue.cs
- CodeSubDirectoriesCollection.cs
- CodeConditionStatement.cs
- MetadataStore.cs
- XPathAncestorIterator.cs
- Source.cs
- TimeSpan.cs
- SHA512CryptoServiceProvider.cs
- EventLogPermissionAttribute.cs
- QueuePathDialog.cs
- DataRecordInternal.cs
- ButtonChrome.cs
- ListViewItem.cs
- MailSettingsSection.cs
- NativeMethods.cs
- XmlDigitalSignatureProcessor.cs
- isolationinterop.cs
- Byte.cs
- ResourceWriter.cs
- RoutedEventConverter.cs
- WebExceptionStatus.cs
- QuaternionAnimation.cs
- VectorAnimationUsingKeyFrames.cs
- MimeBasePart.cs
- RegistryExceptionHelper.cs
- SqlAliasesReferenced.cs
- NullableFloatSumAggregationOperator.cs
- DataBindingCollection.cs
- PersonalizationProviderHelper.cs
- Size.cs
- ModifierKeysConverter.cs
- LineSegment.cs
- WindowsSlider.cs
- SiteMapNodeItem.cs
- Delay.cs
- WorkflowLayouts.cs
- ThrowHelper.cs
- Gdiplus.cs
- CompositeKey.cs
- Sequence.cs
- FullTextState.cs
- FileDialog.cs
- SetIterators.cs
- TypefaceCollection.cs
- ConfigurationStrings.cs
- DataServiceException.cs
- ToolStripItemTextRenderEventArgs.cs
- InfoCardRSACryptoProvider.cs
- CodeObject.cs
- ApplicationInfo.cs
- IncrementalCompileAnalyzer.cs
- MenuItem.cs
- TcpWorkerProcess.cs
- CodeAttachEventStatement.cs
- IisTraceListener.cs
- MemoryMappedView.cs
- DetailsViewPagerRow.cs
- SimpleType.cs
- HttpRuntime.cs
- InertiaRotationBehavior.cs
- CodeSnippetExpression.cs
- ControlBuilderAttribute.cs
- EntityDataSourceDesignerHelper.cs
- DbConnectionStringBuilder.cs
- ComponentResourceManager.cs
- BitmapFrame.cs
- BufferedResponseStream.cs
- GetResponse.cs
- EndpointDiscoveryMetadata11.cs
- CachedBitmap.cs
- RadioButtonRenderer.cs
- COAUTHINFO.cs
- HitTestWithPointDrawingContextWalker.cs
- RequestQueryProcessor.cs
- SchemaTypeEmitter.cs
- TextParaLineResult.cs
- ArgumentDesigner.xaml.cs
- UnsafeNativeMethods.cs
- DBDataPermissionAttribute.cs
- UInt32Storage.cs
- ADMembershipUser.cs
- XPathItem.cs
- State.cs