Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / XmlRootAttribute.cs / 1305376 / 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
- ColumnMap.cs
- InvalidWMPVersionException.cs
- ContextMenuStrip.cs
- ValidatorCollection.cs
- ExitEventArgs.cs
- Math.cs
- Cursors.cs
- SystemWebSectionGroup.cs
- ReferentialConstraint.cs
- DefaultMemberAttribute.cs
- TypeToken.cs
- DataGridViewCellConverter.cs
- IdleTimeoutMonitor.cs
- RegexRunnerFactory.cs
- httpapplicationstate.cs
- Rijndael.cs
- DataGridViewCellStyleChangedEventArgs.cs
- ColorConverter.cs
- TextDecorationCollection.cs
- DataBinding.cs
- ChildTable.cs
- NameTable.cs
- RadioButtonAutomationPeer.cs
- OpenTypeLayout.cs
- MonthCalendarDesigner.cs
- Cell.cs
- AddInServer.cs
- DispatcherExceptionFilterEventArgs.cs
- DoubleCollection.cs
- Selection.cs
- HttpRequest.cs
- Composition.cs
- DllNotFoundException.cs
- MailAddressCollection.cs
- SqlErrorCollection.cs
- Listbox.cs
- DataGridTable.cs
- basevalidator.cs
- PanelDesigner.cs
- ResourceManager.cs
- UnsafeCollabNativeMethods.cs
- DataObject.cs
- ControlBuilderAttribute.cs
- ValueTypeFixupInfo.cs
- LoginName.cs
- TemplateInstanceAttribute.cs
- FramingChannels.cs
- PathFigureCollection.cs
- MatrixTransform.cs
- DataColumnMapping.cs
- WeakKeyDictionary.cs
- PathFigureCollection.cs
- GPRECTF.cs
- PostBackTrigger.cs
- UriParserTemplates.cs
- NetworkInformationException.cs
- DriveNotFoundException.cs
- RequestTimeoutManager.cs
- LambdaCompiler.Logical.cs
- ProcessHostFactoryHelper.cs
- NameTable.cs
- FamilyTypefaceCollection.cs
- DynamicControl.cs
- XmlSchemaSimpleTypeRestriction.cs
- ProxyAttribute.cs
- DropShadowBitmapEffect.cs
- TextSchema.cs
- UInt64Converter.cs
- ClientScriptManagerWrapper.cs
- EntityExpressionVisitor.cs
- ToolStrip.cs
- Camera.cs
- Semaphore.cs
- RowVisual.cs
- ContentPosition.cs
- ModelItemCollectionImpl.cs
- ProfileManager.cs
- XsdDuration.cs
- ManagementObject.cs
- ConfigXmlAttribute.cs
- HtmlButton.cs
- WebResourceUtil.cs
- ControlCachePolicy.cs
- CompilerInfo.cs
- AttributeUsageAttribute.cs
- ToolTipAutomationPeer.cs
- WorkflowInstanceExtensionCollection.cs
- X509Extension.cs
- OrderedDictionary.cs
- CapabilitiesSection.cs
- PropertyGeneratedEventArgs.cs
- SmtpReplyReaderFactory.cs
- MinMaxParagraphWidth.cs
- StyleXamlTreeBuilder.cs
- CmsUtils.cs
- AspNetSynchronizationContext.cs
- GlyphsSerializer.cs
- TextEditorLists.cs
- AdRotator.cs
- ArrayExtension.cs