Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / XmlChoiceIdentifierAttribute.cs / 1305376 / XmlChoiceIdentifierAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Serialization { using System; using System.Xml.Schema; #if SILVERLIGHT // For XmlSerializer using System.Reflection; #endif ////// /// [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple=false)] public class XmlChoiceIdentifierAttribute : System.Attribute { string name; #if SILVERLIGHT // For XmlSerializer MemberInfo memberInfo; #endif ///[To be supplied.] ////// /// public XmlChoiceIdentifierAttribute() { } ///[To be supplied.] ////// /// public XmlChoiceIdentifierAttribute(string name) { this.name = name; } ///[To be supplied.] ////// /// public string MemberName { get { return name == null ? string.Empty : name; } set { name = value; } } #if SILVERLIGHT // For XmlSerializer internal MemberInfo MemberInfo { get { return memberInfo; } set { memberInfo = value; } } #endif } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Serialization { using System; using System.Xml.Schema; #if SILVERLIGHT // For XmlSerializer using System.Reflection; #endif ////// /// [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple=false)] public class XmlChoiceIdentifierAttribute : System.Attribute { string name; #if SILVERLIGHT // For XmlSerializer MemberInfo memberInfo; #endif ///[To be supplied.] ////// /// public XmlChoiceIdentifierAttribute() { } ///[To be supplied.] ////// /// public XmlChoiceIdentifierAttribute(string name) { this.name = name; } ///[To be supplied.] ////// /// public string MemberName { get { return name == null ? string.Empty : name; } set { name = value; } } #if SILVERLIGHT // For XmlSerializer internal MemberInfo MemberInfo { get { return memberInfo; } set { memberInfo = value; } } #endif } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlNodeList.cs
- ThemeDictionaryExtension.cs
- WinFormsSpinner.cs
- PngBitmapEncoder.cs
- SystemMulticastIPAddressInformation.cs
- ToolStripRendererSwitcher.cs
- ArrayTypeMismatchException.cs
- CombinedGeometry.cs
- ItemsPanelTemplate.cs
- InvalidDataException.cs
- MetadataArtifactLoaderResource.cs
- OuterGlowBitmapEffect.cs
- Accessible.cs
- SchemaObjectWriter.cs
- TextCollapsingProperties.cs
- CleanUpVirtualizedItemEventArgs.cs
- ObservableDictionary.cs
- TypeForwardedToAttribute.cs
- AdCreatedEventArgs.cs
- ByteBufferPool.cs
- InlinedLocationReference.cs
- TraceContext.cs
- PaintValueEventArgs.cs
- UserInitiatedNavigationPermission.cs
- FamilyTypeface.cs
- ColorBuilder.cs
- ModelPerspective.cs
- SevenBitStream.cs
- XamlTemplateSerializer.cs
- DbUpdateCommandTree.cs
- ToolBarOverflowPanel.cs
- ServiceDescriptionReflector.cs
- ConfigurationSchemaErrors.cs
- Helpers.cs
- ModelItemDictionary.cs
- CommonRemoteMemoryBlock.cs
- _NegoStream.cs
- Header.cs
- GPRECTF.cs
- CryptoConfig.cs
- ValuePattern.cs
- AsyncResult.cs
- WindowsRebar.cs
- Decorator.cs
- DataControlPagerLinkButton.cs
- SubMenuStyle.cs
- ObjectQuery_EntitySqlExtensions.cs
- HebrewNumber.cs
- SystemSounds.cs
- HtmlInputCheckBox.cs
- TextTreeFixupNode.cs
- Fault.cs
- Transform.cs
- ConnectionProviderAttribute.cs
- Utils.cs
- AssociatedControlConverter.cs
- XsltException.cs
- AppSettingsSection.cs
- Vector3DConverter.cs
- HostedTransportConfigurationManager.cs
- wgx_render.cs
- XmlCompatibilityReader.cs
- QilBinary.cs
- XmlSerializableWriter.cs
- UpdateCommand.cs
- GZipObjectSerializer.cs
- safelinkcollection.cs
- MonthChangedEventArgs.cs
- EntitySetDataBindingList.cs
- Mappings.cs
- XamlWriter.cs
- MenuCommandsChangedEventArgs.cs
- HeaderCollection.cs
- TrackingDataItem.cs
- BaseParser.cs
- ProcessModuleCollection.cs
- SqlDataSourceConnectionPanel.cs
- MultipartIdentifier.cs
- ADMembershipUser.cs
- _SslSessionsCache.cs
- SemanticAnalyzer.cs
- DataGridViewHeaderCell.cs
- XhtmlCssHandler.cs
- ConfigurationManagerInternalFactory.cs
- ConfigurationManagerHelperFactory.cs
- ConfigDefinitionUpdates.cs
- KeyTimeConverter.cs
- Menu.cs
- MatrixValueSerializer.cs
- ManualResetEvent.cs
- SafeNativeMethods.cs
- FontWeights.cs
- SystemBrushes.cs
- AssemblyHash.cs
- BeginEvent.cs
- TabControlAutomationPeer.cs
- EdmConstants.cs
- PersonalizablePropertyEntry.cs
- XmlSchemaNotation.cs
- CapacityStreamGeometryContext.cs