I currently have an interface for a COM component that is something like this:
[ComVisible(true), InterfaceType(ComInterfaceType.InterfaceIsIUnknown), Guid("aa950e58-7c6e-4818-8fc9-adecbc7a8f14")]
public interface MyIObjects
{
void set_price(float rx);
void set_size(long rx);
float get_price();
long get_size();
}
Now is there a simple shortcut that might reduce two lines of the following to one line
void set_price(float rx);
float get_price();
I know in classes I can do something like this
int Price { get; set; }
but will this work in an interface ?