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
- FlowDocumentPage.cs
- MobileListItem.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- TreeViewTemplateSelector.cs
- StyleSelector.cs
- BaseAutoFormat.cs
- MimeObjectFactory.cs
- SqlBuffer.cs
- TreeNodeBinding.cs
- SignatureGenerator.cs
- LineSegment.cs
- BreakSafeBase.cs
- InlinedLocationReference.cs
- Scalars.cs
- Camera.cs
- PointCollectionConverter.cs
- XmlNamespaceMapping.cs
- Subtree.cs
- EmptyControlCollection.cs
- Stylesheet.cs
- SimpleHandlerFactory.cs
- TrayIconDesigner.cs
- SqlFileStream.cs
- OverflowException.cs
- RawStylusActions.cs
- AssociationEndMember.cs
- DateTimeFormatInfoScanner.cs
- Storyboard.cs
- FileDetails.cs
- ModelService.cs
- PropertyChangingEventArgs.cs
- OletxTransactionHeader.cs
- MemoryRecordBuffer.cs
- XmlDictionaryWriter.cs
- PropertyMapper.cs
- DataServiceHostFactory.cs
- PasswordDeriveBytes.cs
- SQLBinaryStorage.cs
- CrossSiteScriptingValidation.cs
- NameValueSectionHandler.cs
- DynamicPropertyHolder.cs
- XmlEncodedRawTextWriter.cs
- TypefaceMetricsCache.cs
- CompilationLock.cs
- EventMappingSettingsCollection.cs
- AssociationSetEnd.cs
- BuildDependencySet.cs
- RuntimeResourceSet.cs
- GroupJoinQueryOperator.cs
- CngKeyBlobFormat.cs
- PageBuildProvider.cs
- SurrogateSelector.cs
- DataTableMapping.cs
- ping.cs
- RequestBringIntoViewEventArgs.cs
- IsolatedStorageFilePermission.cs
- ContractDescription.cs
- CodeAttributeDeclaration.cs
- DataGridHeaderBorder.cs
- DiscoveryClientRequestChannel.cs
- TextLineBreak.cs
- SessionStateSection.cs
- OpenTypeLayoutCache.cs
- SplitContainer.cs
- ResponseBodyWriter.cs
- CapabilitiesPattern.cs
- ClientSession.cs
- DeferredReference.cs
- ConstrainedDataObject.cs
- FormsAuthenticationTicket.cs
- ObjectDataSourceDesigner.cs
- EventProviderBase.cs
- TableParaClient.cs
- XmlSchemaComplexType.cs
- ToolStripDropDownMenu.cs
- DeadCharTextComposition.cs
- GenericsInstances.cs
- CombinedGeometry.cs
- TcpConnectionPoolSettingsElement.cs
- ServiceContractGenerationContext.cs
- HtmlAnchor.cs
- ParseNumbers.cs
- MatrixCamera.cs
- XmlSchemaInferenceException.cs
- ActivityCodeDomSerializer.cs
- LoginCancelEventArgs.cs
- ConfigurationSectionCollection.cs
- LinkedResource.cs
- DocumentSequenceHighlightLayer.cs
- XmlSchemaInfo.cs
- ZoomPercentageConverter.cs
- Column.cs
- CodeConditionStatement.cs
- DataException.cs
- UrlPath.cs
- MessageContractImporter.cs
- Int32Collection.cs
- AspProxy.cs
- ObjectItemCollection.cs
- MetafileEditor.cs