CheckIfLayingOutGraph
(
String sMethodOrPropertyName
)
{
Debug.Assert( !String.IsNullOrEmpty(sMethodOrPropertyName) );
AssertValid();
if (this.IsLayingOutGraph)
{
throw new InvalidOperationException(String.Format(
"{0}.{1}: An asynchronous layout is in progress. Check the"
+ " IsLayingOutGraph property before calling this."
,
this.ClassName,
sMethodOrPropertyName
) );
}
}