I have a class called Pin.
public class Pin
{
private string title;
public Pin() { }
public setTitle(string title) {
this.
Because getTitle is not a string, it returns a reference or delegate to a method (if you like), if you don't explicitly call the method.
Call your method this way:
string t= obj.getTitle() ; //obj.getTitle() says return the title string object
However, this would work:
Func method = obj.getTitle; // this compiles to a delegate and points to the method
string s = method();//call the delegate or using this syntax `method.Invoke();`