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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ExternalFile.cs
- StoragePropertyMapping.cs
- Crypto.cs
- nulltextcontainer.cs
- XPathNavigatorKeyComparer.cs
- ColorTransformHelper.cs
- SoapFaultCodes.cs
- SubMenuStyleCollectionEditor.cs
- SafeTimerHandle.cs
- TypeBuilder.cs
- ConfigurationLocationCollection.cs
- ChildTable.cs
- ContextProperty.cs
- EditCommandColumn.cs
- EpmContentDeSerializerBase.cs
- DataServiceConfiguration.cs
- UnsafeNativeMethods.cs
- WindowsComboBox.cs
- PackagePart.cs
- ListControlDesigner.cs
- Scene3D.cs
- StringSource.cs
- Semaphore.cs
- UriTemplateTrieLocation.cs
- MediaElement.cs
- URIFormatException.cs
- PerformanceCounterPermissionEntry.cs
- ObjectKeyFrameCollection.cs
- AmbiguousMatchException.cs
- WhitespaceRuleLookup.cs
- DrawingAttributesDefaultValueFactory.cs
- XPathParser.cs
- ASCIIEncoding.cs
- HostVisual.cs
- FontInfo.cs
- SQLInt32Storage.cs
- ScriptDescriptor.cs
- Send.cs
- ObjectItemConventionAssemblyLoader.cs
- RequiredFieldValidator.cs
- ProxyWebPart.cs
- PlanCompilerUtil.cs
- ToolStripLabel.cs
- UpdatePanelTriggerCollection.cs
- HttpModuleAction.cs
- CheckPair.cs
- ResourceDescriptionAttribute.cs
- NumericUpDown.cs
- XmlSchemaExporter.cs
- TemplateInstanceAttribute.cs
- TypeForwardedToAttribute.cs
- Point3DCollection.cs
- RenameRuleObjectDialog.Designer.cs
- WindowsEditBox.cs
- ValidatingPropertiesEventArgs.cs
- ResourceCategoryAttribute.cs
- SaveFileDialog.cs
- COMException.cs
- RsaKeyIdentifierClause.cs
- BinHexDecoder.cs
- TerminatorSinks.cs
- CustomWebEventKey.cs
- VScrollProperties.cs
- _FtpDataStream.cs
- AddingNewEventArgs.cs
- ItemCheckedEvent.cs
- Compiler.cs
- ManualResetEvent.cs
- HttpStreams.cs
- GeometryCombineModeValidation.cs
- XMLDiffLoader.cs
- Property.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- HttpApplicationStateBase.cs
- OutputCacheProfileCollection.cs
- TreeWalker.cs
- DateTimeUtil.cs
- WebZone.cs
- ValueConversionAttribute.cs
- AnnotationObservableCollection.cs
- TraceListener.cs
- AsyncResult.cs
- ReadOnlyDataSourceView.cs
- PagedDataSource.cs
- SpellerHighlightLayer.cs
- ScriptManager.cs
- NavigatingCancelEventArgs.cs
- ScrollViewer.cs
- ChtmlTextBoxAdapter.cs
- MessageQueueKey.cs
- ResizeBehavior.cs
- _CommandStream.cs
- AddToCollection.cs
- RegexNode.cs
- HostingEnvironmentSection.cs
- EntityContainerEmitter.cs
- TextRangeSerialization.cs
- DbReferenceCollection.cs
- RegistrySecurity.cs
- FamilyTypefaceCollection.cs