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
- WorkflowViewStateService.cs
- XmlAttributeCache.cs
- CellCreator.cs
- TextBox.cs
- PersistChildrenAttribute.cs
- ExeContext.cs
- MbpInfo.cs
- Blend.cs
- StubHelpers.cs
- DataFormat.cs
- DesignerLabelAdapter.cs
- ToolStripItemGlyph.cs
- CompareInfo.cs
- WrappedIUnknown.cs
- TextView.cs
- SafeNativeMethods.cs
- TrackingProfileDeserializationException.cs
- RequestCachePolicyConverter.cs
- FindCompletedEventArgs.cs
- WebPartAuthorizationEventArgs.cs
- FixedSchema.cs
- ResourceWriter.cs
- Polygon.cs
- AssemblySettingAttributes.cs
- WhiteSpaceTrimStringConverter.cs
- BitmapPalette.cs
- XmlStringTable.cs
- GACIdentityPermission.cs
- BuilderInfo.cs
- TextBoxBase.cs
- ExpressionEditorSheet.cs
- ReferenceService.cs
- SafeCryptoHandles.cs
- StatusBarAutomationPeer.cs
- ControllableStoryboardAction.cs
- HtmlInputPassword.cs
- VectorCollectionValueSerializer.cs
- dbenumerator.cs
- HttpWebRequestElement.cs
- Size.cs
- MachineKeySection.cs
- ByteArrayHelperWithString.cs
- Semaphore.cs
- AbstractDataSvcMapFileLoader.cs
- SqlGenerator.cs
- FileChangeNotifier.cs
- QilInvoke.cs
- TextServicesCompartmentEventSink.cs
- XmlnsCache.cs
- DataGridViewRowStateChangedEventArgs.cs
- CompositeCollectionView.cs
- WebPartEditorCancelVerb.cs
- MergeEnumerator.cs
- Deserializer.cs
- Stylesheet.cs
- CursorConverter.cs
- AlignmentXValidation.cs
- DataGridCommandEventArgs.cs
- HelloMessageApril2005.cs
- TreeNodeCollection.cs
- filewebrequest.cs
- MD5.cs
- Parallel.cs
- ResourcesGenerator.cs
- CfgParser.cs
- CodeSubDirectoriesCollection.cs
- VectorCollectionValueSerializer.cs
- StylusButton.cs
- DictionaryContent.cs
- PolyBezierSegment.cs
- HotCommands.cs
- PropertyPushdownHelper.cs
- DebugView.cs
- ManifestResourceInfo.cs
- BeginStoryboard.cs
- MemberJoinTreeNode.cs
- DataGridViewRowConverter.cs
- ButtonBaseDesigner.cs
- DataGridTablesFactory.cs
- UpdatePanel.cs
- PropertyFilterAttribute.cs
- ConfigViewGenerator.cs
- GeneralTransform.cs
- Interlocked.cs
- XmlPreloadedResolver.cs
- CodeAttributeDeclaration.cs
- ScriptResourceAttribute.cs
- ReferenceSchema.cs
- PresentationAppDomainManager.cs
- InheritedPropertyChangedEventArgs.cs
- CodeAssignStatement.cs
- ToolStripLabel.cs
- ApplicationInfo.cs
- ClrPerspective.cs
- XmlNamespaceManager.cs
- ZoneLinkButton.cs
- ParseChildrenAsPropertiesAttribute.cs
- ImageAttributes.cs
- DbConnectionPool.cs
- ToolStripHighContrastRenderer.cs