Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ButtonPopupAdapter.cs
- XsltSettings.cs
- StrokeFIndices.cs
- Matrix3DConverter.cs
- PropertyValueUIItem.cs
- RevocationPoint.cs
- MimeTypePropertyAttribute.cs
- EmptyElement.cs
- ImageMetadata.cs
- MailBnfHelper.cs
- BuildDependencySet.cs
- peersecurityelement.cs
- MessagingActivityHelper.cs
- ProtectedConfiguration.cs
- Image.cs
- ServiceContractListItemList.cs
- TransactionException.cs
- CodeMemberField.cs
- DataStorage.cs
- ChineseLunisolarCalendar.cs
- DebugController.cs
- FormsAuthenticationCredentials.cs
- ReachSerializerAsync.cs
- HierarchicalDataTemplate.cs
- PointCollectionValueSerializer.cs
- DescendentsWalker.cs
- XmlArrayItemAttribute.cs
- LockCookie.cs
- RMPermissions.cs
- sqlinternaltransaction.cs
- Math.cs
- XmlSchemaCollection.cs
- ToolStripRenderer.cs
- CodeStatementCollection.cs
- CodeDomSerializationProvider.cs
- StringStorage.cs
- _LoggingObject.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- EncodingDataItem.cs
- Rotation3DAnimationBase.cs
- SqlMethods.cs
- ListViewItemSelectionChangedEvent.cs
- SapiRecognizer.cs
- MailWriter.cs
- NativeWrapper.cs
- TypeToken.cs
- DataGridViewAdvancedBorderStyle.cs
- SchemaAttDef.cs
- DesignRelationCollection.cs
- ConfigPathUtility.cs
- JsonByteArrayDataContract.cs
- SerializationIncompleteException.cs
- Msec.cs
- OleDbDataReader.cs
- BrushValueSerializer.cs
- ControlBuilderAttribute.cs
- StylusEditingBehavior.cs
- Pts.cs
- HashUtility.cs
- CreateRefExpr.cs
- ProtocolsConfiguration.cs
- Font.cs
- AccessibleObject.cs
- IpcClientChannel.cs
- XmlSchemaComplexContent.cs
- FilteredReadOnlyMetadataCollection.cs
- XmlBinaryReader.cs
- WebAdminConfigurationHelper.cs
- ColumnResult.cs
- XsdDuration.cs
- IUnknownConstantAttribute.cs
- AsnEncodedData.cs
- XLinq.cs
- CompModSwitches.cs
- ProviderConnectionPointCollection.cs
- MetadataCollection.cs
- VersionedStream.cs
- DesignTimeDataBinding.cs
- SqlDataSourceConfigureFilterForm.cs
- TextProperties.cs
- ExceptionUtil.cs
- Ops.cs
- TreeNodeStyle.cs
- ToolStripCodeDomSerializer.cs
- TypographyProperties.cs
- GradientSpreadMethodValidation.cs
- FileLoadException.cs
- DoubleStorage.cs
- CookielessHelper.cs
- SmtpFailedRecipientsException.cs
- DataBindingValueUIHandler.cs
- _LoggingObject.cs
- AssemblyFilter.cs
- DiscoveryReferences.cs
- TrustSection.cs
- RolePrincipal.cs
- X509Extension.cs
- PictureBox.cs
- BufferBuilder.cs
- ButtonChrome.cs