Esempio n. 1
0
 public Datum(string nm, Func <T> variable)
 {
     name = nm;
     //most variables can use standard tostring method - if not will have to add if statements to build custom string methods
     {
         stringFunc = () => variable().ToString();//toString(()=>variable());
     }
 }
Esempio n. 2
0
    public static void Main()
    {
        stringFunction del = new stringFunction(Hey);

        del("Hey there!"); //this is the value that is delegated to the Hey var
    }
Esempio n. 3
0
 public void setCallback(stringFunction newCallback)
 {
     callback = newCallback;
 }
Esempio n. 4
0
 public static void Main()
 {
     stringFunction del = new stringFunction(Hey);
     del("Hey there!"); //this is the value that is delegated to the Hey var
 }