Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / Collections / Specialized / CollectionsUtil.cs / 1 / CollectionsUtil.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
// Wrapper for a case insensitive Hashtable.
namespace System.Collections.Specialized {
using System.Collections;
///
/// [To be supplied.]
///
public class CollectionsUtil {
///
/// [To be supplied.]
///
public static Hashtable CreateCaseInsensitiveHashtable() {
return new Hashtable(StringComparer.CurrentCultureIgnoreCase);
}
///
/// [To be supplied.]
///
public static Hashtable CreateCaseInsensitiveHashtable(int capacity) {
return new Hashtable(capacity, StringComparer.CurrentCultureIgnoreCase);
}
///
/// [To be supplied.]
///
public static Hashtable CreateCaseInsensitiveHashtable(IDictionary d) {
return new Hashtable(d, StringComparer.CurrentCultureIgnoreCase);
}
///
/// [To be supplied.]
///
public static SortedList CreateCaseInsensitiveSortedList() {
return new SortedList(CaseInsensitiveComparer.Default);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
// Wrapper for a case insensitive Hashtable.
namespace System.Collections.Specialized {
using System.Collections;
///
/// [To be supplied.]
///
public class CollectionsUtil {
///
/// [To be supplied.]
///
public static Hashtable CreateCaseInsensitiveHashtable() {
return new Hashtable(StringComparer.CurrentCultureIgnoreCase);
}
///
/// [To be supplied.]
///
public static Hashtable CreateCaseInsensitiveHashtable(int capacity) {
return new Hashtable(capacity, StringComparer.CurrentCultureIgnoreCase);
}
///
/// [To be supplied.]
///
public static Hashtable CreateCaseInsensitiveHashtable(IDictionary d) {
return new Hashtable(d, StringComparer.CurrentCultureIgnoreCase);
}
///
/// [To be supplied.]
///
public static SortedList CreateCaseInsensitiveSortedList() {
return new SortedList(CaseInsensitiveComparer.Default);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- followingsibling.cs
- TextSearch.cs
- ThreadExceptionDialog.cs
- IgnorePropertiesAttribute.cs
- GridViewUpdatedEventArgs.cs
- BlockUIContainer.cs
- CacheEntry.cs
- HtmlForm.cs
- CodeDomDecompiler.cs
- RequestQueue.cs
- OdbcEnvironmentHandle.cs
- BaseDataList.cs
- EncryptedPackageFilter.cs
- WindowExtensionMethods.cs
- OutputScopeManager.cs
- LogExtentCollection.cs
- SecUtil.cs
- MenuItem.cs
- KeyInstance.cs
- TypePresenter.xaml.cs
- OrthographicCamera.cs
- ImageCodecInfoPrivate.cs
- ProfileManager.cs
- WebPartManagerInternals.cs
- WebPartVerbCollection.cs
- InvalidDataException.cs
- DynamicValidatorEventArgs.cs
- Serializer.cs
- XhtmlCssHandler.cs
- CalendarDesigner.cs
- Select.cs
- ShapingWorkspace.cs
- DbConnectionPool.cs
- Int16Converter.cs
- DragCompletedEventArgs.cs
- DesigntimeLicenseContextSerializer.cs
- Graphics.cs
- BindingRestrictions.cs
- UndoManager.cs
- ComponentEditorForm.cs
- MessageSmuggler.cs
- PkcsMisc.cs
- Bezier.cs
- SelectionProcessor.cs
- ColumnReorderedEventArgs.cs
- SizeFConverter.cs
- ISAPIWorkerRequest.cs
- DataKey.cs
- LocalBuilder.cs
- ProgressBarAutomationPeer.cs
- ButtonBase.cs
- DefaultPropertiesToSend.cs
- TextMessageEncoder.cs
- OptimalBreakSession.cs
- ClaimTypeElementCollection.cs
- EntityKeyElement.cs
- LayoutEditorPart.cs
- Int32RectValueSerializer.cs
- SelectionRange.cs
- ISAPIApplicationHost.cs
- TransportListener.cs
- ResourcePool.cs
- ScrollViewerAutomationPeer.cs
- Win32.cs
- ArglessEventHandlerProxy.cs
- NotImplementedException.cs
- DrawListViewItemEventArgs.cs
- RoutedCommand.cs
- AdornerPresentationContext.cs
- DataGridColumnDropSeparator.cs
- FontDriver.cs
- UnionCodeGroup.cs
- ValidationSummary.cs
- KnownBoxes.cs
- InstanceData.cs
- BitmapDecoder.cs
- ToolStripManager.cs
- ContainerAction.cs
- Win32Interop.cs
- CrossContextChannel.cs
- CmsUtils.cs
- Rect.cs
- EmptyEnumerator.cs
- EventEntry.cs
- ApplicationId.cs
- CompatibleComparer.cs
- PropertyPushdownHelper.cs
- UriExt.cs
- IntPtr.cs
- SqlGenerator.cs
- TextEvent.cs
- SessionViewState.cs
- RawStylusInputCustomDataList.cs
- TypeToArgumentTypeConverter.cs
- SoapFault.cs
- ConcatQueryOperator.cs
- RegionData.cs
- Utility.cs
- RootBrowserWindowProxy.cs
- SynchronizationLockException.cs