I am new to interfaces. My simple string parameter in & return of string
worked fine.
BUT I need something better -
- accept as input a structure, Where is the structure definition maintained
? how isi it used ?
Is this possible & how ?
using System;
using System.Collections;
namespace simpleInterface
{
public struct controlStruct
{
public string ateInstrumClass;
public Hashtable hashParameters;
}
public interface IclassTestDLL11
{
string HeatControl(controlStruct singleControl);
string ModifyString(string giveInput);
}
}
Andrew,
How you have it is fine. If this is not in a library, then you might
want to consider placing it in a library (structure and interface) if you
intend on sharing it.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
>I am new to interfaces. My simple string parameter in & return of string
> worked fine.
[quoted text clipped - 23 lines]
> }
> }
andrewcw - 20 Jul 2007 01:58 GMT
OK Yes this compiles ok.
I am so relieved ! I must not have renewed my DLL because now I see it..as
type ahead and that also compiles !!
public string HeatControl(simpleInterface.controlStruct singleControl)
{
string retVal ="";
Super ! Thanks

Signature
Andrew
> Andrew,
>
[quoted text clipped - 29 lines]
> > }
> > }