Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / XmlAttributeOverrides.cs / 1305376 / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ReachFixedPageSerializerAsync.cs
- RuleSettings.cs
- LayoutEngine.cs
- SizeAnimationUsingKeyFrames.cs
- UnsafeNativeMethods.cs
- RC2.cs
- BitmapEffectOutputConnector.cs
- DesignerListAdapter.cs
- ToolStripDesignerAvailabilityAttribute.cs
- MemberAccessException.cs
- NetTcpBinding.cs
- Array.cs
- ToolBar.cs
- MsmqIntegrationSecurity.cs
- DataAdapter.cs
- Confirm.cs
- ContextMenu.cs
- ObjectViewQueryResultData.cs
- DocumentViewerHelper.cs
- UpWmlPageAdapter.cs
- TcpClientChannel.cs
- ModifiableIteratorCollection.cs
- XmlSchemaChoice.cs
- TreeNode.cs
- ActivationArguments.cs
- AnimationStorage.cs
- DataColumnCollection.cs
- AppDomainUnloadedException.cs
- DateTimeEditor.cs
- DbConnectionOptions.cs
- ProxyGenerationError.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- Header.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- PngBitmapDecoder.cs
- TCPClient.cs
- CombinedHttpChannel.cs
- FieldNameLookup.cs
- StringExpressionSet.cs
- SqlNotificationRequest.cs
- PersonalizationStateInfoCollection.cs
- DataSourceSelectArguments.cs
- PropertyTabAttribute.cs
- Application.cs
- AmbientLight.cs
- RsaKeyIdentifierClause.cs
- ResolveNameEventArgs.cs
- FixedSOMTableCell.cs
- ScriptReferenceBase.cs
- ClientCultureInfo.cs
- OdbcConnectionFactory.cs
- StringTraceRecord.cs
- StylusPlugInCollection.cs
- SecurityTokenSerializer.cs
- SeverityFilter.cs
- AdCreatedEventArgs.cs
- LedgerEntry.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- TransformGroup.cs
- ContextMarshalException.cs
- TableAutomationPeer.cs
- AsyncDataRequest.cs
- OutputCacheSettingsSection.cs
- WorkflowElementDialog.cs
- DocumentViewerBase.cs
- StandardCommands.cs
- panel.cs
- CombinedHttpChannel.cs
- FilterEventArgs.cs
- HtmlInputButton.cs
- DataPagerFieldCollection.cs
- ByeOperation11AsyncResult.cs
- TcpChannelHelper.cs
- OdbcReferenceCollection.cs
- CommentEmitter.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- PropertyGrid.cs
- SortedDictionary.cs
- ReadWriteSpinLock.cs
- LayeredChannelListener.cs
- StringUtil.cs
- DataRowChangeEvent.cs
- DataSetViewSchema.cs
- GeneratedContractType.cs
- WebPartZone.cs
- ConfigurationStrings.cs
- DNS.cs
- VisualTreeUtils.cs
- Wizard.cs
- indexingfiltermarshaler.cs
- SafeHandles.cs
- PersistChildrenAttribute.cs
- CapabilitiesRule.cs
- ProtocolsConfigurationHandler.cs
- SecurityTokenProvider.cs
- DataServiceHostFactory.cs
- Activity.cs
- KnownBoxes.cs
- ProcessModelInfo.cs
- DeviceFiltersSection.cs