next up previous contents index
Next: Port, InputPort, and OutputPort Up: Event=PortValue Previous: Event=PortValue   Contents   Index


Named

Named is defined in Named.cs file as a concrete class. The class provides its constructor whose argument is a string, and has a public Name field as a string. The function ToString() is the function overrided from object::ToString().
public class Named
{
    public String Name;

    public Named(string name)
    {
        m_Name = name;
    }

    public override string ToString()
    {
        return m_name;
    }
}



MHHwang 2007-05-08