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 / XmlTypeAttribute.cs / 1 / XmlTypeAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
namespace System.Xml.Serialization {
using System;
///
///
/// [To be supplied.]
///
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Interface | AttributeTargets.Struct)]
public class XmlTypeAttribute : System.Attribute {
bool includeInSchema = true;
bool anonymousType;
string ns;
string typeName;
///
///
/// [To be supplied.]
///
public XmlTypeAttribute() {
}
///
///
/// [To be supplied.]
///
public XmlTypeAttribute(string typeName) {
this.typeName = typeName;
}
///
///
/// [To be supplied.]
///
public bool AnonymousType {
get { return anonymousType; }
set { anonymousType = value; }
}
///
///
/// [To be supplied.]
///
public bool IncludeInSchema {
get { return includeInSchema; }
set { includeInSchema = value; }
}
///
///
/// [To be supplied.]
///
public string TypeName {
get { return typeName == null ? string.Empty : typeName; }
set { typeName = value; }
}
///
///
/// [To be supplied.]
///
public string Namespace {
get { return ns; }
set { ns = value; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
namespace System.Xml.Serialization {
using System;
///
///
/// [To be supplied.]
///
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Interface | AttributeTargets.Struct)]
public class XmlTypeAttribute : System.Attribute {
bool includeInSchema = true;
bool anonymousType;
string ns;
string typeName;
///
///
/// [To be supplied.]
///
public XmlTypeAttribute() {
}
///
///
/// [To be supplied.]
///
public XmlTypeAttribute(string typeName) {
this.typeName = typeName;
}
///
///
/// [To be supplied.]
///
public bool AnonymousType {
get { return anonymousType; }
set { anonymousType = value; }
}
///
///
/// [To be supplied.]
///
public bool IncludeInSchema {
get { return includeInSchema; }
set { includeInSchema = value; }
}
///
///
/// [To be supplied.]
///
public string TypeName {
get { return typeName == null ? string.Empty : typeName; }
set { typeName = value; }
}
///
///
/// [To be supplied.]
///
public string Namespace {
get { return ns; }
set { ns = value; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RtfToXamlLexer.cs
- SafeCancelMibChangeNotify.cs
- OleDbSchemaGuid.cs
- TagNameToTypeMapper.cs
- ErrorProvider.cs
- XmlConvert.cs
- Point4D.cs
- ControlDesignerState.cs
- WebConfigurationHostFileChange.cs
- ObjectAssociationEndMapping.cs
- PageBreakRecord.cs
- DataColumn.cs
- OracleDateTime.cs
- DockPanel.cs
- FaultCode.cs
- DiffuseMaterial.cs
- SrgsRule.cs
- OperatorExpressions.cs
- PenThread.cs
- TypeExtensions.cs
- CancellationToken.cs
- XPathNodePointer.cs
- BinaryNode.cs
- WebPartEditVerb.cs
- FileVersion.cs
- Geometry3D.cs
- Rijndael.cs
- Utils.cs
- RoleGroup.cs
- Inflater.cs
- WmlCommandAdapter.cs
- SecurityManager.cs
- SAPICategories.cs
- ItemsControl.cs
- ThreadStartException.cs
- FeatureSupport.cs
- CacheDependency.cs
- EqualityArray.cs
- CmsUtils.cs
- BitmapEffect.cs
- nulltextnavigator.cs
- RequestCachePolicyConverter.cs
- OdbcConnection.cs
- PointHitTestResult.cs
- WebServiceReceiveDesigner.cs
- webeventbuffer.cs
- DataSourceSelectArguments.cs
- BorderGapMaskConverter.cs
- ToolStripDropDownClosingEventArgs.cs
- PersonalizationAdministration.cs
- Errors.cs
- DockProviderWrapper.cs
- HwndSubclass.cs
- Duration.cs
- WeakReference.cs
- UserNameSecurityTokenAuthenticator.cs
- Confirm.cs
- OperationContextScope.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- Types.cs
- CustomAttributeSerializer.cs
- DataColumn.cs
- ScaleTransform3D.cs
- TraceLevelStore.cs
- FullTextBreakpoint.cs
- SslStream.cs
- HttpCookie.cs
- SamlEvidence.cs
- FileFormatException.cs
- CfgParser.cs
- SessionEndingCancelEventArgs.cs
- SharedUtils.cs
- XMLUtil.cs
- MenuItem.cs
- ConfigurationValue.cs
- OdbcDataReader.cs
- TraceHandler.cs
- TransformConverter.cs
- DateTimeValueSerializer.cs
- WebRequest.cs
- AssociationSet.cs
- MarkedHighlightComponent.cs
- ReadOnlyDataSource.cs
- FormClosedEvent.cs
- BuildProvider.cs
- WorkflowApplication.cs
- Number.cs
- ComplexObject.cs
- Operator.cs
- GuidelineCollection.cs
- ICspAsymmetricAlgorithm.cs
- SqlClientFactory.cs
- MenuItemBinding.cs
- CertificateManager.cs
- UInt32Storage.cs
- PanelDesigner.cs
- ConsumerConnectionPoint.cs
- RequestQueryParser.cs
- Lasso.cs
- ToolStripContentPanel.cs