Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaObjectCollection.cs / 1 / XmlSchemaObjectCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Schema { using System.Collections; using System.ComponentModel; using System.Xml.Serialization; ////// /// public class XmlSchemaObjectCollection : CollectionBase { XmlSchemaObject parent; ///[To be supplied.] ////// /// public XmlSchemaObjectCollection() { } ///[To be supplied.] ////// /// public XmlSchemaObjectCollection(XmlSchemaObject parent) { this.parent = parent; } ///[To be supplied.] ////// /// public virtual XmlSchemaObject this[int index] { get { return (XmlSchemaObject)List[index]; } set { List[index] = value; } } ///[To be supplied.] ////// /// public new XmlSchemaObjectEnumerator GetEnumerator() { return new XmlSchemaObjectEnumerator(InnerList.GetEnumerator()); } ///[To be supplied.] ////// /// public int Add(XmlSchemaObject item) { return List.Add(item); } ///[To be supplied.] ////// /// public void Insert(int index, XmlSchemaObject item) { List.Insert(index, item); } ///[To be supplied.] ////// /// public int IndexOf(XmlSchemaObject item) { return List.IndexOf(item); } ///[To be supplied.] ////// /// public bool Contains(XmlSchemaObject item) { return List.Contains(item); } ///[To be supplied.] ////// /// public void Remove(XmlSchemaObject item) { List.Remove(item); } ///[To be supplied.] ////// /// public void CopyTo(XmlSchemaObject[] array, int index) { List.CopyTo(array, index); } ///[To be supplied.] ////// /// protected override void OnInsert(int index, object item) { if (parent != null) { parent.OnAdd(this, item); } } ///[To be supplied.] ////// /// protected override void OnSet(int index, object oldValue, object newValue) { if (parent != null) { parent.OnRemove(this, oldValue); parent.OnAdd(this, newValue); } } ///[To be supplied.] ////// /// protected override void OnClear() { if (parent != null) { parent.OnClear(this); } } ///[To be supplied.] ////// /// protected override void OnRemove(int index, object item) { if (parent != null) { parent.OnRemove(this, item); } } internal XmlSchemaObjectCollection Clone() { XmlSchemaObjectCollection coll = new XmlSchemaObjectCollection(); coll.Add(this); return coll; } private void Add(XmlSchemaObjectCollection collToAdd) { this.InnerList.InsertRange(0, collToAdd); } } ///[To be supplied.] ////// /// public class XmlSchemaObjectEnumerator: IEnumerator { IEnumerator enumerator; internal XmlSchemaObjectEnumerator( IEnumerator enumerator ) { this.enumerator = enumerator; } ///[To be supplied.] ////// /// public void Reset() { enumerator.Reset(); } ///[To be supplied.] ////// /// public bool MoveNext() { return enumerator.MoveNext(); } ///[To be supplied.] ////// /// public XmlSchemaObject Current { get { return (XmlSchemaObject)enumerator.Current; } } ///[To be supplied.] ////// void IEnumerator.Reset() { enumerator.Reset(); } /// /// bool IEnumerator.MoveNext() { return enumerator.MoveNext(); } /// /// object IEnumerator.Current { get { return enumerator.Current; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EdmValidator.cs
- CompressionTransform.cs
- CollectionChangedEventManager.cs
- RewritingProcessor.cs
- DataIdProcessor.cs
- Camera.cs
- MultiTrigger.cs
- WorkflowRuntimeServiceElementCollection.cs
- ellipse.cs
- cryptoapiTransform.cs
- BlobPersonalizationState.cs
- PreProcessor.cs
- SQLStringStorage.cs
- HttpRuntimeSection.cs
- DragDeltaEventArgs.cs
- XmlResolver.cs
- TypeUtil.cs
- TreeNode.cs
- StrokeCollection2.cs
- SignatureDescription.cs
- CustomAttributeBuilder.cs
- ObjectDataSourceFilteringEventArgs.cs
- _LocalDataStore.cs
- SimpleFieldTemplateUserControl.cs
- ProfileModule.cs
- BrushMappingModeValidation.cs
- BitmapEffectInput.cs
- DesignerToolStripControlHost.cs
- CodeIdentifier.cs
- Column.cs
- ToolStrip.cs
- FastEncoderWindow.cs
- SecurityDescriptor.cs
- AdCreatedEventArgs.cs
- ThreadAttributes.cs
- GridItemPatternIdentifiers.cs
- KeyFrames.cs
- DataGridViewDataErrorEventArgs.cs
- InstanceDescriptor.cs
- CopyCodeAction.cs
- SQLByteStorage.cs
- SoapUnknownHeader.cs
- NamespaceCollection.cs
- ColorMatrix.cs
- OracleTransaction.cs
- WebPartVerb.cs
- Decimal.cs
- Compilation.cs
- InheritedPropertyChangedEventArgs.cs
- SqlServer2KCompatibilityCheck.cs
- AutomationPropertyInfo.cs
- ErrorFormatterPage.cs
- HtmlTableRow.cs
- AsmxEndpointPickerExtension.cs
- CapabilitiesRule.cs
- Translator.cs
- ValidationErrorCollection.cs
- SecUtil.cs
- BitmapEffectDrawingContextWalker.cs
- SafeNativeMethods.cs
- TargetConverter.cs
- __Filters.cs
- DesignerVerb.cs
- SchemaLookupTable.cs
- DiscoveryOperationContext.cs
- ExpressionBuilder.cs
- HtmlLink.cs
- Stack.cs
- WebMessageFormatHelper.cs
- TrustVersion.cs
- ProviderCommandInfoUtils.cs
- ConnectionsZone.cs
- SendKeys.cs
- ExpressionBuilder.cs
- Timer.cs
- Wrapper.cs
- X509Utils.cs
- ResXResourceSet.cs
- QilInvoke.cs
- WebPartCollection.cs
- ContentTextAutomationPeer.cs
- RuleProcessor.cs
- HttpListenerContext.cs
- Vector.cs
- CollectionView.cs
- WeakReadOnlyCollection.cs
- ExtractCollection.cs
- UIElementPropertyUndoUnit.cs
- SymbolEqualComparer.cs
- Barrier.cs
- MenuItemAutomationPeer.cs
- Repeater.cs
- StringExpressionSet.cs
- COM2Enum.cs
- FilteredDataSetHelper.cs
- NTAccount.cs
- MsmqAppDomainProtocolHandler.cs
- CodeTypeReference.cs
- SchemaObjectWriter.cs
- EntityDataSourceView.cs