public static void CheckValueNotNullOrWhitespace(this XAttribute xat) { xat.CheckNotNull(); if (String.IsNullOrWhiteSpace(xat.Value)) { throw new ApplicationException("Incomplete attribute '" + xat.Name.LocalName + "': Value not specified!"); } }