[Mono-list] Create an internal class implementing
System.Runtime.Remoting.Lifetime.ILease?
Jaime Anguiano Olarra
jaimemonkey@yahoo.es
28 Nov 2002 18:58:51 +0100
--=-Ssqvsoy9XyQs6yLUvqu+
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Hi,=20
I am trying to implement the holes around the System.Runtime.Remoting
namespace and subspaces. In one method I need to return an object that
implements the ILease interface but I can't find any class doing it.
If I just create an object and cast it as:
ILease io =3D o as ILease; I would be supposing that the object supports
that interface but it doesn't have to.
I thought of implementing a private class=20
private IsLeaseable : ILease {
public IsLeaseable (object o)
...
that would just be an object that implements ILease and so I can do the
cast securely. But I really think this is not the way I should solve it.
Any ideas?.=20
Thanks,
Jaime.
--=20
// http://www.go-mono.org -- The Mono Project. .NET + freedom.
--=-Ssqvsoy9XyQs6yLUvqu+
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQA95llb0ZuGtECkr6cRAkosAJ9WRIOOMhoW3ioTVYelQba2TyhuLQCeJxDE
t87KHCSNvakK6h5uDjHq5Vc=
=RfwD
-----END PGP SIGNATURE-----
--=-Ssqvsoy9XyQs6yLUvqu+--