Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. //------------------------------------------------------------------------------ //Gets the total number of elements in a collection. ///// 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.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
- MergeFailedEvent.cs
- XsdBuildProvider.cs
- WindowsListView.cs
- HiddenFieldPageStatePersister.cs
- DbParameterHelper.cs
- AccessDataSourceWizardForm.cs
- ObjectStateFormatter.cs
- DataListCommandEventArgs.cs
- CompModSwitches.cs
- ToolboxBitmapAttribute.cs
- CurrentChangedEventManager.cs
- SynchronizedChannelCollection.cs
- GridView.cs
- SapiGrammar.cs
- XmlnsDictionary.cs
- XmlUnspecifiedAttribute.cs
- EntityWithChangeTrackerStrategy.cs
- EventListener.cs
- XamlPathDataSerializer.cs
- ResizeBehavior.cs
- AttributeXamlType.cs
- RayHitTestParameters.cs
- JournalEntry.cs
- UIAgentMonitorHandle.cs
- DockProviderWrapper.cs
- SHA384CryptoServiceProvider.cs
- Form.cs
- EditorPart.cs
- RangeContentEnumerator.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- DefaultAssemblyResolver.cs
- Splitter.cs
- ConversionHelper.cs
- StateDesigner.TransitionInfo.cs
- CallbackDebugBehavior.cs
- FontWeightConverter.cs
- PreservationFileReader.cs
- RangeValuePattern.cs
- DelegateBodyWriter.cs
- SqlUserDefinedTypeAttribute.cs
- TableRow.cs
- DataContractSerializerOperationBehavior.cs
- PointAnimationBase.cs
- StringFunctions.cs
- AdapterUtil.cs
- EdmTypeAttribute.cs
- XMLUtil.cs
- ProgressBarRenderer.cs
- SplashScreen.cs
- Material.cs
- ResourceSet.cs
- TypeSystemProvider.cs
- ContainerFilterService.cs
- VBIdentifierDesigner.xaml.cs
- DataTableReader.cs
- SafeLocalAllocation.cs
- ExpressionBindingCollection.cs
- DetailsViewInsertedEventArgs.cs
- DecimalAnimation.cs
- CardSpaceException.cs
- DefinitionProperties.cs
- DataRowChangeEvent.cs
- CommandTreeTypeHelper.cs
- EventEntry.cs
- CryptographicAttribute.cs
- ArithmeticLiteral.cs
- rsa.cs
- HttpCapabilitiesSectionHandler.cs
- XmlSchemaExporter.cs
- WebBrowserBase.cs
- Transform3DGroup.cs
- Point4D.cs
- IntegrationExceptionEventArgs.cs
- ResourcePart.cs
- PerformanceCountersElement.cs
- ComIntegrationManifestGenerator.cs
- DocumentViewerBase.cs
- PropertyChangeTracker.cs
- SettingsPropertyIsReadOnlyException.cs
- GridViewSelectEventArgs.cs
- KnownIds.cs
- VectorValueSerializer.cs
- DataBoundControlHelper.cs
- FactoryRecord.cs
- GroupPartitionExpr.cs
- DataViewManagerListItemTypeDescriptor.cs
- SystemKeyConverter.cs
- HtmlInputControl.cs
- SocketElement.cs
- ToolStripSeparatorRenderEventArgs.cs
- ServiceElement.cs
- ObjectSet.cs
- OleDbDataReader.cs
- ClosureBinding.cs
- UpdatableGenericsFeature.cs
- CheckBoxBaseAdapter.cs
- RestHandler.cs
- ArrangedElement.cs
- HeaderCollection.cs
- GeneralTransform.cs