int to string in UI (v5.0)

Hello Community,

I will change a text in the UI. But when I will put in my int variable it says:“Cannot convert method group ‘ToString’ to non-delegate type ‘string’. Consider using parentheses to invoke the methode”.

I am using C#.
My Code(It’s very simple):

using UnityEngine;
using UnityEngine.UI;
using System.Collections;

public class UI : MonoBehaviour {

	Text instruction;
	public Text geld;
	private int geldGesamt;

	void Start(){
		instruction = GetComponent<Text> ();
	
	}


	public void Money(){
		geld.text = geldGesamt.ToString;
	}

}

Need help!

The Int Class in C# has no property called “ToString” but it does have a Function called “ToString”.

Properties look like this “.ToString”.

Functions look like this “.ToString()”.

This is incorrect.

public void Money()
{
   geld.text = geldGesamt.ToString;
}

This is correct.

public void Money()
{
   geld.text = geldGesamt.ToString();
}

You are missing a set of brackets after “ToString”. It’s “ToString()”.