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
- CodeAccessPermission.cs
- DataStreamFromComStream.cs
- TemplatedEditableDesignerRegion.cs
- TdsParserStaticMethods.cs
- TdsRecordBufferSetter.cs
- webeventbuffer.cs
- PartialList.cs
- RequestDescription.cs
- DataGridViewCellValidatingEventArgs.cs
- TaskHelper.cs
- _OSSOCK.cs
- ImageListStreamer.cs
- TableLayoutPanelCodeDomSerializer.cs
- VectorCollectionConverter.cs
- ActiveXHelper.cs
- XmlBinaryReader.cs
- PreviewControlDesigner.cs
- LinqDataSourceView.cs
- brushes.cs
- XmlValueConverter.cs
- SqlDataSourceQueryEditor.cs
- xmlsaver.cs
- ClientCredentialsSecurityTokenManager.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- MemberExpression.cs
- PageAction.cs
- CheckBox.cs
- SimpleHandlerBuildProvider.cs
- WebDisplayNameAttribute.cs
- ElapsedEventArgs.cs
- SHA256.cs
- TransactionProxy.cs
- XmlDocumentSchema.cs
- FixedStringLookup.cs
- UiaCoreProviderApi.cs
- ChannelSinkStacks.cs
- X509Extension.cs
- linebase.cs
- DES.cs
- StaticTextPointer.cs
- WebExceptionStatus.cs
- Part.cs
- TextShapeableCharacters.cs
- MediaElement.cs
- EncodingInfo.cs
- EntityContainer.cs
- ExceptionRoutedEventArgs.cs
- UiaCoreApi.cs
- NamedPipeActivation.cs
- DataSetViewSchema.cs
- TableRowGroup.cs
- ListenerSessionConnectionReader.cs
- FilterRepeater.cs
- MULTI_QI.cs
- DataGridColumnFloatingHeader.cs
- PropertyEmitterBase.cs
- UnitySerializationHolder.cs
- StringUtil.cs
- EntityTypeBase.cs
- AsyncOperationManager.cs
- SqlConnectionHelper.cs
- LockCookie.cs
- PathNode.cs
- _emptywebproxy.cs
- Compilation.cs
- CodeSnippetExpression.cs
- ExternalException.cs
- ConfigXmlWhitespace.cs
- CounterSample.cs
- AsymmetricCryptoHandle.cs
- OdbcError.cs
- AudioBase.cs
- PartitionedStreamMerger.cs
- AnimationClock.cs
- QuaternionRotation3D.cs
- ApplicationSettingsBase.cs
- CapabilitiesState.cs
- Transform3DCollection.cs
- CollectionBase.cs
- WindowsListViewGroup.cs
- CompilerParameters.cs
- XmlQualifiedName.cs
- HttpHandlerAction.cs
- DynamicScriptObject.cs
- KeyProperty.cs
- TraceContext.cs
- BasicViewGenerator.cs
- WindowInteractionStateTracker.cs
- EntityContainerEmitter.cs
- VectorValueSerializer.cs
- FormViewPageEventArgs.cs
- ToolStripDropDownItem.cs
- SchemaTypeEmitter.cs
- _DynamicWinsockMethods.cs
- DebugView.cs
- XmlParserContext.cs
- ZipFileInfo.cs
- ProviderConnectionPoint.cs
- CompositeActivityTypeDescriptorProvider.cs
- Timer.cs