将该方法进行封装为PriceChange方法,代码如下:
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using Microsoft.VisualBasic;
namespace AutomatedValuation.MyDBClass
{
public class PriceChange
{
public string[] strPrice;
public string[] strRMB;
public string strMast = string.Empty;
public PriceChange()
{
//数字的汉字读法初始化
strPrice = new string[] { "分", "角", "元", "拾", "佰", "仟", "万", "拾", "佰", "仟", "亿", "拾", "佰", "仟", "兆" };
strRMB = new string[] { "零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖", "拾" };
strMast = "万亿";
}
/// <summary>
/// 将人民币的数字形式转换成汉字