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
- ComplexObject.cs
- OleDbError.cs
- InstanceLockLostException.cs
- DesignTimeType.cs
- ImportCatalogPart.cs
- SiteMapNode.cs
- CodeConditionStatement.cs
- ImageCodecInfoPrivate.cs
- ErasingStroke.cs
- QueuePathDialog.cs
- XmlExtensionFunction.cs
- TabControlDesigner.cs
- TdsValueSetter.cs
- Geometry.cs
- DataGridCellsPanel.cs
- WorkflowEnvironment.cs
- SqlConnectionPoolGroupProviderInfo.cs
- TextElementAutomationPeer.cs
- ConnectionStringsExpressionBuilder.cs
- XmlSchemaSequence.cs
- WpfKnownMemberInvoker.cs
- SqlWebEventProvider.cs
- XmlReaderSettings.cs
- DataSourceSerializationException.cs
- ToolStripItemImageRenderEventArgs.cs
- ChannelCacheSettings.cs
- Double.cs
- SocketAddress.cs
- XhtmlConformanceSection.cs
- Enum.cs
- HttpCachePolicy.cs
- StyleSheet.cs
- ImportCatalogPart.cs
- ScriptingSectionGroup.cs
- GenerateHelper.cs
- X509SubjectKeyIdentifierClause.cs
- XmlSchemaCollection.cs
- UITypeEditor.cs
- DeobfuscatingStream.cs
- QueryOptionExpression.cs
- WebPartDisplayMode.cs
- MatrixIndependentAnimationStorage.cs
- Animatable.cs
- ArcSegment.cs
- WindowsFormsEditorServiceHelper.cs
- MouseGesture.cs
- Misc.cs
- _HTTPDateParse.cs
- ClaimSet.cs
- OracleMonthSpan.cs
- ListBox.cs
- TextBoxRenderer.cs
- LabelDesigner.cs
- DBSqlParserColumnCollection.cs
- EDesignUtil.cs
- ServiceProviders.cs
- BaseHashHelper.cs
- EmptyImpersonationContext.cs
- ExpressionDumper.cs
- BitmapPalettes.cs
- TypeValidationEventArgs.cs
- PointLightBase.cs
- DbBuffer.cs
- SiteMapNodeItem.cs
- NativeMethods.cs
- WebPartConnectionsConnectVerb.cs
- DrawListViewSubItemEventArgs.cs
- ValidationHelper.cs
- WebDisplayNameAttribute.cs
- SessionStateSection.cs
- HttpHandlerActionCollection.cs
- FrameworkContentElementAutomationPeer.cs
- Pkcs7Recipient.cs
- HostedBindingBehavior.cs
- ValidateNames.cs
- ApplicationActivator.cs
- DynamicPropertyReader.cs
- _CommandStream.cs
- LabelLiteral.cs
- MemberRelationshipService.cs
- ProfileServiceManager.cs
- PartitionedDataSource.cs
- ExceptionRoutedEventArgs.cs
- IconEditor.cs
- UnsafeNativeMethods.cs
- XmlQueryStaticData.cs
- RSAPKCS1SignatureFormatter.cs
- TextElementEnumerator.cs
- UIInitializationException.cs
- InkCanvasSelection.cs
- ZipIOModeEnforcingStream.cs
- IsolatedStorageSecurityState.cs
- Matrix.cs
- Dictionary.cs
- HtmlInputControl.cs
- RegisteredArrayDeclaration.cs
- PolicyStatement.cs
- BitmapCodecInfoInternal.cs
- ToolStripSplitStackLayout.cs
- DataIdProcessor.cs