Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaSimpleType.cs / 1 / XmlSchemaSimpleType.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Schema { using System.Xml.Serialization; using System.Diagnostics; ////// /// public class XmlSchemaSimpleType : XmlSchemaType { XmlSchemaSimpleTypeContent content; ///[To be supplied.] ////// /// public XmlSchemaSimpleType() { Debug.Assert(SchemaContentType == XmlSchemaContentType.TextOnly); } ///[To be supplied.] ///[XmlElement("restriction", typeof(XmlSchemaSimpleTypeRestriction)), XmlElement("list", typeof(XmlSchemaSimpleTypeList)), XmlElement("union", typeof(XmlSchemaSimpleTypeUnion))] public XmlSchemaSimpleTypeContent Content { get { return content; } set { content = value; } } internal override XmlQualifiedName DerivedFrom { get { if (content == null) { // type derived from anyType return XmlQualifiedName.Empty; } if (content is XmlSchemaSimpleTypeRestriction) { return ((XmlSchemaSimpleTypeRestriction)content).BaseTypeName; } return XmlQualifiedName.Empty; } } internal override XmlSchemaObject Clone() { XmlSchemaSimpleType newSimpleType = (XmlSchemaSimpleType)MemberwiseClone(); if (content != null) { newSimpleType.Content = (XmlSchemaSimpleTypeContent)content.Clone(); } return newSimpleType; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Schema { using System.Xml.Serialization; using System.Diagnostics; ////// /// public class XmlSchemaSimpleType : XmlSchemaType { XmlSchemaSimpleTypeContent content; ///[To be supplied.] ////// /// public XmlSchemaSimpleType() { Debug.Assert(SchemaContentType == XmlSchemaContentType.TextOnly); } ///[To be supplied.] ///[XmlElement("restriction", typeof(XmlSchemaSimpleTypeRestriction)), XmlElement("list", typeof(XmlSchemaSimpleTypeList)), XmlElement("union", typeof(XmlSchemaSimpleTypeUnion))] public XmlSchemaSimpleTypeContent Content { get { return content; } set { content = value; } } internal override XmlQualifiedName DerivedFrom { get { if (content == null) { // type derived from anyType return XmlQualifiedName.Empty; } if (content is XmlSchemaSimpleTypeRestriction) { return ((XmlSchemaSimpleTypeRestriction)content).BaseTypeName; } return XmlQualifiedName.Empty; } } internal override XmlSchemaObject Clone() { XmlSchemaSimpleType newSimpleType = (XmlSchemaSimpleType)MemberwiseClone(); if (content != null) { newSimpleType.Content = (XmlSchemaSimpleTypeContent)content.Clone(); } return newSimpleType; } } } // 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
- HiddenField.cs
- ConfigurationValidatorBase.cs
- RemotingServices.cs
- SchemaElementLookUpTableEnumerator.cs
- XamlWriter.cs
- ContextProperty.cs
- XmlSchemaCompilationSettings.cs
- HttpServerVarsCollection.cs
- InterleavedZipPartStream.cs
- followingquery.cs
- XmlC14NWriter.cs
- AVElementHelper.cs
- PresentationAppDomainManager.cs
- ParameterReplacerVisitor.cs
- ScrollProperties.cs
- GeometryGroup.cs
- ObjectSerializerFactory.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ConfigPathUtility.cs
- RegexCaptureCollection.cs
- ButtonBase.cs
- TextDecorations.cs
- basecomparevalidator.cs
- XmlKeywords.cs
- GenericIdentity.cs
- KeyEventArgs.cs
- TemplateModeChangedEventArgs.cs
- ScopelessEnumAttribute.cs
- ReaderWriterLockWrapper.cs
- ContentHostHelper.cs
- AccessText.cs
- BinaryNode.cs
- EntityCommandDefinition.cs
- DataContractSerializerOperationFormatter.cs
- StringDictionaryEditor.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- AutomationProperty.cs
- DataSetMappper.cs
- input.cs
- DataSetSchema.cs
- XmlSerializationReader.cs
- ParameterReplacerVisitor.cs
- ImageMap.cs
- EndEvent.cs
- AutomationPeer.cs
- SamlAuthorityBinding.cs
- SystemUdpStatistics.cs
- StrokeSerializer.cs
- AstTree.cs
- DataGridTablesFactory.cs
- AccessText.cs
- StandardTransformFactory.cs
- EdgeModeValidation.cs
- TraceFilter.cs
- ValidationSummaryDesigner.cs
- TreeNodeSelectionProcessor.cs
- SqlUtil.cs
- basevalidator.cs
- AbandonedMutexException.cs
- _RegBlobWebProxyDataBuilder.cs
- BindableTemplateBuilder.cs
- SrgsNameValueTag.cs
- SqlWebEventProvider.cs
- CompositeControl.cs
- CodePrimitiveExpression.cs
- UnsafeCollabNativeMethods.cs
- XmlArrayItemAttribute.cs
- WebServiceParameterData.cs
- PasswordTextContainer.cs
- UmAlQuraCalendar.cs
- StandardOleMarshalObject.cs
- RSAOAEPKeyExchangeDeformatter.cs
- RegularExpressionValidator.cs
- UnauthorizedWebPart.cs
- ISAPIRuntime.cs
- OrElse.cs
- JsonDataContract.cs
- ValidatingPropertiesEventArgs.cs
- SoapHeaderException.cs
- BezierSegment.cs
- SubpageParaClient.cs
- ClientRolePrincipal.cs
- OracleNumber.cs
- XmlBoundElement.cs
- Panel.cs
- StdValidatorsAndConverters.cs
- WebPartsPersonalizationAuthorization.cs
- TemplateComponentConnector.cs
- DescendantOverDescendantQuery.cs
- ResourceDisplayNameAttribute.cs
- NaturalLanguageHyphenator.cs
- TextMetrics.cs
- WebPartDescription.cs
- ReadOnlyCollectionBase.cs
- GrowingArray.cs
- AffineTransform3D.cs
- EmptyEnumerator.cs
- Brushes.cs
- mediaeventshelper.cs
- SystemDiagnosticsSection.cs