- // ==++==
- //
- //
- // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
- //
- // The use and distribution terms for this software are contained in the file
- // named license.txt, which can be found in the root of this distribution.
- // By using this software in any fashion, you are agreeing to be bound by the
- // terms of this license.
- //
- // You must not remove this notice, or any other, from this software.
- //
- //
- // ==--==
- /*============================================================
- **
- ** Enum: StringComparison
- **
- **
- ** Purpose: A mechanism to expose a simplified infrastructure for
- ** Comparing strings. This enum lets you choose of the custom
- ** implementations provided by the runtime for the user.
- **
- **
- ===========================================================*/
- namespace System
- {
- [Serializable()]
- [System.Runtime.InteropServices.ComVisible(true)]
- public enum StringComparison
- {
- CurrentCulture = 0,
- CurrentCultureIgnoreCase = 1,
- InvariantCulture = 2,
- InvariantCultureIgnoreCase = 3,
- Ordinal = 4,
- OrdinalIgnoreCase = 5
- }
- }
StringComparison.cs
字符串比较枚举解析
最新推荐文章于 2023-12-05 08:02:48 发布
本文介绍了.NET Framework中用于简化字符串比较操作的StringComparison枚举。此枚举提供了多种比较方式,如忽略大小写、文化习惯敏感等选项,适用于不同场景的需求。
1万+

被折叠的 条评论
为什么被折叠?



