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;
///
///
/// [To be supplied.]
///
[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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GridView.cs
- XmlTypeMapping.cs
- _SslSessionsCache.cs
- WindowsGraphics.cs
- CatalogZoneBase.cs
- FontStretch.cs
- WebConfigurationHostFileChange.cs
- Panel.cs
- QuotedStringFormatReader.cs
- QilIterator.cs
- EventSinkHelperWriter.cs
- CompositeDataBoundControl.cs
- TreeNodeConverter.cs
- ColumnMap.cs
- FolderLevelBuildProvider.cs
- TabItem.cs
- XmlSchemaSimpleTypeList.cs
- RTLAwareMessageBox.cs
- ResourceContainer.cs
- MessagePropertyDescriptionCollection.cs
- LoopExpression.cs
- CheckBoxStandardAdapter.cs
- XmlSignatureManifest.cs
- SQLBytes.cs
- RadioButtonPopupAdapter.cs
- WebBrowserPermission.cs
- ParagraphVisual.cs
- MembershipSection.cs
- EventDescriptorCollection.cs
- WebPartTracker.cs
- TranslateTransform.cs
- RangeBase.cs
- MapPathBasedVirtualPathProvider.cs
- TargetInvocationException.cs
- InfoCardBaseException.cs
- MultipartContentParser.cs
- Grant.cs
- XmlTextReaderImplHelpers.cs
- ListBox.cs
- AmbientValueAttribute.cs
- BamlCollectionHolder.cs
- Point4D.cs
- ConfigurationException.cs
- PrimitiveOperationFormatter.cs
- FixedStringLookup.cs
- EntityDataSourceWizardForm.cs
- PathNode.cs
- UIHelper.cs
- FilterableAttribute.cs
- NameTable.cs
- FormViewRow.cs
- Predicate.cs
- RichListBox.cs
- CodePageEncoding.cs
- EntityDataReader.cs
- UIElement3DAutomationPeer.cs
- Command.cs
- SystemColors.cs
- DocumentScope.cs
- Sorting.cs
- NavigatorInput.cs
- WebErrorHandler.cs
- BuildProviderCollection.cs
- WindowsBrush.cs
- ConnectionStringsExpressionBuilder.cs
- ListViewTableCell.cs
- GetFileNameResult.cs
- WorkflowViewElement.cs
- CellPartitioner.cs
- StyleCollection.cs
- TypeBuilderInstantiation.cs
- SequentialWorkflowRootDesigner.cs
- ManagementScope.cs
- StrokeCollection.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- BindingSource.cs
- SyndicationContent.cs
- XmlNodeChangedEventArgs.cs
- DataExpression.cs
- JournalNavigationScope.cs
- TypedDatasetGenerator.cs
- DummyDataSource.cs
- CompressStream.cs
- FileLogRecord.cs
- DefaultExpression.cs
- CqlLexer.cs
- SmtpCommands.cs
- BookmarkScope.cs
- RegistrationServices.cs
- StylusPointProperty.cs
- LeafCellTreeNode.cs
- UserControlDocumentDesigner.cs
- Parameter.cs
- SqlBuffer.cs
- SQLDouble.cs
- TextServicesDisplayAttribute.cs
- MenuItemBindingCollection.cs
- NavigationProgressEventArgs.cs
- TextOptions.cs
- Int32.cs