Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / SoapAttributeOverrides.cs / 1305376 / SoapAttributeOverrides.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 SoapAttributeOverrides { Hashtable types = new Hashtable(); ///[To be supplied.] ////// /// public void Add(Type type, SoapAttributes attributes) { Add(type, string.Empty, attributes); } ///[To be supplied.] ////// /// public void Add(Type type, string member, SoapAttributes 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.XmlMultipleAttributeOverrides, type.FullName, member)); } members.Add(member, attributes); } ///[To be supplied.] ////// /// public SoapAttributes this[Type type] { get { return this[type, string.Empty]; } } ///[To be supplied.] ////// /// public SoapAttributes this[Type type, string member] { get { Hashtable members = (Hashtable)types[type]; if (members == null) return null; return (SoapAttributes)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 SoapAttributeOverrides { Hashtable types = new Hashtable(); ///[To be supplied.] ////// /// public void Add(Type type, SoapAttributes attributes) { Add(type, string.Empty, attributes); } ///[To be supplied.] ////// /// public void Add(Type type, string member, SoapAttributes 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.XmlMultipleAttributeOverrides, type.FullName, member)); } members.Add(member, attributes); } ///[To be supplied.] ////// /// public SoapAttributes this[Type type] { get { return this[type, string.Empty]; } } ///[To be supplied.] ////// /// public SoapAttributes this[Type type, string member] { get { Hashtable members = (Hashtable)types[type]; if (members == null) return null; return (SoapAttributes)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
- DnsPermission.cs
- ThreadStateException.cs
- ListViewTableRow.cs
- ShapeTypeface.cs
- ThreadStaticAttribute.cs
- GridViewRowCollection.cs
- EdmComplexTypeAttribute.cs
- DispatcherOperation.cs
- DateTimeStorage.cs
- BitmapCodecInfoInternal.cs
- KoreanLunisolarCalendar.cs
- Int32Animation.cs
- HttpRequestWrapper.cs
- HttpHandlerActionCollection.cs
- HtmlWindowCollection.cs
- SpellerStatusTable.cs
- DataGridViewRowsRemovedEventArgs.cs
- StateDesigner.TransitionInfo.cs
- SplitterEvent.cs
- Processor.cs
- XmlHelper.cs
- RequestCachingSection.cs
- FixedSOMLineCollection.cs
- KeyInterop.cs
- MasterPageCodeDomTreeGenerator.cs
- KeyGestureConverter.cs
- ViewEventArgs.cs
- Operator.cs
- ParameterBuilder.cs
- IntellisenseTextBox.designer.cs
- BitmapData.cs
- Decimal.cs
- XamlFilter.cs
- Point.cs
- XmlnsCache.cs
- MdImport.cs
- QilIterator.cs
- wmiprovider.cs
- RSAOAEPKeyExchangeDeformatter.cs
- RegionInfo.cs
- TreeNodeStyleCollection.cs
- IERequestCache.cs
- CellQuery.cs
- AsyncOperationManager.cs
- Convert.cs
- ChangePassword.cs
- Win32PrintDialog.cs
- UnaryQueryOperator.cs
- XmlWhitespace.cs
- Column.cs
- MemberListBinding.cs
- TabPage.cs
- SecurityPermission.cs
- CommandField.cs
- StoreContentChangedEventArgs.cs
- TraceSection.cs
- QueryStack.cs
- SerialErrors.cs
- ServicesUtilities.cs
- DetailsViewDesigner.cs
- ToolBar.cs
- SerializationHelper.cs
- SafeNativeMethods.cs
- ReadOnlyState.cs
- Keywords.cs
- SelectionHighlightInfo.cs
- TypefaceMetricsCache.cs
- SemanticBasicElement.cs
- XPathConvert.cs
- SiteMapNodeCollection.cs
- Int16.cs
- RijndaelManagedTransform.cs
- HtmlInputButton.cs
- SapiGrammar.cs
- AutomationIdentifier.cs
- TypeLoadException.cs
- datacache.cs
- BaseProcessor.cs
- QuaternionAnimationBase.cs
- RSAProtectedConfigurationProvider.cs
- ValueOfAction.cs
- IgnoreFlushAndCloseStream.cs
- ExtendedPropertyDescriptor.cs
- ISO2022Encoding.cs
- SessionStateContainer.cs
- SevenBitStream.cs
- PropertyIDSet.cs
- Content.cs
- Operators.cs
- CornerRadiusConverter.cs
- TextSelectionHelper.cs
- DockingAttribute.cs
- DataGridViewDataConnection.cs
- XsdDuration.cs
- OleAutBinder.cs
- ToolStripDropTargetManager.cs
- LogRestartAreaEnumerator.cs
- Byte.cs
- CellRelation.cs
- ListenerElementsCollection.cs