Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Xml / System / Xml / Serialization / XmlAttributeOverrides.cs / 1 / 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
- SqlRemoveConstantOrderBy.cs
- Events.cs
- WpfGeneratedKnownTypes.cs
- WaveHeader.cs
- SystemIcons.cs
- LineInfo.cs
- HttpPostProtocolImporter.cs
- OrCondition.cs
- BinaryFormatterSinks.cs
- CharacterHit.cs
- TextEditorMouse.cs
- BaseComponentEditor.cs
- DataServiceRequestException.cs
- DispatcherFrame.cs
- Mutex.cs
- WebConfigurationHostFileChange.cs
- WebServiceHost.cs
- Enlistment.cs
- QilDataSource.cs
- FormsAuthenticationModule.cs
- ThreadAbortException.cs
- CultureTableRecord.cs
- DesignTimeTemplateParser.cs
- DataGridItemAutomationPeer.cs
- SrgsText.cs
- designeractionbehavior.cs
- COAUTHINFO.cs
- RegexBoyerMoore.cs
- DecoderFallback.cs
- DesignerWidgets.cs
- Soap12FormatExtensions.cs
- XmlNamespaceManager.cs
- DbParameterCollectionHelper.cs
- HandlerMappingMemo.cs
- regiisutil.cs
- SafeEventLogReadHandle.cs
- Transform3D.cs
- BinaryObjectInfo.cs
- TextRangeEditLists.cs
- DockPattern.cs
- UnsafeNativeMethods.cs
- MLangCodePageEncoding.cs
- Process.cs
- CompiledQueryCacheEntry.cs
- EntityDataSourceValidationException.cs
- CustomCategoryAttribute.cs
- DockProviderWrapper.cs
- ModelService.cs
- TogglePattern.cs
- MULTI_QI.cs
- VolatileEnlistmentMultiplexing.cs
- NavigationPropertySingletonExpression.cs
- ObjectDataSourceEventArgs.cs
- MultiAsyncResult.cs
- UserPersonalizationStateInfo.cs
- RelatedPropertyManager.cs
- TriggerActionCollection.cs
- ConfigUtil.cs
- ObjectSet.cs
- NoResizeHandleGlyph.cs
- figurelengthconverter.cs
- IdentityModelDictionary.cs
- ExeConfigurationFileMap.cs
- MonikerProxyAttribute.cs
- FormatStringEditor.cs
- Stackframe.cs
- FormatVersion.cs
- SqlNotificationRequest.cs
- ToolStripItemCollection.cs
- TextRunProperties.cs
- RowType.cs
- ToolStripOverflow.cs
- View.cs
- COMException.cs
- TaskFileService.cs
- StateItem.cs
- StringUtil.cs
- CollectionType.cs
- SmiGettersStream.cs
- HttpCachePolicyElement.cs
- XmlSchemaExporter.cs
- RSAPKCS1SignatureDeformatter.cs
- CapabilitiesUse.cs
- ControlCachePolicy.cs
- HashHelper.cs
- ErrorStyle.cs
- AdPostCacheSubstitution.cs
- SoapTypeAttribute.cs
- DateTimeParse.cs
- NavigatorInput.cs
- SBCSCodePageEncoding.cs
- HwndTarget.cs
- MutexSecurity.cs
- AggregateNode.cs
- TextSelectionHelper.cs
- EncryptedType.cs
- HighlightComponent.cs
- InputReferenceExpression.cs
- SharedPersonalizationStateInfo.cs
- KeyboardDevice.cs