Code:
/ DotNET / DotNET / 8.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
- Base64Stream.cs
- Convert.cs
- PermissionAttributes.cs
- RawTextInputReport.cs
- DocumentViewerConstants.cs
- AutoGeneratedFieldProperties.cs
- ObjectTag.cs
- DataRecordInfo.cs
- FastEncoderWindow.cs
- KoreanCalendar.cs
- StackBuilderSink.cs
- DBSqlParserTable.cs
- SimpleBitVector32.cs
- ColumnTypeConverter.cs
- TrackingCondition.cs
- DictionaryEntry.cs
- basecomparevalidator.cs
- RectAnimation.cs
- _Events.cs
- SymbolMethod.cs
- TreeViewCancelEvent.cs
- ExceptionRoutedEventArgs.cs
- RegexCode.cs
- SmiEventSink_DeferedProcessing.cs
- PagePropertiesChangingEventArgs.cs
- RuntimeHelpers.cs
- MultipleViewPattern.cs
- NativeMethods.cs
- DependencyPropertyDescriptor.cs
- HostedTransportConfigurationBase.cs
- ConsumerConnectionPointCollection.cs
- DataBoundControlAdapter.cs
- HelpProvider.cs
- SystemIPGlobalStatistics.cs
- TransformDescriptor.cs
- DoubleLinkListEnumerator.cs
- FontFaceLayoutInfo.cs
- Comparer.cs
- ExpressionHelper.cs
- RemoveStoryboard.cs
- GenericRootAutomationPeer.cs
- RangeValuePatternIdentifiers.cs
- EventWaitHandle.cs
- CheckBoxAutomationPeer.cs
- PermissionRequestEvidence.cs
- IntersectQueryOperator.cs
- SmtpFailedRecipientsException.cs
- InternalConfigHost.cs
- TakeOrSkipQueryOperator.cs
- MailAddressCollection.cs
- AttributeUsageAttribute.cs
- UriExt.cs
- SourceChangedEventArgs.cs
- PhonemeEventArgs.cs
- OutputCacheSettings.cs
- Mapping.cs
- GridViewRowCollection.cs
- TreeViewItem.cs
- XmlFormatWriterGenerator.cs
- XmlLinkedNode.cs
- SymmetricAlgorithm.cs
- SingleSelectRootGridEntry.cs
- PropertyOverridesDialog.cs
- UnsafeNativeMethods.cs
- WmlListAdapter.cs
- TreeNode.cs
- SafeNativeMethods.cs
- BaseTreeIterator.cs
- LowerCaseStringConverter.cs
- FromRequest.cs
- RowBinding.cs
- EventLogQuery.cs
- ProcessHost.cs
- TextSimpleMarkerProperties.cs
- ConnectionManagementElementCollection.cs
- SqlBulkCopyColumnMappingCollection.cs
- DynamicResourceExtensionConverter.cs
- ManipulationStartingEventArgs.cs
- CookieProtection.cs
- InvalidPropValue.cs
- AssociationTypeEmitter.cs
- SortQuery.cs
- NonSerializedAttribute.cs
- wmiprovider.cs
- smtpconnection.cs
- SourceFileBuildProvider.cs
- TimeSpanMinutesConverter.cs
- FrameworkContentElement.cs
- Walker.cs
- WindowsBrush.cs
- EntityCommandDefinition.cs
- XmlSchemaAny.cs
- Content.cs
- FontResourceCache.cs
- SpellerStatusTable.cs
- TreeView.cs
- RawAppCommandInputReport.cs
- XmlAttribute.cs
- EventLogPermissionHolder.cs
- XPathPatternParser.cs