Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Xml / System / Xml / Serialization / Configuration / SchemaImporterExtensionElementCollection.cs / 1 / 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
- HelpEvent.cs
- ReaderContextStackData.cs
- AffineTransform3D.cs
- TextSegment.cs
- FixedFlowMap.cs
- GestureRecognizer.cs
- SafeNativeMethods.cs
- DynamicFilterExpression.cs
- BindingContext.cs
- Thickness.cs
- DebugView.cs
- DataSourceControlBuilder.cs
- DbMetaDataColumnNames.cs
- NativeMethods.cs
- CompoundFileStorageReference.cs
- SeverityFilter.cs
- WebZone.cs
- CompilerError.cs
- WorkflowWebHostingModule.cs
- FormViewUpdatedEventArgs.cs
- UnescapedXmlDiagnosticData.cs
- NativeRightsManagementAPIsStructures.cs
- AudioException.cs
- AliasExpr.cs
- PropertyGridCommands.cs
- ResXResourceSet.cs
- ListenerSingletonConnectionReader.cs
- ConsumerConnectionPointCollection.cs
- MembershipSection.cs
- LogSwitch.cs
- UrlPath.cs
- SecurityManager.cs
- DllHostedComPlusServiceHost.cs
- unitconverter.cs
- CheckBoxFlatAdapter.cs
- HierarchicalDataBoundControl.cs
- OracleBoolean.cs
- ControlAdapter.cs
- CodeCommentStatementCollection.cs
- httpapplicationstate.cs
- DetailsView.cs
- TypeConverterHelper.cs
- Rectangle.cs
- HTTPNotFoundHandler.cs
- SqlInternalConnectionSmi.cs
- SafeUserTokenHandle.cs
- CalendarItem.cs
- Column.cs
- DataGridViewBand.cs
- LookupBindingPropertiesAttribute.cs
- _StreamFramer.cs
- LocationEnvironment.cs
- DetailsViewCommandEventArgs.cs
- GridSplitterAutomationPeer.cs
- ScriptRegistrationManager.cs
- SequentialActivityDesigner.cs
- DataGridViewRowEventArgs.cs
- StreamGeometry.cs
- InheritedPropertyChangedEventArgs.cs
- GPPOINTF.cs
- XmlQuerySequence.cs
- DesignerAttribute.cs
- TextEditorLists.cs
- SiteMapDataSourceView.cs
- XamlWrappingReader.cs
- ListSortDescription.cs
- Timer.cs
- ObjectDataSourceMethodEventArgs.cs
- CryptoKeySecurity.cs
- FixedSOMTableRow.cs
- ControlValuePropertyAttribute.cs
- SerializerDescriptor.cs
- SiteMapPath.cs
- ManagementDateTime.cs
- WebMessageEncoderFactory.cs
- StateRuntime.cs
- FieldTemplateUserControl.cs
- ScriptServiceAttribute.cs
- ObjectListDesigner.cs
- QilGeneratorEnv.cs
- ModuleBuilderData.cs
- LongValidatorAttribute.cs
- ImageAutomationPeer.cs
- Lazy.cs
- TrackingMemoryStream.cs
- ConfigXmlAttribute.cs
- SimpleType.cs
- DoubleAnimationClockResource.cs
- DiscreteKeyFrames.cs
- LifetimeServices.cs
- FormattedText.cs
- DynamicActionMessageFilter.cs
- DbException.cs
- CanonicalFormWriter.cs
- xdrvalidator.cs
- TreeNodeConverter.cs
- DocumentXmlWriter.cs
- WebPartChrome.cs
- ResourceDisplayNameAttribute.cs
- ColumnMapTranslator.cs