Hi, 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 = 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
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?.
Thanks,
Jaime.
--
// http://www.go-mono.org -- The Mono Project. .NET + freedom.
signature.asc
Description: This is a digitally signed message part
