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
- ProfileGroupSettings.cs
- InvalidEnumArgumentException.cs
- BuildResult.cs
- ErrorTableItemStyle.cs
- ColorTranslator.cs
- XhtmlBasicLiteralTextAdapter.cs
- SqlMethodTransformer.cs
- PrintPreviewControl.cs
- SmtpClient.cs
- SwitchLevelAttribute.cs
- ApplicationProxyInternal.cs
- PatternMatcher.cs
- FixedSOMElement.cs
- OptimalTextSource.cs
- HttpProxyCredentialType.cs
- CollectionViewGroupInternal.cs
- QueryCacheEntry.cs
- EmptyControlCollection.cs
- XPathMultyIterator.cs
- EdmConstants.cs
- TextMetrics.cs
- InstanceLockLostException.cs
- ApplicationProxyInternal.cs
- ScrollBarAutomationPeer.cs
- ListContractAdapter.cs
- DataGridColumn.cs
- ToolBarTray.cs
- GeneralTransform3DGroup.cs
- WindowsListViewGroupSubsetLink.cs
- SizeConverter.cs
- util.cs
- SizeAnimation.cs
- TTSEngineTypes.cs
- TextDecoration.cs
- WorkflowPrinting.cs
- DeferredTextReference.cs
- streamingZipPartStream.cs
- Calendar.cs
- DataGridColumnsPage.cs
- ParseNumbers.cs
- MSHTMLHost.cs
- ToolBarOverflowPanel.cs
- Container.cs
- ProfessionalColorTable.cs
- Timer.cs
- X509ServiceCertificateAuthenticationElement.cs
- TagPrefixInfo.cs
- QueryParameter.cs
- GridViewColumn.cs
- WebPartDescription.cs
- WebPartCollection.cs
- LocatorPart.cs
- SqlRecordBuffer.cs
- PointCollection.cs
- TextEditorThreadLocalStore.cs
- IPEndPointCollection.cs
- HelloMessageApril2005.cs
- NotifyIcon.cs
- SoapObjectReader.cs
- ButtonColumn.cs
- WindowsRichEditRange.cs
- RoutedEventConverter.cs
- HtmlInputRadioButton.cs
- CodeTypeDeclaration.cs
- ValidationHelper.cs
- DocumentXmlWriter.cs
- SystemWebSectionGroup.cs
- DataTableNewRowEvent.cs
- PropertiesTab.cs
- MobileCapabilities.cs
- DataListCommandEventArgs.cs
- X509Logo.cs
- AnnotationComponentChooser.cs
- Journal.cs
- XpsS0ValidatingLoader.cs
- ResourceSetExpression.cs
- AppLevelCompilationSectionCache.cs
- EntityClassGenerator.cs
- XmlSchemaSearchPattern.cs
- CodeDomDecompiler.cs
- CacheMemory.cs
- BindingWorker.cs
- ViewCellRelation.cs
- ScriptIgnoreAttribute.cs
- ClonableStack.cs
- DetailsViewRowCollection.cs
- PriorityQueue.cs
- SimpleRecyclingCache.cs
- LogWriteRestartAreaAsyncResult.cs
- DbBuffer.cs
- ConfigurationValidatorAttribute.cs
- BasicBrowserDialog.cs
- storepermissionattribute.cs
- HtmlTable.cs
- PerfCounters.cs
- BooleanFunctions.cs
- EmulateRecognizeCompletedEventArgs.cs
- ChameleonKey.cs
- KeyGesture.cs
- X509ChainPolicy.cs