Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DBPropSet.cs
- TypeSystem.cs
- ClientSideProviderDescription.cs
- SequentialUshortCollection.cs
- ViewBox.cs
- XmlAtomErrorReader.cs
- TypeDescriptorContext.cs
- DbConnectionClosed.cs
- ObjectAnimationBase.cs
- SapiGrammar.cs
- XappLauncher.cs
- AccessViolationException.cs
- FrugalMap.cs
- HostExecutionContextManager.cs
- WebPermission.cs
- Random.cs
- MeasureData.cs
- UIPermission.cs
- MapPathBasedVirtualPathProvider.cs
- _SecureChannel.cs
- DateTimeStorage.cs
- HashCryptoHandle.cs
- SpinLock.cs
- WebPartRestoreVerb.cs
- TrackBar.cs
- OleDbError.cs
- XmlCustomFormatter.cs
- BaseProcessProtocolHandler.cs
- BuildProviderCollection.cs
- Variant.cs
- ResXResourceWriter.cs
- DocumentPageViewAutomationPeer.cs
- Debug.cs
- TextStore.cs
- ObjectDataProvider.cs
- SortKey.cs
- TypeElement.cs
- StructuredProperty.cs
- EraserBehavior.cs
- WindowsAltTab.cs
- DataFormats.cs
- InstanceKeyCompleteException.cs
- RectAnimationClockResource.cs
- SqlMethods.cs
- AttachedPropertyMethodSelector.cs
- EmptyElement.cs
- TextFormatterImp.cs
- SHA384Managed.cs
- Decimal.cs
- SqlClientPermission.cs
- SmtpNegotiateAuthenticationModule.cs
- DataListItemEventArgs.cs
- ImageMap.cs
- FlowPanelDesigner.cs
- XPathLexer.cs
- QueryTaskGroupState.cs
- DataRelationPropertyDescriptor.cs
- BamlRecordWriter.cs
- ComponentChangingEvent.cs
- ProfileEventArgs.cs
- CalendarSelectionChangedEventArgs.cs
- WebPartZoneBase.cs
- X509Certificate.cs
- FileDialogCustomPlace.cs
- KeyProperty.cs
- ObjectDataSourceSelectingEventArgs.cs
- NumberFunctions.cs
- SurrogateSelector.cs
- CommonXSendMessage.cs
- DPTypeDescriptorContext.cs
- Line.cs
- ConstraintStruct.cs
- WaitHandleCannotBeOpenedException.cs
- AutomationFocusChangedEventArgs.cs
- SeverityFilter.cs
- CheckBoxAutomationPeer.cs
- ResolvedKeyFrameEntry.cs
- ServicesUtilities.cs
- ReadOnlyDataSourceView.cs
- KeyConverter.cs
- XXXOnTypeBuilderInstantiation.cs
- MenuItem.cs
- ObjectMaterializedEventArgs.cs
- StylusButton.cs
- NodeInfo.cs
- LineBreakRecord.cs
- SafePointer.cs
- PenThread.cs
- ListViewCommandEventArgs.cs
- PersonalizationProviderCollection.cs
- LayoutDump.cs
- DBParameter.cs
- SqlFormatter.cs
- Screen.cs
- XmlMapping.cs
- StagingAreaInputItem.cs
- DataGrid.cs
- ConstructorExpr.cs
- StatusBarPanelClickEvent.cs
- CustomCredentialPolicy.cs