compcode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
compcode [2007/06/13 07:40]
lavirotte
compcode [2011/01/05 15:43]
hourdin minor spelling fixes
Line 3: Line 3:
 ===== Source Code ===== ===== Source Code =====
  
-Here is the sample code of a component in c# (save this to a le called ​Sample_Component.cs) :+Here is sample code of a component in C# (save this to a file called ​Your_CSharpBean_Name.cs) :
  
 <code csharp> <code csharp>
-using WComp.Beans;​ // It contains ​the definition of the attribute [Bean]+using WComp.Beans; ​     // Contains ​the definition of the [Bean] ​attribute
 using System.Threading;​ // For the thread demo purposes using System.Threading;​ // For the thread demo purposes
  
Line 46: Line 46:
         // This is the signature of the output method         // This is the signature of the output method
         public event Output_Sample_Signature Output_Sample;​         public event Output_Sample_Signature Output_Sample;​
-        // The output port is the event (before)+        // The output port is the event, named here Output_Sample
         // --- End: Output port sample ---         // --- End: Output port sample ---
     }     }
Line 56: Line 56:
 ===== Compilation ===== ===== Compilation =====
  
-Here is a sample of the command line compilation :+Here is a sample of the command line compilation:​
 <​code>​ <​code>​
-csc.exe /​target:​library /r:Bean.dll Sample_Component.cs+csc.exe /​target:​library /r:Beans.dll Sample_Component.cs
 </​code>​ </​code>​
  
-You will find Bean.dll in the WComp distrib.+You will find Beans.dll in the SharpWComp ​distrib.
  • compcode.txt
  • Last modified: 2011/06/06 10:48
  • by Stéphane Lavirotte