c# - Enum.TryParse 在 c# 的 vs2008 中不支持

标签 c# enums tryparse

C# 中的 vs2008 不支持 Enum.TryParse(,,out)?为什么?我正在尝试使用但收到 TryParse 未定义的错误。

最佳答案

Enum.TryParse是在 .NET 4 中引入的。但是,您可能喜欢使用我的 Unconstrained Melody具有类似功能和许多其他功能的库。

关于c# - Enum.TryParse 在 c# 的 vs2008 中不支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3520550/

相关文章:

c# - monodevelop 解析 soap 响应

c# - 如何在网络上使用命名管道?

C#字符串转数字,Parse失败时TryParse返回true

c# - TryParse 无故返回 false

c# - 用 linq 实现密集排名

c# - MVC 使用路由值而不是查询字符串进行重定向

Angular 7,枚举和输入属性绑定(bind)

java - 为什么我收到错误 "Constructor is undefined"?

c++ - 允许枚举类的基于范围的 For?

c# - 为什么我的 http 请求响应不能解析成一个整数?