Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ListViewItemSelectionChangedEvent.cs
- PropertyValue.cs
- KernelTypeValidation.cs
- SettingsPropertyValue.cs
- DataGridViewLayoutData.cs
- DocumentCollection.cs
- RegistryKey.cs
- RewritingValidator.cs
- AssertSection.cs
- SQLInt32Storage.cs
- SqlRemoveConstantOrderBy.cs
- DiagnosticTraceSource.cs
- DataGridViewLinkCell.cs
- XmlMemberMapping.cs
- ClassImporter.cs
- RuntimeHelpers.cs
- RenderingBiasValidation.cs
- DefaultCommandExtensionCallback.cs
- SafeNativeMethodsCLR.cs
- DesignerAttribute.cs
- SrgsOneOf.cs
- TextTreeRootNode.cs
- ScrollBarAutomationPeer.cs
- ParameterToken.cs
- ImportCatalogPart.cs
- SHA384.cs
- DragDeltaEventArgs.cs
- DbQueryCommandTree.cs
- SqlGenerator.cs
- HandlerFactoryWrapper.cs
- DateTimePicker.cs
- SecurityDescriptor.cs
- StylusCaptureWithinProperty.cs
- NoResizeHandleGlyph.cs
- Application.cs
- NumericUpDownAccelerationCollection.cs
- WindowsFormsSynchronizationContext.cs
- CatalogPart.cs
- CircleHotSpot.cs
- XmlToDatasetMap.cs
- InterleavedZipPartStream.cs
- Splitter.cs
- CompilationPass2Task.cs
- MDIWindowDialog.cs
- CodeBinaryOperatorExpression.cs
- TextTreePropertyUndoUnit.cs
- SqlTriggerContext.cs
- SHA384CryptoServiceProvider.cs
- KeyValueConfigurationCollection.cs
- WebServiceHandlerFactory.cs
- StylusLogic.cs
- ZipIOModeEnforcingStream.cs
- TableStyle.cs
- DataBinder.cs
- AdapterDictionary.cs
- _UriTypeConverter.cs
- TreeView.cs
- CompilerGeneratedAttribute.cs
- DataGridViewCellStyleChangedEventArgs.cs
- UnaryExpressionHelper.cs
- DBAsyncResult.cs
- PathFigure.cs
- OletxResourceManager.cs
- SpinLock.cs
- DataFormat.cs
- StreamUpdate.cs
- InputScopeAttribute.cs
- DataGridRelationshipRow.cs
- ComponentManagerBroker.cs
- XmlSignificantWhitespace.cs
- SmtpReplyReader.cs
- Row.cs
- ClosureBinding.cs
- UndoEngine.cs
- WorkflowEnvironment.cs
- FixedSOMLineRanges.cs
- SendMailErrorEventArgs.cs
- Executor.cs
- ObjectListComponentEditor.cs
- SchemaElement.cs
- BitmapInitialize.cs
- AdRotator.cs
- TextPointerBase.cs
- EventSinkHelperWriter.cs
- WmpBitmapDecoder.cs
- GeneralTransform3DCollection.cs
- DataGridViewSelectedRowCollection.cs
- HijriCalendar.cs
- ListView.cs
- FacetDescriptionElement.cs
- MouseBinding.cs
- Transform3DGroup.cs
- HttpGetProtocolReflector.cs
- UserPreferenceChangedEventArgs.cs
- MemberAccessException.cs
- SharedDp.cs
- RequestSecurityToken.cs
- MenuStrip.cs
- ImageInfo.cs
- DataBoundControl.cs