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
- InternalSafeNativeMethods.cs
- TheQuery.cs
- SafeSecurityHandles.cs
- Keywords.cs
- BaseCodeDomTreeGenerator.cs
- FontCollection.cs
- TrustManagerMoreInformation.cs
- RelatedView.cs
- DropDownList.cs
- WebPartVerbsEventArgs.cs
- NavigatorInput.cs
- isolationinterop.cs
- DateTimeOffsetConverter.cs
- CachingHintValidation.cs
- XPathAncestorIterator.cs
- IgnoreFileBuildProvider.cs
- ModuleElement.cs
- SystemKeyConverter.cs
- EntityDescriptor.cs
- WebRequestModulesSection.cs
- PaintEvent.cs
- COM2Properties.cs
- TextAutomationPeer.cs
- SpeechDetectedEventArgs.cs
- FormViewDesigner.cs
- ValueTypeFixupInfo.cs
- DataBindingList.cs
- Color.cs
- CacheEntry.cs
- NativeCppClassAttribute.cs
- PersonalizationProvider.cs
- MenuItemCollectionEditorDialog.cs
- LazyTextWriterCreator.cs
- MarkupWriter.cs
- SymbolDocumentInfo.cs
- Comparer.cs
- RegexCharClass.cs
- UnmanagedMemoryStreamWrapper.cs
- PageContentAsyncResult.cs
- FileSystemInfo.cs
- ClientConfigPaths.cs
- TopClause.cs
- CalendarDateChangedEventArgs.cs
- GenericTypeParameterConverter.cs
- BindingGroup.cs
- ViewGenResults.cs
- FixedTextContainer.cs
- ArrayList.cs
- CreateRefExpr.cs
- PageDeviceFont.cs
- Identity.cs
- EncoderExceptionFallback.cs
- StructuredType.cs
- ExpanderAutomationPeer.cs
- MethodBuilder.cs
- RowTypePropertyElement.cs
- Span.cs
- TreeIterators.cs
- GenericEnumerator.cs
- SettingsAttributes.cs
- LingerOption.cs
- XmlSchemaComplexType.cs
- DataPagerCommandEventArgs.cs
- DisplayNameAttribute.cs
- ModelPropertyCollectionImpl.cs
- TraceSource.cs
- DesignerSelectionListAdapter.cs
- StringFreezingAttribute.cs
- AssemblyAttributes.cs
- safelink.cs
- XmlArrayItemAttributes.cs
- WorkflowRuntimeEndpoint.cs
- WebDescriptionAttribute.cs
- SettingsAttributeDictionary.cs
- WebPartDeleteVerb.cs
- AttachedPropertyBrowsableAttribute.cs
- SoapMessage.cs
- RuleProcessor.cs
- SafeBitVector32.cs
- MutableAssemblyCacheEntry.cs
- Int16Animation.cs
- MessageDecoder.cs
- ComponentDispatcher.cs
- ToolboxComponentsCreatedEventArgs.cs
- WebPartZoneBase.cs
- AlignmentYValidation.cs
- TableDetailsCollection.cs
- ContentFilePart.cs
- SortKey.cs
- FontStyle.cs
- CustomAttributeSerializer.cs
- WebPartDisplayModeCollection.cs
- WinEventTracker.cs
- HostingEnvironment.cs
- StringDictionary.cs
- SecurityTokenResolver.cs
- GroupByExpressionRewriter.cs
- HtmlElement.cs
- OutputCacheSettings.cs
- DataGridViewRowHeaderCell.cs