Files
Web_HotelServices_Prod/COMMON/StringMac.cs

24 lines
556 B
C#
Raw Normal View History

2025-11-26 11:18:26 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace COMMON
{
/// <summary>
/// string mac扩展方法
/// </summary>
public static class StringMac
{
/// <summary>
/// string 扩展 用于统一mac格式
/// </summary>
/// <param name="that"></param>
public static string ToStringMac(this string that)
{
return that.Trim().ToUpper().Replace("34-D0", "").Replace("-","").ToLower();
}
}
}