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
- BaseComponentEditor.cs
- CornerRadius.cs
- AxImporter.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- SmtpNegotiateAuthenticationModule.cs
- CipherData.cs
- NumberFormatInfo.cs
- ListBoxAutomationPeer.cs
- OptionUsage.cs
- SQLBytes.cs
- MetadataHelper.cs
- AssertHelper.cs
- SystemIPGlobalStatistics.cs
- BrowserDefinitionCollection.cs
- ItemCheckEvent.cs
- ElementNotEnabledException.cs
- ScriptModule.cs
- RolePrincipal.cs
- ColorConvertedBitmapExtension.cs
- PreservationFileWriter.cs
- LabelExpression.cs
- DebuggerAttributes.cs
- ModuleElement.cs
- Point3DAnimationBase.cs
- FacetValueContainer.cs
- PlainXmlWriter.cs
- FieldToken.cs
- FullTextBreakpoint.cs
- RegionIterator.cs
- FamilyTypefaceCollection.cs
- SecurityHelper.cs
- PropertyEmitterBase.cs
- MethodImplAttribute.cs
- HyperLinkStyle.cs
- DataGridViewCellLinkedList.cs
- RelationshipConstraintValidator.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- OptimizedTemplateContentHelper.cs
- WmpBitmapDecoder.cs
- DataControlFieldCell.cs
- DWriteFactory.cs
- TextRenderer.cs
- CodeNamespace.cs
- PlatformNotSupportedException.cs
- SelectedDatesCollection.cs
- Stroke.cs
- FileSystemEventArgs.cs
- CustomCredentialPolicy.cs
- RadioButtonStandardAdapter.cs
- InputLanguageCollection.cs
- ErrorRuntimeConfig.cs
- reliableinputsessionchannel.cs
- AlternationConverter.cs
- XPathBuilder.cs
- TypeInitializationException.cs
- DrawingAttributeSerializer.cs
- XmlDataDocument.cs
- EntityDesignerDataSourceView.cs
- SqlConnectionStringBuilder.cs
- JsonSerializer.cs
- UnknownWrapper.cs
- TempFiles.cs
- Membership.cs
- FilterRepeater.cs
- EdmSchemaAttribute.cs
- DataError.cs
- XmlSerializerSection.cs
- ScriptControlDescriptor.cs
- MeasurementDCInfo.cs
- RewritingProcessor.cs
- ColumnCollection.cs
- InitializeCorrelation.cs
- StylusLogic.cs
- TemplateControl.cs
- ContentPlaceHolder.cs
- XhtmlBasicSelectionListAdapter.cs
- SecureUICommand.cs
- DiagnosticsConfigurationHandler.cs
- Geometry.cs
- XmlUrlResolver.cs
- basemetadatamappingvisitor.cs
- VirtualDirectoryMapping.cs
- DataKey.cs
- CaseInsensitiveOrdinalStringComparer.cs
- MemberInitExpression.cs
- DefaultAsyncDataDispatcher.cs
- EnumUnknown.cs
- DPAPIProtectedConfigurationProvider.cs
- COM2ExtendedBrowsingHandler.cs
- TextFindEngine.cs
- ReaderWriterLockWrapper.cs
- Glyph.cs
- SqlErrorCollection.cs
- OdbcConnectionFactory.cs
- BitStream.cs
- NetCodeGroup.cs
- JsonReader.cs
- ParallelEnumerableWrapper.cs
- IsolatedStoragePermission.cs
- SignedXml.cs