ValidatorHelperIsLengthStr Method | Helper帮助文档 |
看字符串的长度是不是在限定数之间 一个中文为两个字符
Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static bool IsLengthStr( string source, int begin, int end )
Public Shared Function IsLengthStr ( source As String, begin As Integer, end As Integer ) As Boolean
public: static bool IsLengthStr( String^ source, int begin, int end )
static member IsLengthStr : source : string * begin : int * end : int -> bool
Parameters
- source
- Type: SystemString
字符串 - begin
- Type: SystemInt32
大于等于 - end
- Type: SystemInt32
小于等于
Return Value
Type: Boolean[Missing <returns> documentation for "M:HD.Common.ValidatorHelper.IsLengthStr(System.String,System.Int32,System.Int32)"]
See Also