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
- XdrBuilder.cs
- AttributeCollection.cs
- LinqDataSourceValidationException.cs
- DependencyObject.cs
- Base64Encoder.cs
- FunctionCommandText.cs
- BindingContext.cs
- ConditionalAttribute.cs
- Converter.cs
- DBBindings.cs
- UserValidatedEventArgs.cs
- XPathAxisIterator.cs
- XmlEnumAttribute.cs
- ContentWrapperAttribute.cs
- ColorConvertedBitmap.cs
- CodeCommentStatement.cs
- PauseStoryboard.cs
- DoubleUtil.cs
- DirectoryInfo.cs
- ObjectDataSourceFilteringEventArgs.cs
- IsolatedStoragePermission.cs
- GroupItem.cs
- WebPartConnectVerb.cs
- StyleModeStack.cs
- CodeRemoveEventStatement.cs
- SuppressMergeCheckAttribute.cs
- File.cs
- AlternateViewCollection.cs
- ImageMapEventArgs.cs
- hwndwrapper.cs
- ToolboxSnapDragDropEventArgs.cs
- Hyperlink.cs
- RuntimeHelpers.cs
- PeerHopCountAttribute.cs
- DataGridViewCellConverter.cs
- X509ScopedServiceCertificateElementCollection.cs
- XmlElement.cs
- LinkUtilities.cs
- Baml2006Reader.cs
- COM2EnumConverter.cs
- ResolveDuplexAsyncResult.cs
- __Error.cs
- FaultException.cs
- SystemKeyConverter.cs
- ArrayWithOffset.cs
- errorpatternmatcher.cs
- KeyTimeConverter.cs
- SizeAnimationClockResource.cs
- ResXResourceSet.cs
- NameTable.cs
- PiiTraceSource.cs
- UserControlAutomationPeer.cs
- PathParser.cs
- CounterCreationData.cs
- RowToParametersTransformer.cs
- DiscoveryClientRequestChannel.cs
- SelectorAutomationPeer.cs
- ScriptReference.cs
- BindingMAnagerBase.cs
- FormsAuthenticationUserCollection.cs
- IProvider.cs
- GetImportFileNameRequest.cs
- ProgressBar.cs
- ModelPerspective.cs
- RequestCache.cs
- ToolboxComponentsCreatedEventArgs.cs
- CheckedListBox.cs
- wmiprovider.cs
- NativeMethods.cs
- Parameter.cs
- ModuleConfigurationInfo.cs
- dbenumerator.cs
- GridViewAutomationPeer.cs
- RuleRef.cs
- Int64Animation.cs
- DateRangeEvent.cs
- DependencyObjectType.cs
- Tag.cs
- GacUtil.cs
- DataControlFieldCell.cs
- QilLoop.cs
- HtmlUtf8RawTextWriter.cs
- CodeSnippetExpression.cs
- StorageBasedPackageProperties.cs
- MouseGestureValueSerializer.cs
- ConnectionManager.cs
- ButtonChrome.cs
- OleDragDropHandler.cs
- StorageEntityTypeMapping.cs
- Typeface.cs
- ReflectionServiceProvider.cs
- HttpProfileBase.cs
- GeneralTransform.cs
- WebPartEditVerb.cs
- ValueChangedEventManager.cs
- EmptyWorkItem.cs
- GuidelineSet.cs
- SqlFlattener.cs
- GeometryCollection.cs
- TransformDescriptor.cs