Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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. // Copyright (c) Microsoft Corporation. All rights reserved.[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RemoteWebConfigurationHostStream.cs
- SizeAnimationBase.cs
- AppLevelCompilationSectionCache.cs
- AspNetRouteServiceHttpHandler.cs
- DialogResultConverter.cs
- WinCategoryAttribute.cs
- DesignerActionList.cs
- UnknownWrapper.cs
- AbstractSvcMapFileLoader.cs
- ExpressionPrinter.cs
- KnownBoxes.cs
- TypedReference.cs
- ResponseBodyWriter.cs
- BitVector32.cs
- ConfigurationProperty.cs
- ExpressionList.cs
- AssemblyName.cs
- PersonalizationStateInfo.cs
- DecoderFallbackWithFailureFlag.cs
- TypeForwardedToAttribute.cs
- InvalidProgramException.cs
- OdbcError.cs
- HttpRuntime.cs
- XmlSchemaAnnotated.cs
- Membership.cs
- DataGridViewCellValueEventArgs.cs
- Preprocessor.cs
- DemultiplexingClientMessageFormatter.cs
- FixedBufferAttribute.cs
- UndoEngine.cs
- ResXDataNode.cs
- SqlMethodTransformer.cs
- DependentList.cs
- TokenDescriptor.cs
- StrokeCollectionConverter.cs
- RenameRuleObjectDialog.Designer.cs
- entitydatasourceentitysetnameconverter.cs
- AnchoredBlock.cs
- DecoderFallbackWithFailureFlag.cs
- Point3D.cs
- TreeNode.cs
- ProcessHostFactoryHelper.cs
- DefaultAsyncDataDispatcher.cs
- wmiprovider.cs
- OleDbRowUpdatedEvent.cs
- WebResourceAttribute.cs
- ReplyAdapterChannelListener.cs
- NCryptNative.cs
- StringReader.cs
- DetailsViewPagerRow.cs
- TrustLevelCollection.cs
- SmtpSection.cs
- BitmapEncoder.cs
- MediaElement.cs
- ConfigurationFileMap.cs
- ParameterToken.cs
- ReceiveActivityDesignerTheme.cs
- StylusCollection.cs
- DateRangeEvent.cs
- ReferenceEqualityComparer.cs
- PolyLineSegment.cs
- TdsParserStaticMethods.cs
- TemplateComponentConnector.cs
- OpenFileDialog.cs
- CroppedBitmap.cs
- SystemThemeKey.cs
- SqlDataSourceView.cs
- BoolLiteral.cs
- HotSpot.cs
- StringAnimationUsingKeyFrames.cs
- SizeConverter.cs
- TypeBuilderInstantiation.cs
- ReadOnlyDataSource.cs
- Roles.cs
- RenderDataDrawingContext.cs
- OutKeywords.cs
- ListMarkerSourceInfo.cs
- SimpleRecyclingCache.cs
- LambdaCompiler.Expressions.cs
- StringFunctions.cs
- HandlerBase.cs
- DesignerHelpers.cs
- AuthenticationConfig.cs
- HtmlTableCell.cs
- DbDataAdapter.cs
- IdentityValidationException.cs
- SweepDirectionValidation.cs
- TrackBarRenderer.cs
- BindingNavigator.cs
- HyperLinkColumn.cs
- DictionaryBase.cs
- CodeDelegateInvokeExpression.cs
- ConfigurationValues.cs
- OleDbConnection.cs
- HtmlInputControl.cs
- ResolvedKeyFrameEntry.cs
- ToolboxComponentsCreatingEventArgs.cs
- DocumentViewerAutomationPeer.cs
- TrustLevelCollection.cs
- ConfigurationLockCollection.cs