> Hi,
>
> I have generated TypedDataSet (TDS) from a xml schema and need it to be used
> by a legacy application. I would like to know if TDS can be interoped with
> using interface?
It can if you want to write the interface to expose everything. COM is
all about interfaces so with the proper application of interfaces and
attributes, you can make just about any .NET object look like a regular
COM object to COM.
See:
http://www.15seconds.com/issue/040721.htm

Signature
Patrick Steele (patrick@mvps.org)
http://weblogs.asp.net/psteele
Red Devil - 07 Sep 2007 03:28 GMT
Hi Patrick,
Thanks for the info.
Am I right to say without interface, it can't be interoped?
> > Hi,
> >
[quoted text clipped - 10 lines]
>
> http://www.15seconds.com/issue/040721.htm
Patrick Steele - 09 Sep 2007 15:48 GMT
> Hi Patrick,
>
> Thanks for the info.
>
> Am I right to say without interface, it can't be interoped?
No, because the interop wrapper will create a default interface for you,
but it could cause the interop library to be quite large as it has to
recursively build interfaces for all of the .NET types it finds in the
signatures. And if it runs into a type that it can't natively expose to
COM, it'll generate a paramter/type as simply "Object" and you'll loose
type information.
By creating your own interface, you'll have more control over the types
exposed to COM.

Signature
Patrick Steele (patrick@mvps.org)
http://weblogs.asp.net/psteele
Hello! Good Site! Thanks you! uqgibnctsfwls