// Miguel de Icaza (miguel@ximian.com)
// Dietmar Maurer (dietmar@ximian.com)
// Lluis Sanchez Gual (lluis@ideary.com)
+// Patrik Torstensson
//
// (C) Ximian, Inc. http://www.ximian.com
//
string uri;
IRemotingTypeInfo typeInfo;
IEnvoyInfo envoyInfo;
- [NonSerialized] bool marshalledValue = false;
+ [NonSerialized] bool marshalledValue = true;
public ObjRef ()
{
SerializationInfoEnumerator en = si.GetEnumerator();
// Info to serialize: uri, objrefFlags, typeInfo, envoyInfo, channelInfo
- marshalledValue = false;
+ marshalledValue = true;
while (en.MoveNext ()) {
switch (en.Name) {
envoyInfo = (IEnvoyInfo)en.Value;
break;
case "fIsMarshalled":
- marshalledValue = true;
+ int status;
+ Object o = en.Value;
+ if (o.GetType().Equals(typeof(String)))\r
+ status = ((IConvertible) o).ToInt32(null);\r
+ else\r
+ status = (int) o;\r
+
+ if (status == 0)
+ marshalledValue = false;
break;
case "objrefFlags": // FIXME: do something with this
break;