NAnt.NUnit2.Types.CategoryCollection.ToString C# (CSharp) 메소드

ToString() 공개 메소드

Returns a comma-delimited list of categories.
public ToString ( ) : string
리턴 string
        public override string ToString()
        {
            string categories = string.Empty;

            foreach (Category category in base.List) {
                if (category.IfDefined && !category.UnlessDefined) {
                    // add comma delimited if its not the first category
                    if (!StringUtils.IsNullOrEmpty(categories)) {
                        categories += ",";
                    }

                    categories += category.CategoryName;
                }
            }

            return categories;
        }