예제 #1
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            if (GXCommon.IsAscii(Name))
            {
                sb.Append(ASCIIEncoding.ASCII.GetString(Name));
            }
            else
            {
                sb.Append(GXDLMSTranslator.ToHex(Name));
            }
            sb.Append(' ');
            sb.Append(Start.ToFormatString());
            sb.Append(' ');
            if (GXCommon.IsAscii(WeekName))
            {
                sb.Append(ASCIIEncoding.ASCII.GetString(WeekName));
            }
            else
            {
                sb.Append(GXDLMSTranslator.ToHex(WeekName));
            }
            return(sb.ToString());
        }