Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlTriggerAttribute.cs
- StateMachineSubscriptionManager.cs
- OracleInternalConnection.cs
- EncoderNLS.cs
- IItemContainerGenerator.cs
- FigureParaClient.cs
- XmlAtomicValue.cs
- ToolStripDropDownClosedEventArgs.cs
- ErrorFormatterPage.cs
- CollectionViewGroupRoot.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- Enumerable.cs
- SettingsProperty.cs
- SharedPersonalizationStateInfo.cs
- ConstantCheck.cs
- RequestCachePolicy.cs
- FileSystemInfo.cs
- EditorZone.cs
- DrawingGroup.cs
- OutgoingWebResponseContext.cs
- ExceptionUtil.cs
- Icon.cs
- ProxyDataContractResolver.cs
- XmlArrayItemAttributes.cs
- SafeCryptoHandles.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- DBAsyncResult.cs
- QueryInterceptorAttribute.cs
- GPRECT.cs
- CopyCodeAction.cs
- ArrayWithOffset.cs
- PromptBuilder.cs
- AppDomainCompilerProxy.cs
- EditingMode.cs
- ReadOnlyAttribute.cs
- CacheModeValueSerializer.cs
- Composition.cs
- TrustLevelCollection.cs
- BinaryConverter.cs
- HttpCacheVaryByContentEncodings.cs
- Schema.cs
- GetCryptoTransformRequest.cs
- RSAOAEPKeyExchangeDeformatter.cs
- XmlSchemaElement.cs
- WindowsFormsHost.cs
- ProgressPage.cs
- CodeIterationStatement.cs
- SqlClientMetaDataCollectionNames.cs
- MulticastOption.cs
- BatchServiceHost.cs
- PageParserFilter.cs
- HtmlForm.cs
- EncryptedKey.cs
- ManagementInstaller.cs
- WorkflowView.cs
- KnownTypesProvider.cs
- AppSettingsReader.cs
- QilInvoke.cs
- UriTemplateTableMatchCandidate.cs
- PropertyGeneratedEventArgs.cs
- OptimisticConcurrencyException.cs
- FieldMetadata.cs
- Message.cs
- MasterPageParser.cs
- SystemNetHelpers.cs
- RequestBringIntoViewEventArgs.cs
- MonthChangedEventArgs.cs
- ListViewGroupCollectionEditor.cs
- NoClickablePointException.cs
- Color.cs
- ExpressionEditor.cs
- SharedTcpTransportManager.cs
- XmlProcessingInstruction.cs
- CompiledRegexRunner.cs
- SecureStringHasher.cs
- DataControlField.cs
- XmlNamespaceMapping.cs
- _NestedMultipleAsyncResult.cs
- ActivityTrace.cs
- MailWebEventProvider.cs
- CacheForPrimitiveTypes.cs
- DataErrorValidationRule.cs
- TableColumn.cs
- DocumentViewerConstants.cs
- HttpGetProtocolReflector.cs
- MsmqInputMessage.cs
- DllNotFoundException.cs
- XmlReflectionImporter.cs
- DelayLoadType.cs
- SqlVersion.cs
- SettingsBindableAttribute.cs
- DPTypeDescriptorContext.cs
- BrowserDefinitionCollection.cs
- UnsafeNativeMethodsMilCoreApi.cs
- mediaclock.cs
- DocumentViewerHelper.cs
- TypeReference.cs
- DBNull.cs
- CheckBox.cs
- EncodingNLS.cs