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
- MediaElement.cs
- PositiveTimeSpanValidatorAttribute.cs
- SwitchLevelAttribute.cs
- OperationInvokerBehavior.cs
- ColumnClickEvent.cs
- SubclassTypeValidatorAttribute.cs
- GetKeyedHashRequest.cs
- PackagePartCollection.cs
- DataGridColumn.cs
- Duration.cs
- TemplateXamlParser.cs
- ProcessRequestArgs.cs
- TableAutomationPeer.cs
- XmlSequenceWriter.cs
- DataGridViewSortCompareEventArgs.cs
- SimpleType.cs
- EmptyEnumerator.cs
- DayRenderEvent.cs
- TreeNode.cs
- ACE.cs
- DoWorkEventArgs.cs
- ExternalDataExchangeClient.cs
- FontNamesConverter.cs
- GridViewDeletedEventArgs.cs
- ObjectNavigationPropertyMapping.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ButtonFlatAdapter.cs
- GroupItem.cs
- ADMembershipProvider.cs
- MarshalDirectiveException.cs
- TransactionContextManager.cs
- Overlapped.cs
- AppSecurityManager.cs
- UInt16Converter.cs
- QilPatternVisitor.cs
- Substitution.cs
- UIElementPropertyUndoUnit.cs
- HandlerBase.cs
- ChannelServices.cs
- PeerCustomResolverBindingElement.cs
- TypeEnumerableViewSchema.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- ChannelHandler.cs
- PagedDataSource.cs
- GeometryConverter.cs
- _ProxyChain.cs
- DoubleConverter.cs
- ProviderConnectionPoint.cs
- XamlClipboardData.cs
- AssemblyBuilderData.cs
- SafeRightsManagementHandle.cs
- UndoEngine.cs
- LinqDataSourceContextEventArgs.cs
- ItemAutomationPeer.cs
- ControlEvent.cs
- SyndicationDeserializer.cs
- DeleteWorkflowOwnerCommand.cs
- FillErrorEventArgs.cs
- DynamicMethod.cs
- RenderDataDrawingContext.cs
- TableItemPattern.cs
- ObjectParameterCollection.cs
- ByteStreamGeometryContext.cs
- WorkerRequest.cs
- HtmlInputRadioButton.cs
- DesignerAttribute.cs
- HttpNamespaceReservationInstallComponent.cs
- CatalogPartDesigner.cs
- CfgSemanticTag.cs
- DataServiceRequestOfT.cs
- PresentationTraceSources.cs
- XmlSignatureProperties.cs
- RelationalExpressions.cs
- OraclePermissionAttribute.cs
- HuffCodec.cs
- TimeSpanFormat.cs
- StylusCaptureWithinProperty.cs
- WebPartMenuStyle.cs
- Util.cs
- InvokeCompletedEventArgs.cs
- PopupRoot.cs
- ReachVisualSerializer.cs
- ClientRequest.cs
- ConfigXmlText.cs
- CompiledQueryCacheEntry.cs
- ObjectDataSourceDisposingEventArgs.cs
- _SingleItemRequestCache.cs
- LinkButton.cs
- SubstitutionList.cs
- GPRECT.cs
- MenuBindingsEditor.cs
- PickDesigner.xaml.cs
- Hashtable.cs
- SecurityTokenParameters.cs
- GradientSpreadMethodValidation.cs
- DateTimeEditor.cs
- httpapplicationstate.cs
- IPipelineRuntime.cs
- NodeInfo.cs
- ExpandSegmentCollection.cs