Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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
- EntityTypeEmitter.cs
- Stack.cs
- BitmapEffectGroup.cs
- TextSelection.cs
- DesignerSerializationOptionsAttribute.cs
- SizeChangedInfo.cs
- Control.cs
- SynchronizedMessageSource.cs
- SubMenuStyleCollection.cs
- ConfigLoader.cs
- RefType.cs
- BrowsableAttribute.cs
- DispatcherSynchronizationContext.cs
- ExpressionNode.cs
- FormCollection.cs
- GlobalId.cs
- SchemaImporterExtensionElementCollection.cs
- PopupRootAutomationPeer.cs
- DataGridViewHitTestInfo.cs
- ColorPalette.cs
- _FtpDataStream.cs
- PropertyNames.cs
- ConnectionsZone.cs
- Constraint.cs
- PointF.cs
- FacetChecker.cs
- SymbolType.cs
- SymbolType.cs
- WebSysDescriptionAttribute.cs
- connectionpool.cs
- WebPartConnectionsCancelEventArgs.cs
- WebPartConnectionsCancelEventArgs.cs
- RegexCapture.cs
- Baml6ConstructorInfo.cs
- GroupStyle.cs
- UInt64Converter.cs
- SectionInput.cs
- IFlowDocumentViewer.cs
- Stylus.cs
- EntityDataSourceSelectedEventArgs.cs
- ContainerControl.cs
- CapabilitiesAssignment.cs
- DescendantQuery.cs
- EventQueueState.cs
- WebServiceFault.cs
- ContextMarshalException.cs
- TemplatedAdorner.cs
- PageSetupDialog.cs
- TableRowCollection.cs
- AuthenticationModuleElementCollection.cs
- RoutingTable.cs
- Memoizer.cs
- EndOfStreamException.cs
- WindowsFormsSynchronizationContext.cs
- WorkflowDesigner.cs
- TreeNodeCollection.cs
- RankException.cs
- ScriptResourceDefinition.cs
- XmlSchemaAppInfo.cs
- RSAPKCS1SignatureDeformatter.cs
- ContentElement.cs
- AbandonedMutexException.cs
- CalendarDayButton.cs
- StringResourceManager.cs
- AbstractExpressions.cs
- Span.cs
- RequestQueue.cs
- DataGridParentRows.cs
- DrawingAttributeSerializer.cs
- ShaderRenderModeValidation.cs
- WeakReferenceEnumerator.cs
- WebPartUserCapability.cs
- Vector3DKeyFrameCollection.cs
- FilterException.cs
- WebUtil.cs
- SafeArrayTypeMismatchException.cs
- XamlSerializerUtil.cs
- NTAccount.cs
- SparseMemoryStream.cs
- XmlDomTextWriter.cs
- SolidBrush.cs
- TypeDescriptionProviderAttribute.cs
- MenuBindingsEditor.cs
- ModelItemCollectionImpl.cs
- AccessedThroughPropertyAttribute.cs
- Int32Collection.cs
- SspiSecurityTokenProvider.cs
- PartialCachingAttribute.cs
- PersonalizationEntry.cs
- OutputScopeManager.cs
- RuntimeTrackingProfile.cs
- SSmlParser.cs
- MembershipSection.cs
- ControllableStoryboardAction.cs
- ConnectionManagementSection.cs
- ElementsClipboardData.cs
- FlowDocumentReaderAutomationPeer.cs
- ChangePassword.cs
- pingexception.cs
- DatasetMethodGenerator.cs