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
- InputLanguageManager.cs
- DBSchemaRow.cs
- ProgressBar.cs
- DataGridState.cs
- ToolStripTextBox.cs
- FolderLevelBuildProviderCollection.cs
- ProviderIncompatibleException.cs
- KeyboardEventArgs.cs
- DefaultBindingPropertyAttribute.cs
- SmiRecordBuffer.cs
- SqlMethods.cs
- Span.cs
- JapaneseLunisolarCalendar.cs
- FormViewDeletedEventArgs.cs
- BaseParser.cs
- SoapSchemaImporter.cs
- FixedPageStructure.cs
- SharedStatics.cs
- CustomAttributeFormatException.cs
- SafeProcessHandle.cs
- sqlpipe.cs
- HtmlInputHidden.cs
- MultipartContentParser.cs
- PolicyStatement.cs
- AvTrace.cs
- UpdatableWrapper.cs
- PenContext.cs
- BCLDebug.cs
- RelativeSource.cs
- DataSourceXmlTextReader.cs
- DataGridViewColumnEventArgs.cs
- VirtualPathProvider.cs
- ExpandCollapsePattern.cs
- XmlAttribute.cs
- SoapExtensionTypeElement.cs
- GroupQuery.cs
- UndoManager.cs
- HttpProfileGroupBase.cs
- TreeWalkHelper.cs
- UInt32Storage.cs
- DefaultWorkflowSchedulerService.cs
- ColumnMapProcessor.cs
- Splitter.cs
- BitmapEffectState.cs
- XmlSchemaImporter.cs
- ping.cs
- Attributes.cs
- DispatchChannelSink.cs
- NameValueSectionHandler.cs
- QilDataSource.cs
- ColorKeyFrameCollection.cs
- MD5HashHelper.cs
- WeakEventTable.cs
- VisualCollection.cs
- WmfPlaceableFileHeader.cs
- DataKeyCollection.cs
- CultureTableRecord.cs
- Debug.cs
- CodeDomDesignerLoader.cs
- HtmlInputControl.cs
- Control.cs
- LicenseException.cs
- EmptyTextWriter.cs
- TextDecoration.cs
- DnsEndPoint.cs
- WindowsListBox.cs
- HealthMonitoringSection.cs
- ExeContext.cs
- SlotInfo.cs
- QilPatternFactory.cs
- ApplicationTrust.cs
- XsltSettings.cs
- AnimationStorage.cs
- AlgoModule.cs
- WebPartEditVerb.cs
- ListViewInsertionMark.cs
- SynchronizedChannelCollection.cs
- Utils.cs
- xmlsaver.cs
- Trace.cs
- StorageEndPropertyMapping.cs
- WebException.cs
- WebPartConnectionsEventArgs.cs
- GACIdentityPermission.cs
- InvalidDataException.cs
- SelectionProcessor.cs
- WebControlAdapter.cs
- OdbcCommand.cs
- EnvironmentPermission.cs
- TypedTableBase.cs
- DeferredSelectedIndexReference.cs
- FillErrorEventArgs.cs
- ListBindableAttribute.cs
- LineUtil.cs
- XsltConvert.cs
- EpmSyndicationContentSerializer.cs
- QuaternionAnimation.cs
- AjaxFrameworkAssemblyAttribute.cs
- AlphabeticalEnumConverter.cs
- ObjectStateManagerMetadata.cs