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
- WpfMemberInvoker.cs
- ItemCollection.cs
- TextMarkerSource.cs
- GeneralTransform3DCollection.cs
- DocumentSchemaValidator.cs
- remotingproxy.cs
- EnumerableCollectionView.cs
- DesignerOptionService.cs
- SplitterPanel.cs
- NonBatchDirectoryCompiler.cs
- CollectionViewProxy.cs
- _OverlappedAsyncResult.cs
- UdpAnnouncementEndpoint.cs
- ResourcePermissionBaseEntry.cs
- KnownTypesProvider.cs
- EventSinkActivity.cs
- COM2Enum.cs
- LineSegment.cs
- XsdDataContractExporter.cs
- InOutArgument.cs
- SqlMultiplexer.cs
- Guid.cs
- WebServiceClientProxyGenerator.cs
- NetNamedPipeBinding.cs
- DisplayToken.cs
- GlyphsSerializer.cs
- FileReader.cs
- userdatakeys.cs
- NumericUpDownAccelerationCollection.cs
- DeleteCardRequest.cs
- MessageBox.cs
- TransactionTraceIdentifier.cs
- entityreference_tresulttype.cs
- EventLogConfiguration.cs
- COM2ExtendedUITypeEditor.cs
- DocumentPageTextView.cs
- DrawingContextDrawingContextWalker.cs
- PageThemeBuildProvider.cs
- Int16Animation.cs
- DataGridViewComboBoxCell.cs
- EntityCommand.cs
- ProtocolElement.cs
- ListControlDataBindingHandler.cs
- IncrementalHitTester.cs
- ProjectionNode.cs
- EdgeProfileValidation.cs
- RecognitionResult.cs
- TransformCollection.cs
- DoubleIndependentAnimationStorage.cs
- ObjectQueryExecutionPlan.cs
- SafeSecurityHandles.cs
- Size.cs
- MultiAsyncResult.cs
- SevenBitStream.cs
- DocumentsTrace.cs
- SqlUserDefinedAggregateAttribute.cs
- QueryContinueDragEventArgs.cs
- counter.cs
- BitmapEffectInput.cs
- MiniConstructorInfo.cs
- Matrix.cs
- CreateUserWizard.cs
- AsyncOperationManager.cs
- ContextMenuStrip.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- MaskDescriptors.cs
- SafeNativeMethods.cs
- KeyValueInternalCollection.cs
- SizeKeyFrameCollection.cs
- designeractionlistschangedeventargs.cs
- PermissionSet.cs
- NavigatorInput.cs
- FreeIndexList.cs
- HtmlFormAdapter.cs
- BinaryWriter.cs
- TraceHandler.cs
- HiddenField.cs
- HtmlForm.cs
- HttpProfileBase.cs
- QualifiedCellIdBoolean.cs
- PolyBezierSegmentFigureLogic.cs
- _NtlmClient.cs
- CodeSnippetCompileUnit.cs
- SelectionHighlightInfo.cs
- TreeViewCancelEvent.cs
- UntypedNullExpression.cs
- HostingPreferredMapPath.cs
- CertificateManager.cs
- TaskFileService.cs
- Utils.cs
- QuaternionConverter.cs
- PolyLineSegment.cs
- AuthenticationConfig.cs
- FtpWebRequest.cs
- DesignerSerializationVisibilityAttribute.cs
- TypeListConverter.cs
- TemplatedAdorner.cs
- ping.cs
- MobileTemplatedControlDesigner.cs
- IntSecurity.cs