/// <summary> /// Returns the next Class name for the Theme /// </summary> /// <returns></returns> public string GetNextClassName() { if (ClassNames == null || ClassNames.Count == 0) { return(NAME_UNAVAILABLE); } string nextName; do { nextName = ClassNames.Dequeue(); } while (string.IsNullOrEmpty(nextName)); //put the name at the end so we keep looping ClassNames.Enqueue(nextName); return(nextName); }