SendMessage from C#

I’m having problems in sending a message from a C# script to a JS script using SendMessage: does anyone know the proper syntax in C# ? Is there anywhere a sample script ?

in the script reference which is the first place you should be looking before posting :

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
    void ApplyDamage(float damage) {
        print(damage);
    }
    void Awake() {
        gameObject.SendMessage("ApplyDamage", 5.0F);
    }
}

Well, that works till I stay in C#; if in the same GameObject I have a JS script

function ApplyDamage(theDamage ){
	Debug.Log("HEY, YOU'RE IN JS ! " + theDamage);	
}

then I get an exception (the first line is output from the C# script that works correctly):

It works on the desktop, but when compiled on iOS then I get this error; the matter is sending a message from a C# script to a JS script on iOS, which, according to the documentation, should be doable…

not sure about this because i never mix C# with UnityScript but try putting your UnityScript in the editor folder.
also please don’t double post the same issue since someone is replying in the other post : http://forum.unity3d.com/threads/91388-Exchange-variables-from-C-to-JS