Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / XmlRootAttribute.cs / 1305376 / XmlRootAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Serialization { using System; using System.Xml.Schema; ////// /// [AttributeUsage(AttributeTargets.ReturnValue | AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Interface | AttributeTargets.Struct)] public class XmlRootAttribute : System.Attribute { string elementName; string ns; string dataType; bool nullable = true; bool nullableSpecified; ///[To be supplied.] ////// /// public XmlRootAttribute() { } ///[To be supplied.] ////// /// public XmlRootAttribute(string elementName) { this.elementName = elementName; } ///[To be supplied.] ////// /// public string ElementName { get { return elementName == null ? string.Empty : elementName; } set { elementName = value; } } ///[To be supplied.] ////// /// public string Namespace { get { return ns; } set { ns = value; } } ///[To be supplied.] ////// /// public string DataType { get { return dataType == null ? string.Empty : dataType; } set { dataType = value; } } ///[To be supplied.] ////// /// public bool IsNullable { get { return nullable; } set { nullable = value; nullableSpecified = true; } } internal bool IsNullableSpecified { get { return nullableSpecified; } } internal string Key { get { return (ns == null ? String.Empty : ns) + ":" + ElementName + ":" + nullable.ToString(); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Serialization { using System; using System.Xml.Schema; ////// /// [AttributeUsage(AttributeTargets.ReturnValue | AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Interface | AttributeTargets.Struct)] public class XmlRootAttribute : System.Attribute { string elementName; string ns; string dataType; bool nullable = true; bool nullableSpecified; ///[To be supplied.] ////// /// public XmlRootAttribute() { } ///[To be supplied.] ////// /// public XmlRootAttribute(string elementName) { this.elementName = elementName; } ///[To be supplied.] ////// /// public string ElementName { get { return elementName == null ? string.Empty : elementName; } set { elementName = value; } } ///[To be supplied.] ////// /// public string Namespace { get { return ns; } set { ns = value; } } ///[To be supplied.] ////// /// public string DataType { get { return dataType == null ? string.Empty : dataType; } set { dataType = value; } } ///[To be supplied.] ////// /// public bool IsNullable { get { return nullable; } set { nullable = value; nullableSpecified = true; } } internal bool IsNullableSpecified { get { return nullableSpecified; } } internal string Key { get { return (ns == null ? String.Empty : ns) + ":" + ElementName + ":" + nullable.ToString(); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CngProperty.cs
- ControllableStoryboardAction.cs
- ContextMenuAutomationPeer.cs
- ValidationHelpers.cs
- Pens.cs
- TransactionOptions.cs
- ElementAction.cs
- XmlSerializationGeneratedCode.cs
- TableItemPattern.cs
- RelatedImageListAttribute.cs
- EncryptedReference.cs
- EdmEntityTypeAttribute.cs
- LogManagementAsyncResult.cs
- ActivityExecutor.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- BrowserCapabilitiesFactory.cs
- Missing.cs
- Connection.cs
- _SSPIWrapper.cs
- ResourceReferenceExpression.cs
- StringUtil.cs
- GridViewRowPresenter.cs
- ThaiBuddhistCalendar.cs
- DmlSqlGenerator.cs
- ReflectEventDescriptor.cs
- SQLDoubleStorage.cs
- ListItem.cs
- DataExpression.cs
- SecurityException.cs
- CaseInsensitiveComparer.cs
- NavigationCommands.cs
- DashStyles.cs
- ProfessionalColorTable.cs
- LicenseManager.cs
- ObjectStateManagerMetadata.cs
- ServiceBusyException.cs
- DisplayInformation.cs
- QueryExpr.cs
- PluralizationService.cs
- BrowserCapabilitiesFactory.cs
- AdornerLayer.cs
- SystemPens.cs
- MouseGestureConverter.cs
- DataGridViewCheckBoxColumn.cs
- RawStylusInputCustomData.cs
- keycontainerpermission.cs
- DataServiceQueryProvider.cs
- RegexReplacement.cs
- Sql8ConformanceChecker.cs
- ResourceDisplayNameAttribute.cs
- RangeContentEnumerator.cs
- CodeCatchClause.cs
- ProcessModelInfo.cs
- xml.cs
- RewritingPass.cs
- InternalSafeNativeMethods.cs
- ConvertersCollection.cs
- SqlParameterCollection.cs
- AstTree.cs
- Mappings.cs
- SpStreamWrapper.cs
- Transform3D.cs
- ValidatorCompatibilityHelper.cs
- WebPartConnectionsConnectVerb.cs
- DataGridViewLayoutData.cs
- ZipIOLocalFileHeader.cs
- MaterializeFromAtom.cs
- ProfileEventArgs.cs
- PrivateFontCollection.cs
- SHA1Cng.cs
- XPathMessageFilterElementCollection.cs
- ButtonFlatAdapter.cs
- BamlStream.cs
- SqlNamer.cs
- PlatformNotSupportedException.cs
- FixedSOMTable.cs
- WSDualHttpBindingCollectionElement.cs
- SqlAliaser.cs
- StretchValidation.cs
- XmlSchemaSimpleType.cs
- Quad.cs
- DbMetaDataFactory.cs
- SendKeys.cs
- Currency.cs
- XmlMtomWriter.cs
- CodeChecksumPragma.cs
- LookupBindingPropertiesAttribute.cs
- ResetableIterator.cs
- StringFunctions.cs
- ADMembershipProvider.cs
- NavigationCommands.cs
- PrimarySelectionAdorner.cs
- GlyphShapingProperties.cs
- RegexRunnerFactory.cs
- Lock.cs
- XmlFormatReaderGenerator.cs
- TaskFileService.cs
- GridEntryCollection.cs
- ToggleProviderWrapper.cs
- FileRecordSequenceCompletedAsyncResult.cs