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
- TransformDescriptor.cs
- Control.cs
- HtmlInputButton.cs
- httpapplicationstate.cs
- TypeNameHelper.cs
- HitTestParameters3D.cs
- Internal.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- FormViewDeleteEventArgs.cs
- PrivilegedConfigurationManager.cs
- CheckBoxRenderer.cs
- CustomAttributeFormatException.cs
- NullRuntimeConfig.cs
- ToolStripDesigner.cs
- DependencyPropertyKey.cs
- TextRenderer.cs
- NullableFloatMinMaxAggregationOperator.cs
- ObjectParameter.cs
- StringWriter.cs
- UnauthorizedWebPart.cs
- NativeMethods.cs
- EncodingDataItem.cs
- EventProxy.cs
- DataGridDesigner.cs
- SchemaElement.cs
- Clock.cs
- OperationResponse.cs
- FrugalMap.cs
- HttpSessionStateWrapper.cs
- StylusPointProperties.cs
- CombinedGeometry.cs
- CodeArgumentReferenceExpression.cs
- VectorCollectionValueSerializer.cs
- DisplayNameAttribute.cs
- PolyLineSegment.cs
- TextContainerChangedEventArgs.cs
- UnsafeCollabNativeMethods.cs
- mda.cs
- FormatterServices.cs
- ReverseInheritProperty.cs
- Pens.cs
- FloaterBaseParaClient.cs
- XPathConvert.cs
- ProfessionalColors.cs
- InstanceHandleReference.cs
- ListDataBindEventArgs.cs
- MultiDataTrigger.cs
- Rfc2898DeriveBytes.cs
- _TransmitFileOverlappedAsyncResult.cs
- AccessText.cs
- InputBuffer.cs
- AliasGenerator.cs
- XmlAtomicValue.cs
- COM2PictureConverter.cs
- Assert.cs
- SocketAddress.cs
- SiteMap.cs
- WrappedDispatcherException.cs
- TypeResolver.cs
- SoapAttributes.cs
- ContentValidator.cs
- PerformanceCounterNameAttribute.cs
- ReadOnlyAttribute.cs
- Misc.cs
- GPRECT.cs
- GeometryDrawing.cs
- Mutex.cs
- WebPartTransformerCollection.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- PackageRelationshipCollection.cs
- Application.cs
- AsyncResult.cs
- IconConverter.cs
- StorageMappingItemLoader.cs
- ColorConverter.cs
- ProfileSettings.cs
- Button.cs
- Literal.cs
- UnsafeNativeMethodsCLR.cs
- DispatcherFrame.cs
- NameValueConfigurationCollection.cs
- UrlPath.cs
- DocumentApplication.cs
- RoleGroup.cs
- IsolatedStorageFile.cs
- FloatAverageAggregationOperator.cs
- ISAPIWorkerRequest.cs
- StreamedWorkflowDefinitionContext.cs
- dataSvcMapFileLoader.cs
- CryptographicAttribute.cs
- RenamedEventArgs.cs
- coordinatorfactory.cs
- EntityDataSource.cs
- SessionEndingEventArgs.cs
- SiteMap.cs
- XmlComment.cs
- FastEncoderWindow.cs
- RC2CryptoServiceProvider.cs
- RootAction.cs
- DbProviderServices.cs