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
- EntityDataSourceDesigner.cs
- BasicExpressionVisitor.cs
- CacheRequest.cs
- SpoolingTaskBase.cs
- OLEDB_Util.cs
- Pen.cs
- TreeNodeCollectionEditor.cs
- ExtenderControl.cs
- CancellationState.cs
- DataTableCollection.cs
- TrackingAnnotationCollection.cs
- StyleConverter.cs
- DiscoveryDocumentSerializer.cs
- NameScopePropertyAttribute.cs
- XmlSchemaValidator.cs
- SafeThreadHandle.cs
- SQLInt32.cs
- IProvider.cs
- QualifiedCellIdBoolean.cs
- XmlSerializerSection.cs
- ToolStripDropDownClosedEventArgs.cs
- MissingMethodException.cs
- ObjectReferenceStack.cs
- ExpressionBinding.cs
- MediaElementAutomationPeer.cs
- keycontainerpermission.cs
- EventLogReader.cs
- RubberbandSelector.cs
- SoapAttributeAttribute.cs
- AppDomain.cs
- HwndKeyboardInputProvider.cs
- DynamicPropertyReader.cs
- AuthorizationRule.cs
- RecordBuilder.cs
- TextBoxView.cs
- Restrictions.cs
- ValidationRule.cs
- StorageAssociationTypeMapping.cs
- ListMarkerLine.cs
- LayoutManager.cs
- XmlSchemaChoice.cs
- DmlSqlGenerator.cs
- InfoCardTraceRecord.cs
- ImageSource.cs
- FixedSOMContainer.cs
- RegisteredArrayDeclaration.cs
- URLMembershipCondition.cs
- SqlVisitor.cs
- WorkflowDefinitionDispenser.cs
- GraphicsState.cs
- DynamicEntity.cs
- DecimalStorage.cs
- UrlAuthFailedErrorFormatter.cs
- AsyncResult.cs
- RegexBoyerMoore.cs
- StateInitializationDesigner.cs
- MultilineStringConverter.cs
- SQLResource.cs
- DataGridTable.cs
- WebPartEditVerb.cs
- SortKey.cs
- XamlDesignerSerializationManager.cs
- WorkflowOperationInvoker.cs
- PackageProperties.cs
- ResourceReferenceExpressionConverter.cs
- TraceContext.cs
- ChannelBinding.cs
- SoapSchemaExporter.cs
- PlainXmlDeserializer.cs
- TraceHandler.cs
- MustUnderstandSoapException.cs
- GroupQuery.cs
- HttpProfileBase.cs
- HttpRequest.cs
- WebScriptClientGenerator.cs
- TextRunCacheImp.cs
- PageAdapter.cs
- DependencyObject.cs
- BitmapDecoder.cs
- BindingNavigator.cs
- ScaleTransform3D.cs
- ResourceReader.cs
- AmbiguousMatchException.cs
- CompositeControl.cs
- StringArrayEditor.cs
- CodeValidator.cs
- WrapPanel.cs
- UInt32.cs
- StrokeDescriptor.cs
- SetIterators.cs
- TdsParserSessionPool.cs
- CodeDomConfigurationHandler.cs
- GradientSpreadMethodValidation.cs
- JavascriptCallbackBehaviorAttribute.cs
- Quaternion.cs
- ControlParameter.cs
- InputLanguage.cs
- IndentTextWriter.cs
- EncryptedKey.cs
- SchemaImporter.cs