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
- QueuePropertyVariants.cs
- Variable.cs
- OutputScopeManager.cs
- EditorZone.cs
- HttpCapabilitiesSectionHandler.cs
- UTF32Encoding.cs
- HttpValueCollection.cs
- ToolStripDesigner.cs
- FileDialogPermission.cs
- ToolstripProfessionalRenderer.cs
- CodeCatchClause.cs
- SchemaType.cs
- Geometry3D.cs
- QueuedDeliveryRequirementsMode.cs
- AbsoluteQuery.cs
- RuleSettingsCollection.cs
- BuildResult.cs
- WebUtil.cs
- Label.cs
- UserPersonalizationStateInfo.cs
- PageBuildProvider.cs
- XmlSubtreeReader.cs
- MouseBinding.cs
- MetadataUtilsSmi.cs
- GrammarBuilderWildcard.cs
- SqlFacetAttribute.cs
- DesignTimeVisibleAttribute.cs
- NetworkAddressChange.cs
- XmlSerializerAssemblyAttribute.cs
- CodeDirectionExpression.cs
- ContentPlaceHolder.cs
- ControlValuePropertyAttribute.cs
- BamlRecordHelper.cs
- RequestBringIntoViewEventArgs.cs
- StringUtil.cs
- VoiceObjectToken.cs
- MatrixConverter.cs
- EDesignUtil.cs
- StorageRoot.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- TriggerAction.cs
- CodeNamespaceImport.cs
- ProgressBar.cs
- ScrollBarAutomationPeer.cs
- ProgressBarRenderer.cs
- Separator.cs
- GridViewRowPresenterBase.cs
- ContainerUtilities.cs
- ReferenceConverter.cs
- DbExpressionBuilder.cs
- Site.cs
- DocumentApplicationJournalEntry.cs
- AsyncDataRequest.cs
- Parameter.cs
- DataGridTable.cs
- BaseResourcesBuildProvider.cs
- InternalPermissions.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- XpsSerializationManagerAsync.cs
- JoinCqlBlock.cs
- Filter.cs
- LicenseManager.cs
- ContentElement.cs
- DataGridItem.cs
- BooleanKeyFrameCollection.cs
- WMICapabilities.cs
- InternalPermissions.cs
- DesignerInterfaces.cs
- input.cs
- EntityObject.cs
- GraphicsPath.cs
- XmlValidatingReader.cs
- RC2CryptoServiceProvider.cs
- FontStyleConverter.cs
- XpsViewerException.cs
- HostingPreferredMapPath.cs
- CriticalHandle.cs
- CopyAction.cs
- DependencyPropertyKind.cs
- ConfigXmlSignificantWhitespace.cs
- DesignSurfaceEvent.cs
- ReadOnlyPropertyMetadata.cs
- WebPartConnectionCollection.cs
- Tablet.cs
- DocumentXPathNavigator.cs
- NumberSubstitution.cs
- EdmConstants.cs
- PipelineModuleStepContainer.cs
- sqlnorm.cs
- ObjectSet.cs
- X509UI.cs
- ClonableStack.cs
- DynamicDataExtensions.cs
- DrawingAttributeSerializer.cs
- MouseGestureValueSerializer.cs
- _SslStream.cs
- TabletDevice.cs
- DiscreteKeyFrames.cs
- Identity.cs
- CursorConverter.cs