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
- DataGridViewComboBoxEditingControl.cs
- ADConnectionHelper.cs
- AcceleratedTokenProviderState.cs
- ErrorReporting.cs
- AddInIpcChannel.cs
- WinFormsSpinner.cs
- CmsUtils.cs
- CollectionChangeEventArgs.cs
- DoubleStorage.cs
- codemethodreferenceexpression.cs
- Point3D.cs
- ModifyActivitiesPropertyDescriptor.cs
- Monitor.cs
- WindowHideOrCloseTracker.cs
- RedistVersionInfo.cs
- ContainerSelectorBehavior.cs
- DbProviderServices.cs
- InfoCardAsymmetricCrypto.cs
- GlobalizationAssembly.cs
- WindowsComboBox.cs
- FactoryRecord.cs
- ShapeTypeface.cs
- KeyedHashAlgorithm.cs
- TextEditorSpelling.cs
- SafeHandles.cs
- FormViewRow.cs
- CompensationTokenData.cs
- cookiecollection.cs
- SqlReferenceCollection.cs
- Interlocked.cs
- XComponentModel.cs
- PersonalizationStateQuery.cs
- XmlFormatReaderGenerator.cs
- LOSFormatter.cs
- DatePickerDateValidationErrorEventArgs.cs
- Baml2006ReaderFrame.cs
- EnvelopedSignatureTransform.cs
- SafeNativeMethodsCLR.cs
- DockPattern.cs
- MultilineStringConverter.cs
- Debugger.cs
- RuntimeWrappedException.cs
- LongMinMaxAggregationOperator.cs
- MessageRpc.cs
- WebPartEditorCancelVerb.cs
- StaticExtension.cs
- SspiSecurityTokenParameters.cs
- WebPartMenuStyle.cs
- InputReportEventArgs.cs
- TimeSpanValidatorAttribute.cs
- Fault.cs
- VerificationException.cs
- DataGridViewButtonCell.cs
- MasterPageParser.cs
- XmlToDatasetMap.cs
- OdbcConnectionFactory.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- ResponseStream.cs
- AutoGeneratedField.cs
- DynamicControlParameter.cs
- CreateUserWizardStep.cs
- SignatureGenerator.cs
- HttpCapabilitiesSectionHandler.cs
- BindingElementCollection.cs
- SafeRegistryHandle.cs
- BufferedGraphicsContext.cs
- SystemIdentity.cs
- CodeObjectCreateExpression.cs
- XamlTypeMapper.cs
- UpdateCompiler.cs
- ServerIdentity.cs
- XPathConvert.cs
- XamlFilter.cs
- TimeStampChecker.cs
- DataGridViewCellStyle.cs
- SparseMemoryStream.cs
- OdbcPermission.cs
- Point3DCollectionValueSerializer.cs
- TextBlockAutomationPeer.cs
- WorkerProcess.cs
- CryptoApi.cs
- ApplicationServicesHostFactory.cs
- NotifyCollectionChangedEventArgs.cs
- ObjectMemberMapping.cs
- DispatcherExceptionFilterEventArgs.cs
- WebServiceData.cs
- PolyLineSegment.cs
- StrongNameKeyPair.cs
- ImmComposition.cs
- DbSource.cs
- RefreshResponseInfo.cs
- Hex.cs
- DebugHandleTracker.cs
- SortKey.cs
- odbcmetadatacollectionnames.cs
- Trace.cs
- ThemeInfoAttribute.cs
- Pens.cs
- PreProcessInputEventArgs.cs
- InputBinder.cs