Code:
/ 4.0 / 4.0 / untmp / 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.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DriveNotFoundException.cs
- ReflectionPermission.cs
- RadioButtonFlatAdapter.cs
- ProcessStartInfo.cs
- SelectionRangeConverter.cs
- SamlEvidence.cs
- Msec.cs
- X509CertificateEndpointIdentity.cs
- Message.cs
- FilterElement.cs
- SafeArrayRankMismatchException.cs
- RegexRunner.cs
- MonthCalendar.cs
- RtType.cs
- ButtonRenderer.cs
- LogRecordSequence.cs
- FixedSOMFixedBlock.cs
- SystemWebSectionGroup.cs
- OpCodes.cs
- CapabilitiesRule.cs
- WebPageTraceListener.cs
- Double.cs
- ArraySegment.cs
- ConnectionManagementElementCollection.cs
- ConfigurationValidatorBase.cs
- SerialStream.cs
- IndependentlyAnimatedPropertyMetadata.cs
- CanonicalFormWriter.cs
- SolidBrush.cs
- IPEndPoint.cs
- SqlDependency.cs
- TextParagraphProperties.cs
- RegexCode.cs
- TextEmbeddedObject.cs
- AggregateException.cs
- Image.cs
- AppSettings.cs
- RepeaterItemEventArgs.cs
- Matrix3DValueSerializer.cs
- LicFileLicenseProvider.cs
- LabelDesigner.cs
- WebHttpBehavior.cs
- PageThemeCodeDomTreeGenerator.cs
- NameValueSectionHandler.cs
- NGCSerializationManager.cs
- DataGridState.cs
- ProviderException.cs
- StandardRuntimeEnumValidatorAttribute.cs
- SelectionRange.cs
- _OSSOCK.cs
- XmlWrappingWriter.cs
- RtfToken.cs
- DebugView.cs
- MouseGestureValueSerializer.cs
- Attachment.cs
- BehaviorEditorPart.cs
- FormsAuthenticationTicket.cs
- GeneralTransform.cs
- SqlMultiplexer.cs
- IntranetCredentialPolicy.cs
- TypeReference.cs
- DropDownButton.cs
- FileAuthorizationModule.cs
- TextFragmentEngine.cs
- XsdCachingReader.cs
- TokenBasedSetEnumerator.cs
- COM2ExtendedUITypeEditor.cs
- LinqDataSourceDeleteEventArgs.cs
- ExpressionWriter.cs
- _WinHttpWebProxyDataBuilder.cs
- Config.cs
- XmlLinkedNode.cs
- RayHitTestParameters.cs
- ThaiBuddhistCalendar.cs
- DetailsView.cs
- IPHostEntry.cs
- ThicknessAnimationBase.cs
- QueuePropertyVariants.cs
- ThreadSafeList.cs
- SQlBooleanStorage.cs
- MetadataFile.cs
- Descriptor.cs
- XmlSchemaSequence.cs
- DrawingGroup.cs
- SqlServices.cs
- LocalizationParserHooks.cs
- basevalidator.cs
- NativeRightsManagementAPIsStructures.cs
- CodeTypeParameterCollection.cs
- TableLayout.cs
- SizeConverter.cs
- IsolationInterop.cs
- ImageClickEventArgs.cs
- BindingList.cs
- SchemaSetCompiler.cs
- DataGridViewTopLeftHeaderCell.cs
- TreeNodeStyle.cs
- PerformanceCountersElement.cs
- SchemaElementDecl.cs
- Emitter.cs