BuildingCoder.CmdRelationshipInverter.DumpHostedElements C# (CSharp) Method

DumpHostedElements() private method

private DumpHostedElements ( Dictionary ids ) : void
ids Dictionary
return void
        private void DumpHostedElements(
            Dictionary<ElementId, List<ElementId>> ids)
        {
            foreach( ElementId idHost in ids.Keys )
              {
            string s = string.Empty;

            foreach( ElementId id in ids[idHost] )
            {
              if( 0 < s.Length )
              {
            s += ", ";
              }
              s += ElementDescription( id );
            }

            int n = ids[idHost].Count;

            Debug.Print(
              "{0} hosts {1} opening{2}: {3}",
              ElementDescription( idHost ),
              n, Util.PluralSuffix( n ), s );
              }
        }