Compile to dll : DLL : Windows C# Examples


C# Examples » Windows » DLL »

 

Compile to dll









    
//  compile  with:  csc  /r:..\logdriver.dll  /target:library  logaddintofile.cs
using  System;
using  System.Collections;
using  System.IO;

public  class  LogAddInToFile
{
        StreamWriter  streamWriter;
        
        public  LogAddInToFile()
        {
                streamWriter  =  File.CreateText(@"logger.log");
                streamWriter.AutoFlush  =  true;
        }
        
        public  void  Log(string  message)
        {
                streamWriter.WriteLine(message);
        }
}
    
   
  
   




HTML code for linking to this page:

    Related in same category :
Follow Navioo On Twitter

C# Examples

 Navioo Windows
» DLL