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;
///
///
/// [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.
//------------------------------------------------------------------------------
//
// 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
- Pair.cs
- GridViewRowCollection.cs
- BufferedGraphicsContext.cs
- SQLCharsStorage.cs
- basenumberconverter.cs
- EnumType.cs
- ClientConfigPaths.cs
- ExpressionBuilderCollection.cs
- RbTree.cs
- MSAANativeProvider.cs
- UrlMapping.cs
- XmlDomTextWriter.cs
- WebPartVerb.cs
- PolyQuadraticBezierSegment.cs
- List.cs
- InstanceDataCollectionCollection.cs
- HostSecurityManager.cs
- CompoundFileIOPermission.cs
- ObjectConverter.cs
- coordinator.cs
- ScriptControl.cs
- SizeFConverter.cs
- MembershipSection.cs
- DataControlPagerLinkButton.cs
- GridSplitterAutomationPeer.cs
- TypeDependencyAttribute.cs
- RTLAwareMessageBox.cs
- WebSysDefaultValueAttribute.cs
- DataGridViewColumnHeaderCell.cs
- SoapCodeExporter.cs
- ResourceAssociationTypeEnd.cs
- CallbackValidator.cs
- TextLineBreak.cs
- ColorAnimation.cs
- FormViewUpdateEventArgs.cs
- DockPatternIdentifiers.cs
- RequiredAttributeAttribute.cs
- ExecutionContext.cs
- RawTextInputReport.cs
- Vector3DAnimation.cs
- WrappedReader.cs
- Registry.cs
- CommonRemoteMemoryBlock.cs
- DataGridHeaderBorder.cs
- IntegrationExceptionEventArgs.cs
- AspNetSynchronizationContext.cs
- TimelineGroup.cs
- EvidenceBase.cs
- XmlAtomErrorReader.cs
- XmlDataDocument.cs
- Configuration.cs
- WebEventTraceProvider.cs
- Closure.cs
- SmtpFailedRecipientsException.cs
- CharacterHit.cs
- CodeIterationStatement.cs
- CollectionViewProxy.cs
- SequentialOutput.cs
- CompositeFontFamily.cs
- PositiveTimeSpanValidatorAttribute.cs
- DockPanel.cs
- ISAPIApplicationHost.cs
- StrongTypingException.cs
- ConvertEvent.cs
- FunctionDetailsReader.cs
- Int32EqualityComparer.cs
- IpcManager.cs
- StrokeCollection2.cs
- WindowShowOrOpenTracker.cs
- FamilyTypefaceCollection.cs
- InternalCache.cs
- PersonalizationStateInfo.cs
- LOSFormatter.cs
- Attributes.cs
- OleDbErrorCollection.cs
- SqlConnectionPoolProviderInfo.cs
- PrtCap_Public.cs
- TableLayoutSettingsTypeConverter.cs
- ToggleProviderWrapper.cs
- DBDataPermissionAttribute.cs
- PageCatalogPartDesigner.cs
- SponsorHelper.cs
- HttpApplicationFactory.cs
- StructuredTypeInfo.cs
- CodeGotoStatement.cs
- AQNBuilder.cs
- NamespaceCollection.cs
- TextServicesDisplayAttribute.cs
- MetadataArtifactLoaderComposite.cs
- selecteditemcollection.cs
- SmtpDigestAuthenticationModule.cs
- DataSourceSelectArguments.cs
- OleDbReferenceCollection.cs
- RestHandlerFactory.cs
- UserControlBuildProvider.cs
- ServicesUtilities.cs
- TextParagraphView.cs
- EnumConverter.cs
- StringUtil.cs
- BrowsableAttribute.cs