• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
PowerCoder
博客园    首页    新随笔    联系   管理    订阅  订阅
2024年12月11日
C#中的DateTime、DateTimeOffset和TimeSpan(链接)
摘要: 下面的微软官方文档,介绍了C#中的DateTime: DateTime Struct System.DateTime struct 其中这里有提到,DateTime的精度为100纳秒: Time values are measured in 100-nanosecond units called t 阅读全文
posted @ 2024-12-11 21:05 PowerCoder 阅读(192) 评论(0) 推荐(0)
C#中获取一个枚举的所有名称和值
摘要: 使用下面的C#代码,可以遍历一个枚举中的所有名称(Names)和值(Values): using System.Diagnostics; namespace Net8EnumDemo { enum TestEnume : int { Enum1 = 0, Enum2 = 1, Enum3 = 2 } 阅读全文
posted @ 2024-12-11 10:51 PowerCoder 阅读(244) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3