ValidateHelperIsNumberOrFloat Method |
是否为整数或浮点数
Namespace: AdfAssembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax public static bool IsNumberOrFloat(
string source,
bool isNegative = false
)
Public Shared Function IsNumberOrFloat (
source As String,
Optional isNegative As Boolean = false
) As Boolean
public:
static bool IsNumberOrFloat(
String^ source,
bool isNegative = false
)
static member IsNumberOrFloat :
source : string *
?isNegative : bool
(* Defaults:
let _isNegative = defaultArg isNegative false
*)
-> bool
Parameters
- source
- Type: SystemString
[Missing <param name="source"/> documentation for "M:Adf.ValidateHelper.IsNumberOrFloat(System.String,System.Boolean)"]
- isNegative (Optional)
- Type: SystemBoolean
是否允许为负数
Return Value
Type:
Boolean[Missing <returns> documentation for "M:Adf.ValidateHelper.IsNumberOrFloat(System.String,System.Boolean)"]
See Also