About Overloaded Methods in EasyLanguage

A number of classes in EasyLanguage use methods that are "overloaded" meaning that the method can accept multiple parameter types. When a call is made to an overloaded method, EasyLanguage automatically determines how the call will be processed based on the parameter's data type.

For example, the StreamWriter class has a method named Write(parameter) which writes data to a file. The parameter can be of type boolean, string, double, float, int, int64, or object. In any of these cases, Write will handle the parameter appropriately and send data to the file.

How we show overloaded methods

In classes with overloaded methods, the method name is listed multiple times, as shown below. These all represent the same method. The documentation shows that the method works with any of the parameter types indicated.  

  Name Description
Public property Write(bool) Writes the text representation of a boolean value to the file.
Public property Write(string) Writes a string to the file.
Public property Write(double) Writes the text representation of a 4-byte floating-point value to the file.
Public property Write(float) Writes the text representation of an 8-byte floating-point value to the file.
Public property Write(int) Writes the text representation of a 4-byte signed integer to the file.
Public property Write(int64) Writes the text representation of an 8-byte signed integer to the file.
Public property Write(elsystem.Object) Writes the text representation of an object to the file by calling ToString on that object.