Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Data / System / Data / BaseCollection.cs / 1 / BaseCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data { using System; using System.Collections; using System.ComponentModel; using System.Globalization; ////// #if WINFSInternalOnly internal #else public #endif class InternalDataCollectionBase : ICollection { internal static CollectionChangeEventArgs RefreshEventArgs = new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null); //================================================== // the ICollection methods //================================================== ///Provides the base functionality for creating collections. ////// [ Browsable(false) ] public virtual int Count { get { return List.Count; } } public virtual void CopyTo(Array ar, int index) { List.CopyTo(ar, index); } public virtual IEnumerator GetEnumerator() { return List.GetEnumerator(); } [ Browsable(false) ] public bool IsReadOnly { get { return false; } } [Browsable(false)] public bool IsSynchronized { get { // so the user will know that it has to lock this object return false; } } // Return value: // > 0 (1) : CaseSensitve equal // < 0 (-1) : Case-Insensitive Equal // = 0 : Not Equal internal int NamesEqual(string s1, string s2, bool fCaseSensitive, CultureInfo locale) { if (fCaseSensitive) { if (String.Compare(s1, s2, false, locale) == 0) return 1; else return 0; } // Case, kana and width -Insensitive compare if (locale.CompareInfo.Compare(s1, s2, CompareOptions.IgnoreCase | CompareOptions.IgnoreKanaType | CompareOptions.IgnoreWidth) == 0) { if (String.Compare(s1, s2, false, locale) == 0) return 1; else return -1; } return 0; } [Browsable(false)] public object SyncRoot { get { return this; } } protected virtual ArrayList List { get { return null; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.Gets the total number of elements in a collection. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- JournalNavigationScope.cs
- CodeParameterDeclarationExpression.cs
- ColorInterpolationModeValidation.cs
- AccessDataSourceWizardForm.cs
- SessionStateModule.cs
- SamlAttribute.cs
- TimeStampChecker.cs
- ScopedKnownTypes.cs
- OutputScope.cs
- ParserExtension.cs
- FixedTextPointer.cs
- serverconfig.cs
- BrowserCapabilitiesFactory.cs
- RegularExpressionValidator.cs
- FunctionMappingTranslator.cs
- ServiceMemoryGates.cs
- BulletChrome.cs
- HitTestWithGeometryDrawingContextWalker.cs
- Viewport2DVisual3D.cs
- CompressionTransform.cs
- ProviderMetadata.cs
- CommandHelper.cs
- IsolatedStoragePermission.cs
- PolygonHotSpot.cs
- SoapIgnoreAttribute.cs
- FlowDocumentReaderAutomationPeer.cs
- EntitySetRetriever.cs
- PrtTicket_Public_Simple.cs
- DateRangeEvent.cs
- TextBoxRenderer.cs
- ExpressionNode.cs
- ScrollEvent.cs
- PreservationFileReader.cs
- ReverseInheritProperty.cs
- ToolbarAUtomationPeer.cs
- SQLDoubleStorage.cs
- SequentialUshortCollection.cs
- DataColumnCollection.cs
- SerializationStore.cs
- PropertyTabAttribute.cs
- TextServicesProperty.cs
- CallTemplateAction.cs
- BufferModesCollection.cs
- figurelengthconverter.cs
- RoutedCommand.cs
- HttpCapabilitiesEvaluator.cs
- WMICapabilities.cs
- XmlWrappingReader.cs
- XdrBuilder.cs
- IFlowDocumentViewer.cs
- ColorMatrix.cs
- StorageComplexPropertyMapping.cs
- versioninfo.cs
- Rotation3DAnimationBase.cs
- ItemsControlAutomationPeer.cs
- PriorityQueue.cs
- ToolTipService.cs
- AutomationEvent.cs
- EventQueueState.cs
- CodeCompiler.cs
- LingerOption.cs
- RemoteWebConfigurationHostStream.cs
- DesigntimeLicenseContext.cs
- ObjectDataProvider.cs
- WindowsSpinner.cs
- NotifyParentPropertyAttribute.cs
- PageRanges.cs
- SchemaComplexType.cs
- StateItem.cs
- securitycriticaldataformultiplegetandset.cs
- PerformanceCounter.cs
- HtmlInputReset.cs
- TypeGeneratedEventArgs.cs
- Int64AnimationBase.cs
- SettingsPropertyNotFoundException.cs
- DataGridViewButtonColumn.cs
- ComponentGuaranteesAttribute.cs
- DataRecord.cs
- FontWeightConverter.cs
- TemplatePropertyEntry.cs
- ProfileEventArgs.cs
- Scripts.cs
- LinqDataSourceStatusEventArgs.cs
- DataGridViewColumnCollectionEditor.cs
- ObjectHandle.cs
- CaseInsensitiveComparer.cs
- ServerIdentity.cs
- DesignerWebPartChrome.cs
- DetailsViewCommandEventArgs.cs
- ClientRoleProvider.cs
- SimpleExpression.cs
- Popup.cs
- CharKeyFrameCollection.cs
- FlowDocumentFormatter.cs
- PolyBezierSegment.cs
- ClipboardData.cs
- PropertyEmitter.cs
- CodeRegionDirective.cs
- SessionViewState.cs
- DiagnosticTrace.cs