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
- StateDesigner.TransitionInfo.cs
- SafeFileMappingHandle.cs
- TreeBuilderXamlTranslator.cs
- PieceDirectory.cs
- DynamicDataResources.Designer.cs
- RowVisual.cs
- HierarchicalDataSourceControl.cs
- GatewayDefinition.cs
- ConditionBrowserDialog.cs
- StylusCollection.cs
- OdbcParameterCollection.cs
- AttributeSetAction.cs
- DrawingGroupDrawingContext.cs
- TextServicesManager.cs
- RegexNode.cs
- HtmlButton.cs
- DefaultValueAttribute.cs
- MemoryMappedViewStream.cs
- ManualResetEvent.cs
- BamlBinaryWriter.cs
- StructuredTypeEmitter.cs
- ByteViewer.cs
- WindowsTab.cs
- ExpressionList.cs
- DoubleUtil.cs
- MessageDesigner.cs
- ApplicationServiceManager.cs
- TextBox.cs
- HttpInputStream.cs
- TypefaceCollection.cs
- SqlServer2KCompatibilityAnnotation.cs
- WebPageTraceListener.cs
- ResolveNextArgumentWorkItem.cs
- StyleSelector.cs
- WinInet.cs
- ValidatorCollection.cs
- SqlError.cs
- InputScope.cs
- PropertyGrid.cs
- TextElementCollectionHelper.cs
- FileUtil.cs
- SecureStringHasher.cs
- OutputCacheProfileCollection.cs
- BinaryObjectWriter.cs
- InfoCardProofToken.cs
- FunctionOverloadResolver.cs
- ConfigXmlWhitespace.cs
- XsltCompileContext.cs
- AmbientValueAttribute.cs
- EdgeProfileValidation.cs
- PropertyMappingExceptionEventArgs.cs
- OutputBuffer.cs
- Compiler.cs
- TypeBrowserDialog.cs
- PhysicalFontFamily.cs
- oledbmetadatacolumnnames.cs
- PrivacyNoticeBindingElement.cs
- IPAddressCollection.cs
- HttpResponseInternalWrapper.cs
- ObservableDictionary.cs
- CommandID.cs
- CodeTypeReference.cs
- _Win32.cs
- CookieProtection.cs
- PeerOutputChannel.cs
- RolePrincipal.cs
- HwndProxyElementProvider.cs
- TypeExtension.cs
- XmlUtil.cs
- SchemaComplexType.cs
- MimeWriter.cs
- DataGridViewCellParsingEventArgs.cs
- TransformedBitmap.cs
- EventItfInfo.cs
- Timer.cs
- DataGridTable.cs
- MulticastIPAddressInformationCollection.cs
- Table.cs
- State.cs
- FileReader.cs
- PropertyMetadata.cs
- Point3DAnimationBase.cs
- CodeDomExtensionMethods.cs
- NameValueFileSectionHandler.cs
- _IPv6Address.cs
- QueryPageSettingsEventArgs.cs
- SiteMapSection.cs
- ToolZone.cs
- Hash.cs
- ItemList.cs
- TheQuery.cs
- DataBoundControlHelper.cs
- Constraint.cs
- StructuralCache.cs
- HttpAsyncResult.cs
- PreviewPageInfo.cs
- exports.cs
- GridViewSortEventArgs.cs
- GridView.cs
- ResourceDefaultValueAttribute.cs