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
- Schema.cs
- KeyboardDevice.cs
- SmtpReplyReader.cs
- ReflectionTypeLoadException.cs
- DependencyPropertyHelper.cs
- ServiceOperationHelpers.cs
- NavigationProgressEventArgs.cs
- StyleConverter.cs
- SpecialNameAttribute.cs
- TdsParser.cs
- IODescriptionAttribute.cs
- ImageListStreamer.cs
- DoubleAnimationClockResource.cs
- Globals.cs
- ScriptRegistrationManager.cs
- HtmlInputFile.cs
- TrimSurroundingWhitespaceAttribute.cs
- PlainXmlWriter.cs
- HttpException.cs
- SmiXetterAccessMap.cs
- FixedFindEngine.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ImplicitInputBrush.cs
- CodeExporter.cs
- ImageMap.cs
- AnnouncementDispatcherAsyncResult.cs
- ComAwareEventInfo.cs
- SHA256Cng.cs
- TextBoxAutomationPeer.cs
- CacheDict.cs
- TypeSource.cs
- SubclassTypeValidatorAttribute.cs
- AliasGenerator.cs
- DataControlButton.cs
- PartialCachingAttribute.cs
- FieldReference.cs
- Button.cs
- SessionEndingCancelEventArgs.cs
- PointAnimation.cs
- AdPostCacheSubstitution.cs
- Utils.cs
- Pair.cs
- DrawToolTipEventArgs.cs
- GlyphShapingProperties.cs
- safex509handles.cs
- InputProcessorProfilesLoader.cs
- TableLayoutPanel.cs
- TableLayoutColumnStyleCollection.cs
- XmlObjectSerializerWriteContext.cs
- ThicknessAnimationUsingKeyFrames.cs
- TextHidden.cs
- DynamicPropertyHolder.cs
- CmsUtils.cs
- SQLSingleStorage.cs
- Win32Native.cs
- CopyNamespacesAction.cs
- HttpHandlersSection.cs
- EntityDataSourceValidationException.cs
- TypeInitializationException.cs
- StoreItemCollection.Loader.cs
- DataGridCell.cs
- RegionInfo.cs
- MenuScrollingVisibilityConverter.cs
- XmlComplianceUtil.cs
- InvokeGenerator.cs
- InvocationExpression.cs
- ErrorStyle.cs
- StrongTypingException.cs
- XmlAnyAttributeAttribute.cs
- XmlEventCache.cs
- DeferredRunTextReference.cs
- SpnegoTokenAuthenticator.cs
- DefaultSerializationProviderAttribute.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ColorMap.cs
- LinkArea.cs
- ResolveCriteriaApril2005.cs
- PenLineCapValidation.cs
- DecoderNLS.cs
- DisplayMemberTemplateSelector.cs
- SqlBulkCopyColumnMappingCollection.cs
- MobileTemplatedControlDesigner.cs
- ChildrenQuery.cs
- LOSFormatter.cs
- processwaithandle.cs
- MsmqHostedTransportManager.cs
- ListBindableAttribute.cs
- MethodBuilder.cs
- XmlAtomicValue.cs
- PreviewControlDesigner.cs
- CodeAccessSecurityEngine.cs
- CompilationLock.cs
- XComponentModel.cs
- ComponentEvent.cs
- XmlSerializerFormatAttribute.cs
- CryptoApi.cs
- ExpandableObjectConverter.cs
- DataControlField.cs
- BreakRecordTable.cs
- FieldMetadata.cs