IntrinsicFunctions.TypeTestGeneric<'T> 函数 (F#)

一个实现 :? 运算符的编译器内部函数。

命名空间/模块路径:Microsoft.FSharp.Core.LanguagePrimitives.IntrinsicFunctions

程序集:FSharp.Core(在 FSharp.Core.dll 中)

// Signature:
TypeTestGeneric : obj -> bool

// Usage:
TypeTestGeneric source

参数

  • source
    类型:obj

    要测试的对象。

返回值

如果类型与指定的类型匹配,则为 true;否则为 false。

备注

此函数供编译的 F# 代码使用,不应直接使用。

平台

Windows 7、Windows Vista SP2、Windows XP SP3、Windows XP x64 SP2、Windows Server 2008 R2、Windows Server 2008 SP2、Windows Server 2003 SP2

版本信息

F# 运行时

受以下版本支持:2.0、4.0

Silverlight

受以下版本支持:3

请参见

参考

LanguagePrimitives.IntrinsicFunctions 模块 (F#)

Core.LanguagePrimitives 模块 (F#)