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
- EmptyControlCollection.cs
- WindowsAuthenticationModule.cs
- SamlAssertion.cs
- ChangeNode.cs
- MaterialGroup.cs
- SqlBulkCopyColumnMappingCollection.cs
- WebPartDeleteVerb.cs
- FrameworkReadOnlyPropertyMetadata.cs
- DesignerWithHeader.cs
- _BufferOffsetSize.cs
- Italic.cs
- DropShadowEffect.cs
- RuleSetCollection.cs
- AuthenticationModuleElementCollection.cs
- WinFormsUtils.cs
- DataGridViewAdvancedBorderStyle.cs
- SmiXetterAccessMap.cs
- GPPOINT.cs
- SetStateEventArgs.cs
- FileSystemEventArgs.cs
- MobileControl.cs
- GroupBoxRenderer.cs
- RewritingSimplifier.cs
- WebEventTraceProvider.cs
- FtpRequestCacheValidator.cs
- BitmapDownload.cs
- DriveNotFoundException.cs
- XmlNamespaceMapping.cs
- NumericUpDownAccelerationCollection.cs
- SortedDictionary.cs
- FontDifferentiator.cs
- ReadOnlyCollection.cs
- AliasedSlot.cs
- AngleUtil.cs
- ReceiveActivityDesigner.cs
- ReachDocumentSequenceSerializer.cs
- TreeView.cs
- ImageSourceTypeConverter.cs
- DecoderFallbackWithFailureFlag.cs
- SqlServer2KCompatibilityCheck.cs
- ApplicationException.cs
- SessionStateContainer.cs
- RowUpdatedEventArgs.cs
- ObjectKeyFrameCollection.cs
- CalculatedColumn.cs
- SynchronousChannelMergeEnumerator.cs
- CompilerGlobalScopeAttribute.cs
- MarshalByValueComponent.cs
- ReverseInheritProperty.cs
- ManagementDateTime.cs
- CompleteWizardStep.cs
- Subtree.cs
- Confirm.cs
- ExeConfigurationFileMap.cs
- RenderDataDrawingContext.cs
- RegisteredExpandoAttribute.cs
- ObjectDataSourceDisposingEventArgs.cs
- FilterQuery.cs
- SafeRightsManagementQueryHandle.cs
- PtsContext.cs
- RuntimeWrappedException.cs
- ConfigurationValue.cs
- GuidConverter.cs
- DataControlCommands.cs
- XmlSchemaObjectCollection.cs
- DllNotFoundException.cs
- ListInitExpression.cs
- ClrPerspective.cs
- EdmRelationshipRoleAttribute.cs
- TranslateTransform.cs
- Cursors.cs
- GetChildSubtree.cs
- FixedPageStructure.cs
- AuthenticationModuleElementCollection.cs
- httpapplicationstate.cs
- UrlEncodedParameterWriter.cs
- mediaeventargs.cs
- SspiSafeHandles.cs
- AddInControllerImpl.cs
- MessageSmuggler.cs
- LocalBuilder.cs
- ComponentChangingEvent.cs
- KeyPullup.cs
- ListDictionaryInternal.cs
- ExpressionVisitorHelpers.cs
- EditCommandColumn.cs
- TextBreakpoint.cs
- Evidence.cs
- TagPrefixAttribute.cs
- CommandEventArgs.cs
- ValueHandle.cs
- SynchronizationContext.cs
- WinFormsUtils.cs
- MsmqChannelFactoryBase.cs
- ReflectPropertyDescriptor.cs
- StringOutput.cs
- OracleLob.cs
- DataControlField.cs
- TreeViewTemplateSelector.cs
- Property.cs