Code:
/ DotNET / DotNET / 8.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
- PluralizationService.cs
- DmlSqlGenerator.cs
- ObjectStorage.cs
- PermissionSetTriple.cs
- CompositionTarget.cs
- _NetRes.cs
- ChangesetResponse.cs
- VirtualDirectoryMapping.cs
- OleDbInfoMessageEvent.cs
- safePerfProviderHandle.cs
- DebuggerAttributes.cs
- CreateInstanceBinder.cs
- CharStorage.cs
- PixelFormatConverter.cs
- CompilerParameters.cs
- sqlmetadatafactory.cs
- Section.cs
- ClientScriptManager.cs
- RichTextBoxConstants.cs
- TemplatePropertyEntry.cs
- StaticDataManager.cs
- XmlCharCheckingReader.cs
- Codec.cs
- PropertyInfoSet.cs
- GlobalizationSection.cs
- CollectionConverter.cs
- RecommendedAsConfigurableAttribute.cs
- ArraySegment.cs
- isolationinterop.cs
- ClientBuildManager.cs
- FullTrustAssemblyCollection.cs
- CustomAttributeSerializer.cs
- VectorCollectionConverter.cs
- Token.cs
- TrackingProfileCache.cs
- Executor.cs
- DynamicHyperLink.cs
- TextServicesCompartment.cs
- SmtpNetworkElement.cs
- TableCell.cs
- ApplicationException.cs
- LinkLabel.cs
- HierarchicalDataSourceControl.cs
- PrefixHandle.cs
- SuppressMessageAttribute.cs
- DataGridLengthConverter.cs
- MergeLocalizationDirectives.cs
- Route.cs
- ExtensibleClassFactory.cs
- ImageDesigner.cs
- ServiceObjectContainer.cs
- CategoryGridEntry.cs
- AuditLevel.cs
- Volatile.cs
- MouseButtonEventArgs.cs
- FrameworkElement.cs
- SqlDataSourceCustomCommandPanel.cs
- columnmapkeybuilder.cs
- ConfigurationElementCollection.cs
- Base64Encoder.cs
- ContentPropertyAttribute.cs
- TraceUtils.cs
- CLSCompliantAttribute.cs
- VirtualizedItemProviderWrapper.cs
- CaseInsensitiveHashCodeProvider.cs
- UnsafeNativeMethodsMilCoreApi.cs
- StylusEventArgs.cs
- FeatureManager.cs
- BindStream.cs
- Comparer.cs
- AstNode.cs
- RectAnimationBase.cs
- UpdateInfo.cs
- entityreference_tresulttype.cs
- FullTextBreakpoint.cs
- XmlSchemaDatatype.cs
- ParameterCollectionEditor.cs
- WinInetCache.cs
- ListDictionaryInternal.cs
- DbMetaDataFactory.cs
- Simplifier.cs
- CacheChildrenQuery.cs
- TimelineGroup.cs
- CodeBinaryOperatorExpression.cs
- ImportCatalogPart.cs
- SortDescriptionCollection.cs
- EntityDataSourceChangedEventArgs.cs
- WebPartTransformer.cs
- IdentitySection.cs
- TextEditorCopyPaste.cs
- ClientTargetCollection.cs
- SafeArrayRankMismatchException.cs
- TaskbarItemInfo.cs
- ScaleTransform.cs
- ClrProviderManifest.cs
- QilNode.cs
- MoveSizeWinEventHandler.cs
- AnimationClockResource.cs
- EndPoint.cs
- ParameterRetriever.cs