Com.Aote.ObjectTools.ICCardObj.AddZero C# (CSharp) Method

AddZero() public method

卡号自动补零
public AddZero ( string Source, int len ) : string
Source string
len int
return string
        public string AddZero(string Source,int len)
        {
            var strTemp = "";
            Source = Source + "";
            for (var i = 1; i <= len - Source.Length; i++)
            {
                strTemp += "0";
            }
           return strTemp+Source; 
        }
         /// <summary>