Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / XmlAttributeOverrides.cs / 1305376 / XmlAttributeOverrides.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Serialization { using System.Reflection; using System.Collections; using System.IO; using System.Xml.Schema; using System; using System.ComponentModel; ////// /// public class XmlAttributeOverrides { Hashtable types = new Hashtable(); ///[To be supplied.] ////// /// public void Add(Type type, XmlAttributes attributes) { Add(type, string.Empty, attributes); } ///[To be supplied.] ////// /// public void Add(Type type, string member, XmlAttributes attributes) { Hashtable members = (Hashtable)types[type]; if (members == null) { members = new Hashtable(); types.Add(type, members); } else if (members[member] != null) { throw new InvalidOperationException(Res.GetString(Res.XmlAttributeSetAgain, type.FullName, member)); } members.Add(member, attributes); } ///[To be supplied.] ////// /// public XmlAttributes this[Type type] { get { return this[type, string.Empty]; } } ///[To be supplied.] ////// /// public XmlAttributes this[Type type, string member] { get { Hashtable members = (Hashtable)types[type]; if (members == null) return null; return (XmlAttributes)members[member]; } } } } // 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.Reflection; using System.Collections; using System.IO; using System.Xml.Schema; using System; using System.ComponentModel; ////// /// public class XmlAttributeOverrides { Hashtable types = new Hashtable(); ///[To be supplied.] ////// /// public void Add(Type type, XmlAttributes attributes) { Add(type, string.Empty, attributes); } ///[To be supplied.] ////// /// public void Add(Type type, string member, XmlAttributes attributes) { Hashtable members = (Hashtable)types[type]; if (members == null) { members = new Hashtable(); types.Add(type, members); } else if (members[member] != null) { throw new InvalidOperationException(Res.GetString(Res.XmlAttributeSetAgain, type.FullName, member)); } members.Add(member, attributes); } ///[To be supplied.] ////// /// public XmlAttributes this[Type type] { get { return this[type, string.Empty]; } } ///[To be supplied.] ////// /// public XmlAttributes this[Type type, string member] { get { Hashtable members = (Hashtable)types[type]; if (members == null) return null; return (XmlAttributes)members[member]; } } } } // 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
- SqlDataRecord.cs
- ScopelessEnumAttribute.cs
- TextChangedEventArgs.cs
- StrokeIntersection.cs
- ConsumerConnectionPointCollection.cs
- MethodToken.cs
- XmlSchemaComplexContentExtension.cs
- LinkedResourceCollection.cs
- MemberMemberBinding.cs
- MenuItemBindingCollection.cs
- DefaultAssemblyResolver.cs
- KernelTypeValidation.cs
- XmlComment.cs
- PropertyPath.cs
- ComponentResourceKeyConverter.cs
- DodSequenceMerge.cs
- CachedBitmap.cs
- PersianCalendar.cs
- AdPostCacheSubstitution.cs
- EdmComplexPropertyAttribute.cs
- Geometry3D.cs
- DataGridViewCellStyleConverter.cs
- CalendarTable.cs
- TypeForwardedToAttribute.cs
- PropertyToken.cs
- StopStoryboard.cs
- UIElement3DAutomationPeer.cs
- SqlCommandBuilder.cs
- DrawingContextDrawingContextWalker.cs
- SafeLibraryHandle.cs
- FileDialogCustomPlacesCollection.cs
- IndentTextWriter.cs
- X509Chain.cs
- OLEDB_Enum.cs
- ReferenceConverter.cs
- ToolStripDesignerAvailabilityAttribute.cs
- embossbitmapeffect.cs
- MultilineStringConverter.cs
- Rotation3DAnimationBase.cs
- UpdateTracker.cs
- CheckBox.cs
- ImageAnimator.cs
- ChangeProcessor.cs
- PackageFilter.cs
- Utils.cs
- UITypeEditor.cs
- Pkcs7Recipient.cs
- ByteConverter.cs
- TypedElement.cs
- SendKeys.cs
- LexicalChunk.cs
- EmbeddedMailObjectsCollection.cs
- ToolStripOverflowButton.cs
- DocumentOrderQuery.cs
- FullTextLine.cs
- BuildManagerHost.cs
- SystemException.cs
- SqlTypeConverter.cs
- cookieexception.cs
- UIPropertyMetadata.cs
- StateChangeEvent.cs
- BuildProviderCollection.cs
- DesignTimeDataBinding.cs
- XPathNodeList.cs
- PowerModeChangedEventArgs.cs
- SafeBitVector32.cs
- ProfileSection.cs
- ToolStripItemGlyph.cs
- KeyPressEvent.cs
- TrayIconDesigner.cs
- DateTimeFormatInfoScanner.cs
- GeneratedContractType.cs
- EntityDataSourceEntityTypeFilterItem.cs
- MatrixAnimationBase.cs
- login.cs
- ResXDataNode.cs
- XmlCharCheckingReader.cs
- UniqueEventHelper.cs
- RowUpdatedEventArgs.cs
- EventPropertyMap.cs
- PixelShader.cs
- TypeUtil.cs
- TrustSection.cs
- CssStyleCollection.cs
- Socket.cs
- MSAANativeProvider.cs
- Positioning.cs
- ConnectionStringsSection.cs
- PageBuildProvider.cs
- InstanceData.cs
- VScrollProperties.cs
- BindableTemplateBuilder.cs
- XPathAxisIterator.cs
- SafeRegistryHandle.cs
- AlignmentYValidation.cs
- Bidi.cs
- Int16AnimationBase.cs
- LinkLabelLinkClickedEvent.cs
- DataBindingCollectionConverter.cs
- AdornerLayer.cs