Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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
- WsatConfiguration.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- AbandonedMutexException.cs
- FilterQuery.cs
- StylusEventArgs.cs
- CursorInteropHelper.cs
- ContentOperations.cs
- ElementMarkupObject.cs
- QilLiteral.cs
- Stopwatch.cs
- TemplatedAdorner.cs
- Matrix3DConverter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- XamlClipboardData.cs
- UnsafeNativeMethodsPenimc.cs
- DataGrid.cs
- XmlMessageFormatter.cs
- DependencyPropertyDescriptor.cs
- GridViewCancelEditEventArgs.cs
- XmlSchemaSubstitutionGroup.cs
- XmlValueConverter.cs
- SrgsSemanticInterpretationTag.cs
- WebServiceData.cs
- _ConnectStream.cs
- ChannelSettingsElement.cs
- Region.cs
- ConnectionInterfaceCollection.cs
- TreeNodeConverter.cs
- HashSetDebugView.cs
- StrokeNode.cs
- BinaryCommonClasses.cs
- TargetConverter.cs
- ContentElement.cs
- CreateUserWizard.cs
- ServiceReference.cs
- PrinterResolution.cs
- SchemaImporterExtension.cs
- DateRangeEvent.cs
- SapiInterop.cs
- UriTemplateLiteralPathSegment.cs
- HelpKeywordAttribute.cs
- TextShapeableCharacters.cs
- SecondaryIndex.cs
- StringAnimationUsingKeyFrames.cs
- BoolExpr.cs
- PackageRelationshipCollection.cs
- diagnosticsswitches.cs
- HostProtectionException.cs
- SmiSettersStream.cs
- ValidationHelper.cs
- LowerCaseStringConverter.cs
- PropertyGrid.cs
- BaseParaClient.cs
- ErrorWebPart.cs
- _NestedMultipleAsyncResult.cs
- PropertyDescriptorGridEntry.cs
- PointLightBase.cs
- KeyboardDevice.cs
- WindowsGraphics2.cs
- TypeElement.cs
- ObservableCollection.cs
- WebConfigurationHost.cs
- GridEntryCollection.cs
- FlowNode.cs
- Focus.cs
- DropShadowBitmapEffect.cs
- XmlMapping.cs
- TaskExceptionHolder.cs
- EpmCustomContentWriterNodeData.cs
- XmlUtilWriter.cs
- MediaTimeline.cs
- Vector3DAnimation.cs
- RestClientProxyHandler.cs
- UserControlParser.cs
- ClickablePoint.cs
- TemplateControlCodeDomTreeGenerator.cs
- XamlGridLengthSerializer.cs
- Size.cs
- UdpDiscoveryEndpointElement.cs
- Schedule.cs
- HttpModuleCollection.cs
- RemotingConfiguration.cs
- ProcessModelSection.cs
- ToolboxItemFilterAttribute.cs
- Transform3DGroup.cs
- SqlClientWrapperSmiStreamChars.cs
- AssociationTypeEmitter.cs
- OSFeature.cs
- AuthenticateEventArgs.cs
- GeneralTransformGroup.cs
- Completion.cs
- NonVisualControlAttribute.cs
- peersecurityelement.cs
- Mouse.cs
- ColorConverter.cs
- DetailsViewInsertEventArgs.cs
- ActivationArguments.cs
- DataGridViewCellConverter.cs
- XmlTextReaderImpl.cs
- MissingFieldException.cs