RobotAttribute


Summary

Initializes a new RobotAttribute instance and sets the name

Remarks

Marks a class as a Robot. The Robot attribute cannot be ommited. To make it effective apply enclosed in square brackets, e.g. [Robot("Name")], before the Robot class declaration.

Syntax

public RobotAttribute RobotAttribute(string name)
public RobotAttribute RobotAttribute()

Parameters

NameDescription

Example 1

//...
[Robot("myRobot")]    //  myRobot is the name of the Robot
public class myRobot : Robot
{
    //...
}
//...