Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / WinForms / Managed / System / WinForms / BaseCollection.cs / 1 / BaseCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Runtime.InteropServices; using System; using System.ComponentModel; using System.Collections; using ArrayList = System.Collections.ArrayList; ////// /// public class BaseCollection : MarshalByRefObject, ICollection { //================================================== // the ICollection methods //================================================== ///Provides the base functionality for creating collections. ////// /// [ Browsable(false), EditorBrowsable(EditorBrowsableState.Advanced) ] public virtual int Count { get { return List.Count; } } ///Gets the total number of elements in a collection. ////// /// public void CopyTo(Array ar, int index) { List.CopyTo(ar, index); } ///[To be supplied.] ////// /// public IEnumerator GetEnumerator() { return List.GetEnumerator(); } ///Gets an IEnumerator for the collection. ////// /// [ Browsable(false), EditorBrowsable(EditorBrowsableState.Advanced) ] public bool IsReadOnly { get { return false; } } ///[To be supplied.] ////// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Advanced)] public bool IsSynchronized { get { // so the user will know that it has to lock this object return false; } } ///[To be supplied.] ////// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Advanced)] public object SyncRoot { get { return this; } } ///[To be supplied.] ////// /// protected virtual ArrayList List { get { return null; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Runtime.InteropServices; using System; using System.ComponentModel; using System.Collections; using ArrayList = System.Collections.ArrayList; ////// /// public class BaseCollection : MarshalByRefObject, ICollection { //================================================== // the ICollection methods //================================================== ///Provides the base functionality for creating collections. ////// /// [ Browsable(false), EditorBrowsable(EditorBrowsableState.Advanced) ] public virtual int Count { get { return List.Count; } } ///Gets the total number of elements in a collection. ////// /// public void CopyTo(Array ar, int index) { List.CopyTo(ar, index); } ///[To be supplied.] ////// /// public IEnumerator GetEnumerator() { return List.GetEnumerator(); } ///Gets an IEnumerator for the collection. ////// /// [ Browsable(false), EditorBrowsable(EditorBrowsableState.Advanced) ] public bool IsReadOnly { get { return false; } } ///[To be supplied.] ////// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Advanced)] public bool IsSynchronized { get { // so the user will know that it has to lock this object return false; } } ///[To be supplied.] ////// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Advanced)] public object SyncRoot { get { return this; } } ///[To be supplied.] ////// /// protected virtual ArrayList List { get { return null; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ResourceDisplayNameAttribute.cs
- SqlDependencyListener.cs
- DBSqlParserColumnCollection.cs
- ToolStripLabel.cs
- SlotInfo.cs
- LocalizationComments.cs
- RoleBoolean.cs
- EventHandlerService.cs
- OleDbWrapper.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DictionaryBase.cs
- ConfigXmlComment.cs
- PbrsForward.cs
- HttpListenerContext.cs
- EntityDataSourceValidationException.cs
- BitArray.cs
- ChangePassword.cs
- LinkTarget.cs
- WebBrowsableAttribute.cs
- ServiceBuildProvider.cs
- AccessedThroughPropertyAttribute.cs
- HwndHostAutomationPeer.cs
- Graphics.cs
- ContainerUIElement3D.cs
- FastPropertyAccessor.cs
- HMAC.cs
- WrapPanel.cs
- BridgeDataReader.cs
- NativeConfigurationLoader.cs
- Events.cs
- EventDescriptor.cs
- TabItemAutomationPeer.cs
- EntityDataSourceColumn.cs
- OfTypeExpression.cs
- SortedSet.cs
- ellipse.cs
- GB18030Encoding.cs
- SqlMethodTransformer.cs
- PerformanceCountersElement.cs
- SqlBulkCopy.cs
- EntityTransaction.cs
- DockingAttribute.cs
- DataPagerFieldItem.cs
- XPathAxisIterator.cs
- RuleInfoComparer.cs
- SoapElementAttribute.cs
- BufferedGraphicsContext.cs
- DecimalKeyFrameCollection.cs
- ObjectQueryExecutionPlan.cs
- MembershipSection.cs
- DataTableClearEvent.cs
- Events.cs
- TemplatedAdorner.cs
- PagerSettings.cs
- GridViewDeleteEventArgs.cs
- MarkupCompiler.cs
- ImageButton.cs
- RequestCacheEntry.cs
- DockPattern.cs
- TrackingValidationObjectDictionary.cs
- DrawingGroupDrawingContext.cs
- BrushConverter.cs
- List.cs
- FamilyMap.cs
- ResourceExpression.cs
- XXXOnTypeBuilderInstantiation.cs
- Common.cs
- OTFRasterizer.cs
- PenThreadWorker.cs
- OciHandle.cs
- ComponentEditorPage.cs
- COM2PropertyPageUITypeConverter.cs
- DrawingGroup.cs
- HandlerElementCollection.cs
- SequentialUshortCollection.cs
- ResXResourceSet.cs
- WebPartVerbCollection.cs
- UInt64Converter.cs
- TrackingProfile.cs
- Tuple.cs
- StringBuilder.cs
- ServiceBehaviorElementCollection.cs
- mediapermission.cs
- DesignerToolStripControlHost.cs
- CompoundFileReference.cs
- BitmapData.cs
- NavigateEvent.cs
- Encoder.cs
- Table.cs
- RenderDataDrawingContext.cs
- DefaultBinder.cs
- ErrorWebPart.cs
- SqlStream.cs
- XmlCharCheckingWriter.cs
- ArraySortHelper.cs
- EntityProxyFactory.cs
- WorkflowInstanceQuery.cs
- StatusStrip.cs
- TreeViewImageKeyConverter.cs
- TokenBasedSetEnumerator.cs