AjaxControlToolkit.Tests.TabContainerTests.GetClassAttribute C# (CSharp) Method

GetClassAttribute() private method

private GetClassAttribute ( string layout ) : string
layout string
return string
        string GetClassAttribute(string layout)
        {
            using(var reader = XmlReader.Create(new StringReader(layout))) {
                reader.Read();
                return reader.MoveToAttribute("class") ? reader.Value : null;
            }
        }