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
- CopyCodeAction.cs
- PersonalizationEntry.cs
- NavigationEventArgs.cs
- LineGeometry.cs
- SignatureDescription.cs
- WaveHeader.cs
- DBDataPermission.cs
- BooleanProjectedSlot.cs
- HttpRequestTraceRecord.cs
- ManagementObject.cs
- StreamReader.cs
- OuterGlowBitmapEffect.cs
- CheckPair.cs
- MobileComponentEditorPage.cs
- HttpDictionary.cs
- FrameworkEventSource.cs
- XmlSchemaGroupRef.cs
- ElementAction.cs
- ObjRef.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- DataGridViewCellMouseEventArgs.cs
- TdsParserStateObject.cs
- WebRequestModuleElement.cs
- KeyValuePairs.cs
- GridViewDesigner.cs
- MessageLoggingFilterTraceRecord.cs
- CodeAttributeDeclaration.cs
- FixedSOMPage.cs
- WebRequestModuleElement.cs
- MimeWriter.cs
- BufferedStream.cs
- MobileUserControlDesigner.cs
- ChangeConflicts.cs
- ProgressBar.cs
- AssemblyResolver.cs
- BrowserDefinitionCollection.cs
- NamedPipeAppDomainProtocolHandler.cs
- UnsafeNativeMethods.cs
- SiteMap.cs
- ToolStripDropDownItem.cs
- XPathNodeList.cs
- HandlerFactoryWrapper.cs
- DelegateHelpers.Generated.cs
- TcpSocketManager.cs
- NumericExpr.cs
- TreeNode.cs
- RelatedImageListAttribute.cs
- PageOutputColor.cs
- SafeNativeMethods.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- StickyNoteAnnotations.cs
- File.cs
- _NestedMultipleAsyncResult.cs
- StringResourceManager.cs
- GridLength.cs
- EndpointAddress10.cs
- WebPartZoneBase.cs
- XmlAttributes.cs
- MissingManifestResourceException.cs
- UserControlAutomationPeer.cs
- TogglePattern.cs
- InvalidProgramException.cs
- PropertyMap.cs
- Point3DCollectionValueSerializer.cs
- LicFileLicenseProvider.cs
- StyleCollection.cs
- PropertyDescriptor.cs
- DataGridHeaderBorder.cs
- HierarchicalDataSourceDesigner.cs
- FileNameEditor.cs
- WindowsScrollBarBits.cs
- DetailsViewModeEventArgs.cs
- AppSettingsReader.cs
- ProfileWorkflowElement.cs
- AdapterDictionary.cs
- RequestCacheValidator.cs
- SystemBrushes.cs
- CharacterShapingProperties.cs
- DeferredTextReference.cs
- AuthenticationModuleElement.cs
- InstanceHandleReference.cs
- SafeFileMappingHandle.cs
- GeneralTransform3DCollection.cs
- XmlIncludeAttribute.cs
- QueryCacheManager.cs
- RemotingException.cs
- StringToken.cs
- OperationPerformanceCounters.cs
- WinFormsSpinner.cs
- CompressionTracing.cs
- SessionPageStatePersister.cs
- TraceXPathNavigator.cs
- CodeArrayCreateExpression.cs
- PathGeometry.cs
- XmlObjectSerializer.cs
- FamilyCollection.cs
- WorkflowQueuingService.cs
- GiveFeedbackEventArgs.cs
- DrawingServices.cs
- TagPrefixCollection.cs