Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Xml / System / Xml / Serialization / XmlRootAttribute.cs / 1 / 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
- PointHitTestParameters.cs
- JoinQueryOperator.cs
- GenericPrincipal.cs
- FastEncoder.cs
- DynamicQueryStringParameter.cs
- CLSCompliantAttribute.cs
- SoapReflectionImporter.cs
- Transform3DGroup.cs
- SqlCacheDependency.cs
- StorageMappingItemCollection.cs
- SqlUserDefinedAggregateAttribute.cs
- JournalEntry.cs
- HashAlgorithm.cs
- HttpInputStream.cs
- DecoderReplacementFallback.cs
- CodeExpressionRuleDeclaration.cs
- DataViewSettingCollection.cs
- StringBuilder.cs
- SpecialFolderEnumConverter.cs
- ModelTreeEnumerator.cs
- CacheDict.cs
- EventArgs.cs
- UnsettableComboBox.cs
- CurrencyWrapper.cs
- ColorTransformHelper.cs
- EmbeddedMailObject.cs
- OutputCacheProfile.cs
- EnumMemberAttribute.cs
- Drawing.cs
- XmlAttribute.cs
- SqlCacheDependencyDatabase.cs
- CounterSample.cs
- FormsAuthenticationEventArgs.cs
- ConfigXmlText.cs
- DataGridColumnHeadersPresenter.cs
- ObjectHelper.cs
- UnmanagedMarshal.cs
- ToolStripTemplateNode.cs
- KeyMatchBuilder.cs
- MissingSatelliteAssemblyException.cs
- StateBag.cs
- StateDesigner.Layouts.cs
- EndOfStreamException.cs
- PropertyGeneratedEventArgs.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- RowParagraph.cs
- FileEnumerator.cs
- Transform3DGroup.cs
- InheritanceContextHelper.cs
- CqlErrorHelper.cs
- ByteStack.cs
- MsmqSecureHashAlgorithm.cs
- HandlerBase.cs
- Point3DAnimationBase.cs
- DbTransaction.cs
- _ConnectOverlappedAsyncResult.cs
- LayoutUtils.cs
- ConfigurationValue.cs
- GatewayDefinition.cs
- MultiTargetingUtil.cs
- CodeAttributeArgument.cs
- FieldBuilder.cs
- GetUserPreferenceRequest.cs
- SystemMulticastIPAddressInformation.cs
- WebResourceUtil.cs
- ContainerParaClient.cs
- FtpWebRequest.cs
- Roles.cs
- TextChange.cs
- FrameworkObject.cs
- MobileControlsSectionHandler.cs
- CheckPair.cs
- TcpTransportSecurity.cs
- TextChange.cs
- BindingBase.cs
- UdpDiscoveryEndpointProvider.cs
- FunctionDefinition.cs
- SerializationTrace.cs
- TypeUtils.cs
- DtdParser.cs
- FontWeightConverter.cs
- RemoveStoryboard.cs
- ObjectViewFactory.cs
- AttributeCollection.cs
- GridViewSelectEventArgs.cs
- HttpWebResponse.cs
- UnsafeNativeMethodsPenimc.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- WeakEventManager.cs
- ASCIIEncoding.cs
- MatrixStack.cs
- ItemList.cs
- XmlCharType.cs
- SqlCommand.cs
- sqlstateclientmanager.cs
- UiaCoreProviderApi.cs
- X509SubjectKeyIdentifierClause.cs
- RichTextBoxContextMenu.cs
- IndexedString.cs
- EntityContainerEmitter.cs