Пример #1
0
    public static string ToCardString(ulong bitCard)
    {
        string s   = "";
        var    bcu = BitUtility.Instance;

        while (bitCard != 0)
        {
            int i = bcu.BitScanForward(bitCard);
            s       += CardUtility.ToCardString(i) + ", ";
            bitCard ^= 1ul << i;
        }

        return(s.TrimEnd(new char[] { ',', ' ' }));
    }