Alvas.Scriptor Class Library

Scriptor Class

Scriptor provides compiler wrapper.

For a list of all members of this type, see Scriptor Members.

System.Object
   MarshalByRefObject
      Component
         Scriptor

[Visual Basic]
Public Class Scriptor
Inherits Component
[C#]
public class Scriptor : Component

Remarks

  1. Language.Autodetect detect language by file extension. Valid only if property SourceFiles is not empty.
  2. Order to find source.
    1. Use Source property if its not empty
    2. Use Sources property if its not empty, and Source property is empty
    3. Use SourceFiles property if Sources property is empty

Example

This example shows how simple use Scriptor.

            bool success = scr.LoadAndCompile();
            if (success)
            {
            	scr.ExecuteMethod("First.Test", "AssignEvent", this);
            }
             

Requirements

Namespace: Alvas.Script

Assembly: Alvas.Scriptor (in Alvas.Scriptor.dll)

See Also

Scriptor Members | Alvas.Script Namespace