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
- RangeBase.cs
- DragStartedEventArgs.cs
- LiteralControl.cs
- ToolStripDropDownMenu.cs
- ClientConfigPaths.cs
- TextBox.cs
- SafeRegistryHandle.cs
- WinEventTracker.cs
- CalendarAutomationPeer.cs
- RawStylusActions.cs
- HttpHandlerAction.cs
- BitmapVisualManager.cs
- DiscardableAttribute.cs
- ProjectionRewriter.cs
- VirtualizingPanel.cs
- UnsafeNativeMethods.cs
- SafeBitVector32.cs
- TraceInternal.cs
- EllipticalNodeOperations.cs
- EventManager.cs
- PeerDefaultCustomResolverClient.cs
- TreeNodeStyleCollectionEditor.cs
- TargetException.cs
- HandlerFactoryWrapper.cs
- JournalEntry.cs
- AccessDataSourceView.cs
- JoinElimination.cs
- COAUTHINFO.cs
- VariableQuery.cs
- TypeBuilderInstantiation.cs
- DataGridCaption.cs
- DateRangeEvent.cs
- ContractMapping.cs
- PropagatorResult.cs
- BindValidationContext.cs
- MenuItem.cs
- WebPartConnectionsConnectVerb.cs
- DataTableMapping.cs
- LoginCancelEventArgs.cs
- BasicViewGenerator.cs
- AlternateViewCollection.cs
- DispatchWrapper.cs
- SplashScreen.cs
- TextDecorationCollectionConverter.cs
- DispatcherFrame.cs
- SimpleMailWebEventProvider.cs
- SafeProcessHandle.cs
- CharEntityEncoderFallback.cs
- FtpWebResponse.cs
- RegistryPermission.cs
- CellParaClient.cs
- WindowsTreeView.cs
- ScrollableControlDesigner.cs
- hresults.cs
- DetailsViewCommandEventArgs.cs
- TypeSystem.cs
- XmlSerializationWriter.cs
- ZipIOExtraFieldZip64Element.cs
- DataGridViewMethods.cs
- BookmarkWorkItem.cs
- ClassGenerator.cs
- UnsignedPublishLicense.cs
- CommonObjectSecurity.cs
- TextBoxRenderer.cs
- Char.cs
- WinOEToolBoxItem.cs
- CanExpandCollapseAllConverter.cs
- RectIndependentAnimationStorage.cs
- GridViewRowEventArgs.cs
- AnnotationObservableCollection.cs
- InkPresenterAutomationPeer.cs
- Thickness.cs
- GridViewColumnCollection.cs
- ImageDrawing.cs
- DBCSCodePageEncoding.cs
- ChildTable.cs
- VSWCFServiceContractGenerator.cs
- ObjectItemCollection.cs
- SizeConverter.cs
- ColorAnimationUsingKeyFrames.cs
- TextSelectionHelper.cs
- GradientStop.cs
- CompiledQueryCacheEntry.cs
- XAMLParseException.cs
- VisualStateChangedEventArgs.cs
- Brush.cs
- HitTestResult.cs
- Automation.cs
- UidManager.cs
- ZipArchive.cs
- TemplateBuilder.cs
- COM2PictureConverter.cs
- FileEnumerator.cs
- CodeTypeParameterCollection.cs
- DefaultParameterValueAttribute.cs
- NetCodeGroup.cs
- BindableTemplateBuilder.cs
- ViewLoader.cs
- ResourceKey.cs
- SafeFileMappingHandle.cs