FindType.DumpInterfaces C# (CSharp) Method

DumpInterfaces() private method

private DumpInterfaces ( Type aType ) : void
aType Type
return void
  private void DumpInterfaces(Type aType)
  {
    if ( !ShowInterfaces )
      return;
         
    Type[] info = aType.GetInterfaces();
      
    if ( info.Length != 0 )
    {                                      
      myWriter.WriteLine("{0} {1}", "# Interfaces:", 
        info.Length ); 
           
      for ( int i=0; i < info.Length; i++ )
      {
         
        myWriter.PushIndent();
        myWriter.WriteLine("interface {0}", info[i].FullName);
           
        //
        // Only show method information only if requested
        //
        if ( ShowMethods )
        {
          myWriter.PushIndent();
          DumpType( info[i] );
          myWriter.PopIndent();           
        }

        myWriter.PopIndent();
      }
    }
  }