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
- MdImport.cs
- FunctionDescription.cs
- WriteableBitmap.cs
- Misc.cs
- MethodCallExpression.cs
- Enumerable.cs
- UniformGrid.cs
- TextShapeableCharacters.cs
- ProfileSettingsCollection.cs
- RegionIterator.cs
- FormDesigner.cs
- IISUnsafeMethods.cs
- SHA256Cng.cs
- SupportingTokenSpecification.cs
- ParameterCollection.cs
- FormattedText.cs
- OracleBoolean.cs
- EventLogPermissionEntry.cs
- Base64WriteStateInfo.cs
- SqlDataSource.cs
- PrintEvent.cs
- PartitionedStreamMerger.cs
- TTSEvent.cs
- FileInfo.cs
- TimeSpan.cs
- MouseCaptureWithinProperty.cs
- Activity.cs
- TemplateBaseAction.cs
- PageMediaSize.cs
- StandardTransformFactory.cs
- XamlReader.cs
- HtmlInputImage.cs
- DoubleAnimationClockResource.cs
- ServerValidateEventArgs.cs
- SrgsElementList.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- ElementAction.cs
- Int16AnimationBase.cs
- XsdDuration.cs
- UpdateCommand.cs
- Tile.cs
- PerformanceCounterCategory.cs
- BuildProvider.cs
- TreeNodeCollection.cs
- SqlDataSourceCustomCommandEditor.cs
- ResourceAssociationSetEnd.cs
- HttpApplicationFactory.cs
- TableRowsCollectionEditor.cs
- PointValueSerializer.cs
- NotifyIcon.cs
- CategoryNameCollection.cs
- XslException.cs
- LocalBuilder.cs
- ThaiBuddhistCalendar.cs
- SystemColorTracker.cs
- ToolStripDropDownItem.cs
- StringValidator.cs
- SqlDependencyListener.cs
- BitStack.cs
- ErasingStroke.cs
- Guid.cs
- DigestComparer.cs
- DefaultValueAttribute.cs
- XPathAxisIterator.cs
- ThrowHelper.cs
- PersonalizationStateInfo.cs
- Scene3D.cs
- Set.cs
- FragmentQuery.cs
- GPRECTF.cs
- SelectionGlyph.cs
- XPathDescendantIterator.cs
- StateWorkerRequest.cs
- AutomationPatternInfo.cs
- sqlstateclientmanager.cs
- VectorAnimationUsingKeyFrames.cs
- ObjectItemCollection.cs
- RegisterResponseInfo.cs
- XmlSchemaComplexContentRestriction.cs
- _NetworkingPerfCounters.cs
- TransportationConfigurationTypeInstallComponent.cs
- ItemTypeToolStripMenuItem.cs
- Floater.cs
- StrokeRenderer.cs
- Opcode.cs
- ListBase.cs
- LoadWorkflowByKeyAsyncResult.cs
- FolderLevelBuildProviderCollection.cs
- IPGlobalProperties.cs
- HttpCapabilitiesBase.cs
- NativeMethods.cs
- PackageRelationship.cs
- WebPartEditVerb.cs
- QueryResults.cs
- ErrorView.xaml.cs
- TimeSpanSecondsConverter.cs
- ValueQuery.cs
- PointCollectionConverter.cs
- RepeaterCommandEventArgs.cs
- ToolboxComponentsCreatedEventArgs.cs