Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / XmlTypeAttribute.cs / 1305376 / 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
- _ServiceNameStore.cs
- PathFigureCollectionValueSerializer.cs
- NullReferenceException.cs
- SerializableAttribute.cs
- CodeSnippetExpression.cs
- SByteConverter.cs
- Rfc2898DeriveBytes.cs
- RectConverter.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- bidPrivateBase.cs
- CodeAttachEventStatement.cs
- PropertyTabChangedEvent.cs
- AutoGeneratedFieldProperties.cs
- ManagedWndProcTracker.cs
- WebRequest.cs
- KeyTime.cs
- ListSortDescription.cs
- WindowsToolbarItemAsMenuItem.cs
- DataGridViewDataConnection.cs
- Math.cs
- Baml2006Reader.cs
- NavigationEventArgs.cs
- StringDictionaryCodeDomSerializer.cs
- PersistChildrenAttribute.cs
- IPAddress.cs
- IndexingContentUnit.cs
- ClipboardProcessor.cs
- ChangePassword.cs
- EntityDescriptor.cs
- DataSetUtil.cs
- MemberPath.cs
- ThreadAttributes.cs
- OdbcEnvironmentHandle.cs
- TransformPatternIdentifiers.cs
- MasterPage.cs
- Pkcs9Attribute.cs
- ApplicationFileCodeDomTreeGenerator.cs
- HtmlUtf8RawTextWriter.cs
- InfoCardRSACryptoProvider.cs
- WorkflowServiceAttributesTypeConverter.cs
- DataGridViewColumnConverter.cs
- MessagingActivityHelper.cs
- TextDecorations.cs
- SiteMapDataSource.cs
- ObjectDataSourceChooseTypePanel.cs
- DWriteFactory.cs
- CacheChildrenQuery.cs
- XmlQueryType.cs
- versioninfo.cs
- DataGridClipboardHelper.cs
- EventToken.cs
- CodeDelegateCreateExpression.cs
- FusionWrap.cs
- GenericTypeParameterBuilder.cs
- StorageMappingFragment.cs
- ProfileEventArgs.cs
- StateFinalizationDesigner.cs
- LicenseContext.cs
- ContextQuery.cs
- SqlClientMetaDataCollectionNames.cs
- ChooseAction.cs
- ToolStripDropDown.cs
- TypeConverter.cs
- ImpersonationOption.cs
- NumberSubstitution.cs
- altserialization.cs
- AssertHelper.cs
- UITypeEditor.cs
- TypeDelegator.cs
- BamlTreeMap.cs
- TraceSection.cs
- ReferentialConstraint.cs
- AsyncPostBackErrorEventArgs.cs
- DBCSCodePageEncoding.cs
- CorrelationValidator.cs
- Keywords.cs
- Icon.cs
- UpDownBase.cs
- HtmlLink.cs
- StatusBarItemAutomationPeer.cs
- WorkflowRuntimeBehavior.cs
- Int64Animation.cs
- OdbcConnectionOpen.cs
- QueryCreatedEventArgs.cs
- CustomErrorsSection.cs
- ParseElement.cs
- RoleService.cs
- XamlSerializationHelper.cs
- OperationAbortedException.cs
- Baml2006SchemaContext.cs
- InvokeProviderWrapper.cs
- BindingOperations.cs
- RolePrincipal.cs
- WebDescriptionAttribute.cs
- InputDevice.cs
- NotifyCollectionChangedEventArgs.cs
- EventDescriptor.cs
- SqlDeflator.cs
- AssemblyCache.cs
- StateChangeEvent.cs