I’d
just use lambdas:
MyClass.NewMethod((o,e) +
{
MyClass
thing = e.NewObject;
…
do stuff
});
Sergey Barskiy
Principal Consultant
office: 678.405.0687 |
mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom
Development Solutions, Technical Innovation
From: SouthSpawn
[mailto:cslanet@lhotka.net]
Sent: Friday, July 24, 2009 2:03 PM
To: Sergey Barskiy
Subject: [CSLA .NET] SilverLight Client Object
If I wanted to manually create an object on the SL client.
I am struggling with the syntax on how to do it.
I am not sure what I pass in for the "callback"
param from a syntax standpoint.
I thought I could do something like this.
EventHandler<Csla.DataPortalResult<MyClass>>
myClsCallback
MyClass variable;
variable = MyClass.NewMethod(myClassCallback)
Delegates are my strong suit.
Any thoughts?
I meant
MyClass.NewMethod((o,e) =>
{
MyClass thing = e.NewObject;
… do stuff
});
Sergey Barskiy
Principal Consultant
office: 678.405.0687 |
mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom
Development Solutions, Technical Innovation
From: Sergey Barskiy
[mailto:cslanet@lhotka.net]
Sent: Friday, July 24, 2009 4:17 PM
To: Sergey Barskiy
Subject: RE: [CSLA .NET] SilverLight Client Object
I’d
just use lambdas:
MyClass.NewMethod((o,e) +
{
MyClass thing = e.NewObject;
… do stuff
});
Sergey Barskiy
Principal Consultant
office: 678.405.0687 | mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom
Development Solutions, Technical Innovation
From: SouthSpawn
[mailto:cslanet@lhotka.net]
Sent: Friday, July 24, 2009 2:03 PM
To: Sergey Barskiy
Subject: [CSLA .NET] SilverLight Client Object
If I wanted to manually create an object on the SL client.
I am struggling with the syntax on how to do it.
I am not sure what I pass in for the "callback"
param from a syntax standpoint.
I thought I could do something like this.
EventHandler<Csla.DataPortalResult<MyClass>>
myClsCallback
MyClass variable;
variable = MyClass.NewMethod(myClassCallback)
Delegates are my strong suit.
Any thoughts?
Copyright (c) Marimer LLC