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
- ParameterEditorUserControl.cs
- DrawingAttributesDefaultValueFactory.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- UpdateEventArgs.cs
- RequiredAttributeAttribute.cs
- EmbeddedMailObjectsCollection.cs
- StopStoryboard.cs
- UrlMappingCollection.cs
- TemplateBindingExtension.cs
- BinaryObjectWriter.cs
- ToolStripMenuItemDesigner.cs
- ClientProxyGenerator.cs
- FormViewInsertEventArgs.cs
- SspiNegotiationTokenAuthenticator.cs
- FileSecurity.cs
- SetterBaseCollection.cs
- SamlEvidence.cs
- Cloud.cs
- MemoryStream.cs
- MultilineStringConverter.cs
- X509Utils.cs
- InputMethodStateChangeEventArgs.cs
- MouseActionValueSerializer.cs
- Comparer.cs
- FocusTracker.cs
- documentsequencetextpointer.cs
- RSAPKCS1SignatureFormatter.cs
- CachingHintValidation.cs
- DataView.cs
- ContextMenuStrip.cs
- SecurityCriticalDataForSet.cs
- HwndAppCommandInputProvider.cs
- SimpleTypesSurrogate.cs
- ConfigurationProperty.cs
- SoapCodeExporter.cs
- PipeSecurity.cs
- XpsViewerException.cs
- XmlExtensionFunction.cs
- StackSpiller.cs
- ActivitySurrogateSelector.cs
- TextTreeExtractElementUndoUnit.cs
- LayoutEngine.cs
- SHA512.cs
- CallbackHandler.cs
- AccessibilityApplicationManager.cs
- DbConvert.cs
- SystemFonts.cs
- NumericUpDownAcceleration.cs
- CreateUserWizardAutoFormat.cs
- ProcessThreadCollection.cs
- ItemCollection.cs
- CompositeFontInfo.cs
- DropDownHolder.cs
- WindowsPrincipal.cs
- COM2FontConverter.cs
- MembershipPasswordException.cs
- securitycriticaldataClass.cs
- SAPIEngineTypes.cs
- InternalResources.cs
- Adorner.cs
- DecimalStorage.cs
- DrawingVisual.cs
- ResolvedKeyFrameEntry.cs
- PrintPageEvent.cs
- WeakEventManager.cs
- DataPagerField.cs
- MatrixAnimationUsingPath.cs
- AuthenticationSection.cs
- OraclePermission.cs
- CurrentChangingEventManager.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- UIPermission.cs
- DbParameterCollectionHelper.cs
- GetUserPreferenceRequest.cs
- CompilerErrorCollection.cs
- MetadataPropertyvalue.cs
- DataExchangeServiceBinder.cs
- ReadOnlyDataSource.cs
- ReadOnlyHierarchicalDataSource.cs
- StructuralObject.cs
- MatrixTransform.cs
- StreamWriter.cs
- DataGridViewCellStyleConverter.cs
- DateTimeFormat.cs
- ServiceNameCollection.cs
- SnapshotChangeTrackingStrategy.cs
- SmtpNetworkElement.cs
- TileBrush.cs
- UnknownBitmapDecoder.cs
- Rectangle.cs
- TargetPerspective.cs
- WebScriptMetadataMessageEncoderFactory.cs
- UniformGrid.cs
- PrivateFontCollection.cs
- EdmValidator.cs
- QueueProcessor.cs
- XmlSchemaParticle.cs
- Module.cs
- AccessorTable.cs
- _ConnectStream.cs