In the discussion I had, the question arose whether the interface method should return a user object against a primitive type.
eg.
public interface IFoo { bool SomeMethod(); }
vs
public interface IFoo { MyFooObj SomeMethod(); }
Where is MyFooObj:
public class MyFooObj { bool SomeProp{get;set;} }
The argument is that you can easily add properties to an object in the future without changing the interface contract.
I'm not sure what the standard guidelines for this are?
standards c #
Tom jones
source share