twilio/twilio-csharp — Issue #25: Compile error I can't resolve
Author: artangco
Created: 2012-01-22 14:24:59+00:00
State: open

Hi,
I'm trying to use the following example and get a compile time error. I couldn't find anything in the documentation with respect to how to use this particular method signature and regardless of what I do I can't get rid of the error mentioned below. Any help is much appreciated.

Error	3	Cannot assign void to an implicitly-typed local variable

public void TestSMS()
{

var twilio = new TwilioRestClient("xxxx", "xxxx");
var msg = twilio.SendSmsMessage("+NNNNNNNN", "+NNNNNNNN", "This is so much fun?!", callback );
}

public void callback(SMSMessage sms)
{
// do something here.
}