Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / Configuration / SchemaImporterExtensionElementCollection.cs / 1305376 / SchemaImporterExtensionElementCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Serialization.Configuration { using System; using System.Configuration; using System.Security.Permissions; [ConfigurationCollection(typeof(SchemaImporterExtensionElement))] public sealed class SchemaImporterExtensionElementCollection : ConfigurationElementCollection { public SchemaImporterExtensionElementCollection() { } public SchemaImporterExtensionElement this[int index] { get { return (SchemaImporterExtensionElement)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index,value); } } public new SchemaImporterExtensionElement this[string name] { get { return (SchemaImporterExtensionElement)BaseGet(name); } set { if (BaseGet(name) != null) { BaseRemove(name); } BaseAdd(value); } } public void Add(SchemaImporterExtensionElement element) { BaseAdd(element); } public void Clear() { BaseClear(); } protected override ConfigurationElement CreateNewElement() { return new SchemaImporterExtensionElement(); } protected override Object GetElementKey(ConfigurationElement element) { return ((SchemaImporterExtensionElement)element).Key; } public int IndexOf(SchemaImporterExtensionElement element) { return BaseIndexOf(element); } public void Remove(SchemaImporterExtensionElement element) { BaseRemove(element.Key); } public void Remove(string name) { BaseRemove(name); } public void RemoveAt(int index) { BaseRemoveAt(index); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Serialization.Configuration { using System; using System.Configuration; using System.Security.Permissions; [ConfigurationCollection(typeof(SchemaImporterExtensionElement))] public sealed class SchemaImporterExtensionElementCollection : ConfigurationElementCollection { public SchemaImporterExtensionElementCollection() { } public SchemaImporterExtensionElement this[int index] { get { return (SchemaImporterExtensionElement)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index,value); } } public new SchemaImporterExtensionElement this[string name] { get { return (SchemaImporterExtensionElement)BaseGet(name); } set { if (BaseGet(name) != null) { BaseRemove(name); } BaseAdd(value); } } public void Add(SchemaImporterExtensionElement element) { BaseAdd(element); } public void Clear() { BaseClear(); } protected override ConfigurationElement CreateNewElement() { return new SchemaImporterExtensionElement(); } protected override Object GetElementKey(ConfigurationElement element) { return ((SchemaImporterExtensionElement)element).Key; } public int IndexOf(SchemaImporterExtensionElement element) { return BaseIndexOf(element); } public void Remove(SchemaImporterExtensionElement element) { BaseRemove(element.Key); } public void Remove(string name) { BaseRemove(name); } public void RemoveAt(int index) { BaseRemoveAt(index); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CommandConverter.cs
- DataChangedEventManager.cs
- TagNameToTypeMapper.cs
- WebExceptionStatus.cs
- FilterQueryOptionExpression.cs
- RSAPKCS1SignatureFormatter.cs
- PolicyDesigner.cs
- Comparer.cs
- QuaternionValueSerializer.cs
- PieceNameHelper.cs
- TrustSection.cs
- DependencyPropertyValueSerializer.cs
- BooleanExpr.cs
- RelatedEnd.cs
- JoinCqlBlock.cs
- StackBuilderSink.cs
- IteratorFilter.cs
- MessageBox.cs
- RelationshipDetailsRow.cs
- DBProviderConfigurationHandler.cs
- TemplateDefinition.cs
- XmlNamespaceDeclarationsAttribute.cs
- XsdDateTime.cs
- XPathNavigatorReader.cs
- SwitchLevelAttribute.cs
- CustomPopupPlacement.cs
- ImageAutomationPeer.cs
- ModelService.cs
- PluralizationServiceUtil.cs
- CorePropertiesFilter.cs
- SamlSecurityTokenAuthenticator.cs
- ModelUIElement3D.cs
- ExternalDataExchangeService.cs
- TraceHandler.cs
- GifBitmapDecoder.cs
- ClientFormsAuthenticationMembershipProvider.cs
- DesignBinding.cs
- AssemblyNameProxy.cs
- TraceHwndHost.cs
- View.cs
- ActivityDesignerAccessibleObject.cs
- AutomationPatternInfo.cs
- DirectoryNotFoundException.cs
- Int16KeyFrameCollection.cs
- TableItemStyle.cs
- ChannelSinkStacks.cs
- Misc.cs
- DynamicILGenerator.cs
- MethodRental.cs
- EndpointAddressProcessor.cs
- IInstanceTable.cs
- ListBoxItem.cs
- HtmlInputCheckBox.cs
- Geometry3D.cs
- ClientScriptManagerWrapper.cs
- SerializationBinder.cs
- TrackingWorkflowEventArgs.cs
- DocumentViewerHelper.cs
- DrawingCollection.cs
- Rect3D.cs
- DataContractSerializerFaultFormatter.cs
- HostedTransportConfigurationBase.cs
- SQLConvert.cs
- GridViewUpdateEventArgs.cs
- Function.cs
- ContextInformation.cs
- OleCmdHelper.cs
- Page.cs
- MediaEntryAttribute.cs
- XmlArrayItemAttributes.cs
- ObjectManager.cs
- TypeExtensionSerializer.cs
- xamlnodes.cs
- FileStream.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- RoleService.cs
- WpfKnownMemberInvoker.cs
- LinqDataSourceUpdateEventArgs.cs
- ColorDialog.cs
- LinqDataSourceHelper.cs
- ConfigXmlElement.cs
- GroupBox.cs
- XmlSchemaComplexType.cs
- EmptyImpersonationContext.cs
- UInt16Converter.cs
- SecurityPermission.cs
- ConfigurationManagerHelperFactory.cs
- QilFunction.cs
- EntityWrapperFactory.cs
- EventLogPermissionAttribute.cs
- EllipseGeometry.cs
- DataGridViewColumnConverter.cs
- EntityDataSourceStatementEditor.cs
- HashCoreRequest.cs
- HtmlElementErrorEventArgs.cs
- TimeoutHelper.cs
- SafeSecurityHandles.cs
- HMACSHA384.cs
- TypeLibConverter.cs
- NullableIntSumAggregationOperator.cs