コード例 #1
0
        public override string ToString()
        {
            StringBuilder text = new StringBuilder();

            foreach (State s in this.state)
            {
                text.Append(CircuitFunction.ToChar(s));
            }
            return(text.ToString());
        }
コード例 #2
0
        private static string Binary(IEnumerable <State> probeState)
        {
            char[] text  = new char[32];
            int    index = 0;

            foreach (State state in probeState)
            {
                text[index++] = CircuitFunction.ToChar(state);
            }
            Array.Reverse(text, 0, index);
            return(new string(text, 0, index));
        }