[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.remoting

Problem setting objects properties

Joshua Belden

9/20/2004 4:47:00 PM

I'm having a bit of a problem setting properties on a remotable object.

I have a server object that exposes class Widget:

public class Widget : MarshalByRefObject
{
private string Name = string.Empty;

public string Name
{
get { return m_Name; }
get { m_Name = value; }
}
}

After the client has activated the object I set the Name property:

Widget widget = Activator.GetObject(typeof(Widget), "Widget.rem");
widget.Name = "MyWidget";

If I turn around and look at that Property, widget.Name is empty.

Any Ideas???