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
- TraceSection.cs
- DictionaryEntry.cs
- Menu.cs
- Simplifier.cs
- ListControl.cs
- ParamArrayAttribute.cs
- CompiledIdentityConstraint.cs
- EmptyReadOnlyDictionaryInternal.cs
- XmlNamespaceManager.cs
- SystemMulticastIPAddressInformation.cs
- EntityDataSourceConfigureObjectContext.cs
- SqlDataSource.cs
- AnimationException.cs
- MouseActionValueSerializer.cs
- SymbolMethod.cs
- TaiwanLunisolarCalendar.cs
- MatrixAnimationUsingKeyFrames.cs
- Matrix.cs
- MonthChangedEventArgs.cs
- WindowsGraphics2.cs
- FontCacheLogic.cs
- SByteConverter.cs
- EncodingDataItem.cs
- SafeFileMappingHandle.cs
- TextBox.cs
- CodeExpressionStatement.cs
- GradientBrush.cs
- XAMLParseException.cs
- ColumnCollectionEditor.cs
- Logging.cs
- EffectiveValueEntry.cs
- FileSystemEnumerable.cs
- DataDocumentXPathNavigator.cs
- VirtualizingPanel.cs
- PrePrepareMethodAttribute.cs
- SystemIcmpV6Statistics.cs
- SiteMembershipCondition.cs
- FactoryId.cs
- TemplateEditingService.cs
- MonthChangedEventArgs.cs
- UpdateExpressionVisitor.cs
- SizeAnimationClockResource.cs
- ButtonFieldBase.cs
- CmsInterop.cs
- CollectionViewSource.cs
- PeerNameRecordCollection.cs
- HttpServerChannel.cs
- SessionSwitchEventArgs.cs
- ArraySegment.cs
- CheckBoxList.cs
- MarkupProperty.cs
- ColumnHeaderConverter.cs
- XPathItem.cs
- GridViewActionList.cs
- SimpleTextLine.cs
- RectangleHotSpot.cs
- ScrollChrome.cs
- StaticExtension.cs
- PageClientProxyGenerator.cs
- XmlSiteMapProvider.cs
- DataSetFieldSchema.cs
- ConsoleCancelEventArgs.cs
- Label.cs
- Substitution.cs
- NamespaceExpr.cs
- XmlLangPropertyAttribute.cs
- DataGridViewDataErrorEventArgs.cs
- QilPatternVisitor.cs
- AxHost.cs
- SQLCharsStorage.cs
- RichTextBox.cs
- TypeDescriptor.cs
- Form.cs
- PersonalizationProviderHelper.cs
- IERequestCache.cs
- BaseDataBoundControl.cs
- QueuePropertyVariants.cs
- DynamicDiscoSearcher.cs
- HtmlTableCell.cs
- TabControlAutomationPeer.cs
- CodeAssignStatement.cs
- StylusPointProperty.cs
- SoapSchemaExporter.cs
- PartitionedStream.cs
- UrlEncodedParameterWriter.cs
- Evidence.cs
- ThreadExceptionEvent.cs
- AssemblyFilter.cs
- ScriptModule.cs
- InvalidCastException.cs
- HttpCacheVaryByContentEncodings.cs
- RemotingServices.cs
- TimeStampChecker.cs
- AnnotationMap.cs
- FlowDocument.cs
- PublisherMembershipCondition.cs
- RegistryKey.cs
- PrtCap_Builder.cs
- NamespaceCollection.cs
- EntityCommandDefinition.cs